joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415916
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x58c7d9
call fcn.004321e7
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x415a58
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415a58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x415982
test edi, edi
je 0x415a58
cmp dword [ebp + 0x1c], ebx
jbe 0x415a1c
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00404c21
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00419231
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00419bad
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041941d
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.0045d731
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.0044b1c0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.0041a8b8
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.004061ca
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004061ca
jmp 0x415a1e
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00406145
lea eax, [ebp - 0x58]
push eax
call fcn.00409624
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00415b20
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.004061ca
lea ecx, [ebp + 0xc]
call fcn.004061ca
mov al, bl
call fcn.00432191
ret 0x20
Function at 0x415c43
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x58c835
call fcn.004321e7
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.00406a05
push ebx
lea ecx, [ebp - 0x428]
call fcn.00406a05
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x415d5d
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0044b1c0
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415d44
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x415d55
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x415e47
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.00406a05
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.00406a05
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415e47
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0044b1c0
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415e36
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x415e47
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.00406253
mov eax, esi
call fcn.00432191
ret
Function at 0x4162c5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x416358
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0044b1c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x416358
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x416341
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004097b6
pop ecx
pop ecx
test al, al
jne 0x416347
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x416321
jmp 0x41634d
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41635a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret

Function at 0x4164b6
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4164e5
push 2
pop eax
jmp 0x41656a
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00416369
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0044b1c0
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x5916e0
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x416560
cmp dword [ebp + 0x10], 0
je 0x416560
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00406253
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret
Function at 0x4165c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0044b1c0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00416579
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x416643
cmp dword [ebp - 0x118], ebx
jbe 0x416689
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x416689
cmp eax, 6
jne 0x41666e
cmp byte [ebp - 6], 1
jne 0x416669
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x416665
sub eax, 1
je 0x416661
push 7
jmp 0x41666b
push 5
jmp 0x41666b
push 3
jmp 0x41666b
push 4
pop ebx
jmp 0x416689
push 0xa
pop ecx
cmp eax, ecx
jne 0x416686
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x416689
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret

Function at 0x416698
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x78]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
push 0
push eax
call fcn.0044b1c0
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x416789
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4166dd
sub ecx, edx
sar ecx, 1
je 0x416789
call fcn.00416a14
test eax, eax
je 0x416789
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x416789
lea ecx, [ebp - 0x20]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x416789
cmp dword [ebp - 0x20], edi
je 0x416789
push ebx
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x78], 0x44
push str.__s___s
push eax
mov dword [ebp - 0x70], str.winsta0default
call fcn.0040953f
add esp, 0x10
lea ecx, [ebp - 0x34]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push edi
push edi
push 0x20
push edi
push edi
push edi
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x20]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406253
mov al, bl
jmp 0x41678b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret
Function at 0x41679a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
jne 0x4167b8
xor eax, eax
jmp 0x41693c
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x41691d
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ecx, ecx
inc ecx
test eax, eax
je 0x4167f1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x416811
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41691d
mov eax, dword [ebp - 4]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x41691d
push esi
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x41691d
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
pop edi
push edi
push esi
push eax
call fcn.0044b1c0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41685d
sub ecx, edx
mov dword [ebp - 0x6c], edi
sar ecx, 1
xor eax, eax
inc eax
mov dword [ebp - 0x64], str.WinSta0Default
push ebx
mov word [ebp - 0x3c], ax
lea ebx, [ecx + 0x64]
cmp dword [ebp + 0xc], esi
je 0x41689d
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41688c
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x14], eax
call fcn.0045d731
mov edi, eax
pop ecx
test edi, edi
je 0x416914
cmp dword [ebp + 0xc], esi
je 0x4168cc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x59178c
push ebx
push edi
call fcn.00416b21
add esp, 0x14
jmp 0x4168de
push dword [ebp + 8]
push 0x590cdc
push ebx
push edi
call fcn.00416b21
add esp, 0x10
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edi - 2], cx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0xc]
push 0x420
push esi
push esi
push esi
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
push edi
sbb esi, esi
neg esi
call fcn.0044d3e8
pop ecx
push dword [ebp - 0xc]
call sub.USERENV.dll_DestroyEnvironmentBlock
pop ebx
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41692e
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x416939
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x416a14
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x58c986
call fcn.004321e7
push 0x228
xor esi, esi
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.0044b1c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x416b1b
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x72
push 0x65
push 0x72
push 0x6f
push 0x6c
push 0x70
push 0x78
push 0x65
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push str._c_c_c_c_c_c_c_c.exe
push eax
call fcn.0040953f
add esp, 0x28
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x416af6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a05
cmp dword [ebp - 0x18], 0
je 0x416ae9
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004097b6
pop ecx
pop ecx
test al, al
jne 0x416afc
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x416a9e
jmp 0x416b02
mov esi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00406253
lea ecx, [ebp - 0x28]
call fcn.00406253
mov eax, esi
call fcn.00432191
ret
Function at 0x418839
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00432340
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.0044b1c0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0044b1c0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040a49a
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4188cf
mov al, 1
jmp 0x4189d8
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0044b1c0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0044b1c0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0044b1c0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x418951
mov bl, 2
jmp 0x4189cf
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004189e7
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004189e7
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418992
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.00419bc9
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4189b3
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.00419bc9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret
Function at 0x418b74
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x418b86
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043228f
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.0044b1c0
push dword [ebp + 8]
push esi
push ebx
call fcn.0045d73c
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x418c0b
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x418c00
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418bf9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x418c07
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x418bd6
jmp 0x418c0b
mov byte [ebp - 1], 0
push ebx
call fcn.00432298
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418c1a
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x58ccce
call fcn.004321e7
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x418d01
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.00418b4d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x418d01
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043228f
push esi
mov ebx, eax
push 0
push ebx
call fcn.00402809
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x418cfa
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00451633
add esp, 0xc
test eax, eax
je 0x418cef
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x418cda
movzx eax, word [esi]
test ax, ax
je 0x418cfa
jmp 0x418cb8
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00418b4d
push ebx
call fcn.00432298
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004041f9
lea ecx, [ebp - 0x40]
call fcn.00406253
lea ecx, [ebp - 0x28]
call fcn.00406253
mov eax, edi
call fcn.00432191
ret
Function at 0x418d24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.0044b1c0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x418d84
push edi
jmp 0x418d8b
lea eax, [ebp - 0x20c]
push eax
call fcn.00404085
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004318a9
leave
ret

Function at 0x418e40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x418f51
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x418f50
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x418e6f
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x418f50
push 0x614d90
push eax
call fcn.0043236d
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x418f50
cmp dword [esi + 0x14], 0x10
jb 0x418ea4
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x418f3e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x418f3e
mov eax, dword [ebp - 0x10]
push 0x614d90
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.0043236d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x418f3e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x418f07
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0040a49a
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x418f3c
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00406124
mov bl, 1
push esi
call fcn.00432298
pop ecx
test edi, edi
je 0x418f50
push edi
call fcn.00432298
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x4193f6
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x419f24
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.00432340
mov eax, dword [0x60a1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.0044b1c0
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x419fff
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x419ffe
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0044b1c0
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.0041a00f
add esp, 0x18
test eax, eax
je 0x419ff0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0045dd1d
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.00449e6a
add esp, 0x10
test eax, eax
jne 0x419ff7
inc esi
cmp esi, edi
jb 0x419f94
jmp 0x419ffe
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004318a9
leave
ret

Function at 0x41a00f
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x41a03c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret