joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442f34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00442ad4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404fd4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x442f92
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5425d4]
mov dl, 1
mov eax, dword [0x4429cc]
call fcn.0040ff6c
call fcn.004044e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x442f9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404fd4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x442ff4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x542bc0]
mov dl, 1
mov eax, dword [0x4429cc]
call fcn.0040ff6c
call fcn.004044e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00442b04
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46977c
Capabilities:
Check for time delay via gettickcount
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x542b58]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x469955
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046173c
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004629ac
mov eax, dword [esi]
call fcn.0047c550
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x4697ee
mov eax, dword [esi]
call fcn.0047c550
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.0047c55c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x469812
mov eax, dword [esi]
call fcn.0047c55c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0047c544
cmp eax, dword [ebp - 0x18]
jle 0x469828
mov eax, dword [esi]
call fcn.0047c544
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0047c538
cmp eax, dword [ebp - 0xc]
jle 0x46983e
mov eax, dword [esi]
call fcn.0047c538
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_SetWindowPos
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x469905
mov eax, ebx
call fcn.00404dd4
cmp eax, 0x64
jge 0x469905
cmp dword [0x53baac], 0
je 0x469905
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x469905
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4698c8
mov bl, 2
jmp 0x4698e3
lea edx, [ebp - 0x20]
mov eax, dword [0x545f00]
call fcn.0046ca14
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x4698e1
xor ebx, ebx
jmp 0x4698e3
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x53bbb4]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call dword [0x53baac]
mov eax, dword [0x542738]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.0046577c
push 4
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46995c
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
Function at 0x46cb24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x542bac]
cmp byte [eax + 0xc], 0
je 0x46cc91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cc8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x545f54], 0
jne 0x46cb78
push 0x46cc98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46cca0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f54], eax
cmp dword [0x53bbdc], 0
jne 0x46cc73
push 0x46ccb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x53bbdc], eax
cmp dword [0x53bbdc], 0
je 0x46cc73
push 0x46ccbc
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f58], eax
push 0x46cccc
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f5c], eax
push 0x46cce0
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f60], eax
push 0x46ccf8
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f64], eax
push 0x46cd10
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f68], eax
push 0x46cd24
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f6c], eax
push 0x46cd3c
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f70], eax
push 0x46cd54
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f74], eax
push 0x46cd70
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f78], eax
push 0x46cd7c
mov eax, dword [0x53bbdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x545f7c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cc91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46e2c4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404b14
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x46e313
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404d84
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x475bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475c00]
test si, 4
je 0x475bc4
or bl, 1
test si, 8
je 0x475bce
or bl, 4
test si, 1
je 0x475bd8
or bl, 8
test si, 2
je 0x475be2
or bl, 0x10
test si, 0x10
je 0x475bec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475bfb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x475c04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475c3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475c1d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x475c2c
or bl, 4
test esi, 0x20000000
je 0x475c37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x49d978
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49dbd8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49d9db
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00410880
cmp al, 1
jne 0x49d9db
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049d758
test al, al
je 0x49db67
cmp dword [ebp - 8], 0
jge 0x49d9f9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x210]
call fcn.00404dd4
cmp ebx, eax
jge 0x49da43
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x542b78]
and eax, 0xff
bt dword [edx], eax
jae 0x49da43
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49da57
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049d954
cmp ebx, dword [ebp - 8]
je 0x49db59
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49da83
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49db46
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef8
and eax, 0x7f
movzx eax, word [eax*2 + 0x53c094]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00468104
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49db4d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49dbba
cmp dword [ebp - 8], 0
jge 0x49db72
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x218]
call fcn.00404dd4
cmp eax, dword [ebp - 8]
jg 0x49dbac
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049d440
mov eax, dword [ebp - 0x21c]
call fcn.00404dd4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049d954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dbdf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404b38
Function at 0x4c5230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4c528c
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4c525b
call fcn.004115c4
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004030f4
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4c528c
call fcn.004115c4
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4cd460
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94

Function at 0x4cd484
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x5420c0]
cmp byte [eax], 0
jne 0x4cd4b2
mov ecx, 0xda
mov edx, 0x4cd500
mov eax, 0x4cd534
call fcn.00404aec
mov eax, ebx
call fcn.00405220
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4cd4f1
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004053b4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40944e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40945d
pop dword [ebp - 0x2c]
mov eax, 0x40945d
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3c34e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x415c
xor edi, edi
add edi, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x2c]
mov edx, 0xf91fcb3e
sub edx, 0xf20a7815
xor dword [ebp - 0x28], 0x3f7a6284
mov esi, dword [ebx]
sub dword [ebp - 0x14], edi
xor esi, edx
xor dword [ebp - 0x18], 0xc06a7755
mov dword [edi], esi
add dword [ebp - 0x1c], 0xb99e0452
add edi, 0xdfb2d282
sub edi, 0xdfb2d27e
add ebx, 0x4b0e53a0
sub ebx, 0x4b0e539c
loop 0x4094a8
add eax, 0xf843
mov ebx, eax
add eax, 5
mov ecx, 0x674c984c
sub ecx, 0x670c984c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x421b10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x81a808]
imul eax, eax, 0x343fd
cmp dword [0x81cc7c], 0x139e
mov dword [0x81a808], eax
jne 0x421b51
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
mov eax, dword [0x81a808]
add eax, 0x269ec3
push esi
mov dword [0x81a808], eax
movzx esi, word [0x81a80a]
and esi, 0x7fff
cmp dword [0x81cc7c], 0x8e7
jne 0x421b86
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x804]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret

Function at 0x421bd0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x421be4
call fcn.00421b10
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x421bd7
pop esi
cmp ebx, 0x2d
jne 0x421bfe
mov dword [0x81cc88], 0xa62e7790
mov dword [0x81cc8c], 0xffffffff
ret

Function at 0x421c00
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x429db8]
sub esp, 0x14
push ebx
mov ebx, dword [0x81cc7c]
push edi
mov edi, dword [0x81a80c]
call fcn.00421ba0
cmp dword [0x81cc7c], 0x2f
jne 0x421c5a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00421bd0
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x421f40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00407bd0
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x421f69
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe0f4a
jge 0x422011
cmp dword [0x81cc7c], 0xa5f
jne 0x421fb5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
push str.xonatoyuhejigoriramadiguyo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 4], 0x84620b
jne 0x421fda
mov eax, dword [0x42abd8]
mov dword [0x81cc7c], eax
mov ecx, dword [0x81cc7c]
add ecx, 0xa231
mov dword [0x81cc7c], ecx
cmp dword [0x81cc7c], 0x141
jne 0x42200c
push str.wucusipeyekexe_zelisapecuyozabozecaxufer_miweyumeriwosizupuyubahu_regorekuzet_begazixezibunodumekacefasuhato
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x42c180], 0xec58acac
mov dword [0x42c184], 0xffffffff
jmp 0x421f60
call fcn.00421c70
jmp dword [0x81a80c]
Function at 0x403240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418efd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4210c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0040e648
mov edi, eax
add esp, 4
test edi, edi
je 0x4032dd
push 1
mov dword [ebp - 4], 0
call fcn.0040dd31
add esp, 4
mov dword [edi + 4], eax
jmp 0x4032df
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00401460
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40333a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40333a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x403356
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x403379
cmp byte [ebp + 0xc], 0
je 0x403365
push esi
call fcn.0040e1c7
add esp, 4
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
test cl, 4
je 0x403385
mov esi, str.ios_base::badbit_set
jmp 0x403395
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00403880
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00401d30
push 0x41ee18
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x403640
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4210c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
je 0x40385c
lea eax, [ebp - 0x234]
push eax
push 4
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40385c
mov eax, dword [ebp - 0x234]
xor ecx, ecx
shr eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x23c], ecx
call fcn.0040e686
mov edi, eax
add esp, 4
test edi, edi
je 0x403700
push dword [ebp - 0x23c]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x403702
xor edi, edi
mov dword [ebp - 0x23c], edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x234]
push edi
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40384f
xor esi, esi
test dword [ebp - 0x234], 0xfffffffc
jbe 0x40384f
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push dword [edi + esi*4]
push dword [ebp - 0x240]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403797
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401230
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 7
push 0
mov byte [ebp - 4], 1
lea ecx, [eax + eax]
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.00404290
mov ecx, dword [ebp - 0x238]
push 0
push 2
push 0x41a56c
call fcn.00404290
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40383d
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403833
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403877
push ecx
push edx
call fcn.0040e678
add esp, 8
mov eax, dword [ebp - 0x234]
inc esi
shr eax, 2
cmp esi, eax
jb 0x403740
test edi, edi
je 0x40385c
push edi
call fcn.0040e68f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e694
mov esp, ebp
pop ebp
ret
call fcn.0040f790
int3
Function at 0x404bb0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 1
push edi
mov dword [ebp - 4], eax
lea ecx, [esi - 1]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jle 0x404c98
mov ebx, dword [ebp + 0xc]
push dword [ebx + eax*4]
call sub.msvcrt.dll__wtoi
add esp, 4
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404ca4
mov ecx, dword [ebx + esi*4 - 4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c00
sub ecx, edx
sar ecx, 1
push 4
push 0x3000
lea esi, [ecx*2 + 2]
push esi
push 0
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x404ca4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push esi
push dword [eax + ecx*4 - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x8000
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0xc]
jl 0x404bd2
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret