joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100061c0
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 0x100061e8
push 0x506
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.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 + 0x10062598]
sub edi, 1
jne 0x10006202
mov ecx, dword [0x10076e80]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a04], eax
jne 0x10006234
mov dword [ecx + 0x1a08], eax
cmp dword [ecx + 0x1a38], eax
jne 0x10006243
mov byte [ecx + 0x1a3c], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 0
jg 0x10006285
push 0x506
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.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 [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov ecx, dword [esi + 0xbc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc4]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10062598]
sub edi, 1
jne 0x100062e5
mov eax, dword [0x10076e80]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a04], edx
jne 0x10006316
mov dword [eax + 0x1a08], edx
cmp dword [eax + 0x1a38], edx
jne 0x10006325
mov byte [eax + 0x1a3c], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.1005ae5b
mov esp, ebp
pop ebp
ret 4
Function at 0x10008c10
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 0x10008c29
cmp byte [edi + 0x2d4c], 0
je 0x10008c41
push 0xef8
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.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 - 4], 0
mov dword [ebp - 0x18], str.Window
mov esi, 0x100606d1
mov al, 0x57
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x10008c6e
cmp byte [esi], al
jne 0x10008c6e
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 + 0x10062598]
test al, al
jne 0x10008c60
mov esi, dword [edi + 0x2d60]
not edx
mov ecx, dword [edi + 0x2d64]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x10015d50
mov dword [ebp - 0xc], 0x10015db0
mov dword [ebp - 8], 0x10015e80
cmp esi, ecx
jne 0x10008d44
inc esi
test ecx, ecx
je 0x10008cc5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10008cca
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x10008d44
mov eax, dword [0x10076e80]
test eax, eax
je 0x10008ce2
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, eax
add esp, 4
mov eax, dword [edi + 0x2d68]
test eax, eax
je 0x10008d38
mov ecx, dword [edi + 0x2d60]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2d68]
add esp, 0xc
test ecx, ecx
je 0x10008d2e
mov eax, dword [0x10076e80]
test eax, eax
je 0x10008d2e
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x2d68], ebx
mov dword [edi + 0x2d64], esi
mov eax, dword [edi + 0x2d60]
movups xmm0, xmmword [ebp - 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d68]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 8]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi + 0x2d60]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a180
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 0x1000a1bf
cmp bl, 0x23
jne 0x1000a1a1
cmp byte [esi], bl
jne 0x1000a1a1
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 + 0x10062598]
test bl, bl
jne 0x1000a192
mov ecx, dword [0x10076e80]
not eax
mov esi, dword [ecx + 0x19c0]
mov edi, dword [ecx + 0x19c8]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000a1fe
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000a1f8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000a1fa
mov esi, edx
test esi, esi
jne 0x1000a1e0
cmp edi, ebx
je 0x1000a20d
cmp dword [edi], eax
jne 0x1000a20d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000fce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10076e80]
push ebx
push esi
push edi
mov eax, dword [eax + 0x19d0]
cmp dword [eax + 0xbc], 0
lea edi, [eax + 0xbc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jg 0x1000fd2b
push 0x506
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [edi]
lea edx, [ebp - 8]
mov ebx, dword [edi + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10062598]
sub esi, 1
jne 0x1000fd40
mov eax, dword [ebp - 0xc]
not ebx
mov esi, dword [edi]
mov ecx, dword [eax + 0xc0]
cmp esi, ecx
jne 0x1000fd90
inc esi
test ecx, ecx
je 0x1000fd7b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000fd80
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10016980
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
mov eax, dword [eax + 0xc4]
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.1005ae5b
mov esp, ebp
pop ebp
ret
Function at 0x100154b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x10076e80]
push edi
cmp byte [esi + 0x2d78], 0
je 0x1001554f
cmp dword [esi + 0x2d80], 0
lea edi, [esi + 0x2d84]
je 0x10015541
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100154f9
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.10016d30
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10004400
mov edx, dword [edi]
mov ecx, 0x10076e7c
push dword [esi + 0x2d80]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d8c]
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.10004400
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10076e80]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d50], 0
test eax, eax
je 0x10015d3f
lea edi, [esi + 0x2d54]
mov dword [esi + 0x2d50], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10015c85
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.10016d30
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x10015c9a
push 8
mov ecx, edi
call fcn.10016d30
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
inc dword [edi]
mov eax, dword [esi + 0x2d60]
test eax, eax
jle 0x10015cfc
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10015cd5
push 0x4fc
push str.C:UsersUser_source_reposLANRedTrainerLANRedTrainerimguiimgui.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 + 0x2d68]
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 + 0x2d60]
add ecx, 0x18
add esp, 0xc
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10015cd5
mov edi, dword [edi]
mov ebx, 0x10076e7c
mov ecx, dword [ebp - 8]
mov edx, 0x100622e0
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2d5c]
test eax, eax
cmovne ebx, eax
call fcn.10003890
mov esi, eax
test esi, esi
je 0x10015d3f
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 0x1003b3b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10071040]
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 0x1003b4aa
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1003b4a3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1003b489
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1003b489
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003b489
mov edx, dword [esi]
test edx, edx
jne 0x1003b452
push 0x200
push edx
push dword [0x10076e88]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1003b4a3
jmp 0x1003b47d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1003b47d
shl eax, 3
push eax
push edx
push 0
push dword [0x10076e88]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1003b4a3
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 0x1003b411
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1003b4ef
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1003b4ef
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 0x1003b4e9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1003b240
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1003b4b6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ae5b
mov esp, ebp
pop ebp
ret
Function at 0x1003b500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100773c0]
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 0x1003b561
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ae5b
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1003b582
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 0x1003b5a3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1003b5a3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1003b59d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1003b5a3
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, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1005ae5b
mov esp, ebp
pop ebp
ret
Function at 0x1003b600
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x100773c8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x1003b6f1
mov eax, dword [0x100773c0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1003b645
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1003b628
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1003b6f1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.1003b3b0
mov ecx, dword [0x100773c8]
add esp, 4
cmp esi, ecx
jae 0x1003b6a5
imul edi, esi, 0x2c
mov eax, dword [0x100773c0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1003b69a
mov edx, ebx
mov ecx, esi
call fcn.1003b500
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003b6a2
mov ecx, dword [0x100773c8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1003b671
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003b6f1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003b6e2
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 0x1003b6d6
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 0x1003b6b5
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10076e88]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003bac0
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, 0x10076e84
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x1003bb15
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x1003baf9
push 0
jmp 0x1003bafb
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x10076e84
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1003baf0
mov ebx, dword [ebp - 4]
cmp dword [0x10076e88], 0
je 0x1003bbe8
test ebx, ebx
jne 0x1003bb34
mov ecx, edi
call fcn.1003b600
mov edi, eax
jmp 0x1003bbed
mov ecx, dword [0x100773c8]
xor esi, esi
test ecx, ecx
je 0x1003bb54
mov edx, dword [0x100773c0]
mov eax, edx
cmp ebx, dword [eax]
je 0x1003bb5e
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1003bb48
mov edi, 4
jmp 0x1003bbed
cmp esi, 0xffffffff
je 0x1003bb54
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1003bbdf
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.1003b3b0
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.1003b500
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1003bbed
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003bbce
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 0x1003bbc2
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 0x1003bba1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10076e88]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003bbed
neg edi
sbb edi, edi
add edi, 6
jmp 0x1003bbed
mov edi, 2
xor eax, eax
mov ecx, 0x10076e84
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e9d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1003ea08
sub eax, 1
jne 0x1003ea3d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x1003e970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [0x100772c4], 0
je 0x1003ea3d
xor edx, edx
xor ecx, ecx
call fcn.1003bac0
push dword [0x100772c0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x100772c0], 0
mov dword [0x100772c4], 0
mov eax, 1
pop ebp
ret 0xc
Function at 0x1004c310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d53d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10071040]
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 eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [eax + 0xd0]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
movsx edx, word [eax + 0x62]
lea esi, [eax + 0x5c]
mov eax, dword [0x10076fd8]
add eax, 0x93b4b0
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x1c], 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
movzx eax, di
mov dword [ebp - 0x18], eax
movsx eax, di
cmp edx, eax
jae 0x1004c392
mov edi, dword [ebp - 0x14]
push word [ebp - 0x18]
call dword [ebp - 0x1c]
mov edi, dword [ebp + 0x18]
mov esi, dword [esi]
lea eax, [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, edi
push eax
push 0x40
push edi
push esi
call ebx
push edi
push dword [ebp - 0x20]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push esi
call ebx
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
add esi, 0x88
push esi
call ebx
lea eax, [ebp - 0x14]
mov byte [esi], 1
push eax
push dword [ebp - 0x14]
push 1
push esi
call ebx
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 2
add esi, 0x60
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov word [esi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 2
push esi
call ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x1004c440
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004c436
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004c436
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
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.1005ae5b
mov esp, ebp
pop ebp
ret
Function at 0x1004e5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1004e5dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1004e604
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1004e60a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1004e672
jg 0x1004e621
test esi, esi
je 0x1004e672
test ecx, ecx
jl 0x1004e66d
jg 0x1004e62b
test eax, eax
je 0x1004e66d
cmp edi, ecx
jg 0x1004e63f
jl 0x1004e635
cmp esi, eax
jae 0x1004e63f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1004e675
mov ecx, dword [ebp + 8]
jmp 0x1004e67f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1004e699
jg 0x1004e67f
test esi, esi
je 0x1004e699
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004e699
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004e6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1004e6dc
jl 0x1004e6d0
test ecx, ecx
jne 0x1004e6dc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1004e6f5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004e743
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1004e749
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1004e749
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1004e7b6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1004e772
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1004e7a4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1004e7b6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1004e780
test edi, edi
je 0x1004e7b6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc