joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b79a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a18
cmp edx, dword [eax]
je 0x40b7bc
add eax, 8
inc ecx
cmp eax, 0x411aa8
jl 0x40b7ad
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a18]
jne 0x40b8ea
mov eax, dword [0x412600]
cmp eax, 1
je 0x40b8c4
test eax, eax
jne 0x40b7ed
cmp dword [0x411754], 1
je 0x40b8c4
cmp edx, 0xfc
je 0x40b8ea
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b824
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409a40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b867
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f564
push edi
call fcn.0040a070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409a40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409a50
lea eax, [ebp - 0xa0]
push 0x40f544
push eax
call fcn.00409a50
push dword [esi + 0x411a1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409a50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d3cf
add esp, 0x2c
pop edi
jmp 0x40b8ea
lea eax, [ebp + 8]
lea esi, [esi + 0x411a1c]
push 0
push eax
push dword [esi]
call fcn.00409ff0
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 0x10008651
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [ecx + 0x3c]
push esi
push edi
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [esp + 0x18], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ebx, ecx
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
test eax, eax
je 0x100086e4
mov ebp, dword [esp + 0x2c]
nop dword [eax + eax]
mov edx, dword [edx + ebx*4]
xor eax, eax
add edx, ecx
xor edi, edi
cmp byte [edx], al
je 0x100086b8
nop dword [eax]
inc eax
cmp byte [eax + edx], 0
jne 0x100086b1
xor esi, esi
test eax, eax
je 0x100086d3
nop dword [eax]
movzx ecx, byte [esi + edx]
inc esi
imul edi, ebp
add edi, ecx
cmp esi, eax
jb 0x100086c1
mov ecx, dword [esp + 0x24]
cmp edi, dword [esp + 0x28]
je 0x100086ee
mov edx, dword [esp + 0x10]
inc ebx
cmp ebx, dword [esp + 0x20]
jb 0x100086a1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
movzx eax, word [eax + ebx*2]
pop ebp
pop ebx
mov eax, dword [edx + eax*4]
add eax, ecx
add esp, 0xc
ret

Function at 0x10008761
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
add eax, 0xc
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x100087c6
nop dword [eax + eax]
mov ebp, dword [ebx + 0x30]
xor esi, esi
xor edi, edi
cmp word [ebp], si
je 0x100087ba
movzx eax, word [ebp]
movzx eax, ax
mov edx, eax
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x100087a6
add eax, 0x20
movzx edx, ax
inc esi
movzx eax, dx
add edi, eax
movzx eax, word [ebp + esi*2]
test ax, ax
jne 0x10008792
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], edi
je 0x100087ce
mov ebx, dword [ebx]
cmp ebx, eax
jne 0x10008781
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10019482
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x101d9928], 0
jne 0x10019512
push ebx
push esi
push edi
mov esi, 0x100014bc
xor ebx, ebx
push esi
push ebx
mov dword [0x101d9928], 1
call fcn.10018970
push esi
push ebx
mov edi, eax
call fcn.10018970
add esp, 0x10
mov esi, eax
test edi, edi
je 0x100194c4
test esi, esi
je 0x100194c4
cmp edi, esi
jne 0x100194c7
xor ebx, ebx
inc ebx
test edi, edi
je 0x100194d2
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x100194e1
cmp esi, edi
je 0x100194e1
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
je 0x1001950f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10001698
call esi
push 0x10001638
call esi
push 0x100015e0
call esi
push 0x100015b0
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x10005eb0
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 0x10005efc
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10005edf
cmp edi, 2
jb 0x10005edf
cmp byte [esi], cl
jne 0x10005edf
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1004d3a0]
test edi, edi
jne 0x10005ec5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10005f2b
cmp cl, 0x23
jne 0x10005f12
cmp byte [esi], cl
jne 0x10005f12
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 + 0x1004d3a0]
test cl, cl
jne 0x10005f03
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10006040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10006054
mov dword [edi], 0
mov edx, 0x1004cfe0
call fcn.10005f40
mov esi, eax
test esi, esi
je 0x10006150
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 0x10006146
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 0x10006146
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x10006146
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 0x10006146
mov eax, dword [0x100b2c60]
test eax, eax
je 0x100060d0
inc dword [eax + 0xb0]
push dword [0x100b2c58]
push ebx
call fcn.10005400
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10006146
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 0x1000612b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100b2c60]
add esp, 4
test eax, eax
je 0x10006113
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ebx
call fcn.10005420
add esp, 8
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 0x1000613d
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 0x10008570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1005600c]
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 + 0xfc]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x100]
subss xmm0, xmm1
mov ecx, dword [edx + 0xe0]
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 + 0xe8]
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 + 0x1004d3a0]
sub edi, 1
jne 0x100085f0
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.10049846
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bde0
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 0x1000be1d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1000be03
cmp byte [esi], bl
jne 0x1000be03
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 + 0x1004d3a0]
test bl, bl
jne 0x1000bdf4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1000bd70
Function at 0x10011600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b2c60]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e48]
mov esi, 4
mov eax, dword [edi + 0xe0]
add edi, 0xe0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 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 + 0x1004d3a0]
sub esi, 1
jne 0x10011637
mov eax, dword [0x100b2c60]
not ebx
cmp dword [eax + 0x3e7c], ebx
jne 0x10011671
push ecx
push dword [ebp - 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1001a700
add esp, 8
mov esi, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, esi
jne 0x1001169e
inc ecx
test esi, esi
je 0x1001168a
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1001168f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001b040
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10019420
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 + 0x5a78], 0
lea esi, [edi + 0x5a7c]
je 0x100194a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001945c
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.1001b3f0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10006720
mov edx, dword [esi]
mov ecx, 0x100b2c5c
push dword [edi + 0x5a78]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5a84]
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.10006720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100198d0
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 [0x100b2c60]
test bl, bl
je 0x10019916
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100198f7
cmp byte [esi], bl
jne 0x100198f7
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 + 0x1004d3a0]
test bl, bl
jne 0x100198e8
mov edi, dword [0x100b2c60]
mov esi, dword [edi + 0x5a20]
xor ecx, ecx
not eax
test esi, esi
jle 0x1001993c
mov edi, dword [edi + 0x5a28]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10019942
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10019930
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 0x100230d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002310c
mov eax, dword [0x100b2c60]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100230f6
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10023146
mov eax, dword [0x100b2c60]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10023130
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10023180
mov eax, dword [0x100b2c60]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002316a
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
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 0x100231d6
mov eax, dword [0x100b2c60]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100231c0
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10023210
mov eax, dword [0x100b2c60]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100231fa
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002324a
mov eax, dword [0x100b2c60]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10023234
dec dword [eax + 0xb0]
push dword [0x100b2c58]
push ecx
call fcn.10005420
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10027d50
Function at 0x10042b00
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1005600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
xor ebx, ebx
push ebx
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 0x10042c29
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10042c42
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10042be5
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10042be5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10042be5
mov edx, dword [esi]
test edx, edx
jne 0x10042bb1
push 0x200
push edx
push dword [0x100b2c68]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10042c0a
jmp 0x10042bd9
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10042bd9
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100b2c68]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10042c0a
mov dword [esi], edx
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 0x10042b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10042c3f
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10042c42
push eax
push ebx
push dword [0x100b2c68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049846
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10042c29
cmp dword [esi], 0
je 0x10042c99
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10042c99
nop dword [eax]
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10042c93
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.10042990
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10042c60
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10049846
mov esp, ebp
pop ebp
ret
Function at 0x10042cb0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x10042cfe
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10042cee
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10042ce5
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10042cc2
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x100b2c68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10042d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x100b2dd0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10042d5c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049846
mov esp, ebp
pop ebp
ret
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 0x10042d77
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10049846
mov esp, ebp
pop ebp
ret
Function at 0x10042db0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x100b2dd8]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x10042ddd
mov eax, dword [0x100b2dd0]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
je 0x10042de4
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10042dd0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10042ddd
push ebx
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10042b00
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10042e9f
mov ecx, dword [0x100b2dd8]
push edi
cmp esi, ecx
jae 0x10042e4a
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x100b2dd0]
test byte [edi + eax + 0x14], 2
jne 0x10042e3f
mov ecx, esi
call fcn.10042d00
mov ebx, eax
test ebx, ebx
jne 0x10042e47
mov ecx, dword [0x100b2dd8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10042e20
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10042e9c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10042e8d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10042e81
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10042e60
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x100b2c68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100435f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1005600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [eax + 0x128000]
cmp eax, ecx
jae 0x1004366d
mov esi, 0x6c7
mov edx, 0x8689
inc eax
cmp word [eax], si
jne 0x10043663
cmp word [eax + 6], dx
jne 0x10043663
cmp word [eax + 0xc], dx
je 0x10043687
lea ecx, [eax + 0x128000]
cmp eax, ecx
jb 0x10043651
mov ecx, dword [eax + 1]
mov eax, dword [ebp + 8]
pop esi
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049846
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 2]
jmp 0x10043670

Function at 0x100436d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b574
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1005600c]
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
push 0x48
call fcn.10049c91
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x48
push 0
push ebx
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0x11
call fcn.100435f0
push 0x10
mov esi, eax
call fcn.100435f0
lea ecx, [ebx + 0x38]
mov edx, 0x10044240
push ecx
mov ecx, esi
mov edi, eax
call fcn.10042f40
mov ecx, esi
call fcn.100431f0
lea ecx, [ebx + 0x3c]
mov edx, 0x100444a0
push ecx
mov ecx, edi
call fcn.10042f40
mov ecx, edi
call fcn.100431f0
mov dword [ebp - 4], 0xffffffff
mov dword [0x100b2c78], ebx
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push eax
push 0x10051c7c
lea eax, [ebp - 0x14]
push str.CONIN_
push eax
call esi
push 2
call edi
push eax
push 0x10051c88
lea eax, [ebp - 0x14]
push str.CONOUT_
push eax
call esi
push 1
call edi
push eax
push 0x10051c88
lea eax, [ebp - 0x14]
push str.CONOUT_
push eax
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 0x3c
call fcn.10043800
push 0
push 0
push 0
push 0x10043690
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
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.10049846
mov esp, ebp
pop ebp
ret
Function at 0x10043af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10043b3e
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x10043ad0
push 0
push 0
mov dword [0x100b2c6c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10042eb0
cmp dword [0x100b2c68], 0
jne 0x10043b35
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x100b2c68], eax
xor eax, eax
mov ecx, 0x100b2c64
xchg dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc