joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408859
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x408882
xor eax, eax
jmp 0x408931
lea ecx, [esp + 8]
call fcn.00409aa6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.0040a18b
call fcn.00416968
push 0x1388
sub esp, 0x18
mov ecx, esp
push str.SoftResHaoKanWP
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
call fcn.0040393f
push dword [ebp + 8]
call fcn.00408938
mov ecx, eax
call fcn.0040d1d9
push ebx
push ebx
call fcn.004089b4
mov ecx, eax
call fcn.0041120a
push ebx
push ebx
push dword [ebp + 8]
call fcn.00408a30
mov ecx, eax
call fcn.00415029
mov ecx, dword [ebp + 8]
call fcn.00408678
test al, al
jne 0x408926
push 0xd
call fcn.00415b65
push dword [ebp + 8]
push ecx
call fcn.00407e43
test eax, eax
js 0x408913
call fcn.00407ec7
call fcn.00416917
call fcn.00408577
call dword [sym.imp.ole32.dll_CoUninitialize]
xor ebx, ebx
inc ebx
lea ecx, [esp + 8]
call fcn.00409afe
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408bbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408bbc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x408bae
cmp esi, ecx
jae 0x408bbc
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x408b9c
cmp esi, ecx
jae 0x408bbc
cmp word [esi], 0
je 0x408bbc
mov eax, esi
jmp 0x408bbe
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408dd6
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 0x770]
mov eax, dword [ecx]
call dword [eax + 0x218]
mov ecx, dword [edi + 0x774]
push 0
mov eax, dword [ecx]
call dword [eax + 0x118]
push 0
mov ecx, edi
call fcn.00408e76
lea esi, [edi + 0x30]
mov ebx, 0x201
push ebx
mov ecx, esi
call fcn.00423af0
push eax
mov ecx, esi
call fcn.00424010
push 0x14
push ebx
mov ecx, esi
call fcn.00423af0
push eax
mov ecx, esi
call fcn.0042bbc0
inc ebx
mov ecx, esi
push ebx
call fcn.00423af0
push eax
mov ecx, esi
call fcn.00424010
push 0x7d0
push ebx
mov ecx, esi
call fcn.00423af0
push eax
mov ecx, esi
call fcn.0042bbc0
xor eax, eax
push eax
push eax
push edi
push 0x408d4f
push eax
push eax
mov dword [edi + 0x780], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x784], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40d1d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x6108cd
call fcn.004fc652
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 0x40d31b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d31b
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 0x40d245
test edi, edi
je 0x40d31b
cmp dword [ebp + 0x1c], ebx
jbe 0x40d2df
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00403a5d
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004171e8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00417b64
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004173d4
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.0051af2a
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.00515320
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.00417186
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00403919
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00403919
jmp 0x40d2e1
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402e12
lea eax, [ebp - 0x58]
push eax
call fcn.00413217
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040e4dd
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.00403919
lea ecx, [ebp + 0xc]
call fcn.00403919
mov al, bl
call fcn.004fc5fc
ret 0x20
Function at 0x411410
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x610f22
call fcn.004fc652
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00411157
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x411442
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x617de0
call fcn.00402c83
push 0x617de4
mov ecx, esi
call fcn.00402c83
push 0x617ca4
mov ecx, esi
call fcn.00402c83
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00403813
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x411497
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41152f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00515320
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041102b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4114ee
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402c83
push 0x617ca4
mov ecx, esi
call fcn.00402c83
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00403813
cmp dword [esi + 0x14], 8
jb 0x411537
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41154f
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x617de0
call fcn.00402c83
push 0x617de4
mov ecx, esi
call fcn.00402c83
push 0x617ca4
mov ecx, esi
call fcn.00402c83
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004111b6
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00408b16
lea ecx, [ebp - 0x248]
call fcn.0040374c
lea ecx, [ebp - 0x230]
call fcn.0040374c
call fcn.004fc5fc
ret
Function at 0x412868
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x611111
call fcn.004fc652
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x412889
push dword [esi + 0x1c]
call fcn.00526253
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00411cad
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0051c497
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41290d
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00411cad
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00411cad
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040374c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040374c
sub edi, 1
jns 0x4128b7
mov ecx, esi
call fcn.00412697
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040374c
call fcn.004fc5fc
ret

Function at 0x412926
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x611111
call fcn.004fc652
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x412947
push dword [esi + 0x1c]
call fcn.00526253
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00411cad
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0051c497
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4129cb
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00411cad
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00411cad
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040374c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040374c
sub edi, 1
jns 0x412975
mov ecx, esi
call fcn.0041272e
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040374c
call fcn.004fc5fc
ret
Function at 0x413b01
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6a34f8]
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 0x413b30
push 2
pop eax
jmp 0x413bb5
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004139b9
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00515320
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, str.runas
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 0x413bab
cmp dword [ebp + 0x10], 0
je 0x413bab
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.0040374c
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbae6
leave
ret

Function at 0x413f40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x413ff0
cmp dword [ebp + 0xc], 0
je 0x413ff0
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413ff3
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x413f7d
jb 0x413fa1
push 8
pop eax
jmp 0x413ff3
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x413fad
mov dword [eax], edi
inc esi
push esi
call fcn.004fc72d
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.00515320
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x413f7d
cmp dword [ebp + 8], edi
jne 0x413ff0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413ff3
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x413ff7
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 0x414108
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x414107
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x414026
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 0x414107
push 0x6af5d8
push eax
call fcn.004fc393
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x414107
cmp dword [esi + 0x14], 0x10
jb 0x41405b
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 0x4140f5
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 0x4140f5
mov eax, dword [ebp - 0x10]
push 0x6af5d8
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.004fc393
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4140f5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4140be
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00401500
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 0x4140f3
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.0040393f
mov bl, 1
push esi
call fcn.004fc193
pop ecx
test edi, edi
je 0x414107
push edi
call fcn.004fc193
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x414126
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x611460
call fcn.004fc652
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
push esi
call fcn.004055ca
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x60], ebx
jbe 0x414285
lea eax, [ebp - 0x70]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.004038b1
push str..
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00402c83
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41427d
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.00402c5c
push 0x617ff0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004138dd
test al, al
jne 0x41423f
push 0x618198
lea ecx, [ebp - 0x28]
call fcn.004138dd
test al, al
jne 0x41423f
push esi
lea ecx, [ebp - 0x40]
call fcn.004055ca
push 0x617ca4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00402c83
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403813
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x40]
je 0x414228
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00414126
jmp 0x414236
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0041410e
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040374c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040374c
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414196
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41427d
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x58]
call fcn.0040374c
lea ecx, [ebp - 0x70]
call fcn.0040374c
call fcn.004fc5fc
ret

Function at 0x414293
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x4142f6
xor edi, edi
cmp word [eax], di
je 0x4142f6
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4142cc
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4142eb
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4142f9
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x41435b
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x611498
call fcn.004fc652
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.00515320
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x414409
push eax
lea ecx, [ebp - 0x40]
call fcn.00402c5c
cmp dword [ebp - 0x30], esi
je 0x414409
push 0x617ffc
lea ecx, [ebp - 0x28]
call fcn.00402c5c
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402c83
push 0x618208
lea ecx, [ebp - 0x28]
call fcn.00402c83
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00403813
jmp 0x414412
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402c5c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x414469
cmp byte [ebp + 0x10], 0
je 0x414456
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.0040374c
lea ecx, [ebp - 0x28]
call fcn.0040374c
mov eax, esi
call fcn.004fc5fc
ret
Function at 0x4147d3
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x68ef50
mov dword [ebp - 0xa38], eax
call fcn.00402c5c
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00515320
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x414877
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x414877
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fc72d
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.00515320
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x414888
push ebx
call fcn.004fc193
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbae6
leave
ret
mov eax, dword [0x618200]
mov dword [ebp - 0xc], eax
mov ax, word [0x618204]
push 0x208
mov word [ebp - 8], ax
call fcn.004fc72d
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4148fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41499c
push edi
call fcn.004fc193
push 2
call fcn.004fc72d
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41499c
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x414904
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.005276c3
add esp, 0xc
test eax, eax
je 0x41494c
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41492e
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x41499c
jmp 0x4148b0
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00414dc6
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.004055ca
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00402cd3
lea ecx, [ebp - 0xa30]
call fcn.0040374c
push ebx
call fcn.004fc193
push edi
call fcn.004fc193
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x414879
Function at 0x4149b2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.004fc700
mov eax, dword [0x6a34f8]
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.00515320
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 0x414a8d
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x414a8c
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00515320
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.00414d93
add esp, 0x18
test eax, eax
je 0x414a7e
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005294d6
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.00513389
add esp, 0x10
test eax, eax
jne 0x414a85
inc esi
cmp esi, edi
jb 0x414a22
jmp 0x414a8c
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.004fbae6
leave
ret

Function at 0x414c26
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x610ff2
call fcn.004fc652
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x414cb1
cmp esi, 0xffffffff
je 0x414cb1
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004147d3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00414a9d
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.0040374c
test bl, bl
je 0x414cb1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x414cb1
cmp byte [ebp + 0x14], 0
je 0x414cb1
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x414ccf
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x414ccf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.004fc5fc
ret