joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455eb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4cc5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x160]
push esi
lea ecx, [ebp - 0x10]
call fcn.00402250
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402030
lea ecx, [ebp - 0x10]
call fcn.0040cf70
test al, al
je 0x455fc7
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4b9bec
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x455f55
mov byte [ebp - 4], 0
push eax
mov dword [ebp - 0x18], 0x4b9bec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x455f76
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], 0x4b9bec
test esi, esi
je 0x455f7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jb 0x455f8c
mov ecx, edi
call fcn.004597e0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x455fb3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040cf70
test al, al
je 0x455f8c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4b9bec
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x456017
mov byte [ebp - 4], 0
push eax
mov dword [ebp - 0x18], 0x4b9bec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x456038
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], 0x4b9bec
test esi, esi
je 0x45603f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jne 0x455f85
mov esi, 2
jmp 0x455f91
Function at 0x4597e0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a55c5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x160]
push esi
lea ecx, [ebp - 0x10]
call fcn.00402250
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402030
lea ecx, [ebp - 0x10]
call fcn.0040cf70
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x459843
push dword [ebp - 0x10]
call edi
mov ecx, esi
call fcn.0040cf70
test al, al
je 0x459852
push dword [esi]
call edi
push 0x5c
push dword [esi]
call fcn.0047787d
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x4598a4
sub eax, dword [esi]
sar eax, 1
cmp eax, edi
je 0x4598a4
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00409290
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4598a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4598c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45f0b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6c15
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045f2b0
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp dword [ecx - 0xc], 0
je 0x45f154
mov eax, dword [esi + 4]
cmp eax, 6
je 0x45f106
cmp eax, 7
je 0x45f106
cmp eax, 8
je 0x45f106
cmp eax, 9
je 0x45f106
cmp eax, 0x12
jne 0x45f154
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x3c], xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x8400
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.004262e0
cmp byte [eax + 0x1c], 0
je 0x45f249
call fcn.004262e0
test byte [eax + 0x20], 8
je 0x45f249
call fcn.004262e0
mov ebx, eax
call fcn.004039e0
test eax, eax
je 0x45f297
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x18
push 0x4c0ed8
call fcn.00402030
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.00425f50
mov esi, eax
push 0xf
push str.._Return_code:
mov ecx, esi
call fcn.00402030
push edi
mov ecx, esi
call fcn.00425f50
mov esi, eax
call fcn.004039e0
test eax, eax
je 0x45f297
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push 0
push 0x4bb6d8
call fcn.00402030
push ecx
push esi
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00426590
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f22a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45f249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x45f283
cmp edi, 0xe0000011
je 0x45f283
cmp edi, 0xe0000027
je 0x45f283
cmp edi, 0xe0000008
je 0x45f283
cmp edi, 0x4c7
je 0x45f283
cmp edi, 0x642
je 0x45f283
cmp edi, 0xe0000029
je 0x45f283
push edi
call fcn.00465f40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402150
int3
Function at 0x460cc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a719c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
add eax, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460d20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
call fcn.00466350
mov byte [ebp - 4], 1
lea ecx, [esi + 0x10]
call fcn.00407a00
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.00407a00
mov dword [ebp - 4], 0xffffffff
mov dword [esi], 0x4be968
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461c30
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x4a7573
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x50], 0x4bf2f8
mov dword [ebp - 0x50], 0x4bf444
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
add eax, 0xe0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x4bb904
mov word [ebp - 0x24], 0x101
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
cmp byte [ecx + 0x80], 0
je 0x461ce8
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.0043cec0
jmp 0x461e3f
lea eax, [ebp - 0x50]
mov dword [ebp + 0x44], 0x4bcca4
mov dword [ebp + 0x44], 0x4bccb4
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xffffffff
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp + 4], 0
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 5
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov byte [ebp - 4], 8
lea eax, [ebp + 0x44]
mov dword [ebp + 0x20], 0x4bb8ac
mov dword [ebp + 0x20], 0x4bb880
mov dword [ebp], 0x4c0230
mov dword [ebp + 0x20], 0x4c0204
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], eax
movups xmmword [ebp + 0x34], xmm0
mov byte [ebp - 4], 9
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x461da0
call fcn.00474ac6
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x461da0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x461dcd
push 0
push 0
push eax
call fcn.00474bc8
lea eax, [ebp]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00432d90
push 0
push 0x43abe0
push esi
push 0x6e
push dword [0x4db394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x461de8
push eax
call fcn.00474b72
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x44], 0x4bccb4
test eax, eax
je 0x461e3f
push dword [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x4c], 0xffffffff
je 0x461e36
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], 0
push eax
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x461e36
cmp dword [ebp + 0x64], 0x103
jne 0x461e36
push 0
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x3c]
call fcn.00407bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00407bd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
lea esp, [ebp + 0x5c]
pop ebp
ret 4
Function at 0x469760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4a8aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x469808
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x469808
call fcn.00467e40
mov edi, eax
jmp 0x469910
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x469825
call fcn.00467e40
jmp 0x469903
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x469840
call fcn.00467e40
jmp 0x469903
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x46985e
mov edi, 0x8007000e
jmp 0x469905
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x469952
jb 0x469882
cmp eax, 0xffffffff
ja 0x469952
cmp eax, 0x400
jbe 0x46989b
push eax
lea ecx, [ebp]
call fcn.00409b10
mov dword [ebp - 4], 1
jmp 0x4698c0
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x4698c0
mov eax, dword [ebp]
test eax, eax
jne 0x4698ce
mov edi, 0x8007000e
jmp 0x469905
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4698e9
call fcn.00467e40
jmp 0x469903
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00469600
mov edi, eax
test esi, esi
je 0x469910
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x469924
lea ecx, [ebp]
call fcn.00409ad0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0047615e
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00402150
int3
Function at 0x46ccb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4a984a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp + 0xa4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], ecx
push 0
push 2
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x28], 0x4b9bec
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x46cd1f
xor bl, bl
or edi, eax
jmp 0x46ce5c
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.00478260
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46ce55
nop dword [eax]
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], 0x4b9bec
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0x410
test ebx, ebx
je 0x46ce22
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x46ce22
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0047e2a0
add esp, 8
test eax, eax
jne 0x46ce22
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x46ce03
mov eax, dword [esi]
lea edi, [ebp + 8]
cmp edi, eax
jb 0x46cdd3
lea eax, [eax + edx*4]
cmp edi, eax
jb 0x46cea1
mov eax, dword [esi]
test edx, edx
jne 0x46cddc
lea edi, [edx + 1]
jmp 0x46cdeb
lea edi, [ecx + ecx]
test edi, edi
js 0x46ce22
cmp edi, 0x1fffffff
ja 0x46ce22
push 4
push edi
push eax
call fcn.0047e47a
add esp, 0xc
test eax, eax
je 0x46ce22
mov ecx, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], ecx
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x46ce1b
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 1
inc dword [esi + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x4b9bec
test ebx, ebx
je 0x46ce3f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x18]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46cd50
cmp dword [esi + 4], 0
setg bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4b9bec
test edi, edi
je 0x46ce7c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4c]
xor ecx, ebp
call fcn.0047615e
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.00402150
int3
Function at 0x471f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa3c4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4be968
mov dword [ebp - 4], 0
mov dword [edi], 0x4c1f94
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 4]
push dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov dword [ebp + 0x10], esi
mov dword [esi], 0x4bf65c
call fcn.00402250
mov byte [ebp - 4], 5
mov dword [edi + 0x38], 0x4c0240
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa66d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
mov dword [ebp - 0x20], 0x4bf644
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x4bf65c
call fcn.00402250
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x2c], 0x4c0240
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
je 0x47309e
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4b9bec
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x473035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4b9bec
push esi
jmp 0x47306b
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x473081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4b9bec
test esi, esi
je 0x473078
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
test edi, edi
je 0x47309e
jmp 0x473127
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x4b9bec
test esi, esi
je 0x47309e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov edx, dword [ebx + 4]
xor esi, esi
mov dword [ebp + 8], 0
test edx, edx
jle 0x473113
xor edi, edi
test edi, edi
js 0x47316c
cmp esi, edx
jge 0x47316c
mov ecx, dword [ebx]
mov eax, edx
add ecx, edi
cmp byte [ecx + 0x15c], 0
je 0x4730f3
cmp byte [ebp + 0xc], 0
je 0x4730de
test byte [ecx + 0x94], 1
je 0x4730f3
lea eax, [ebp - 0x2c]
push eax
call fcn.00457760
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
inc ecx
mov dword [ebp + 8], ecx
jmp 0x4730f6
mov ecx, dword [ebp + 8]
inc esi
add edi, 0x16c
mov edx, eax
cmp esi, eax
jl 0x4730b0
test ecx, ecx
jle 0x473113
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.0043fd70
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0xec]
call fcn.004390d0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x473156
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc000008c
call fcn.00408180
int3

Function at 0x487ad2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00487783

Function at 0x487add
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048790d
Function at 0x42cf40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00486fff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42cfc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004849dd
mov eax, dword [eax]
push 0x4b21f4
push eax
call fcn.00477694
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048728a
test bl, bl
je 0x42cfc2
push 0x4b21f4
lea ecx, [esp + 0xc]
call fcn.00487666
push 0x4b5d6c
lea ecx, [esp + 0xc]
call fcn.00487666
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42cffe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048728a
jmp 0x42d0c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42d082
lea edx, [esp + 0x7c]
push 0x4b5d68
push edx
call fcn.00477694
add esp, 8
test eax, eax
je 0x42d082
lea eax, [esp + 0x7c]
push 0x4b5d64
push eax
call fcn.00477694
add esp, 8
test eax, eax
je 0x42d082
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42d012
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048728a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42d8c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42d922
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc