joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001537
Capabilities:
Parse pe header

Disassembly:
jmp 0x10047040
mov edx, dword [esp + 4]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x10047099
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10047099
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
test byte [eax + 0x24], 0x20
jne 0x10047079
nop word [eax + eax]
add eax, 0x28
test byte [eax + 0x24], 0x20
je 0x10047070
mov ecx, dword [esp + 8]
add edx, dword [eax + 0xc]
mov dword [ecx], edx
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0xc]
and ecx, 0xfffff000
add ecx, 0x1000
add ecx, edx
mov dword [eax], ecx
xor eax, eax
ret
Function at 0x10001b0e
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x10046f30
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10ea371c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10ea33bc]
cmp eax, dword [ecx + 0xeb68]
jg 0x10046f78
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x10ea2e18
nop
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x10046f74
add esi, 4
cmp esi, 0x10ea32c8
jne 0x10046f60
pop edi
pop esi
pop ebx
ret
push 0x10ea33bc
call fcn.1000566e
add esp, 4
cmp dword [0x10ea33bc], 0xffffffff
jne 0x10046f4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100e4478
push 0x4b0
push 0x10ea2e18
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
push 0x10ea33bc
mov dword [0x10ea33b8], eax
call fcn.100056fa
add esp, 4
jmp 0x10046f4c

Function at 0x1000272f
Capabilities:
Parse pe header

Disassembly:
jmp 0x10046fe0
mov edx, dword [esp + 4]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x1004701f
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1004701f
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1004701f
mov edx, dword [esp + 8]
cmp dword [eax], edx
je 0x10047021
add eax, 4
cmp eax, ecx
jb 0x10047014
xor eax, eax
ret

Function at 0x10002987
Capabilities:
Create thread

Disassembly:
jmp 0x10013440
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x10012df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0
mov dword [esi + 0x1f4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1f8], eax
mov al, 1
pop esi
ret

Function at 0x1000336e
Capabilities:
Terminate process

Disassembly:
jmp 0x1005dcad
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1005dcbe
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.100053a8
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10003472
Capabilities:
Query environment variable

Disassembly:
jmp 0x100a42b8
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a42c9
pop esi
ret
push ebx
push edi
push esi
call fcn.100a419f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10003c83
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a42f1
push ebx
push esi
push edi
call fcn.100051d2
add esp, 0xc
push 0
call fcn.10005bf0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1000394a
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x10049290
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0xcccc
push dword [esp + 0x18]
call fcn.100048e5
add esp, 0x18
test eax, eax
je 0x100492bb
inc eax
cmp byte [eax], 0xcc
je 0x100492b5
ret
Function at 0x10003a53
Capabilities:
Write file on windows

Disassembly:
jmp 0x10011320
sub esp, 0x214
mov eax, dword [0x100e2fc0]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0xf
push 0
movups xmmword [esp + 8], xmm0
push eax
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
call fcn.10002e87
push 0x1f3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
push 0x1f4
push eax
call fcn.100027ac
mov ecx, dword [esp + 0x30]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x100113b7
mov edx, dword [esp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100113ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001141a
push ecx
push edx
call fcn.1000193d
add esp, 8
lea eax, [esp + 0x21c]
push eax
push 0
push dword [esp + 0x220]
lea eax, [esp + 0x28]
push 0x1f4
push eax
call fcn.100052d1
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.10003639
add esp, 0x1c
lea eax, [esp + 0x18]
push 0
push 0x100e4478
push 0x1f8
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10002dc9
add esp, 0x214
ret
call fcn.100043db
int3

Function at 0x1000411a
Capabilities:
Write file on windows

Disassembly:
jmp 0x10011c40
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
js 0x10011c51
cmp esi, 0xc330
jbe 0x10011c67
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
push str.Textractor:_something_went_very_wrong__invalid_length__d_at_hook_address__I64d_
call fcn.10003a53
add esp, 0x10
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x20]
movups xmm0, xmmword [esp + 8]
push 0
push 0x100e4478
movups xmmword [ecx], xmm0
push eax
movups xmm0, xmmword [esp + 0x24]
push ecx
movups xmmword [ecx + 0x10], xmm0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
ret
Function at 0x10004458
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x1002c260
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10ea371c]
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10ea2628]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, dword [ecx + 0xeb68]
jg 0x1002c362
push str.mono_assembly_get_image
push esi
call edi
push str.mono_image_get_name
push esi
mov dword [0x10ea1f58], eax
call edi
push str.mono_class_from_name
push esi
mov dword [0x10ea1f5c], eax
call edi
push str.mono_class_get_property_from_name
push esi
mov dword [0x10ea1f60], eax
call edi
push str.mono_property_get_set_method
push esi
mov dword [0x10ea1f64], eax
call edi
push str.mono_compile_method
push esi
mov dword [0x10ea1f68], eax
call edi
push str.mono_get_root_domain
push esi
mov dword [0x10ea1f6c], eax
call edi
push str.mono_thread_attach
push esi
mov dword [0x10ea1f70], eax
call edi
cmp dword [0x10ea2624], 0
pop edi
mov dword [0x10ea1f74], eax
pop esi
je 0x1002c35f
cmp dword [0x10ea1f58], 0
je 0x1002c35f
cmp dword [0x10ea1f5c], 0
je 0x1002c35f
cmp dword [0x10ea1f60], 0
je 0x1002c35f
cmp dword [0x10ea1f64], 0
je 0x1002c35f
cmp dword [0x10ea1f68], 0
je 0x1002c35f
cmp dword [0x10ea1f6c], 0
je 0x1002c35f
cmp dword [0x10ea1f70], 0
je 0x1002c35f
test eax, eax
je 0x1002c35f
push str.Mono_X86:_If_the_following_hooks_dont_work__create_the_TextractorConfig.txt_file_via_the__Configure_game__button_to_activate_the_brute_force_mode
call fcn.10003a53
push 0
push 0x1000314d
call dword [0x10ea2624]
add esp, 0xc
mov al, 1
ret
xor al, al
ret
push 0x10ea2628
call fcn.1000566e
add esp, 4
cmp dword [0x10ea2628], 0xffffffff
jne 0x1002c28c
push str.mono_assembly_foreach
push esi
call edi
push 0x10ea2628
mov dword [0x10ea2624], eax
call fcn.100056fa
add esp, 4
jmp 0x1002c28c

Function at 0x10004aed
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1001b2f0
sub esp, 0x40
push ebx
push esi
lea eax, [esp + 0x24]
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x1001b3b8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x1001b32c
add esi, dword [esp + 0x2c]
jmp 0x1001b3ad
mov eax, dword [esp + 0x18]
cmp eax, 0x1f00000
jne 0x1001b3ab
cmp dword [esp + 0x20], 4
jne 0x1001b3ab
cmp dword [esp + 0x24], 0x40000
jne 0x1001b3ab
push str.Textractor:_PPSSPP_memory_found:_searching_for_hooks_should_yield_working_hook_codes
mov bl, 1
call fcn.10003a53
lea eax, [esi - 0x8000000]
mov dword [0x100e2060], 6
mov dword [0x100e2074], eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [0x100e2040], 0x360ad83
mov word [0x100e2044], 0
mov dword [0x100e2064], 0
mov dword [0x100e2078], 0
mov dword [0x100e207c], 0xffffffff
mov dword [0x100e229c], 0x10016910
add esi, eax
cmp esi, dword [esp + 0x34]
jb 0x1001b315
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x40
ret
Function at 0x10005056
Capabilities:
Parse pe header

Disassembly:
jmp 0x10047540
sub esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x100475c4
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x100475c4
mov ecx, dword [ecx + eax + 0x88]
test ecx, ecx
je 0x100475c4
add eax, ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
push ecx
push eax
call fcn.100049c6
add esp, 0xc
test eax, eax
je 0x100475c4
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10047593
sub eax, esi
sar eax, 1
add eax, eax
push eax
mov eax, dword [esp + 0xc]
push edx
add eax, 0xfffffffc
push eax
push dword [esp + 0x10]
call fcn.10003c06
add esp, 0x10
test eax, eax
setne al
pop esi
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x10005155
Capabilities:
Write file on windows

Disassembly:
jmp 0x10011690
mov eax, dword [esp + 0xc]
sub esp, 0x10
test eax, eax
je 0x100116aa
push eax
push dword [0x100e2b24]
call fcn.10003a53
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0x100e4478
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push 0x10
push eax
push dword [section..data]
mov dword [esp + 0x14], 3
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x10
ret
Function at 0x10005984
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x10013280
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x184]
test al, 0x40
je 0x100132c3
lea ecx, [esi + 0x1c]
test al, al
jns 0x1001339f
lea eax, [esi + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001338c
add dword [esi + 0x1e8], eax
adc dword [esi + 0x1ec], 0
push edi
push 0x100e4478
push 0x40
push 0xa
push dword [esi + 0x1e8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
lea edi, [esi + 0x1fd]
push edi
push dword [esi + 0x1e8]
call fcn.10002f4a
test eax, eax
je 0x10013328
cmp eax, 3
jne 0x100133cf
push 9
push dword [esi + 0x1ec]
push dword [esi + 0x1e8]
call fcn.1000259a
add esp, 0xc
lea eax, [esp + 8]
push eax
push edi
push dword [esi + 0x1e8]
call fcn.10002f4a
test eax, eax
jne 0x100132f4
mov eax, dword [0x100e202c]
mov ecx, dword [esp + 8]
mov dword [eax + 0x100e200c], esi
mov eax, dword [0x100e2030]
mov dword [eax + 0x100e200c], 0x10003f94
mov eax, dword [0x100e2034]
mov dword [eax + 0x100e200c], ecx
movups xmm0, xmmword [0x100e200c]
push dword [esi + 0x1e8]
movups xmmword [edi], xmm0
movq xmm0, qword [0x100e201c]
movq qword [edi + 0x10], xmm0
mov eax, dword [0x100e2024]
mov dword [edi + 0x18], eax
mov al, byte [0x100e2028]
mov byte [edi + 0x1c], al
call fcn.10002f90
test eax, eax
pop edi
sete al
pop esi
pop ecx
ret
push dword [0x100e2b4c]
call fcn.10003a53
add esp, 4
xor al, al
pop esi
pop ecx
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100133bc
cdq
add dword [esi + 0x1e8], eax
adc dword [esi + 0x1ec], edx
jmp 0x100132c3
push dword [0x100e2b50]
call fcn.10003a53
add esp, 4
xor al, al
pop esi
pop ecx
ret
push eax
call fcn.10005f6a
push eax
call fcn.10003a53
add esp, 4
xor al, al
pop edi
pop esi
pop ecx
ret
Function at 0x100060f0
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x10048f30
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0xcccc
push dword [esp + 0x18]
call fcn.100042aa
add esp, 0x18
test eax, eax
je 0x10048f5b
inc eax
cmp byte [eax], 0xcc
je 0x10048f55
ret

Function at 0x10006136
Capabilities:
Write file on windows

Disassembly:
jmp 0x100115c0
sub esp, 0x5dc
mov eax, dword [0x100e2fc0]
xor eax, esp
mov dword [esp + 0x5d8], eax
push ebx
mov ebx, dword [esp + 0x7cc]
lea eax, [esp + 0x1f4]
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 2
lea esi, [esp + 0x5f0]
mov ecx, 0x7a
lea edi, [esp + 0x18]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10002e87
push 0x1f3
push ebx
lea eax, [esp + 0x210]
push 0x1f4
push eax
call fcn.1000546b
add esp, 0x1c
lea eax, [esp + 0xc]
push 0
push 0x100e4478
push 0x5d8
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x5e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002dc9
add esp, 0x5dc
ret

Function at 0x10013a90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e8
push esi
push edi
push 0x170
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10002e87
push 0x5a
lea eax, [esp + 0x1a6]
mov dword [esp + 0x1a0], 0
push 0
push eax
call fcn.10002e87
mov eax, dword [esp + 0x20c]
mov dword [esp + 0x20], eax
mov eax, 1
push str.vnreng:_INSERT_KiriKiriZ
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xfffffff4
mov dword [esp + 0x34], 0xfffffff4
mov dword [esp + 0x30], 0x14
mov word [esp + 0x1b0], ax
mov dword [esp + 0x1a8], 0x3a
call fcn.10003a53
add esp, 0x1c
lea esi, [esp + 8]
mov ecx, 0x7a
push 0x8000
push str.KiriKiriZ
sub esp, 0x1e8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002a90
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:KiriKiriZ:_disable_GDI_hooks
jmp fcn.10003a53
Function at 0x1001a0e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x100e2fc0]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
push 0
push 0x80
push 3
push 0
push 1
push 1
push str.RIO.INI
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001a193
mov ecx, dword [0x10ea2680]
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001a130
sub edx, esi
sar edx, 1
cmp edx, 3
jbe 0x1001a1f1
lea esi, [esp + 0x4c]
sub esi, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x1001a150
push 0
push 0x80
push 3
push 0
push 1
push 1
lea eax, [esp + 0x64]
mov dword [esp + edx*2 + 0x60], 0x69006e
mov ecx, 0x69
push eax
mov word [esp + edx*2 + 0x62], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a1f1
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10002e87
add esp, 0xc
lea eax, [esp + 8]
push 0
push eax
push 0x40
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc]
mov byte [esp + 0x4b], 0
push 0x100c6764
push eax
call fcn.10004043
add esp, 8
test eax, eax
je 0x1001a1f1
lea ecx, [esp + 4]
add eax, 3
push ecx
push 0x100c679c
push eax
call fcn.100055a6
add esp, 0xc
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.10002dc9
add esp, 0x254
ret

Function at 0x1001e080
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e8
push esi
mov esi, dword [esp + 0x1f0]
push edi
test esi, esi
je 0x1001e0aa
lea edx, [esi + 0x100]
mov ecx, esi
cmp esi, edx
jae 0x1001e0aa
nop
cmp byte [ecx], 0xe8
je 0x1001e0bf
inc ecx
cmp ecx, edx
jb 0x1001e0a0
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:AliceHook1:_failed
jmp fcn.10003a53
mov edi, dword [ecx + 1]
add ecx, 5
push esi
add edi, ecx
call fcn.1000532b
add esp, 4
cmp eax, 1
je 0x1001e0e5
add esi, eax
push esi
call fcn.1000532b
add esp, 4
cmp eax, 1
jne 0x1001e0d5
push 0x1e8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.10002e87
movzx ecx, byte [esi]
mov eax, 0xfffffff8
and ecx, 0xf
mov dword [esp + 0x14], edi
shl ecx, 2
sub eax, ecx
mov dword [esp + 0x18], 0
push str.vnreng:_INSERT_AliceHook1
mov dword [esp + 0x20], 0xfffffff8
mov dword [esp + 0x28], eax
mov dword [esp + 0x19c], 0x11
call fcn.10003a53
add esp, 0x10
lea esi, [esp + 8]
mov ecx, 0x7a
push 0x8000
push str.System40
sub esp, 0x1e8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002a90
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
ret
Function at 0x1001e290
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e8
push esi
mov esi, dword [esp + 0x1f0]
push edi
test esi, esi
jne 0x1001e2b8
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:AliceHook2:_failed
jmp fcn.10003a53
push 0x174
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10002e87
push 0x5a
lea eax, [esp + 0x1a6]
mov dword [esp + 0x1a0], 0
push 0
push eax
call fcn.10002e87
mov eax, 1
mov dword [esp + 0x20], esi
push str.vnreng:_INSERT_AliceHook2
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xfffffff8
mov dword [esp + 0x30], 8
mov word [esp + 0x1b0], ax
mov dword [esp + 0x1a8], 8
call fcn.10003a53
add esp, 0x1c
lea esi, [esp + 8]
mov ecx, 0x7a
push 0x8000
push str.System40
sub esp, 0x1e8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002a90
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
ret
Function at 0x10040330
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x238
push 0xffffffffffffffff
push 0x100c0aed
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e2fc0]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 0x10ea2688
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x10ea2688
call fcn.1000275c
push 0x103
add eax, 2
push 0x10ea2688
mov dword [0x10ea2680], eax
lea eax, [ebp]
push 0x119
push eax
call fcn.1000546b
mov esi, dword [str.TextractorConfig.txt]
lea eax, [ebp]
push 0x5c
push eax
call fcn.1000275c
push esi
add eax, 2
push 0x15
push eax
call fcn.10003625
add esp, 0x2c
lea eax, [ebp]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100404b1
cmp esi, 0xffffffff
je 0x100404b1
push 0
push 0x100e4478
push 0x3e7
push 0x10ea2890
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 7
push str.engine:
push 0x10ea2890
call fcn.10002928
add esp, 0xc
test eax, eax
jne 0x10040473
push 0xa
push 0x10ea2890
call fcn.10001e10
add esp, 8
test eax, eax
je 0x1004044f
mov dword [0x100e2620], eax
mov byte [eax], 0
inc dword [0x100e2620]
push 0x10ea2897
call fcn.10003986
push eax
push str.Textractor:_Engine___s
mov dword [0x100e28c0], eax
call fcn.10003a53
mov eax, dword [0x100e2620]
add esp, 0xc
jmp 0x1004047d
mov eax, 0x10ea2890
mov dword [0x100e2620], eax
cmp byte [eax], 0
je 0x100404a7
push str.https:__
push 0x10ea2890
call fcn.10004043
add esp, 8
test eax, eax
jne 0x100404a7
push str.Textractor:_game_configuration_loaded
call fcn.10003a53
add esp, 4
jmp 0x100404b1
mov dword [0x100e2620], 0x100c5117
mov dword [ebp - 4], 1
test esi, esi
je 0x100404c8
cmp esi, 0xffffffff
je 0x100404c8
push esi
call dword [0x100c4fb4]
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, eax
mov dword [0x10ea267c], ecx
mov dword [0x10ea2678], ecx
nop dword [eax + eax]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add ecx, edx
cmp dword [ebp - 0x18], 1
mov dword [0x10ea267c], ecx
ja 0x100404f0
mov eax, dword [0x10ea2678]
sub ecx, edx
push ecx
push eax
push str.Textractor:_hijacking_process_located_from_0x_p_to_0x_p
mov dword [0x10ea267c], ecx
mov dword [0x100e2078], eax
mov dword [0x100e207c], ecx
call fcn.10003a53
push str.none
push dword [0x100e28c0]
call fcn.10004043
add esp, 0x14
test eax, eax
jne 0x1004054d
call fcn.10004804
mov eax, dword [0x10ea2678]
add eax, 0x40000
cmp eax, dword [0x10ea267c]
jbe 0x1004056c
push str.Textractor:_WARNING_injected_process_is_very_small__possibly_a_dummy_
call fcn.10003a53
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.10002dc9
lea esp, [ebp + 0x238]
pop ebp
ret
Function at 0x1004a350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push esi
imul esi, dword [esp + 0xc], 0x2c
push edi
add esi, dword [0x10ea4d50]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004a392
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1004a3b8
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 0x1004a3d9
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004a3d9
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1004a3d3
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1004a3d9
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
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 byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1004a4b0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x100e2fc0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, dword [esp + 0x2c]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004a59f
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1004a598
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
nop dword [eax + eax]
cmp dword [esp + 0x10], 0x10
jb 0x1004a57b
call ebp
cmp dword [esp + 0x1c], eax
jne 0x1004a57b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x1004a57b
mov eax, dword [esi]
test eax, eax
jne 0x1004a545
push 0x200
push eax
mov dword [esi + 4], 0x80
push dword [0x10ea33e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1004a596
lea edi, [esi + 8]
jmp 0x1004a570
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], ecx
jb 0x1004a570
shl ecx, 3
push ecx
push eax
push 0
push dword [0x10ea33e4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1004a596
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
mov dword [eax + edx*4], ecx
inc dword [edi]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1004a500
pop edi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.10002dc9
add esp, 0x20
ret