joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100058b7
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x10012cc0
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x184]
test al, 0x40
je 0x10012d03
lea ecx, [esi + 0x1c]
test al, al
jns 0x10012ddf
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 0x10012dcc
add dword [esi + 0x1e8], eax
adc dword [esi + 0x1ec], 0
push edi
push 0x100dd4f8
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.10002f04
test eax, eax
je 0x10012d68
cmp eax, 3
jne 0x10012e0f
push 9
push dword [esi + 0x1ec]
push dword [esi + 0x1e8]
call fcn.10002540
add esp, 0xc
lea eax, [esp + 8]
push eax
push edi
push dword [esi + 0x1e8]
call fcn.10002f04
test eax, eax
jne 0x10012d34
mov eax, dword [0x100db02c]
mov ecx, dword [esp + 8]
mov dword [eax + 0x100db00c], esi
mov eax, dword [0x100db030]
mov dword [eax + 0x100db00c], 0x10003f03
mov eax, dword [0x100db034]
mov dword [eax + 0x100db00c], ecx
movups xmm0, xmmword [0x100db00c]
push dword [esi + 0x1e8]
movups xmmword [edi], xmm0
movq xmm0, qword [0x100db01c]
movq qword [edi + 0x10], xmm0
mov eax, dword [0x100db024]
mov dword [edi + 0x18], eax
mov al, byte [0x100db028]
mov byte [edi + 0x1c], al
call fcn.10002f4f
test eax, eax
pop edi
sete al
pop esi
pop ecx
ret
push dword [0x100dbaa0]
call fcn.100039ef
add esp, 4
xor al, al
pop esi
pop ecx
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012dfc
cdq
add dword [esi + 0x1e8], eax
adc dword [esi + 0x1ec], edx
jmp 0x10012d03
push dword [0x100dbaa4]
call fcn.100039ef
add esp, 4
xor al, al
pop esi
pop ecx
ret
push eax
call fcn.10005e93
push eax
call fcn.100039ef
add esp, 4
xor al, al
pop edi
pop esi
pop ecx
ret
Function at 0x1000601e
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x10044a00
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0xcccc
push dword [esp + 0x18]
call fcn.10004219
add esp, 0x18
test eax, eax
je 0x10044a2b
inc eax
cmp byte [eax], 0xcc
je 0x10044a25
ret

Function at 0x1000605a
Capabilities:
Write file on windows

Disassembly:
jmp 0x10010d00
sub esp, 0x5dc
mov eax, dword [0x100dbeb4]
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.10002e4b
push 0x1f3
push ebx
lea eax, [esp + 0x210]
push 0x1f4
push eax
call fcn.100053a8
add esp, 0x1c
lea eax, [esp + 0xc]
push 0
push 0x100dd4f8
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.10002d8d
add esp, 0x5dc
ret
Function at 0x1001a6e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x100dbeb4]
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 0x1001a793
mov ecx, dword [0x10e9bad0]
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001a730
sub edx, esi
sar edx, 1
cmp edx, 3
jbe 0x1001a7f1
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 0x1001a750
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 0x1001a7f1
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10002e4b
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 0x100bf6a4
push eax
call fcn.10003fb2
add esp, 8
test eax, eax
je 0x1001a7f1
lea ecx, [esp + 4]
add eax, 3
push ecx
push 0x100bf6a8
push eax
call fcn.100054e3
add esp, 0xc
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.10002d8d
add esp, 0x254
ret

Function at 0x1001b450
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.10002e4b
push 0x5a
lea eax, [esp + 0x1a6]
mov dword [esp + 0x1a0], 0
push 0
push eax
call fcn.10002e4b
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.100039ef
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.10002a45
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:KiriKiriZ:_disable_GDI_hooks
jmp fcn.100039ef
Function at 0x1001d1c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e8
push esi
mov esi, dword [esp + 0x1f0]
push edi
test esi, esi
je 0x1001d1ea
lea edx, [esi + 0x100]
mov ecx, esi
cmp esi, edx
jae 0x1001d1ea
nop
cmp byte [ecx], 0xe8
je 0x1001d1ff
inc ecx
cmp ecx, edx
jb 0x1001d1e0
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:AliceHook1:_failed
jmp fcn.100039ef
lea edi, [ecx + 5]
add edi, dword [ecx + 1]
push esi
call fcn.1000526d
add esp, 4
cmp eax, 1
je 0x1001d223
add esi, eax
push esi
call fcn.1000526d
add esp, 4
cmp eax, 1
jne 0x1001d213
push 0x1e8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.10002e4b
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.100039ef
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.10002a45
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
ret

Function at 0x1001d2e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e8
push esi
mov esi, dword [esp + 0x1f0]
push edi
test esi, esi
jne 0x1001d308
pop edi
pop esi
add esp, 0x1e8
mov dword [esp + 4], str.vnreng:AliceHook2:_failed
jmp fcn.100039ef
push 0x174
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10002e4b
push 0x5a
lea eax, [esp + 0x1a6]
mov dword [esp + 0x1a0], 0
push 0
push eax
call fcn.10002e4b
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.100039ef
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.10002a45
add esp, 0x1f0
pop edi
pop esi
add esp, 0x1e8
ret
Function at 0x1003c160
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x238
push 0xffffffffffffffff
push 0x100ba45d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100dbeb4]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 0x10e9bad8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x10e9bad8
call fcn.1000270c
push 0x103
add eax, 2
push 0x10e9bad8
mov dword [0x10e9bad0], eax
lea eax, [ebp]
push 0x119
push eax
call fcn.100053a8
mov esi, dword [str.TextractorConfig.txt]
lea eax, [ebp]
push 0x5c
push eax
call fcn.1000270c
push esi
add eax, 2
push 0x15
push eax
call fcn.100035cb
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 0x1003c2e4
cmp esi, 0xffffffff
je 0x1003c2e4
push 0
push 0x100dd4f8
push 0x3e7
push 0x10e9b6e0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 7
push str.Engine:
push 0x10e9b6e0
call fcn.10005f3d
add esp, 0xc
test eax, eax
jne 0x1003c2a6
push 0xa
push 0x10e9b6e0
call fcn.10001ded
add esp, 8
mov dword [0x100db620], eax
test eax, eax
je 0x1003c27f
mov byte [eax], 0
inc dword [0x100db620]
push 0x10e9b6e7
push str.Textractor:_Engine___s
mov dword [0x100db818], 0x10e9b6e7
call fcn.100039ef
mov eax, dword [0x100db620]
add esp, 8
test eax, eax
je 0x1003c2b5
jmp 0x1003c2b0
mov eax, 0x10e9b6e0
mov dword [0x100db620], eax
cmp byte [eax], 0
je 0x1003c2da
push str.https:__
push 0x10e9b6e0
call fcn.10003fb2
add esp, 8
test eax, eax
jne 0x1003c2da
push str.Textractor:_game_configuration_loaded
call fcn.100039ef
add esp, 4
jmp 0x1003c2e4
mov dword [0x100db620], 0
mov dword [ebp - 4], 1
test esi, esi
je 0x1003c2fb
cmp esi, 0xffffffff
je 0x1003c2fb
push esi
call dword [0x100bdfc4]
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 [0x10e9bacc], ecx
mov dword [0x10e9bac8], ecx
nop
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 [0x10e9bacc], ecx
ja 0x1003c320
mov eax, dword [0x10e9bac8]
sub ecx, edx
push ecx
push eax
push str.Textractor:_hijacking_process_located_from_0x_p_to_0x_p
mov dword [0x10e9bacc], ecx
mov dword [0x100db078], eax
mov dword [0x100db07c], ecx
call fcn.100039ef
add esp, 0xc
call fcn.10004778
mov eax, dword [0x10e9bac8]
add eax, 0x40000
cmp eax, dword [0x10e9bacc]
jbe 0x1003c388
push str.Textractor:_WARNING_injected_process_is_very_small__possibly_a_dummy_
call fcn.100039ef
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.10002d8d
lea esp, [ebp + 0x238]
pop ebp
ret
Function at 0x10045e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push esi
imul esi, dword [esp + 0xc], 0x2c
push edi
add esi, dword [0x10e9de80]
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 0x10045e62
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10045e88
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 0x10045ea9
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10045ea9
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10045ea3
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10045ea9
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 al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebp
ret

Function at 0x10045f80
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x100dbeb4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [esp + 0x28]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1004606d
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10046066
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x10], 0x10
jb 0x10046049
call ebx
cmp dword [esp + 0x1c], eax
jne 0x10046049
call ebp
cmp dword [esp + 0x18], eax
je 0x10046049
mov edx, dword [esi]
test edx, edx
jne 0x10046011
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x10e9c44c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10046064
jmp 0x1004603c
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004603c
shl eax, 3
push eax
push edx
push 0
push dword [0x10e9c44c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10046064
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 [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10045fd1
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.10002d8d
add esp, 0x20
ret
Function at 0x100461b0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10045f80
add esp, 4
cmp dword [esi], 0
je 0x1004621f
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1004621e
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
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 0x10046216
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
push dword [esp + 0x1c]
push ebx
call fcn.10046940
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100461e5
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x10046b60
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10046bb9
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10046ba9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
nop dword [eax + eax]
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 0x10046b9f
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10046b80
mov eax, dword [ebx]
pop edi
pop ebp
push eax
push 0
push dword [0x10e9c44c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10046c90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10e9de68]
test eax, eax
je 0x10046cac
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10046d06
mov eax, dword [eax]
test eax, eax
jne 0x10046ca0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x10046d04
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, 0x20
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10046ce0
mov eax, dword [0x10e9de68]
mov dword [ecx], eax
mov dword [0x10e9de68], ecx
pop esi
mov eax, ecx
ret

Function at 0x10047190
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x100471a5
cmp cl, 0x90
je 0x100471a5
cmp cl, 0xcc
jne 0x100471c3
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x100471bc
cmp byte [eax + edx], cl
jne 0x100471c3
inc eax
cmp eax, esi
jb 0x100471b2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1009d1f9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100dbeb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1009d244
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1009d704
test al, al
jne 0x1009d23e
sub edx, 2
cmp edx, edi
jne 0x1009d224
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1009d266
lea eax, [edi + 2]
cmp edx, eax
je 0x1009d266
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1009cdf2
add esp, 0x10
jmp 0x1009d360
push esi
lea ecx, [ebp - 0x255]
call fcn.1009d704
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009d2a9
push dword [ebp - 0x25c]
jmp 0x1009d256
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1009d2e6
cmp word [ebp - 0x226], 0
je 0x1009d307
cmp word [ebp - 0x226], ax
jne 0x1009d2e6
cmp word [ebp - 0x224], 0
je 0x1009d307
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1009cdf2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1009d353
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1009d2c0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1009d33b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1009d360
push 0x1009c6d8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10004f84
add esp, 0x10
jmp 0x1009d330
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002d8d
leave
ret
Function at 0x100adb62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10e9d2e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100adba2
cmp byte [ebx], 0xa
jne 0x100adba2
or byte [eax + edi + 0x28], 4
jmp 0x100adba7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100adca5
mov al, byte [edx]
cmp al, 0x1a
je 0x100adc87
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100adbd6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100adbfb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100adc05
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100adbb8
jmp 0x100adca5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100adc82
cmp dword [ebp - 0xc], 0
je 0x100adc82
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10e9d2e0]
test byte [eax + edi + 0x28], 0x48
je 0x100adc5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100adc47
mov byte [esi], dl
jmp 0x100adc58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10e9d2e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100adca5
cmp byte [ebp - 1], 0xa
jne 0x100adc6b
cmp esi, ebx
jne 0x100adc6b
mov byte [esi], 0xa
jmp 0x100adca4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10001870
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100adca5
mov byte [esi], 0xd
jmp 0x100adca4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10e9d2e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100adca1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100adca5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100add01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10e9d2e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100add44
cmp word [esi], dx
jne 0x100add44
or byte [edi + eax + 0x28], 4
jmp 0x100add49
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100ade82
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100ade62
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100add8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100addc1
cmp eax, edx
jae 0x100addcd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100add63
jmp 0x100ade82
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ade5e
cmp dword [ebp - 0x14], 0
je 0x100ade5e
mov eax, dword [ebx*4 + 0x10e9d2e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100ade36
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100ade7c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10e9d2e0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10e9d2e0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10e9d2e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100ade7f
pop ebx
cmp word [ebp - 4], bx
jne 0x100ade47
cmp esi, dword [ebp + 0xc]
jne 0x100ade47
mov word [esi], bx
jmp 0x100ade7f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10001870
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100ade82
push 0xd
jmp 0x100ade7b
mov ecx, dword [ebx*4 + 0x10e9d2e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ade79
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ade82
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx