joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4263dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x436a7c
je 0x426499
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426481
mov esi, dword [ebx + 4]
jmp 0x42647b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42646b
cmp dword [ebp - 0xc], 4
jne 0x42646b
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x426463
or dword [eax + 0x9c], ecx
jmp 0x42646b
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42642f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x426412
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x426948
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42a6c6
call fcn.00412250
sub esp, 0x11c
mov eax, dword [0x437a30]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x426a41
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x426a15
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00403860
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00426948
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401260
test bl, bl
jne 0x426a15
or dword [ebp - 4], 0xffffffff
jmp 0x426986
cmp esi, 0x103
je 0x426a25
cmp esi, 0x3f2
jne 0x426a35
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004105a4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427b7c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x427bb1
cmp edi, dword [esi + 0xc]
jge 0x427bb1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427bb1
cmp edi, dword [eax + 8]
jge 0x427bb1
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x427bb3
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x427cb7
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x427ceb
jmp fcn.0041cbd9
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x427d5c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x427e55
cmp eax, dword [edi + 0xc]
jge 0x427e55
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x427dad
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x427e3e
cmp dword [ebp + 0xc], ebx
je 0x427e3e
jmp 0x427dd7
push 0x10
call fcn.00427a48
cmp eax, ebx
je 0x427dc3
mov ecx, eax
call fcn.00427cae
mov esi, eax
jmp 0x427dc5
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x427dee
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x427dfe
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x427e10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041cbd9
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004121f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x427e50
cmp ecx, dword [esi + 8]
jge 0x427e50
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x427e56
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427f14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x427f42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427f60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427e7e
jmp 0x427f60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427f60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00427e7e
test edi, edi
mov eax, edi
jne 0x427f4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43a78c]
test ecx, ecx
je 0x428013
jmp 0x427f13
ret 8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040d0ae
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040d0ae
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.0040d0ae
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.0040d0ae
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.0040d0ae
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.0040d0ae
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.0040d0ae
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.0040d0ae
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.0040d0ae
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.0040d0ae
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.0040d0ae
pop ecx
push 1
call fcn.0040d0ae
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.0040d0ae
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.0040d0ae
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.0040d0ae
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab
Function at 0x404126
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x40413d
mov dword [edi], ebx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x404187
mov eax, 0x240
mov dword [ebp - 0x24], 0x18
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 3
lea eax, [ebp - 4]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test esi, esi
js 0x40424b
mov eax, dword [ebp - 4]
mov esi, eax
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp + 0x20]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edx, 0xc0000023
lea ecx, [eax + 0x7ffffffb]
neg ecx
sbb ecx, ecx
and ecx, eax
mov esi, ecx
sub esi, edx
neg esi
sbb esi, esi
and esi, ecx
jl 0x40424b
mov eax, dword [ebp + 0x20]
test edi, edi
je 0x4041d1
mov dword [edi], eax
mov esi, edx
cmp dword [ebp + 0x18], ebx
je 0x40424b
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x40424b
push 0x4d434d4e
push eax
push 0
mov esi, 0xc0000001
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
je 0x40424b
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push edi
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test esi, esi
js 0x404242
mov eax, dword [ebp + 0x14]
mov esi, 0xc0000001
cmp eax, 0xffffffff
je 0x404227
cmp eax, dword [edi + 4]
jne 0x404242
mov eax, dword [edi + 8]
cmp ebx, eax
jbe 0x404230
mov ebx, eax
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x18]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov esi, ebx
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], 0
je 0x40425a
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40446a
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
test esi, esi
jne 0x4044bb
mov eax, dword [ebp + 0xc]
push edi
push edi
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push edi
push eax
push 0x2001f
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 0x18
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov esi, eax
test esi, esi
js 0x4044ee
mov esi, dword [ebp - 4]
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
cmp dword [ebp + 0x18], edi
je 0x4044e4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
jmp 0x4044ec
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x4044fc
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4047ae
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x24
push 0x402528
call fcn.00401000
mov eax, dword [ebp + 0x10]
and dword [eax], 0
and dword [ebp - 0x20], 0
mov eax, 0x5a4d
mov esi, dword [ebp + 8]
cmp ax, word [esi]
je 0x4047d9
or eax, 0xffffffff
jmp 0x40487d
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
jne 0x4047d1
mov eax, dword [ecx + esi + 0x50]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 0x1c]
add eax, esi
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x24]
add eax, esi
mov dword [ebp - 0x30], eax
and dword [ebp - 0x1c], 0
push 0xfffffffffffffffe
pop edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x404860
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ecx*4]
add ecx, esi
mov eax, dword [ebp - 0x2c]
add eax, esi
cmp ecx, eax
jb 0x404839
mov dword [ebp - 4], edi
jmp 0x404895
push dword [ebp + 0xc]
push ecx
call sub.ntoskrnl.exe__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x404834
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4]
add eax, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40486c
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
call fcn.00401045
ret 0xc
inc dword [ebp - 0x1c]
jmp 0x404814
Function at 0x40489e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, 0x5a4d
mov dword [ebp - 4], edx
mov esi, edx
mov ebx, edx
cmp ax, word [edi]
je 0x4048c5
or eax, 0xffffffff
jmp 0x404978
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x4048bd
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
jne 0x4048e2
mov ebx, eax
jmp 0x4048f1
cmp ecx, 0x8664
jne 0x404973
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x58]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 0xc]
shr eax, 1
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], edx
je 0x40492c
mov edx, eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [edi]
movzx eax, ax
add eax, esi
add ecx, eax
mov eax, 0xffff
cmp eax, ecx
movzx esi, cx
sbb eax, eax
add edi, 2
neg eax
movzx eax, ax
dec edx
jne 0x404909
jmp 0x40492e
mov eax, edx
movzx eax, ax
add esi, eax
test byte [ebp + 0xc], 1
je 0x40493e
movzx eax, byte [edi]
add esi, eax
add esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
jne 0x404957
sub esi, dword [ebp + 8]
neg esi
sbb edx, edx
mov esi, dword [ebp + 8]
and edx, 0xc0000001
test ebx, ebx
je 0x404960
mov dword [ebx + 0x58], esi
jmp 0x404966
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40496f
mov dword [eax], esi
mov eax, edx
jmp 0x404978
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404982
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x404997
or eax, 0xffffffff
jmp 0x4049c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404992
movzx eax, word [ecx + 4]
cmp eax, 0x14c
je 0x4049b6
cmp eax, 0x8664
jne 0x4049c2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x50]
mov dword [eax], ecx
xor eax, eax
jmp 0x4049c7
mov eax, 0xc0000001
pop ebp
ret 8
Function at 0x4049cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x5a4d
push edi
mov edi, dword [ebp + 0x10]
cmp ax, word [edi]
je 0x4049e8
or eax, 0xffffffff
jmp 0x404aa1
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x404a9d
movzx eax, word [esi + 4]
test eax, 0x14c
jne 0x404a10
test eax, 0x8664
je 0x404a9d
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp + 0xc]
ja 0x404a9d
push ebx
push eax
push edi
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
movzx ecx, word [esi + 6]
add esp, 0xc
movzx eax, word [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x404a92
add esi, 0x24
add esi, eax
mov edx, dword [esi + 4]
test edx, edx
je 0x404a85
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [eax + edx]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
cmp ecx, eax
ja 0x404a8f
mov eax, dword [esi + 8]
add eax, edi
mov dword [ebp - 8], eax
lea ecx, [eax + edx]
mov eax, dword [ebp + 0x14]
add eax, edi
cmp ecx, eax
ja 0x404a8f
push edx
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.ntoskrnl.exe_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
inc ebx
add esi, 0x28
cmp ebx, ecx
jl 0x404a40
jmp 0x404a92
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ebx, ecx
pop ebx
sete al
dec eax
jmp 0x404aa0
or eax, 0xffffffff
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404aa8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0x14
push 0x402508
call fcn.00401000
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov dword [0x4031b8], 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test esi, esi
js 0x404bbe
mov esi, 0xc0000001
push 0x4d505243
push 0x18
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x404bbe
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov ecx, eax
test ecx, ecx
je 0x404bbe
mov dword [ebp - 4], ebx
mov eax, dword [0x4031b8]
mov eax, dword [eax + ecx]
test eax, eax
jne 0x404b33
mov dword [ebp - 4], 0xfffffffe
jmp 0x404bbe
add eax, 0x14
mov dword [ebp + 8], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x404b27
lea eax, [ebx + 0x24]
push 1
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x404ba0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404b5e
mov eax, dword [ebx + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x404b6a
mov eax, dword [ebx + 0x18]
mov dword [ecx], eax
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x404b99
push 0xa
pop eax
cmp word [esi + 2], ax
jbe 0x404b99
push 0x40ec76
push eax
push dword [esi + 4]
call fcn.0040149c
push 8
pop eax
mov word [esi], ax
lea eax, [ebx + 0x1c]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
xor esi, esi
mov dword [ebp - 0x20], esi
jmp 0x404b27
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
jmp 0x404b3b
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x404bcb
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test edi, edi
je 0x404be2
push edi
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
push 0x4d505243
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
call fcn.00401045
ret 0x14