joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100672f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100673e3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100673dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100673c2
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100673c2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100673c2
mov edx, dword [esi]
test edx, edx
jne 0x10067388
push 0x200
push edx
push dword [0x103f3c80]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100673dc
jmp 0x100673b3
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100673b3
shl eax, 3
push eax
push edx
push 0
push dword [0x103f3c80]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100673dc
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10067347
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10067429
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10067429
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10067423
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100671a0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100673f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10067430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1040fbc0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006747d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1006749e
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100674bf
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100674bf
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100674b9
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100674bf
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10067510
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x1040fbc8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10067601
mov eax, dword [0x1040fbc0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10067555
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10067538
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10067601
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100672f0
mov ecx, dword [0x1040fbc8]
add esp, 4
cmp esi, ecx
jae 0x100675b5
imul edi, esi, 0x2c
mov eax, dword [0x1040fbc0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100675aa
mov edx, ebx
mov ecx, esi
call fcn.10067430
mov dword [ebp - 4], eax
test eax, eax
jne 0x100675b2
mov ecx, dword [0x1040fbc8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10067581
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10067601
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100675f2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100675e6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100675c5
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x103f3c80]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007a61f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x100a429d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a4113
Function at 0x404ca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487c55
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea edi, [eax + 2]
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, edi
cmp byte [eax - 2], 0x90
jne 0x404cf9
cmp byte [eax - 1], 0x90
jne 0x404cf9
cmp byte [eax], 0x90
je 0x404d05
inc ebx
inc eax
cmp ebx, 0x3e8
jl 0x404ce8
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x2000
push ebx
push 0
push dword [ecx]
call esi
mov eax, dword [ebp - 0x24]
push 0x40
push 0x1000
push ebx
push 0
push dword [eax]
call esi
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov ebx, eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], 0
push eax
push ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0044e940
mov byte [ebp - 4], 1
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
je 0x404d94
cmp eax, esi
jbe 0x404e63
mov al, byte [ecx + esi]
push 0
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + ebx]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x1c]
inc esi
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cmp eax, esi
ja 0x404d6a
mov esi, dword [ebp - 0x2c]
xor eax, eax
mov dword [esi], ebx
nop dword [eax + eax]
cmp byte [edi - 2], 0x90
jne 0x404db1
cmp byte [edi - 1], 0x90
jne 0x404db1
cmp byte [edi], 0x90
je 0x404dbc
inc eax
inc edi
cmp eax, 0x3e8
jl 0x404da0
xor eax, eax
inc eax
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
test ecx, ecx
je 0x404e0a
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x404deb
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404e33
push edx
push ecx
call fcn.00485ed7
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x404e43
mov ecx, dword [ebp + 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x404e39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404e39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00485ed7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 0x18
call fcn.00404ec0
int3
Function at 0x405bd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edx, 0x811c9dc5
mov esi, dword [eax + 4]
mov edi, dword [eax]
test esi, esi
je 0x405c01
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x405bf0
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x40adc1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x40ada4
cmp edi, 2
jb 0x40ada4
cmp byte [esi], cl
jne 0x40ada4
cmp byte [esi + 1], cl
jne 0x40ada4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x48bfa8]
jmp 0x40ad75
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x48bfa8]
test edi, edi
jne 0x40ad75
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x40adf0
cmp cl, 0x23
jne 0x40add7
cmp byte [esi], cl
jne 0x40add7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x48bfa8]
test cl, cl
jne 0x40adc8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x40af00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40af14
mov dword [ebx], 0
mov edx, 0x490680
call fcn.0040ae00
mov esi, eax
test esi, esi
je 0x40b002
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40aff8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40aff8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x40aff8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40aff8
mov eax, dword [0x56e3a0]
test eax, eax
je 0x40af8c
inc dword [eax + 0xa8]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40aff8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40afdd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x56e3a0]
add esp, 4
test eax, eax
je 0x40afca
dec dword [eax + 0xa8]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40afef
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c9e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x48bfa8]
sub esi, 1
jne 0x40ca13
mov eax, dword [0x56e3a0]
not ebx
cmp dword [eax + 0x3de0], ebx
jne 0x40ca42
mov dword [eax + 0x3de4], ebx
cmp dword [eax + 0x3e24], ebx
jne 0x40ca51
mov byte [eax + 0x3e28], 1
cmp dword [eax + 0x3dc8], ebx
jne 0x40ca6a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.0041e100
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4

Function at 0x40ca80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0xe0]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0xe4]
subss xmm0, xmm1
mov ecx, dword [edx + 0xc4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xcc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x48bfa8]
sub edi, 1
jne 0x40cb00
mov eax, dword [0x56e3a0]
not edx
cmp dword [eax + 0x3de0], edx
jne 0x40cb2f
mov dword [eax + 0x3de4], edx
cmp dword [eax + 0x3e24], edx
jne 0x40cb3e
mov byte [eax + 0x3e28], 1
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
Function at 0x411720
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x41175d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x411743
cmp byte [esi], bl
jne 0x411743
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x48bfa8]
test bl, bl
jne 0x411734
pop edi
pop esi
not ecx
pop ebx
jmp fcn.004116c0

Function at 0x416d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56e3a0]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3da8]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x48bfa8]
sub esi, 1
jne 0x416d51
mov eax, dword [0x56e3a0]
not ebx
cmp dword [eax + 0x3dc8], ebx
jne 0x416d8b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041e100
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x416db6
inc esi
test ecx, ecx
je 0x416da4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x416da9
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.0041ea50
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485b63
mov esp, ebp
pop ebp
ret
Function at 0x41d170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x51c4], 0
lea esi, [edi + 0x51c8]
je 0x41d1f2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41d1ac
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041edd0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0040b630
mov edx, dword [esi]
mov ecx, 0x56e399
push dword [edi + 0x51c4]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x51d0]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0040b630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4274a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4274da
mov eax, dword [0x56e3a0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x4274cd
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42750b
mov eax, dword [0x56e3a0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x4274fe
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42753c
mov eax, dword [0x56e3a0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42752f
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x427589
mov eax, dword [0x56e3a0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42757c
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x4275ba
mov eax, dword [0x56e3a0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x4275ad
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4275eb
mov eax, dword [0x56e3a0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x4275de
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0042a160
Function at 0x44e5e0
Capabilities:
Enumerate process modules
Enumerate processes
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x668
mov eax, dword [0x4bf380]
xor eax, esp
mov dword [esp + 0x664], eax
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
lea eax, [edi + 0x10]
movups xmmword [eax], xmm0
push eax
movups xmmword [eax + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [eax + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push 2
mov dword [esp + 0x18], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x44e7b2
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x44e7b2
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44e6a6
test dx, dx
je 0x44e6a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44e6a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x44e680
xor eax, eax
jmp 0x44e6ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44e79d
cmp dword [esp + 0x24], 0x14
jbe 0x44e79d
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1fffff
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [esp + 0x18]
mov dword [edi], eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x240], 0x428
lea eax, [esp + 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
nop dword [eax]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x260]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x44e736
test dx, dx
je 0x44e732
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x44e736
add ecx, 4
add eax, 4
test dx, dx
jne 0x44e710
xor eax, eax
jmp 0x44e73b
sbb eax, eax
or eax, 1
test eax, eax
je 0x44e754
lea eax, [esp + 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x44e700
jmp 0x44e792
mov eax, dword [esp + 0x254]
push dword [edi + 4]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x25c]
push str.process_id__d_n
mov dword [edi + 0xc], eax
call fcn.00404af0
push dword [edi + 8]
push str.process_base_address___u_n
call fcn.00404af0
push dword [edi + 0xc]
push str.process_module_end___ul_n
call fcn.00404af0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x44e676
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x66c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00485b63
mov esp, ebp
pop ebp
ret 4
Function at 0x458230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x45825c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x458284
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x45828a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4582f2
jg 0x4582a1
test esi, esi
je 0x4582f2
test ecx, ecx
jl 0x4582ed
jg 0x4582ab
test eax, eax
je 0x4582ed
cmp edi, ecx
jg 0x4582bf
jl 0x4582b5
cmp esi, eax
jae 0x4582bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4582f5
mov ecx, dword [ebp + 8]
jmp 0x4582ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x458319
jg 0x4582ff
test esi, esi
je 0x458319
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x458319
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc