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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be55d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010d024]
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 - 0x2c], eax
mov esi, dword [0x1010d048]
mov dword [esi + 0x2774], 0
test eax, eax
je 0x1001eba6
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x2774], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
push 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10036130
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov byte [ebp - 4], 2
cmp dword [esi + 0x2784], ebx
jle 0x1001eb46
xor edi, edi
mov ecx, dword [esi + 0x278c]
lea edx, [ebp - 0x1c]
add ecx, edi
push edx
push ecx
push esi
mov eax, dword [ecx + 0x10]
call eax
inc ebx
add esp, 0xc
add edi, 0x18
cmp ebx, dword [esi + 0x2784]
jl 0x1001eb21
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
lea ebx, [eax - 1]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x2c]
mov edx, 0x100d192c
mov byte [ebp - 4], 0
call fcn.1001b6f0
mov edi, eax
test edi, edi
je 0x1001eb84
push edi
push ebx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov dword [ebp - 4], 5
test esi, esi
je 0x1001eba6
mov eax, dword [0x1010d048]
push esi
dec dword [eax + 0x318]
mov eax, dword [eax + 0xc4]
call eax
add esp, 4
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.100bceb5
mov esp, ebp
pop ebp
ret
Function at 0x10042a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be8b6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010d024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x3f800000
call fcn.10042b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100449b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1010eb78], 0
push ebx
push esi
push edi
jne 0x10044b04
mov eax, dword [0x1010d048]
mov ebx, dword [eax + 0x84]
lea ecx, [eax + 0x84]
mov dword [ebp - 0x18], ecx
cmp dword [ebx + 0x10], 0
jne 0x10044a59
cmp dword [ebx + 0xc], 0
jne 0x10044a0b
cmp dword [ebx + 0x44], 0
jne 0x100449ff
push 0
mov ecx, ebx
call fcn.10041130
mov ecx, ebx
call fcn.10041700
mov eax, dword [0x1010d048]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x10044a59
mov ecx, dword [ebx + 0x14]
imul ecx, dword [ebx + 0x18]
inc dword [eax + 0x318]
mov eax, dword [eax + 0xc0]
shl ecx, 2
push ecx
call eax
mov ecx, dword [ebx + 0x14]
add esp, 4
imul ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [ebx + 0x10], edx
test ecx, ecx
jle 0x10044a59
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
shl eax, 0x18
lea edx, [edx + 4]
or eax, 0xffffff
dec ecx
mov dword [edx - 4], eax
test ecx, ecx
jg 0x10044a40
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0x8069
call dword [sym.imp.OPENGL32.dll_glGetIntegerv]
push 0x1010eb78
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
push dword [0x1010eb78]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
mov esi, dword [sym.imp.OPENGL32.dll_glTexParameteri]
push 0x2601
push 0x2801
push 0xde1
call esi
push 0x2601
push 0x2800
push 0xde1
call esi
push 0
push 0xcf2
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
push edi
push 0x1401
push 0x1908
push 0
push ebx
push dword [ebp - 0x1c]
push 0x1908
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [0x1010eb78]
mov dword [ecx], eax
push dword [ebp - 0x14]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
movd xmm0, dword [0x1010eb9c]
lea eax, [ebp - 0x10]
movd xmm1, dword [0x1010eba0]
mov edi, dword [0x1010d048]
cvtdq2ps xmm0, xmm0
push eax
mov dword [edi + 0x94], 0x3f800000
mov dword [edi + 0x98], 0x3f800000
cvtdq2ps xmm1, xmm1
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x1010eb88]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x1010eb8c]
call fcn.100be310
mov edx, dword [0x1010eb84]
mov ecx, dword [0x1010eb80]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.100be310
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0xc], xmm1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x1010eb88], eax
mov dword [0x1010eb8c], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xe9], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xea], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xec], 0
mov byte [edi + 0xeb], al
call fcn.1001cc00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
Function at 0x10048720
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 0x1004874c
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 0x10048774
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1004877a
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 0x100487e2
jg 0x10048791
test esi, esi
je 0x100487e2
test ecx, ecx
jl 0x100487dd
jg 0x1004879b
test eax, eax
je 0x100487dd
cmp edi, ecx
jg 0x100487af
jl 0x100487a5
cmp esi, eax
jae 0x100487af
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 0x100487e5
mov ecx, dword [ebp + 8]
jmp 0x100487ef
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10048809
jg 0x100487ef
test esi, esi
je 0x10048809
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10048809
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 0x10048820
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 0x1004884c
jl 0x10048840
test ecx, ecx
jne 0x1004884c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10048865
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 0x100488b3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100488b9
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 0x100488b9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10048926
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100488e2
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 0x10048914
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 0x10048926
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100488f0
test edi, edi
je 0x10048926
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
Function at 0x10048c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10048ca0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10048cdc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10048cdc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10048db3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10048d04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10048d10
movsx eax, bl
jmp 0x10048d48
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10048d72
sub eax, 1
je 0x10048d72
sub eax, 2
jne 0x10048db3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10048d90
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10048db3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
Function at 0x10049040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100490fc
cmp byte [esi + 0x3d], 0
je 0x100490fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100490ea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100490b1
sub eax, 1
je 0x100490b5
sub eax, 2
jne 0x100490ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100490d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100490ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100bceb5
mov esp, ebp
pop ebp
ret

Function at 0x10049ae0
Capabilities:
Access peb ldr_data
Get ntdll base address
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100beb5d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1010d024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10], ecx
mov byte [ecx + 4], 0
mov dword [ecx], vtable.CSHA.0
mov eax, ecx
mov dword [ecx + 0xc], 0x6a09e667
mov dword [ecx + 0x10], 0xbb67ae85
mov dword [ecx + 0x14], 0x3c6ef372
mov dword [ecx + 0x18], 0xa54ff53a
mov dword [ecx + 0x1c], 0x510e527f
mov dword [ecx + 0x20], 0x9b05688c
mov dword [ecx + 0x24], 0x1f83d9ab
mov dword [ecx + 0x28], 0x5be0cd19
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10051c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [0x1012ebcc], edx
mov eax, ebx
push esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10051c43
sub eax, edx
xor ecx, ecx
mov dword [0x1012ebc8], eax
mov esi, 0x4e67c6a7
add eax, 0xfffffff9
cmovs eax, ecx
mov dword [ebp - 4], eax
mov byte [eax + ebx], cl
movsx edx, byte [ebx]
test edx, edx
je 0x10051c8f
push edi
lea edi, [ebx + 1]
nop
mov ecx, esi
lea edi, [edi + 1]
shl ecx, 5
mov eax, esi
add ecx, edx
shr eax, 2
movsx edx, byte [edi - 1]
add eax, ecx
xor esi, eax
test edx, edx
jne 0x10051c70
mov eax, dword [ebp - 4]
pop edi
push esi
mov edx, eax
mov ecx, ebx
call fcn.10051a80
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005b880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [edi + 8], 0
je 0x1005b8c0
cmp esi, dword [edi]
jne 0x1005b8bb
cmp dword [edi + 4], ebx
je 0x1005b8bb
push ecx
mov dword [edi + 4], ebx
call fcn.1005b560
jmp 0x1005ba3e
call fcn.1005b660
lea eax, [ebp - 0x210]
mov dword [edi], esi
push eax
push 0x40
push 0xe
push esi
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005b8f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov cl, byte [eax]
cmp cl, 0xe9
je 0x1005b902
cmp cl, 0xe8
jne 0x1005ba25
mov esi, dword [eax + 1]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esi, eax
push 0x1c
lea eax, [ebp - 0x22c]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1005b936
cmp dword [ebp - 0x21c], 0x1000
jne 0x1005b936
mov esi, dword [ebp - 0x228]
push 0x103
lea eax, [ebp - 0x108]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetMappedFileNameA]
test eax, eax
lea eax, [ebp - 0x108]
je 0x1005b95e
mov dword [ebp - 0x230], eax
jmp 0x1005b981
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
lea ecx, [ebp - 0x108]
mov eax, str.unknown
cmove ecx, eax
mov dword [ebp - 0x230], ecx
mov esi, dword [edi]
call ebx
push 0x1c
lea ecx, [ebp - 0x22c]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1005b9ac
cmp dword [ebp - 0x21c], 0x1000
mov esi, dword [ebp - 0x228]
je 0x1005b9ae
mov esi, dword [edi]
push 0x103
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetMappedFileNameA]
test eax, eax
je 0x1005b9d0
lea esi, [ebp - 0x20c]
jmp 0x1005b9f3
push 0x103
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
lea esi, [ebp - 0x20c]
mov eax, str.unknown
cmove esi, eax
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x1005ba06
lea esi, [eax + 1]
mov ecx, dword [0x1010f088]
test ecx, ecx
je 0x1005ba25
push dword [ebp - 0x230]
mov eax, dword [ecx]
push esi
push str.WARNING:_Another_hook_is_already_present_while_trying_to_hook__s__hook_target_is__s._If_you_experience_crashes__try_disabling_the_other_hooking_application._n
push ecx
call dword [eax + 0x1c]
add esp, 0x10
mov ecx, dword [edi]
movq xmm0, qword [ecx]
movq qword [edi + 9], xmm0
mov eax, dword [ecx + 8]
mov dword [edi + 0x11], eax
mov ax, word [ecx + 0xc]
mov word [edi + 0x15], ax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 8
Function at 0x1006ec40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0cad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [0x1013344c], 1
lea edi, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006ec80
mov ecx, 0x7fffffff
sub eax, edi
sub ecx, dword [0x1010d72c]
cmp ecx, eax
jb 0x1006ed97
cmp dword [0x1010d730], 0x10
mov ecx, 0x1010d71c
push eax
cmovae ecx, dword [0x1010d71c]
push edx
push dword [0x1010d72c]
push ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.1006ff20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.100616b0
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.10062a70
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.10064510
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.10069120
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.1006aaa0
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.100559a0
call fcn.1006bfa0
mov ecx, dword [ebp - 0x18]
add esp, 0x18
cmp ecx, 0x10
jb 0x1006ed7b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ed71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006ed71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100bd366
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
call fcn.100442e0
int3
Function at 0x1006f830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100d1928
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [ebp - 8]
add esp, 0xc
test ebx, ebx
jne 0x1006f87d
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1006f896
mov esi, 0xfffffffd
jmp 0x1006f90b
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x1006f88f
jne 0x1006f8ac
xor esi, esi
jmp 0x1006f90b
lea eax, [esi + 1]
push 0x100d17c6
push eax
call fcn.100bd801
mov edi, eax
add esp, 8
test edi, edi
jne 0x1006f8c8
lea esi, [eax - 2]
jmp 0x1006f90b
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x1006f8f9
push edi
call fcn.100bd7fc
mov esi, 0xfffffffd
jmp 0x1006f908
push eax
push edi
call fcn.10070990
push edi
mov esi, eax
call fcn.100bd7fc
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 4