joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], 1
mov dword [0x4386dc], ebx
mov dword [0x4386e0], 0x4349c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
push ecx
call fcn.0040bd10
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + esi - 1]
cmp esi, edi
ja 0x40f255
cmp esi, edi
ja 0x40f255
cmp dword [0x42e11c], 1
jle 0x40f13c
movsx ecx, byte [esi]
push 8
push ecx
call fcn.0041ac5f
add esp, 8
jmp 0x40f14a
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x40f151
inc esi
jmp 0x40f11b
mov ecx, dword [0x4386dc]
mov eax, dword [ebp - 8]
inc ecx
cmp ecx, eax
mov dword [0x4386dc], ecx
jle 0x40f1b9
cmp eax, 1
jne 0x40f19a
push 0x4386e0
push 0
push 0x2c
mov dword [ebp - 8], 0xb
call fcn.0040bd10
add esp, 0xc
test eax, eax
jne 0x40f257
mov ecx, dword [0x4386e0]
mov edx, dword [0x4349c8]
mov dword [ecx], edx
jmp 0x40f1b9
add eax, 0xa
push 0x4386e0
mov dword [ebp - 8], eax
shl eax, 2
push eax
call fcn.0040bd50
add esp, 8
test eax, eax
jne 0x40f257
mov ecx, dword [0x4386e0]
mov eax, dword [0x4386dc]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 - 4], edx
cmp esi, edi
ja 0x40f240
cmp byte [esi], 0x22
jne 0x40f1ff
inc esi
test ebx, ebx
je 0x40f1f5
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x22
jne 0x40f1ff
cmp esi, edi
ja 0x40f1fa
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x22
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x40f1fa
mov ebx, 1
cmp byte [esi], 0x22
je 0x40f1d4
test ebx, ebx
jne 0x40f22f
cmp dword [0x42e11c], 1
jle 0x40f21c
movsx edx, byte [esi]
push 8
push edx
call fcn.0041ac5f
add esp, 8
jmp 0x40f22b
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x40f240
mov eax, dword [ebp - 4]
mov dl, byte [esi]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x40f1cb
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov ecx, dword [ebp - 4]
inc ecx
cmp esi, edi
mov dword [ebp - 4], ecx
jbe 0x40f123
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4108f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x7c]
test ebx, ebx
jne 0x410903
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x14]
mov ecx, dword [0x42d3dc]
push esi
cmp ecx, 2
push edi
lea esi, [eax*8]
jl 0x41097e
sub esi, eax
shl esi, 2
mov eax, dword [esi + 0x434de4]
test eax, eax
jne 0x41095e
lea edi, [esi + 0x434de8]
push edi
call fcn.0040ec60
add esp, 4
test eax, eax
jne 0x410999
mov eax, dword [esi + 0x434de4]
test eax, eax
jne 0x410958
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x434de4], eax
mov dword [edi], 0
mov ecx, dword [esi + 0x434de4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [esi + 0x434de8]
push edi
call fcn.0040ec60
add esp, 4
jmp 0x410999
sub esi, eax
shl esi, 2
mov eax, dword [esi + 0x434de8]
lea edi, [esi + 0x434de8]
test eax, eax
jne 0x410999
mov dword [edi], 1
cmp dword [0x42d3dc], 1
jl 0x4109b1
lea edx, [esi + 0x434df4]
push edx
call fcn.0040ec10
add esp, 4
mov ecx, dword [ebx + 0x18]
dec ecx
mov eax, ecx
mov dword [ebx + 0x18], ecx
test eax, eax
jg 0x410a43
mov eax, dword [ebx]
test eax, eax
je 0x4109ce
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x4109db
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x4109e3
mov eax, dword [ebx]
mov dword [esi + 0x434de0], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7c], 0
mov eax, dword [0x42d3dc]
cmp eax, 1
jl 0x410a0d
mov edx, dword [esi + 0x434df8]
mov eax, dword [esi + 0x434df4]
push edx
push eax
call fcn.0040ec40
add esp, 8
mov eax, dword [0x42d3dc]
mov dword [edi], 0
cmp eax, 2
jl 0x410a2a
mov ecx, dword [esi + 0x434de4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx + 8]
push edx
call fcn.0040bd80
push ebx
call fcn.0040bd80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x42d3dc], 1
jl 0x410a62
mov eax, dword [esi + 0x434df8]
mov ecx, dword [esi + 0x434df4]
push eax
push ecx
call fcn.0040ec40
add esp, 8
mov eax, dword [0x42d3dc]
mov dword [edi], 0
cmp eax, 2
jl 0x410a7f
mov edx, dword [esi + 0x434de4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x410a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0040ed50
mov eax, dword [0x434a1c]
mov esi, dword [ebp + 8]
test eax, eax
je 0x410ab8
test esi, esi
je 0x410aad
mov eax, dword [esi]
jmp 0x410aaf
xor eax, eax
push eax
call fcn.00418740
add esp, 4
test esi, esi
je 0x410ac0
mov esi, dword [esi]
jmp 0x410ac2
xor esi, esi
push esi
call fcn.004192ab
pop esi
nop
nop
nop
nop
nop
nop
nop
Function at 0x418630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x434a1c]
push ebx
push esi
xor esi, esi
test eax, eax
push edi
je 0x4186f8
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x41867a
cmp eax, 2
je 0x41867a
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x418668
cmp eax, 0xfffffffa
jne 0x418668
mov ebx, dword [ebp + 8]
mov esi, 1
jmp 0x418685
test eax, eax
jne 0x418682
mov esi, 1
call fcn.00418750
mov ebx, eax
jmp 0x418685
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x434a1c]
test eax, eax
je 0x4186a8
test edi, edi
je 0x4186a8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4186a8
push ebx
call fcn.00418740
push ebx
call fcn.00418750
add esp, 8
test esi, esi
je 0x4186f8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.00418740
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x4186d0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x42da24
call fcn.00418740
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x20]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x20]
pop edi
mov dword [esi], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x41dc72
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430648
cmp edx, dword [eax]
je 0x41dc94
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x41dc85
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430648]
jne 0x41ddc2
mov eax, dword [0x434a34]
cmp eax, 1
je 0x41dd9c
test eax, eax
jne 0x41dcc5
cmp dword [0x42dcc8], 1
je 0x41dd9c
cmp edx, 0xfc
je 0x41ddc2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41dcfc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418bc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00418e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41dd3f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00418e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425264
push edi
call fcn.00419020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418bc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418bd0
lea eax, [ebp - 0xa0]
push 0x425244
push eax
call fcn.00418bd0
push dword [esi + 0x43064c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418bd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00420a81
add esp, 0x2c
pop edi
jmp 0x41ddc2
lea eax, [ebp + 8]
lea esi, [esi + 0x43064c]
push 0
push eax
push dword [esi]
call fcn.00418e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10004450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003688d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10041008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100045b4
sub eax, 1
jne 0x100045e9
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x100043a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x10004930
lea ecx, [ebp - 0x14]
call fcn.10004610
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0
jne 0x100044ce
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push dword [esi + 4]
mov edi, dword [sym.imp.MSVCP140.dll__Thrd_detach]
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x100044e9
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x10004509
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 0x10004a20
lea ecx, [ebp - 0x14]
call fcn.10004610
mov esi, eax
mov dword [ebp - 4], 1
cmp dword [esi + 4], 0
jne 0x1000452d
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push dword [esi + 4]
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x10004542
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x10004562
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 0x10004ac0
lea ecx, [ebp - 0x1c]
call fcn.10004610
mov esi, eax
mov dword [ebp - 4], 2
cmp dword [esi + 4], 0
jne 0x10004586
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push dword [esi + 4]
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x1000459b
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [ebp - 0x18], 0
je 0x100045e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [0x1004b814], 0
je 0x100045e9
xor edx, edx
xor ecx, ecx
call fcn.10035030
push dword [0x1004b810]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x1004b810], 0
mov dword [0x1004b814], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100368bd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10041008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.100354c9
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x100046d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x10004692
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100354bb
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x10006740
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 0x100067a1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10006784
cmp edi, 2
jb 0x10006784
cmp byte [esi], cl
jne 0x10006784
cmp byte [esi + 1], cl
jne 0x10006784
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100379c8]
jmp 0x10006755
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100379c8]
test edi, edi
jne 0x10006755
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100067d0
cmp cl, 0x23
jne 0x100067b7
cmp byte [esi], cl
jne 0x100067b7
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 + 0x100379c8]
test cl, cl
jne 0x100067a8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x100068e0
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 0x100068f4
mov dword [ebx], 0
mov edx, 0x1003bc00
call fcn.100067e0
mov esi, eax
test esi, esi
je 0x100069e2
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 0x100069d8
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 0x100069d8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x100069d8
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 0x100069d8
mov eax, dword [0x1004b7cc]
test eax, eax
je 0x1000696c
inc dword [eax + 0x36c]
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 0x100069d8
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 0x100069bd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1004b7cc]
add esp, 4
test eax, eax
je 0x100069aa
dec dword [eax + 0x36c]
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 0x100069cf
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 0x10008590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10041008]
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 + 0x100379c8]
sub esi, 1
jne 0x100085c3
mov eax, dword [0x1004b7cc]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x100085f2
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x10008601
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x1000861a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.10017db0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100354bb
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bff0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000c02f
cmp bl, 0x23
jne 0x1000c011
cmp byte [esi], bl
jne 0x1000c011
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100379c8]
test bl, bl
jne 0x1000c002
mov ecx, dword [0x1004b7cc]
not eax
mov esi, dword [ecx + 0x1b90]
mov edi, dword [ecx + 0x1b98]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000c06e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000c068
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000c06a
mov esi, edx
test esi, esi
jne 0x1000c050
cmp edi, ebx
je 0x1000c07d
cmp dword [edi], eax
jne 0x1000c07d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10016d50
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 + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x10016dd2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10016d8c
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.10018a70
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10006cf0
mov edx, dword [esi]
mov ecx, 0x1004b6be
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
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.10006cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100202a0
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 0x100202da
mov eax, dword [0x1004b7cc]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100202cd
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002030b
mov eax, dword [0x1004b7cc]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100202fe
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002033c
mov eax, dword [0x1004b7cc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002032f
dec dword [eax + 0x36c]
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 0x10020389
mov eax, dword [0x1004b7cc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002037c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100203ba
mov eax, dword [0x1004b7cc]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100203ad
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100203eb
mov eax, dword [0x1004b7cc]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100203de
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10022a60
Function at 0x100349b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10041008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], 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 0x10034aaa
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10034aa3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10034a89
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10034a89
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10034a89
mov edx, dword [esi]
test edx, edx
jne 0x10034a52
push 0x200
push edx
push dword [0x1004b7d8]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10034aa3
jmp 0x10034a7d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10034a7d
shl eax, 3
push eax
push edx
push 0
push dword [0x1004b7d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10034aa3
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
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10034a11
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10034aef
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10034aef
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 0x10034ae9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10034840
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10034ab6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100354bb
mov esp, ebp
pop ebp
ret
Function at 0x10034b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10041008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1004b840]
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 - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10034b61
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100354bb
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10034b82
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 0x10034ba3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10034ba3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10034b9d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10034ba3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100354bb
mov esp, ebp
pop ebp
ret