joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101627c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101629a4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x119000]
push edi
jmp 0x101627ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101627f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101627e0
mov eax, 1
add ebx, ebx
jne 0x10162803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10162814
jne 0x10162833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162833
dec eax
add ebx, ebx
jne 0x10162820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101627f8
add ebx, ebx
jne 0x1016282f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10162885
xor ecx, ecx
sub eax, 3
jb 0x1016284b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101628ba
sar eax, 1
mov ebp, eax
jmp 0x10162856
add ebx, ebx
jne 0x10162856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162824
inc ecx
add ebx, ebx
jne 0x10162864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10162824
add ebx, ebx
jne 0x10162871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10162866
jne 0x10162882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10162866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101628a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10162896
jmp 0x101627e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101628a4
add edi, ecx
jmp 0x101627e6
pop esi
mov edi, esi
mov ecx, 0x1717
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101628c2
cmp byte [edi], 0x11
jne 0x101628c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101628c7
lea edi, [esi + 0x15e000]
mov eax, dword [edi]
or eax, eax
je 0x10162936
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x162000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x162154]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101628f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x162158]
or eax, eax
je 0x10162930
mov dword [ebx], eax
add ebx, 4
jmp 0x10162911
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10162967
cmp al, 0xef
ja 0x1016295a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1016293c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10162949
mov ebp, dword [esi + 0x16215c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1016299b
sub esp, 0xffffff80
jmp 0x1004f3d6
Function at 0x402b61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407368
cmp edx, dword [eax]
je 0x402b83
add eax, 8
inc ecx
cmp eax, 0x4073f8
jl 0x402b74
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407368]
jne 0x402cb1
mov eax, dword [0x40994c]
cmp eax, 1
je 0x402c8b
test eax, eax
jne 0x402bb4
cmp dword [0x407094], 1
je 0x402c8b
cmp edx, 0xfc
je 0x402cb1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402beb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402c2e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40644c
push edi
call fcn.00404fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push 0x40642c
push eax
call fcn.004037e0
push dword [esi + 0x40736c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404f14
add esp, 0x2c
pop edi
jmp 0x402cb1
lea eax, [ebp + 8]
lea esi, [esi + 0x40736c]
push 0
push eax
push dword [esi]
call fcn.00403020
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 0x10002040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002067
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10002020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100022b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038aad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1005f008]
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 edi, edx
mov esi, ecx
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
test esi, esi
mov ebx, dword [ebp + 8]
cmove esi, dword [ebp - 0x48]
test edi, edi
cmove edi, dword [ebp - 0x44]
sub ecx, ebx
sar ecx, 2
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x5c], edi
cmp esi, eax
jae 0x100023b4
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
test eax, eax
je 0x100023a2
test dword [ebp - 0x18], 0x303
jne 0x1000239f
test dword [ebp - 0x1c], 0x1000
je 0x1000239f
mov edi, dword [ebp - 0x2c]
mov edx, ecx
sub edx, ebx
mov eax, edi
sar edx, 2
sub eax, edx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
cmp edi, eax
jae 0x10002399
nop word [eax + eax]
xor eax, eax
test edx, edx
je 0x10002390
cmp edx, eax
jbe 0x1000240a
mov esi, dword [ebx + eax*4]
cmp esi, 0xff
je 0x10002389
lea ecx, [eax + 1]
mov eax, ecx
movzx ecx, byte [ecx + edi - 1]
cmp esi, ecx
jne 0x10002390
jmp 0x1000238a
inc eax
cmp eax, edx
je 0x100023b6
jb 0x10002366
inc edi
cmp edi, dword [ebp - 0x54]
jb 0x10002360
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x5c]
add esi, dword [ebp - 0x20]
sub ecx, ebx
mov eax, edi
sar ecx, 2
inc esi
sub eax, ecx
cmp esi, eax
jb 0x10002316
xor edi, edi
test ebx, ebx
je 0x100023ec
mov ecx, dword [ebp + 0x10]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100023e2
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100023e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.10037b52
add esp, 8
mov eax, edi
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.100377fa
mov esp, ebp
pop ebp
ret
call fcn.10003270
int3
Function at 0x10005a10
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 0x10005a71
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10005a54
cmp edi, 2
jb 0x10005a54
cmp byte [esi], cl
jne 0x10005a54
cmp byte [esi + 1], cl
jne 0x10005a54
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10056c00]
jmp 0x10005a25
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10056c00]
test edi, edi
jne 0x10005a25
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10005aa0
cmp cl, 0x23
jne 0x10005a87
cmp byte [esi], cl
jne 0x10005a87
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 + 0x10056c00]
test cl, cl
jne 0x10005a78
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10005bb0
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 0x10005bc4
mov dword [ebx], 0
mov edx, 0x1005bae0
call fcn.10005ab0
mov esi, eax
test esi, esi
je 0x10005cb2
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 0x10005ca8
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 0x10005ca8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10005ca8
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 0x10005ca8
mov eax, dword [0x1005f6a4]
test eax, eax
je 0x10005c3c
inc dword [eax + 0xb0]
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 0x10005ca8
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 0x10005c8d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1005f6a4]
add esp, 4
test eax, eax
je 0x10005c7a
dec dword [eax + 0xb0]
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 0x10005c9f
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 0x10007ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1005f008]
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 + 0xe4]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0xe8]
subss xmm0, xmm1
mov ecx, dword [edx + 0xc8]
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 + 0xd0]
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 + 0x10056c00]
sub edi, 1
jne 0x10007b60
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.100377fa
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c5c0
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 0x1000c5fd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1000c5e3
cmp byte [esi], bl
jne 0x1000c5e3
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 + 0x10056c00]
test bl, bl
jne 0x1000c5d4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1000c560
Function at 0x10011d80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1005f6a4]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e28]
mov esi, 4
mov eax, dword [edi + 0xc8]
add edi, 0xc8
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 + 0x10056c00]
sub esi, 1
jne 0x10011dc1
mov eax, dword [0x1005f6a4]
not ebx
cmp dword [eax + 0x3e48], ebx
jne 0x10011dfb
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10019640
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x10011e26
inc esi
test ecx, ecx
je 0x10011e14
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10011e19
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10019da0
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.100377fa
mov esp, ebp
pop ebp
ret
Function at 0x10018250
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 + 0x5a40], 0
lea esi, [edi + 0x5a44]
je 0x100182d2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001828c
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.1001a350
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10005ec0
mov edx, dword [esi]
mov ecx, 0x1005f6a0
push dword [edi + 0x5a40]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5a4c]
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.10005ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100187e0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1005f6a4]
test bl, bl
je 0x10018826
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10018807
cmp byte [esi], bl
jne 0x10018807
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10056c00]
test bl, bl
jne 0x100187f8
mov edi, dword [0x1005f6a4]
mov esi, dword [edi + 0x59e8]
xor ecx, ecx
not eax
test esi, esi
jle 0x1001884c
mov edi, dword [edi + 0x59f0]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10018852
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10018840
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x10021c50
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 0x10021c8a
mov eax, dword [0x1005f6a4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10021c7d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10021cbb
mov eax, dword [0x1005f6a4]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10021cae
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10021cec
mov eax, dword [0x1005f6a4]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10021cdf
dec dword [eax + 0xb0]
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 0x10021d39
mov eax, dword [0x1005f6a4]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10021d2c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10021d6a
mov eax, dword [0x1005f6a4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10021d5d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10021d9b
mov eax, dword [0x1005f6a4]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10021d8e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100245d0
Function at 0x10036700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1005f6d4], 0
je 0x10036886
mov eax, dword [0x1005f6d0]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x20]
push ecx
mov ecx, ebx
call fcn.10036da1
test eax, eax
jne 0x1003687c
xor esi, esi
mov ecx, 1
mov edx, 0x1005f6ac
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x1003676a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x20
jae 0x10036751
push 0
jmp 0x10036753
push 1
call edi
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x1005f6ac
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10036748
cmp dword [0x1005f6b0], 0
je 0x10036878
test ebx, ebx
jne 0x10036784
call fcn.10036ceb
mov esi, eax
jmp 0x100367a9
mov ecx, dword [0x1005f708]
xor edx, edx
test ecx, ecx
je 0x100367a4
mov esi, dword [0x1005f700]
mov eax, esi
cmp ebx, dword [eax]
je 0x100367bf
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x10036798
mov esi, 4
xor eax, eax
mov ecx, 0x1005f6ac
xchg dword [ecx], eax
neg esi
pop edi
sbb esi, esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 0xffffffff
je 0x100367a4
imul edi, edx, 0x2c
test byte [edi + esi + 0x14], 2
jne 0x1003686e
push 1
lea ecx, [ebp - 0x10]
call fcn.10036bab
mov esi, eax
add esp, 4
test esi, esi
jne 0x100367a9
add edi, dword [0x1005f700]
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea esi, [eax - 5]
cmove esi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10036822
lea ecx, [ebp - 0x10]
lea esi, [eax + 0xa]
call fcn.10036c1c
jmp 0x100367a9
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1003683d
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.10036c1c
jmp 0x100367a9
mov esi, 5
jmp 0x100367a9
xor eax, eax
xchg dword [edx], eax
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffb
mov esp, ebp
pop ebp
ret
Function at 0x10036a8a
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10036b95
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10036b8e
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x10036b52
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10036b52
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10036b52
mov edx, dword [esi]
test edx, edx
jne 0x10036b1b
push 0x200
push edx
push dword [0x1005f6b0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10036b77
lea ebx, [esi + 8]
jmp 0x10036b45
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10036b45
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1005f6b0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10036ba6
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10036ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10036b8e
xor edi, edi
cmp dword [esi], edi
je 0x10036b8e
push dword [esi]
push edi
push dword [0x1005f6b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100377fa
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x10036b77

Function at 0x10036bab
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10036a8a
test eax, eax
jne 0x10036bcf
push 9
pop esi
jmp 0x10036c16
cmp dword [edi], esi
je 0x10036c16
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10036c15
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10036c0f
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10036937
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10036bdb
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10036c1c
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10036c68
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10036c57
push ebx
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 0x10036c50
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10036c2d
pop ebx
push dword [esi]
push 0
push dword [0x1005f6b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10036c6a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x1005f700]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x10036c86
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10036ca7
push 0xa
pop eax
jmp 0x10036ce6
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x10036cc2
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100371ad
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1005f6f4]
push esi
xor esi, esi
jmp 0x100371bf
cmp dword [edx + 4], esi
jne 0x10037213
mov edx, dword [edx]
test edx, edx
jne 0x100371b8
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1003720f
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x100371e6
mov eax, dword [0x1005f6f4]
mov dword [edx], eax
mov dword [0x1005f6f4], edx
pop edi
test edx, edx
jne 0x10037213
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret