joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b6d
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100702c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1007068], 0x10047e1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x1002c87
push esi
push edi
call fcn.01002026
test eax, eax
jne 0x1003f6b
cmp byte [edi], 0x5e
push ebx
mov ebx, dword [0x1007040]
mov byte [ebp - 0x127], 0
je 0x1003f77
lea ecx, [esi - 1]
push 0xfffffffffffffffe
xor eax, eax
pop edx
test ecx, ecx
jle 0x1002bdb
cmp byte [edi + eax], 0x5c
je 0x1003f7f
inc eax
cmp eax, ecx
jl 0x1002bcc
test esi, esi
jle 0x1002bea
cmp byte [esi + edi - 1], 0x24
je 0x1003f87
cmp esi, 0xfe
jg 0x1003f9c
push esi
push edi
mov edi, 0x100
lea eax, [ebp - 0x124]
push edi
push eax
call sub.msvcrt.dll_strncpy_s
add esp, 0x10
test bl, 0x10
jne 0x1003fa3
lea eax, [ebp - 0x124]
push eax
mov byte [ebp + esi - 0x124], 0
call fcn.01002122
mov dword [ebp - 0x130], eax
test eax, eax
je 0x1002c86
inc dword [0x1007060]
test bl, 8
jne 0x1002c4f
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.01002d0c
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x130]
call fcn.01002d0c
cmp byte [eax], 0
je 0x1003fb1
xor ebx, ebx
xor eax, eax
mov ecx, ebx
and ecx, 7
inc eax
shl eax, cl
mov ecx, ebx
sar ecx, 3
movsx ecx, byte [ebp + ecx - 0x24]
test ecx, eax
jne 0x1002c97
inc ebx
cmp ebx, edi
jl 0x1002c69
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100190b
leave
ret 8
push 8
call fcn.01001ba0
mov esi, eax
mov eax, dword [ebp - 0x130]
mov dword [esi + 4], eax
movzx eax, byte [ebx + 0x1007510]
xor ecx, ecx
cmp eax, ecx
jne 0x1002cf5
mov eax, dword [0x100fe4c]
inc dword [0x100fe4c]
mov edx, eax
mov edi, 0x100
cmp edx, edi
mov dword [ebp - 0x12c], eax
jge 0x1004016
mov dword [eax*4 + 0x1007a10], ecx
mov byte [ebx + 0x1007510], al
cmp dword [0x1007010], ecx
je 0x1003fc0
mov eax, dword [ebp - 0x12c]
lea eax, [eax*4 + 0x1007a10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], esi
jmp 0x1002c81
push esi
push edi
call fcn.010047f9
jmp 0x1002c87
or ebx, 8
jmp 0x1002bc0
mov edx, eax
inc eax
jmp 0x1002bd6
lea eax, [esi - 2]
cmp edx, eax
je 0x1002bea
mov esi, ecx
or ebx, 0x10
jmp 0x1002bea
push 2
call fcn.01005210
mov byte [ebp + esi - 0x124], 0xd
inc esi
jmp 0x1002c16
mov dword [0x1007068], 0x10047e1
jmp 0x1002c86
push ebx
call dword [sym.imp.msvcrt.dll_isalpha]
pop ecx
test eax, eax
je 0x1002cef
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 0x128], bl
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
cmp byte [eax], bl
jne 0x1003ffe
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.msvcrt.dll__strupr]
pop ecx
cmp byte [eax], bl
je 0x1002cef
movzx eax, byte [ebp - 0x128]
mov cl, byte [ebp - 0x12c]
mov byte [eax + 0x1007510], cl
jmp 0x1002cef
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ecx
add eax, 0x40
push 0xa
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1002d0c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x5e
push edi
je 0x1003f00
mov ebx, dword [ebp + 0xc]
push 8
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov al, byte [esi]
mov dword [ebp + 0xc], esi
test al, al
je 0x1002d73
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp al, 5
je 0x1003f06
movzx eax, byte [esi]
inc esi
sub eax, ecx
je 0x1002d7d
dec eax
jne 0x1003f13
cmp dword [ebp + 8], ecx
jne 0x1002d7d
mov al, byte [esi]
inc esi
test al, al
je 0x1002d7d
movzx eax, byte [esi]
push 1
push eax
push eax
push 0x20
push ebx
call fcn.01002d8a
inc esi
cmp dword [ebp + 8], 0
jne 0x1002d2c
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 2
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
inc esi
jmp 0x1002d20
mov dword [ebp + 8], 1
inc esi
jmp 0x1002d42
dec eax
je 0x1002d5d
dec eax
je 0x1003f57
dec eax
je 0x1003f2c
dec eax
je 0x1002d7d
jmp 0x1002d6d
push 8
pop ecx
push 0
push 0xd
push 0xd
push 0x20
or eax, 0xffffffff
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call fcn.01002d8a
push 0
push 0xa
push 0xa
push 0x20
push ebx
call fcn.01002d8a
jmp 0x1002d6d
xor eax, eax
mov cl, byte [esi]
or byte [eax + ebx], cl
inc esi
inc eax
cmp eax, 0x20
jge 0x1002d6d
jmp 0x1003f59
Function at 0x100508a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x300c
call fcn.01003b43
mov eax, dword [0x100702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
mov dword [ebp - 0x300c], eax
lea eax, [ebp - 0x300c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x3008], eax
test eax, eax
je 0x1005174
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0x2000
lea eax, [ebp - 0x3004]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x1005166
push dword [ebp - 0x3008]
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0xfff
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x1005158
mov eax, dword [ebp - 0x3008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1005208
push esi
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x1005187
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051e0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051b0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005194
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100190b
leave
ret

Function at 0x1005210
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1007044]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10002940
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 0x100029a1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10002984
cmp edi, 2
jb 0x10002984
cmp byte [esi], cl
jne 0x10002984
cmp byte [esi + 1], cl
jne 0x10002984
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10037e30]
jmp 0x10002955
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10037e30]
test edi, edi
jne 0x10002955
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100029d0
cmp cl, 0x23
jne 0x100029b7
cmp byte [esi], cl
jne 0x100029b7
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 + 0x10037e30]
test cl, cl
jne 0x100029a8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10002b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10002ba5
push 0x599
push str.C:UsersGebruikerDesktopCheezeCoD_Bo1_ZM_PlutoImGui_DirectX_9_Kiero_Hook_masterImGui_DirectX_9_Kiero_Hook_2imguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002bb2
mov dword [edi], 0
mov edx, 0x10037b2c
mov ecx, esi
call fcn.100029e0
mov esi, eax
test esi, esi
je 0x10002ca2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10002c98
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 0x10002c98
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x10002c98
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 0x10002c98
mov eax, dword [0x10041710]
test eax, eax
je 0x10002c2c
inc dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002c98
push esi
push dword [ebp + 8]
push 1
push ebx
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 0x10002c7d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10041710]
add esp, 4
test eax, eax
je 0x10002c6a
dec dword [eax + 0x374]
push ebx
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 edi, edi
je 0x10002c8f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
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 0x10004e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 0
jg 0x10004eb8
push 0x502
push str.C:UsersGebruikerDesktopCheezeCoD_Bo1_ZM_PlutoImGui_DirectX_9_Kiero_Hook_masterImGui_DirectX_9_Kiero_Hook_2imguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xbc]
mov edi, 4
mov eax, dword [esi + 0xc4]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10037e30]
sub edi, 1
jne 0x10004ed2
mov ecx, dword [0x10041710]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19e4], eax
jne 0x10004f04
mov dword [ecx + 0x19e8], eax
cmp dword [ecx + 0x1a18], eax
jne 0x10004f13
mov byte [ecx + 0x1a1c], 1
pop ebp
ret 4

Function at 0x10007790
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x100077a9
cmp byte [edi + 0x2d2c], 0
je 0x100077c1
push 0xed0
push str.C:UsersGebruikerDesktopCheezeCoD_Bo1_ZM_PlutoImGui_DirectX_9_Kiero_Hook_masterImGui_DirectX_9_Kiero_Hook_2imguiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], str.Window
mov al, 0x57
mov esi, 0x100363e1
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x100077ee
cmp byte [esi], al
jne 0x100077ee
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10037e30]
test al, al
jne 0x100077e0
mov esi, dword [edi + 0x2d40]
not edx
mov ecx, dword [edi + 0x2d44]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0x10013c80
mov dword [ebp - 0x10], 0x10013ce0
mov dword [ebp - 0xc], 0x10013db0
cmp esi, ecx
jne 0x100078be
inc esi
test ecx, ecx
je 0x10007845
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000784a
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x100078be
mov eax, dword [0x10041710]
test eax, eax
je 0x10007862
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [edi + 0x2d48]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x100078b2
mov ecx, dword [edi + 0x2d40]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x10041710]
add esp, 0xc
test eax, eax
je 0x100078a5
dec dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
mov dword [edi + 0x2d48], eax
mov dword [edi + 0x2d44], esi
mov eax, dword [edi + 0x2d40]
movups xmm0, xmmword [ebp - 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d48]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi + 0x2d40]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008ce0
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 0x10008d1f
cmp bl, 0x23
jne 0x10008d01
cmp byte [esi], bl
jne 0x10008d01
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 + 0x10037e30]
test bl, bl
jne 0x10008cf2
mov ecx, dword [0x10041710]
not eax
mov esi, dword [ecx + 0x19a0]
mov edi, dword [ecx + 0x19a8]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10008d5e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10008d58
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10008d5a
mov esi, edx
test esi, esi
jne 0x10008d40
cmp edi, ebx
je 0x10008d6d
cmp dword [edi], eax
jne 0x10008d6d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100133e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x10041710]
push edi
cmp byte [esi + 0x2d58], 0
je 0x1001347f
cmp dword [esi + 0x2d60], 0
lea edi, [esi + 0x2d64]
je 0x10013471
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10013429
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, edi
call fcn.100149a0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10003140
mov edx, dword [edi]
mov ecx, 0x1004170c
push dword [esi + 0x2d60]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d6c]
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
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.10003140
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10013b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10041710]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d30], 0
test eax, eax
je 0x10013c6f
lea edi, [esi + 0x2d34]
mov dword [esi + 0x2d30], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10013bb5
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, edi
call fcn.100149a0
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x10013bca
push 8
mov ecx, edi
call fcn.100149a0
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
inc dword [edi]
mov eax, dword [esi + 0x2d40]
test eax, eax
jle 0x10013c2c
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10013c05
push 0x4f8
push str.C:UsersGebruikerDesktopCheezeCoD_Bo1_ZM_PlutoImGui_DirectX_9_Kiero_Hook_masterImGui_DirectX_9_Kiero_Hook_2imguiimgui.h
push str.i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi + 0x2d48]
add eax, ecx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 4]
inc ebx
mov eax, dword [esi + 0x2d40]
add ecx, 0x18
add esp, 0xc
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10013c05
mov edi, dword [edi]
mov ebx, 0x1004170c
mov ecx, dword [ebp - 8]
mov edx, 0x10037b90
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2d3c]
test eax, eax
cmovne ebx, eax
call fcn.100029e0
mov esi, eax
test esi, esi
je 0x10013c6f
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031b80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004100c]
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 0x10031c7a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10031c73
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10031c59
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10031c59
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10031c59
mov edx, dword [esi]
test edx, edx
jne 0x10031c22
push 0x200
push edx
push dword [0x10041718]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10031c73
jmp 0x10031c4d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10031c4d
shl eax, 3
push eax
push edx
push 0
push dword [0x10041718]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10031c73
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 0x10031be1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10031cbf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10031cbf
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 0x10031cb9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10031a10
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10031c86
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100338e6
mov esp, ebp
pop ebp
ret
Function at 0x10031cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10041820]
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 0x10031d31
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100338e6
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10031d52
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 0x10031d73
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10031d73
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10031d6d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10031d73
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.100338e6
mov esp, ebp
pop ebp
ret
Function at 0x10031dd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10041828]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10031ec1
mov eax, dword [0x10041820]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10031e15
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10031df8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10031ec1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10031b80
mov ecx, dword [0x10041828]
add esp, 4
cmp esi, ecx
jae 0x10031e75
imul edi, esi, 0x2c
mov eax, dword [0x10041820]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10031e6a
mov edx, ebx
mov ecx, esi
call fcn.10031cd0
mov dword [ebp - 4], eax
test eax, eax
jne 0x10031e72
mov ecx, dword [0x10041828]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10031e41
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10031ec1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10031eb2
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 0x10031ea6
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 0x10031e85
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10041718]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032210
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, 1
mov ecx, 0x10041714
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x10032265
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x10032249
push 0
jmp 0x1003224b
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x10041714
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10032240
mov ebx, dword [ebp - 4]
cmp dword [0x10041718], 0
je 0x10032338
test ebx, ebx
jne 0x10032284
mov ecx, edi
call fcn.10031dd0
mov edi, eax
jmp 0x1003233d
mov ecx, dword [0x10041828]
xor esi, esi
test ecx, ecx
je 0x100322a4
mov edx, dword [0x10041820]
mov eax, edx
cmp ebx, dword [eax]
je 0x100322ae
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10032298
mov edi, 4
jmp 0x1003233d
cmp esi, 0xffffffff
je 0x100322a4
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1003232f
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.10031b80
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.10031cd0
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1003233d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003231e
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 0x10032312
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 0x100322f1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10041718]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003233d
neg edi
sbb edi, edi
add edi, 6
jmp 0x1003233d
mov edi, 2
xor eax, eax
mov ecx, 0x10041714
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100338a8
sub eax, 1
jne 0x100338dd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100337f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [0x10041764], 0
je 0x100338dd
xor edx, edx
xor ecx, ecx
call fcn.10032210
push dword [0x10041760]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x10041760], 0
mov dword [0x10041764], 0
mov eax, 1
pop ebp
ret 0xc