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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_LocalLock]
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, dword [eax + 0x24]
sub esp, 4
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x34]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WinExec]
mov eax, dword [0x4090c0]
sub esp, 8
test eax, eax
jne 0x4059d0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x409088]
mov dword [esp], eax
call sym._CloseWindow_4
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4061d0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x4062c0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40634f
cmp al, 9
je 0x406340
cmp al, 0x20
je 0x406340
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp al, 0x5c
je 0x4063a8
cmp al, 0x22
je 0x4063b8
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40634f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x406300
test esi, 1
jne 0x406300
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x406340
cmp al, 0x20
je 0x406340
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40636a
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x406317
and dword [ebp - 0x6c], 1
jne 0x406310
xor esi, 1
jmp 0x406317
Function at 0x100025e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10234d1c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x1000269a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x10234d18], eax
inc ebx
cmp ebx, 0x100
jb 0x10002600
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x100026c6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10234d18]
sub edi, 1
jne 0x100026a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100026f8
nop dword [eax]
cmp cl, 0x23
jne 0x100026df
cmp byte [esi], cl
jne 0x100026df
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10234d18]
test cl, cl
jne 0x100026d0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
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 0x10030430
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 [0x100390a8]
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 [0x100390a8]
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 0x1001c670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f166
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10039040]
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.1001c7d0
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 0x1001e300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x10238cd0], 0
push esi
push edi
jne 0x1001e32d
cmp dword [0x10238cd8], 0
je 0x1001e32d
call fcn.1001e190
mov edi, dword [0x100390a8]
lea eax, [esp + 8]
push eax
push dword [0x10238ce0]
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 [0x10238ce8]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x10238cec]
call fcn.1002ed20
mov edx, dword [0x10238cf4]
mov ecx, dword [0x10238cf0]
movss dword [esp + 0x18], xmm0
call fcn.1002ed20
movss xmm1, dword [esp + 0x18]
divss xmm1, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
movss dword [edi + 0xc], xmm1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x10238ce8], eax
mov dword [0x10238cec], 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 0x1001e443
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 [0x10238ce0]
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 0x1001e454
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10003ab0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret
Function at 0x1001ea00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ecx + 0x428]
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
lea eax, [esi + 1]
push eax
lea eax, [ecx + 0x3e8]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x1001eb8d
cmp esi, 0x10
jb 0x1001eb80
movaps xmm2, xmmword [0x10035610]
mov ecx, esi
and ecx, 0x8000000f
jns 0x1001ea64
dec ecx
or ecx, 0xfffffff0
inc ecx
movaps xmm0, xmmword [0x10035ac0]
mov edx, esi
movups xmm3, xmmword [0x100357b0]
sub edx, ecx
mov esi, 0xfffffffc
sub esi, edi
movaps xmmword [ebp - 0x20], xmm0
mov ecx, 4
mov dword [ebp - 4], edx
sub ecx, edi
lea edx, [edi + 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x20]
nop word [eax + eax]
movd xmm0, eax
pshufd xmm1, xmm0, 0
paddd xmm1, xmm2
movd xmm0, ecx
andps xmm1, xmm3
lea ecx, [esi + edx]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx - 8]
xorps xmm1, xmm0
movd xmm0, ecx
movd dword [edx - 8], xmm1
lea ecx, [eax + 8]
pshufd xmm1, xmm0, 0
add eax, 0x10
movd xmm0, dword [ebp - 0x20]
paddd xmm1, xmm2
andps xmm1, xmm3
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx - 4]
xorps xmm1, xmm0
movd xmm0, ecx
mov ecx, dword [ebp - 8]
movd dword [edx - 4], xmm1
add ecx, edx
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebp - 0x20]
paddd xmm1, xmm2
andps xmm1, xmm3
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx]
xorps xmm1, xmm0
movd xmm0, ecx
mov ecx, dword [ebp - 0x20]
movd dword [edx], xmm1
pshufd xmm1, xmm0, 0
paddd xmm1, xmm2
andps xmm1, xmm3
movd xmm0, ecx
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx + 4]
xorps xmm1, xmm0
movd dword [edx + 4], xmm1
add edx, 0x10
cmp eax, edi
jl 0x1001eaa0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebx + 8]
cmp eax, esi
jge 0x1001eb8d
nop word [eax + eax]
lea edx, [edi + eax]
lea ecx, [eax - 0x57]
inc eax
xor byte [edx], cl
cmp eax, esi
jl 0x1001eb80
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1001fe10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], edx
xor edx, edx
push edi
mov edi, ebx
mov dword [ebp - 8], ecx
shr edi, 0x10
mov ecx, 0xa
mov eax, edi
shr ebx, 8
div ecx
mov dword [ebp + 0x10], ebx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
inc esi
lea eax, [esi + eax*2]
mov ecx, eax
xor ecx, esi
add ecx, 2
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
lea esi, [edx + eax*2]
add edx, 3
lea ecx, [esi + 3]
xor edx, ecx
mov ecx, 3
add edx, 0xa
lea edx, [edx + esi*2]
shr edx, 0x10
xor bl, dl
add bl, 0x10
nop dword [eax + eax]
xor dl, bl
dec ecx
add dl, 0x10
test ecx, ecx
jg 0x1001fe80
mov eax, dword [ebp - 4]
mov ecx, 0x14
xor byte [eax], dl
xor edx, edx
mov eax, edi
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea ecx, [edx + eax*2]
mov eax, ecx
xor eax, edx
inc eax
lea edx, [eax + ecx*2]
mov cl, dl
add dl, dl
xor cl, al
add cl, 2
add dl, cl
mov al, dl
add dl, dl
xor al, cl
mov ecx, 3
add dl, al
add al, 3
lea ebx, [edx + 3]
add dl, 5
add dl, dl
xor bl, al
add bl, dl
mov dl, byte [ebp + 0x10]
xor dl, bl
add dl, 0x10
nop
xor bl, dl
dec ecx
add bl, 0x10
test ecx, ecx
jg 0x1001fee0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x1e
xor byte [eax], bl
mov eax, edi
div ecx
mov ebx, dword [ebp + 0x10]
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea esi, [edx + eax*2]
mov ecx, esi
xor ecx, edx
inc ecx
lea edx, [ecx + esi*2]
mov eax, edx
xor eax, ecx
add eax, 2
lea ecx, [eax + edx*2]
mov edx, ecx
xor edx, eax
lea esi, [edx + ecx*2]
lea eax, [edx + 3]
mov edx, 3
lea ecx, [esi + 3]
xor ecx, eax
lea eax, [esi + 5]
lea eax, [ecx + eax*2]
shr eax, 8
mov ch, al
xor ch, bl
add ch, 0x10
mov cl, ch
dec edx
xor cl, al
add cl, 0x10
mov al, cl
test edx, edx
jg 0x1001ff42
mov ecx, dword [ebp - 8]
xor edx, edx
xor byte [ecx], al
mov ecx, 0x28
mov eax, edi
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov esi, eax
xor esi, ecx
add esi, 2
lea eax, [esi + eax*2]
xor esi, eax
lea edx, [esi + eax*2]
lea ecx, [edx + 3]
lea eax, [esi + 3]
xor ecx, eax
lea edx, [edx + 5]
lea edx, [ecx + edx*2]
mov ecx, 3
shr edx, 0x18
xor bl, dl
add bl, 0x10
xor dl, bl
dec ecx
add dl, 0x10
test ecx, ecx
jg 0x1001ffa1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
xor byte [eax], dl
movzx eax, dl
mov esp, ebp
pop ebp
ret
Function at 0x1002b170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1002b1b2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push dword [ebp + 8]
mov dword [0x10235128], eax
push sym.FacMH.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 0x1002b030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc

Function at 0x1002c820
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 0x1002c84c
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 0x1002c874
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1002c87a
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 0x1002c904
jg 0x1002c891
test esi, esi
je 0x1002c904
test ecx, ecx
jl 0x1002c8e7
jg 0x1002c89b
test eax, eax
je 0x1002c8e7
cmp edi, ecx
jg 0x1002c8af
jl 0x1002c8a5
cmp esi, eax
jae 0x1002c8af
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 ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1002c904
jg 0x1002c8ea
test esi, esi
je 0x1002c904
jmp 0x1002c8ea
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002c904
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 + 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 0x1002c920
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 0x1002c94c
jl 0x1002c940
test ecx, ecx
jne 0x1002c94c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002c965
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 0x1002c9b3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1002c9b9
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 0x1002c9b9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1002ca26
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002c9e2
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 0x1002ca14
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 0x1002ca26
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002c9f0
test edi, edi
je 0x1002ca26
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 0x1002cda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002cdd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002ce0c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002ce0c
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.1002d6a0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1002cee3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002ce34
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 0x1002ce40
movsx eax, bl
jmp 0x1002ce78
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 0x1002cea2
sub eax, 1
je 0x1002cea2
sub eax, 2
jne 0x1002cee3
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002cec0
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 0x1002cee3
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.1002d6a0
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.1002d6a0
mov esp, ebp
pop ebp
ret 4
Function at 0x1002d100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002d1bc
cmp byte [esi + 0x3d], 0
je 0x1002d1bc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002d1aa
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 0x1002d171
sub eax, 1
je 0x1002d175
sub eax, 2
jne 0x1002d1aa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002d193
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 0x1002d1aa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002d6a0
mov esp, ebp
pop ebp
ret
Function at 0x40102b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
and dword [ebp - 4], 0
xor edx, edx
push ebx
push esi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40108f
lea esi, [ecx + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi + 0x3c]
lea ebx, [eax + ecx]
cmp dword [ebp + 0xc], ebx
jb 0x401097
mov ebx, dword [esi - 8]
lea ebx, [ebx + edx - 1]
dec edx
not edx
and ebx, edx
cmp ecx, ebx
ja 0x401097
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [esi - 4]
add eax, dword [edi + 4]
push eax
call fcn.0042d010
mov eax, dword [edi]
movzx eax, word [eax + 6]
add esp, 0xc
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x40104a
xor eax, eax
pop esi
pop ebx
leave
ret 8
mov eax, 0xc1
jmp 0x401091