joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bb16
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x1b4], bx
lea edi, [ebp + 0x1b6]
stosd dword es:[edi], eax
push 0x206
stosw word es:[edi], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], bx
call fcn.0043db80
push esi
call fcn.0043dd6a
add esp, 0x10
cmp eax, 3
jl 0x41bb84
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0044097a
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x58]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x5c], 0x80000000
and eax, 0x7fffffff
cmp dword [esi + 0x6b4], ebx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
fild qword [ebp - 0x70]
fild qword [ebp - 0x60]
fchs
faddp st(1)
fstp dword [ebp - 0x5c]
je 0x41bc31
fld dword [ebp - 0x5c]
call fcn.0043de30
cmp eax, 0x400
jle 0x41bc10
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4cbc38]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.0043ec84
add esp, 0x10
jmp 0x41bc22
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.0043ec84
add esp, 0xc
mov ecx, dword [esi + 0x6b4]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x1c0
leave
ret 4
Function at 0x41c356
Capabilities:
Check if file exists

Disassembly:
push 0xd0
mov eax, 0x4c3ec6
call fcn.0043e75b
mov esi, ecx
lea eax, [esi + 0x6ac]
xor edi, edi
cmp dword [eax], edi
je 0x41c4fc
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [ebp - 0xdc]
xor ebx, ebx
push edx
inc ebx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], edi
call dword [0x4e3368]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015a0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call dword [0x4e32ec]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c3b8
lea eax, [ebp - 0x28]
push eax
call fcn.0043dd6a
cmp eax, 3
pop ecx
jle 0x41c3fb
push 3
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403430
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x41c3df
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c3ec
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401770
cmp ebx, edi
jne 0x41c41b
lea eax, [esi + 0x66c]
cmp dword [eax], edi
je 0x41c4f1
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
jmp 0x41c4f1
mov ecx, dword [esi + 0x67c]
cmp ecx, edi
je 0x41c47d
call dword [0x4e332c]
test al, al
lea eax, [esi + 0x66c]
je 0x41c455
cmp dword [eax], edi
je 0x41c447
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41c47d
push 1
jmp 0x41c471
cmp dword [eax], edi
je 0x41c466
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41c47d
push edi
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
lea ebx, [esi + 0x50c]
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x50]
call fcn.0040e876
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x58]
call fcn.0040e876
jmp 0x41c4cd
lea ecx, [ebp - 0x50]
call fcn.0040e1fb
cmp dword [eax], edi
je 0x41c4c5
lea ecx, [ebp - 0x50]
call fcn.0040e1fb
cmp dword [ebp - 0x14], 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0x28]
jae 0x41c4bf
lea eax, [ebp - 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x50]
call fcn.0040e21c
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040a8bf
test al, al
je 0x41c49d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c4e9
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041bb16
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401770
call fcn.0043e7de
ret
Function at 0x41d1da
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x41d2e7
cmp ebx, 2
mov eax, dword [ebp + 8]
jl 0x41d212
movzx ecx, byte [esi + eax]
cmp ecx, 0x2f72
jne 0x41d212
movzx ecx, byte [esi + eax + 1]
cmp ecx, 0x2f6e
je 0x41d242
mov cl, byte [esi + eax]
movzx eax, cl
cmp eax, 0x2f6e
je 0x41d242
cmp cl, 0x3d
jne 0x41d22a
inc edi
cmp edi, 2
jg 0x41d269
cmp cl, 0x7f
ja 0x41d269
mov al, byte [eax + 0x4cd408]
cmp al, 0x7f
je 0x41d269
cmp al, 0x40
jae 0x41d241
test edi, edi
jne 0x41d269
inc edx
inc esi
dec ebx
cmp esi, dword [ebp + 0xc]
jl 0x41d1f1
test edx, edx
je 0x41d2e7
mov ebx, dword [ebp + 0x14]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov eax, edx
cmp dword [ebx], eax
jge 0x41d26e
mov dword [ebx], eax
push 0xfffffffffffffff0
jmp 0x41d26b
push 0xffffffffffffffee
pop eax
jmp 0x41d2e9
mov ecx, dword [ebp + 0x10]
xor edx, edx
and dword [ebp + 0xc], edx
test esi, esi
push 3
pop edi
jle 0x41d2e2
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x41d2d7
cmp eax, 0x2f6e
je 0x41d2d7
movzx eax, byte [eax + 0x4cd408]
xor ebx, ebx
cmp al, 0x40
sete bl
shl edx, 6
and eax, 0x3f
or eax, edx
mov edx, eax
sub edi, ebx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
jne 0x41d2d7
and dword [ebp + 0xc], 0
test edi, edi
jle 0x41d2c2
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x41d2cf
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jle 0x41d2d7
mov byte [ecx], dl
inc ecx
dec esi
inc dword [ebp + 8]
test esi, esi
jg 0x41d27d
mov ebx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov dword [ebx], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d32a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0043dd6a
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c4c
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0043dd4e
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x41d399
cmp word [esi + ebp*2], 0x5c
jne 0x41d390
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d38a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d397
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x41d367
jmp 0x41d399
xor bl, bl
push esi
call fcn.004ba1f5
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x41d65c
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d6ab
xor eax, eax
jmp 0x41d77e
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4e31d4
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
jne 0x41d762
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0043db80
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x198]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.0043dd24
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x41d77c
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call fcn.0043dd4e
pop ecx
pop ecx
jmp 0x41d779
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.0043dd4e
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x3a4
leave
ret

Function at 0x41d8bb
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043db80
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db80
push edi
lea eax, [ebp - 0x2c]
push 0x4ca39c
push eax
call fcn.0043ec84
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d93f
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043db65
add ebp, 0x7a8
leave
ret
Function at 0x41d956
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x7b0]
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0043db80
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db80
push esi
lea eax, [ebp - 0x2c]
push 0x4ca39c
push eax
call fcn.0043ec84
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d9f9
cmp byte [ebp + 0x7b4], bl
je 0x41d9e9
mov eax, dword [ebp + 0x7b8]
cmp eax, ebx
jg 0x41d9df
or eax, 0xffffffff
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x7a8
leave
ret

Function at 0x41da10
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x5c4]
sub esp, 0x644
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5c0], eax
push ebx
mov ebx, dword [ebp + 0x5cc]
push edi
xor edi, edi
cmp ebx, edi
jne 0x41da40
xor eax, eax
jmp 0x41db07
push esi
mov esi, 0x206
push esi
lea eax, [ebp + 0x3ba]
push edi
push eax
mov word [ebp + 0x3b8], di
call fcn.0043db80
lea eax, [ebp + 0x3b8]
push ebx
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x3b8]
push eax
call fcn.00441af8
push 0x228
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x7c], edi
call fcn.0043db80
add esp, 0x24
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41db04
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41daf9
push esi
lea eax, [ebp + 0x1b2]
push edi
push eax
mov word [ebp + 0x1b0], di
call fcn.0043db80
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x1b0]
push eax
call fcn.00441af8
push dword [ebp - 0x80]
push eax
call fcn.0043ed1a
add esp, 0x20
test eax, eax
je 0x41db1e
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41daae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x5c0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x5c4
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
jmp 0x41db06
Function at 0x41dd67
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b4]
push ebx
mov ebx, dword [ebp + 0x5b0]
push esi
push edi
mov edi, 0x206
xor esi, esi
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x196]
push esi
push eax
mov dword [ebp - 0x80], ebx
mov word [ebp + 0x194], si
call fcn.0043db80
push edi
lea eax, [ebp - 0x72]
push esi
push eax
mov word [ebp - 0x74], si
call fcn.0043db80
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.0043dd4e
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x194]
push eax
call fcn.00440b9f
lea eax, [ebp - 0x74]
push eax
call fcn.00440b9f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043ed1a
add esp, 0x38
test eax, eax
je 0x41dec7
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x7c], esi
push edi
lea eax, [ebp + 0x39e]
push esi
push eax
mov word [ebp + 0x39c], si
call fcn.0043db80
add esp, 0xc
cmp dword [ebp - 0x7c], esi
lea eax, [ebp + 0x39c]
jne 0x41de4a
push dword [ebp - 0x78]
push str._s.bak
push eax
call fcn.0043ec84
add esp, 0xc
jmp 0x41de5e
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push str._s.bak_d
push eax
call fcn.0043ec84
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41de7c
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x78]
call fcn.00441b61
pop ecx
pop ecx
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
push esi
lea eax, [ebp + 0x39c]
push eax
jne 0x41dec5
call ebx
cmp dword [ebp - 0x7c], 0xa
jge 0x41dec7
inc dword [ebp - 0x7c]
jmp 0x41de14
call ebx
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x5a8
leave
ret
Function at 0x41dedf
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push str..del
push edi
call fcn.0043ea1e
test eax, eax
pop ecx
pop ecx
je 0x41df17
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41dfae
push esi
xor esi, esi
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0043db80
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x20c]
jne 0x41df53
push edi
push str._s.del
push eax
call fcn.0043ec84
add esp, 0xc
jmp 0x41df63
push esi
push edi
push str._s.del_d
push eax
call fcn.0043ec84
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41df8d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41df8d
cmp esi, 0xa
jge 0x41dfad
inc esi
jmp 0x41df1a
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00441b61
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043db65
leave
ret

Function at 0x41dfbb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x41e00b
cmp dword [ebp - 0x78], 2
jb 0x41e00b
xor eax, eax
inc eax
jmp 0x41e012
cmp dword [ebp - 0x7c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043db65
add ebp, 0xa0
leave
ret

Function at 0x41e027
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0043db80
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e0cf
cmp dword [ebp - 0x6c], 5
jbe 0x41e0cf
push 4
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e0cf
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.EnableLUA
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e0c6
cmp dword [ebp - 0x78], edi
setne al
mov edi, eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0043db65
add ebp, 0xa8
leave
ret
Function at 0x41e301
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7fc]
sub esp, 0x87c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7f8], eax
mov eax, dword [ebp + 0x804]
push ebx
mov ebx, dword [ebp + 0x808]
push esi
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x80c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1e2]
push edi
push eax
mov word [ebp + 0x1e0], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x3ea]
push edi
push eax
mov word [ebp + 0x3e8], di
call fcn.0043db80
lea eax, [ebp + 0x3e8]
push ebx
push eax
call fcn.0043dd4e
push dword [ebp - 0x74]
lea eax, [ebp + 0x1e0]
push str._s.
push eax
call fcn.0043ec84
add esp, 0x2c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edi
je 0x41e4ac
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41e4ac
cmp word [ebp - 0x44], 0x2e
je 0x41e3b2
cmp word [ebp - 0x42], di
je 0x41e3b2
cmp word [ebp - 0x42], 0x2e
jne 0x41e3e1
cmp word [ebp - 0x40], di
je 0x41e3b2
test byte [ebp - 0x70], 0x10
je 0x41e42b
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db80
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca2b8
push eax
call fcn.0043ec84
add esp, 0x20
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
jne 0x41e494
lea eax, [ebp + 0x3e8]
push eax
call fcn.00440b9f
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00440b9f
pop ecx
push eax
call fcn.0043ed1a
test eax, eax
pop ecx
pop ecx
jne 0x41e3b2
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db80
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca484
push eax
call fcn.0043ec84
add esp, 0x1c
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
je 0x41e3b2
lea eax, [ebp + 0x5f0]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x78], 1
call fcn.0043dd4e
pop ecx
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x7f8]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x7fc
leave
ret

Function at 0x41e59e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043dd6a
test eax, eax
pop ecx
je 0x41e5f6
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043db80
add esp, 0xc
xor ecx, ecx
inc ecx
push ecx
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41e5f6
push esi
call fcn.0041d8bb
pop ecx
pop esi
leave
ret
Function at 0x41e5f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043dd6a
test eax, eax
pop ecx
je 0x41e682
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0043db80
add esp, 0xc
push 1
push ebx
push ebx
mov eax, str.open
push esi
push eax
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41e65b
push dword [ebp + 0x10]
push 1
push esi
call fcn.0041d956
add esp, 0xc
jmp 0x41e681
cmp byte [ebp + 0xc], bl
je 0x41e681
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jg 0x41e66a
or eax, 0xffffffff
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebx
pop esi
leave
ret

Function at 0x41ed01
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xfdc]
sub esp, 0xfdc
push 0xffffffffffffffff
push 0x4c4174
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xfd8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xfe4]
push 0x7d0
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4cd76c
call fcn.0043dd6a
pop ecx
lea eax, [ebp + eax*2 + 0x38]
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.0043dd24
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0043db80
add esp, 0x1c
mov edi, str.open
push esi
lea ecx, [ebp]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], 0x200
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 1
call fcn.004015a0
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x41edb5
lea eax, [ebp + 4]
mov ebx, 0x4e3274
push ebx
push eax
call fcn.0043ea1e
pop ecx
pop ecx
push 0x4e31d4
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
call fcn.004015a0
cmp dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
jne 0x41ede6
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00403360
push esi
lea ecx, [ebp + 0x1c]
call fcn.00403470
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x41edfb
lea eax, [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push esi
push eax
push edi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41ee23
push 0x7d0
lea eax, [ebp + 0x38]
push ebx
push eax
call fcn.0041d956
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401770
push esi
push ebx
lea ecx, [ebp]
call fcn.00401770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfd8]
xor ecx, ebp
call fcn.0043db65
add ebp, 0xfdc
leave
ret