joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4153c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
jmp 0x41547f
cmp dword [esi + 0x10], 0x1000
jne 0x41546b
test byte [esi + 0x15], 1
jne 0x41546b
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41541c
cmp ebp, 2
je 0x41541c
cmp ebp, 0x10
je 0x41541c
cmp ebp, 0x20
jne 0x415438
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x415438
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x415449
mov eax, dword [esi]
add eax, ebx
call fcn.004153b8
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x41543c
cmp byte [esp + 4], 0
je 0x41546b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4153f1
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401944
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
add esp, 0xffffff80
call sym.___main
lea edx, [ebp - 0x30]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0x405056
mov dword [esp], 0xf0f0f0
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassA]
call eax
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10c00000
mov dword [esp + 8], str.cuh__
mov dword [esp + 4], 0x405056
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [0x407040], eax
mov eax, dword [0x407040]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000003
mov dword [esp + 8], 0x40505a
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [0x407044], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0xe1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadImageA]
call eax
sub esp, 0x18
mov edx, eax
mov eax, dword [0x407044]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x172
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [0x407040]
mov dword [ebp - 0x34], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._WindowMove
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._IconChange
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
jmp 0x401b85
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov eax, dword [0x407040]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
jne 0x401b65
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401e1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4029f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402a0f
mov eax, 0
jmp 0x402a53
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402a32
mov eax, 0
jmp 0x402a53
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402a4e
mov eax, 0
jmp 0x402a53
mov eax, 1
leave
ret

Function at 0x402a55
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402ab4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402aac
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402aac
mov eax, dword [ebp - 4]
jmp 0x402ac8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402a89
mov eax, 0
leave
ret
Function at 0x407f10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x476bbb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a86cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00420853
push 4
mov dword [esp + 0x24], 0
call fcn.004223b2
mov edi, eax
add esp, 4
test edi, edi
je 0x407f92
call fcn.00420b9e
mov dword [edi], eax
call fcn.004209cc
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004208f0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407f87
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00420918
jmp 0x407f94
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40b300
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4734b9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x34]
call fcn.004049e0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40b385
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b43a
cmp dword [ebp + 0xc], 0
je 0x40b42e
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 0x38], 0x10
mov byte [ebp - 0x48], 0
xor ecx, ecx
mov dword [ebp - 0x47], ecx
mov dword [ebp - 0x43], ecx
mov dword [ebp - 0x3f], ecx
mov word [ebp - 0x3b], cx
mov byte [ebp - 0x39], cl
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0x10
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040b480
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040bb40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00404a50
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404a10
mov eax, dword [ebp - 0x68]
or eax, 1
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404a50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret
Function at 0x40e030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00421750
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x10], 0
je 0x40e0bb
cmp dword [ebp - 0x40], 0
je 0x40e0bb
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40e0bb
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret
Function at 0x40e0d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473b04
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00470ea0
movzx edx, al
test edx, edx
je 0x40e12c
push 0x478b78
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40e13e
push 0x478b80
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e156
xor eax, eax
jmp 0x40e294
mov eax, dword [ebp + 0xc]
push eax
push 0x478b88
lea ecx, [ebp - 0x250]
push ecx
call fcn.0040c390
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.00417450
movzx edx, al
test edx, edx
jne 0x40e1d3
mov eax, dword [ebp + 0x10]
push eax
push 0x478b98
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.0040c390
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x250]
call fcn.0040bb80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.00404a50
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x288]
call fcn.0040bb00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x288]
call fcn.00404e40
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00470fd0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00404e40
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00470fd0
add esp, 8
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x26c]
call fcn.00404710
push eax
push str.SetupHelper.exe
lea ecx, [ebp - 0x2c]
call fcn.00404710
push eax
call fcn.00471290
add esp, 0x10
mov dword [ebp - 0x2a8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26c]
call fcn.00404690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00404a50
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret
Function at 0x40e9d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473c46
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x40eb4b
mov ecx, dword [ebp + 8]
add ecx, 0xf0
call fcn.00417430
cmp eax, 4
jbe 0x40eb4b
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.00421750
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40eb4b
mov dword [ebp - 0x24c], 0x22c
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40eb41
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x268]
push ecx
call fcn.004710c0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xf0
call fcn.00404e40
push eax
lea edx, [ebp - 0x284]
push edx
call fcn.00470fd0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.00404710
push eax
lea ecx, [ebp - 0x284]
call fcn.00404710
push eax
call fcn.00422840
add esp, 8
test eax, eax
je 0x40eb08
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00404690
jmp 0x40eb41
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00404690
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ea7b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret
Function at 0x40eb70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473c86
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x40eceb
mov ecx, dword [ebp + 8]
add ecx, 0x10c
call fcn.00417430
cmp eax, 4
jbe 0x40eceb
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.00421750
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40eceb
mov dword [ebp - 0x24c], 0x22c
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ece1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x284]
push ecx
call fcn.004710c0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x10c
call fcn.00404e40
push eax
lea edx, [ebp - 0x268]
push edx
call fcn.00470fd0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00404710
push eax
lea ecx, [ebp - 0x268]
call fcn.00404710
push eax
call fcn.00422840
add esp, 8
test eax, eax
je 0x40eca8
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.00404690
jmp 0x40ece1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.00404690
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ec1b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret
Function at 0x40ed40
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x40ed86
xor eax, eax
jmp 0x40ee9e
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00417430
test eax, eax
jne 0x40eda1
mov ecx, dword [ebp + 8]
call fcn.00417430
test eax, eax
jne 0x40eda8
xor eax, eax
jmp 0x40ee9e
xor eax, eax
mov word [ebp - 0x224], ax
push 0x208
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.00421750
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00417430
test eax, eax
je 0x40edfb
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00404e40
mov dword [ebp - 0x248], eax
jmp 0x40ee10
mov ecx, dword [ebp + 8]
call fcn.00404e40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x240]
call fcn.0040bb00
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x250]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0040bb40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00404a50
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x40f2d0
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov ecx, dword [ebp - 0x244]
call fcn.0040f7e0
mov dword [eax], esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret 4
Function at 0x410b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474063
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
push 0x4aadc0
lea ecx, [ebp - 0x48]
call fcn.00404440
mov dword [ebp - 4], 0
push 0
push 0x478fdc
lea ecx, [ebp - 0x48]
call fcn.00404960
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x410c58
lea ecx, [ebp - 0x48]
call fcn.00417430
cmp dword [ebp - 0x4c], eax
jae 0x410c58
mov eax, dword [ebp - 0x4c]
push eax
push 0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00404990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404710
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.00470ef0
add esp, 8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a4
call fcn.0040bb40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00404690
jmp 0x410c6e
push 0x478fe0
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a4
call fcn.0040bb60
push str.show0
mov edx, dword [ebp - 0x88]
add edx, 0x1a4
push edx
call fcn.00417150
add esp, 8
movzx eax, al
test eax, eax
je 0x410ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404690
jmp 0x410d1d
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004713e0
add esp, 4
mov byte [ebp - 4], 3
push str.2015:10:19
lea ecx, [ebp - 0x2c]
call fcn.00416cc0
test eax, eax
jg 0x410cde
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404690
jmp 0x410d1d
push 0
push 0
push 0
push 0x40e470
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov ecx, dword [ebp - 0x88]
call fcn.0040f7e0
mov dword [eax], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret