joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
fldz
xor eax, eax
fstp dword [esp]
push esi
fldz
xor esi, esi
fstp qword [esp + 8]
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x24], esi
mov word [esp + 4], ax
fld qword [esp + 8]
fsub qword [0x41f348]
mov dword [esp + 0x28], esi
fstp qword [esp + 8]
mov ecx, dword [0x424d78]
mov dword [esp + 4], ecx
fild dword [esp + 4]
fld qword [esp + 8]
fadd qword [0x41f360]
fsubp st(1)
call fcn.0040b210
xor edx, edx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x6c]
mov word [esp + 0x56], dx
lea edx, [esp + 0x24]
push edx
push esi
push esi
push 8
push esi
mov dword [0x424d78], eax
push esi
mov eax, 1
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x88]
push esi
push eax
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], 1
mov dword [esp + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x60
ret

Function at 0x401d40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
fldz
push ebx
push ebp
fstp dword [esp + 8]
fldz
push esi
mov esi, dword [esp + 0x20]
fstp qword [esp + 0x10]
push edi
xor eax, eax
mov word [esp + 0x10], ax
push esi
call fcn.0040b343
mov ebx, dword [esp + 0x24]
push esi
mov edi, eax
push ebx
push edi
call fcn.0040b410
fld qword [0x424d30]
mov ecx, dword [0x4278e4]
fsubr qword [0x41f420]
add esp, 0x10
lea ebp, [edi + esi]
mov esi, edi
add ebx, ecx
call fcn.0040b210
mov word [0x423900], ax
fld qword [0x424d30]
fld1
sub ebx, 0x423004
fsub st(1), st(0)
fxch st(1)
fstp qword [0x424d30]
fld qword [esp + 0x14]
fld dword [0x423128]
fsub qword [0x41f418]
fsubp st(1)
fstp qword [esp + 0x14]
cmp edi, ebp
je 0x401e03
fld qword [0x41f410]
fld dword [0x424ae0]
inc esi
fadd st(2)
inc ebx
fstp dword [0x424ae0]
fld dword [0x425f08]
fld dword [0x424ae0]
fsub st(2)
fsubp st(1)
fstp dword [0x425f08]
mov dl, byte [ebx - 1]
xor byte [esi - 1], dl
cmp esi, ebp
jne 0x401dd1
fstp st(1)
mov eax, edi
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4024b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
fldz
push ebx
push esi
fst qword [esp + 0x14]
push edi
fst qword [esp + 0x10]
push 3
fstp qword [esp + 0x1c]
push 0x425da8
call fcn.00401d40
mov ebx, dword [esp + 0x2c]
mov esi, eax
push esi
push ebx
call fcn.0040bb1f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x402587
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld qword [esp + 0x18]
fsub qword [0x41f348]
fstp qword [esp + 0x18]
fld dword [0x425e94]
mov eax, dword [0x425e4c]
mov dword [esp + 0xc], eax
fisub dword [esp + 0xc]
fsub qword [esp + 0x18]
fld qword [esp + 0x18]
mov cx, word [0x425eb0]
fsubr qword [0x41f460]
movsx edx, cx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fsubp st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x40254f
fld qword [esp + 0x10]
fmul qword [0x41f458]
fstp qword [esp + 0x10]
push esi
push ebx
call fcn.0040bb1f
fld qword [esp + 0x18]
fsub qword [0x41f348]
mov edi, eax
add esp, 8
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fadd qword [esp + 0x18]
fsub qword [0x41f450]
fmul dword [0x424878]
fstp dword [0x424878]
test edi, edi
je 0x40259f
push edi
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0040b9d9
push edi
call fcn.0040b7fb
add esp, 0x14
fldz
xor eax, eax
xor ecx, ecx
fstp dword [esp + 0xc]
mov word [esi], ax
push esi
mov word [esp + 0x10], cx
mov byte [esi + 2], al
call fcn.0040b07b
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x403470
Capabilities:
Set registry value

Disassembly:
sub esp, 8
fldz
push ebx
xor eax, eax
mov word [esp + 4], ax
fst dword [esp + 4]
push 0x2e
fstp dword [esp + 8]
push 0x424990
call fcn.00401d40
add esp, 8
lea ecx, [esp + 8]
push ecx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403503
push esi
push edi
push 0x34
push 0x425ebc
call fcn.00401d40
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034c7
sub eax, edi
push eax
push edx
mov edx, dword [esp + 0x18]
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
fldz
xor eax, eax
fstp dword [esp + 0xc]
push 0x34
push eax
push esi
mov word [esp + 0x18], ax
call fcn.0040b190
push esi
call fcn.0040b07b
add esp, 0x10
pop edi
pop esi
fldz
xor ecx, ecx
push 0x2e
fstp dword [esp + 8]
push ecx
mov word [esp + 0xc], cx
push ebx
call fcn.0040b190
push ebx
call fcn.0040b07b
mov edx, dword [0x42315c]
mov eax, dword [esp + 0x18]
imul edx, edx, 0x858f0f45
add esp, 0x10
push eax
mov dword [0x42315c], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 8
ret
Function at 0x40b775
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4260d0]
jne 0x40b77f
repz ret
jmp fcn.0040f96b

Function at 0x416794
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410ec9
and dword [ebp - 4], 0
cmp dword [0x428354], 0
mov ebx, eax
jne 0x416845
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4168f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420af0
push edi
call esi
test eax, eax
je 0x4168f6
push eax
call fcn.00410e57
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428354], eax
call esi
push eax
call fcn.00410e57
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428358], eax
call esi
push eax
call fcn.00410e57
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42835c], eax
call esi
push eax
call fcn.00410e57
pop ecx
mov dword [0x428364], eax
test eax, eax
je 0x416845
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410e57
pop ecx
mov dword [0x428360], eax
mov eax, dword [0x428360]
cmp eax, ebx
je 0x41689d
cmp dword [0x428364], ebx
je 0x41689d
push eax
call fcn.00410ed2
push dword [0x428364]
mov esi, eax
call fcn.00410ed2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41689d
test edi, edi
je 0x41689d
call esi
test eax, eax
je 0x416894
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416894
test byte [ebp - 0xc], 1
jne 0x41689d
or dword [ebp + 0x10], 0x200000
jmp 0x4168d6
mov eax, dword [0x428358]
cmp eax, ebx
je 0x4168d6
push eax
call fcn.00410ed2
pop ecx
test eax, eax
je 0x4168d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4168d6
mov eax, dword [0x42835c]
cmp eax, ebx
je 0x4168d6
push eax
call fcn.00410ed2
pop ecx
test eax, eax
je 0x4168d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428354]
call fcn.00410ed2
pop ecx
test eax, eax
je 0x4168f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4168f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x43366ce9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x587a4d9b
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x2e0ecc54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x2e0ecc60
pop ebx
sub ebx, 0x402c60
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + 0x401291]
cmp eax, 0xffffffff
je 0x2e0ecde6
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + 0x4012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + 0x401311]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x2e0eccd1
jmp 0x2e0ecddd
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x2e0ecceb
jmp 0x2e0ecddd
cmp eax, 0xe00000
jbe 0x2e0eccf7
jmp 0x2e0ecddd
or eax, eax
je 0x2e0ecde6
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x2e0ecd95
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x2e0ecd8c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x2e0ecd50
jmp 0x2e0ecd83
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x2e0ecd5c
jmp 0x2e0ecd83
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x2e0ecd69
jmp 0x2e0ecd83
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.2e0ecb2c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c5]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + 0x4012ad]
cmp dword [ebp - 0x14], 0
je 0x2e0ecddd
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + 0x4012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + 0x4012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + 0x4012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + 0x4012ad]
popal
leave
ret 4

Function at 0x2e0ed327
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.2e0ed33a

Function at 0x2e0ed3a1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.2e0ed3b4
Function at 0x10002ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10002ac2
mov dword [ebx], 0
push 0x1002d4e4
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002adb
pop esi
pop ebx
pop ebp
ret
push edi
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10002b93
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10002b93
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10002b93
mov ecx, dword [0x10036018]
lea eax, [edi + 1]
push eax
mov eax, dword [ecx + 0xbc]
inc dword [ecx + 0x310]
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10002b93
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x10002b75
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10036018]
mov ecx, dword [ebp + 8]
push ecx
dec dword [eax + 0x310]
mov eax, dword [eax + 0xc0]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov byte [ecx + edi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10002b8b
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001c610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bd16
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1003600c]
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 + 0xc], 0
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
call fcn.1001c6c0
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 0x1001e540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1003600c]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x10235c6c], 0
push esi
push edi
jne 0x1001e56d
cmp dword [0x10235c74], 0
je 0x1001e56d
call fcn.1001e290
mov edi, dword [0x10036018]
lea eax, [esp + 8]
push eax
push dword [0x10235c7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
movd xmm1, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 4], xmm1
movss dword [edi + 8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x10235c80]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x10235c84]
call fcn.1002b810
mov edx, dword [0x10235c8c]
mov ecx, dword [0x10235c88]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm0
call fcn.1002b810
movss xmm1, dword [esp + 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 [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x10235c80], eax
mov dword [0x10235c84], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xe1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xe2], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xe4], 0
cmp byte [edi + 0x320], 0
mov byte [edi + 0xe3], al
je 0x1001e68b
cvttss2si eax, dword [edi + 0xcc]
mov dword [esp + 0x18], eax
cvttss2si eax, dword [edi + 0xd0]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [0x10235c7c]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [edi + 0xe0], 0
je 0x1001e69c
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10003a90
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret
Function at 0x10027720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10027762
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push dword [ebp + 8]
mov dword [0x102320b8], eax
push sym.firstx.dll_void___stdcall_OnDllAttach_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push dword [ebp + 8]
push 0x100275f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc

Function at 0x100294c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100294ec
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002950e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10029510
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10029595
jg 0x10029525
test esi, esi
je 0x10029595
test ecx, ecx
jl 0x10029578
jg 0x1002952f
test eax, eax
je 0x10029578
cmp edi, ecx
jg 0x10029543
jl 0x10029539
cmp esi, eax
jae 0x10029543
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10029595
jg 0x1002957b
test esi, esi
je 0x10029595
jmp 0x1002957b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10029595
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100295b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x100295dc
jl 0x100295d0
test esi, esi
jne 0x100295dc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100295f5
push eax
push esi
push ecx
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, esi
mov edx, dword [eax]
test edx, edx
je 0x1002962f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1002962f
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x100296b0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10029658
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1002969c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x100296c3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10029670
test edx, edx
je 0x100296b0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10029a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10029a50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10029a80
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10029a80
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10029b56
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10029aa9
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 0x10029ab5
movsx eax, bl
jmp 0x10029aed
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 0x10029b17
sub eax, 1
je 0x10029b17
sub eax, 2
jne 0x10029b56
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.1002a31b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029b35
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 0x10029b56
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10029b56
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
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.1002a31b
mov esp, ebp
pop ebp
ret 4
Function at 0x10029d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10029e2c
cmp byte [esi + 0x3d], 0
je 0x10029e2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10029e1a
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 0x10029de1
sub eax, 1
je 0x10029de5
sub eax, 2
jne 0x10029e1a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029e03
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 0x10029e1a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a31b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002a31b
mov esp, ebp
pop ebp
ret
Function at 0x497432
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x497471
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x497471
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x497471
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x497471
cmp dword [ecx + 0x74], 0xe
jbe 0x497471
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret