joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440f30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4410db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4410bc
mov dl, 1
mov eax, dword [0x40d3d8]
call fcn.00402cac
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004039e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4410ab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042f960
test al, al
je 0x44109e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4410ec
lea eax, [ebp - 0x254]
call fcn.004087a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44109e
xor eax, eax
push ebp
push 0x441097
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x441124
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x441080
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c18
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x441080
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44109e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x440fa1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004100b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4410e2
lea eax, [ebp - 0x260]
call fcn.004039e8
ret

Function at 0x441928
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45e7cc]
cmp byte [eax + 0x95], 0
jne 0x441999
cmp dword [0x45e7e8], 0
jne 0x44195a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4418e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45e7e8], eax
cmp dword [0x45e7e4], 0
jne 0x441975
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45e7e4], eax
cmp dword [0x45e7ec], 0
jne 0x441999
push esp
push 0
push 0
push 0x441888
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45e7ec], eax
pop edx
ret
Function at 0x441a90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441aa7
add esp, 0xfffffff0
call fcn.00402fdc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004134ac
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d0d8]
call fcn.00402cac
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40d0d8]
call fcn.00402cac
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41528c]
call fcn.0041c22c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x441c1c
mov eax, dword [0x45dc30]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041c5fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443624
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45dc30]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ac84
test eax, eax
je 0x441b9a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408144
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040acac
test eax, eax
je 0x441bae
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c18
mov eax, dword [0x45db3c]
cmp byte [eax], 0
jne 0x441bdf
mov eax, ebx
call fcn.00441d08
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x441c11
call fcn.00403034
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441f78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45e7cc]
cmp dword [eax + 0x24], 0
je 0x44201b
cmp dword [ebx + 0x84], 0
jne 0x442015
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x441f08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x442015
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x441fde
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x442015
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040e7f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x441fed
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442a28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x442a5d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ad0
jmp 0x442a67
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x443998
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4439d0
mov eax, esi
call fcn.0042b718
test al, al
je 0x4439d0
mov eax, dword [ebx + 0x74]
call fcn.0042b41c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4439d0
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042b41c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44809c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
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 0x4482fb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4480fe
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00447b64
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040a8bc
cmp al, 1
jne 0x4480fe
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00447e7c
test al, al
je 0x44828a
cmp dword [ebp - 8], 0
jge 0x44811c
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.00447b64
mov eax, dword [ebp - 0x210]
call fcn.00403c68
cmp ebx, eax
jge 0x448166
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00447b64
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x45de84]
and eax, 0xff
bt dword [edx], eax
jae 0x448166
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x44817a
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00448078
cmp ebx, dword [ebp - 8]
je 0x44827c
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 0x4481a6
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402eb8
and eax, 0x7f
movzx eax, word [eax*2 + 0x45dae0]
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 + 0x224], 1
xor eax, eax
push ebp
push 0x448269
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402eb8
and eax, 0x7f
movzx eax, word [eax*2 + 0x45dae0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0042b41c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402eb8
and eax, 0x7f
movzx eax, word [eax*2 + 0x45dae0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0042b41c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448270
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x4482dd
cmp dword [ebp - 8], 0
jge 0x448295
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00447b64
mov eax, dword [ebp - 0x218]
call fcn.00403c68
cmp eax, dword [ebp - 8]
jg 0x4482cf
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00447b64
mov eax, dword [ebp - 0x21c]
call fcn.00403c68
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00448078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448302
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403a0c
ret
Function at 0x4528c4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [0x45dd64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x4528f3
push 0
push 0
call fcn.0043a7f4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
push eax
call sub.user32.dll_OpenClipboard
xor ecx, ecx
xor edx, edx
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [esp]
call fcn.0041015c
mov dword [esp + 8], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [esp + 8]
inc eax
push eax
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov edi, eax
xor ebx, ebx
jmp 0x45296c
mov edx, dword [esp + 8]
sub edx, ebx
mov eax, 0x8000
call fcn.00452750
push eax
mov edx, edi
mov eax, ebx
call fcn.004528b0
mov edx, eax
mov eax, dword [esp + 4]
pop ecx
mov esi, dword [eax]
call dword [esi + 4]
mov esi, eax
movzx eax, si
add ebx, eax
push edi
call sub.kernel32.dll_GlobalUnlock
test si, si
je 0x452975
lea eax, [ebx + 1]
cmp eax, dword [esp + 8]
jl 0x452934
mov edx, edi
mov eax, ebx
call fcn.004528b0
mov byte [eax], 0
push edi
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_EmptyClipboard
push edi
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
mov eax, dword [0x45dd64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
cmp eax, dword [esp + 0xc]
je 0x4529b5
mov eax, dword [esp + 0xc]
call fcn.0043a8a8
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4529bc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, edx
mov dword [esp], eax
mov eax, dword [0x45dd64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x4529ea
push 0
push 0
call fcn.0043a7f4
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_OpenClipboard
xor ecx, ecx
xor edx, edx
mov eax, dword [esp]
mov esi, dword [eax]
call dword [esi + 0xc]
push ebx
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
call sub.kernel32.dll_GlobalSize
mov esi, eax
xor ebx, ebx
jmp 0x452a50
mov edx, esi
sub edx, ebx
dec edx
mov eax, 0x8000
call fcn.00452750
push eax
mov edx, edi
mov eax, ebx
call fcn.004528b0
mov edx, eax
mov eax, dword [esp + 4]
pop ecx
mov ebp, dword [eax]
call dword [ebp + 8]
mov edx, esi
sub edx, ebx
dec edx
mov eax, 0x8000
call fcn.00452750
add ebx, eax
push edi
call sub.kernel32.dll_GlobalUnlock
lea eax, [ebx + 1]
cmp esi, eax
jg 0x452a14
call sub.user32.dll_CloseClipboard
mov eax, dword [0x45dd64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
cmp eax, dword [esp + 4]
je 0x452a75
mov eax, dword [esp + 4]
call fcn.0043a8a8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45b384
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.00403e2c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45b3dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45dea4]
mov dl, 1
mov eax, dword [0x45af3c]
call fcn.0040a0f0
call fcn.00403434
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045b044
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 0x401070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
nop
nop
nop
nop
nop
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x54]
mov edx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10005874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10005883
pop dword [ebp - 0x1c]
mov eax, 0x4f773a7a
sub eax, 0x3f76e1f7
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3a0c4
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x5426c652
sub ecx, 0x542679c0
mov edx, eax
mov esi, 0x1001c400
add esi, dword [ebp - 0x1c]
mov ebx, 0x942dca35
sub ebx, 0xc61b15fb
add dword [ebp - 0x10], edx
mov edi, dword [esi]
sub dword [ebp - 8], ebx
sub edi, ebx
mov dword [edx], edi
xor dword [ebp - 4], 0x67b262a7
add edx, 0xd44e98a4
add edx, 0x2bb16760
add esi, 4
loop 0x100058d7
add eax, 0x13da5b34
sub eax, 0x13d93619
mov ebx, eax
add eax, 0xc2bba7f8
add eax, 0x3d44580d
mov ecx, 0xcac8adbb
add ecx, 0x45375245
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10001b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e740]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.10001b60
mov eax, dword [0x10030bb0]
mov dword [ebp - 0x10], eax
push 0x1002a914
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], 0
jne 0x10001be9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x10001c54
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10001c17
cmp dword [ebp - 0x18], 0
ja 0x10001c2a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
jmp 0x10001c54
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b86b
mov esp, ebp
pop ebp
ret
Function at 0x100099b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100231c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002e740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x100099f0
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x100099fc
mov al, 1
jmp 0x10009b9f
mov dword [ebp - 0x54], 8
call fcn.100044a0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.100044a0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.10004420
add esp, 8
movzx eax, al
test eax, eax
je 0x10009a3f
xor al, al
jmp 0x10009b9f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10006ae0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.10006250
mov ecx, eax
call fcn.100074d0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10002bc0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006250
mov ecx, eax
call fcn.100074d0
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.10009f40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10009aba
cmp dword [ebp - 0x3c], 1
je 0x10009ac1
cmp dword [ebp - 0x3c], 3
je 0x10009b5b
jmp 0x10009b73
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006250
mov ecx, eax
call fcn.100074d0
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x10009b24
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006250
mov ecx, eax
call fcn.100074d0
push eax
call fcn.1000ceff
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10009b24
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002a60
mov al, byte [ebp - 0x34]
jmp 0x10009b9f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x10009b47
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002a60
mov al, byte [ebp - 0x31]
jmp 0x10009b9f
cmp dword [ebp - 0x38], 0
jne 0x10009b59
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10006eb0
jmp 0x10009b8b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002a60
mov al, byte [ebp - 0x33]
jmp 0x10009b9f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002a60
mov al, byte [ebp - 0x32]
jmp 0x10009b9f
jmp 0x10009a52
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b86b
mov esp, ebp
pop ebp
ret
Function at 0x1000a220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023240
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x1002e740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
call fcn.1000a670
mov dword [ebp - 0x2a0], 0xffffffff
mov byte [ebp - 0x285], 1
push 0x1002a945
lea eax, [ebp + 8]
push eax
call fcn.1000a1e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1000a297
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002a60
jmp 0x1000a3d9
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.10005760
add esp, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x29c], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x284], 0x22c
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x290], eax
xor eax, eax
mov word [ebp - 0x4ac], ax
push 0x208
push 0
lea ecx, [ebp - 0x4aa]
push ecx
call fcn.100102c0
add esp, 0xc
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x298], 0
cmp dword [ebp - 0x290], 0
je 0x1000a3b1
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.100056b0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.10005760
add esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.1000aa00
add esp, 8
movzx edx, al
test edx, edx
je 0x1000a37a
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.1000a560
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10002a60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002a60
jmp 0x1000a31c
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10002a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002a60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b86b
mov esp, ebp
pop ebp
ret

Function at 0x1000a400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4023e1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402420
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402420
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402420
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402420
cmp dword [ecx + 0x74], 0xe
jbe 0x402420
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret