joyce8/EMBER2024-capa huggingface dataset:
Function at 0x558a18
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0054bf25
mov dword [ebp - 0x14], eax
cmp dword [0x5dae1c], edi
jne 0x558b09
push 0x800
push edi
push 0x5a59e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x558a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x558be9
push 0x5a59e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x558be9
push 0x5a59f8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x558be9
push eax
call ebx
push 0x5a5a04
push esi
mov dword [0x5dae1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a5a14
push esi
mov dword [0x5dae20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5dae24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5dae2c], eax
test eax, eax
je 0x558b06
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5dae28], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x558b2e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x558b21
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x558b43
push 4
pop eax
jmp 0x558beb
cmp dword [ebp - 0x14], edi
je 0x558b43
push dword [0x5dae1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x558b28
mov eax, dword [0x5dae28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x558ba1
cmp dword [0x5dae2c], esi
je 0x558ba1
push eax
call ebx
push dword [0x5dae2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x558ba1
test eax, eax
je 0x558ba1
call ecx
test eax, eax
je 0x558b96
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x558b96
test byte [ebp - 8], 1
jne 0x558ba1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x558bd1
mov eax, dword [0x5dae20]
cmp eax, esi
je 0x558bce
push eax
call ebx
test eax, eax
je 0x558bce
call eax
mov edi, eax
test edi, edi
je 0x558bce
mov eax, dword [0x5dae24]
cmp eax, esi
je 0x558bce
push eax
call ebx
test eax, eax
je 0x558bce
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5dae1c]
call ebx
test eax, eax
je 0x558be9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x558beb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00543154
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x8e15455
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x29293647
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10002610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10231d1c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x100026ca
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 + 0x10231d18], eax
inc ebx
cmp ebx, 0x100
jb 0x10002630
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x100026f6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10231d18]
sub edi, 1
jne 0x100026d5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002728
nop dword [eax]
cmp cl, 0x23
jne 0x1000270f
cmp byte [esi], cl
jne 0x1000270f
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 + 0x10231d18]
test cl, cl
jne 0x10002700
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10002ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10002af2
mov dword [ebx], 0
push 0x1002d420
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 0x10002b0b
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 0x10002bc3
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 0x10002bc3
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 0x10002bc3
mov ecx, dword [0x100360a8]
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 0x10002bc3
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 0x10002ba5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100360a8]
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 0x10002bbb
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 0x1001c6c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b3d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10036040]
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.1001c820
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 0x1001e2f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10036040]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x10235ccc], 0
push esi
push edi
jne 0x1001e31d
cmp dword [0x10235cd4], 0
je 0x1001e31d
call fcn.1001e180
mov edi, dword [0x100360a8]
lea eax, [esp + 0x10]
push eax
push dword [0x10235cdc]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
movd xmm1, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
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 [0x10235ce0]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x10235ce4]
call fcn.1002af90
mov edx, dword [0x10235cec]
mov ecx, dword [0x10235ce8]
movss dword [esp + 0xc], xmm0
call fcn.1002af90
movss xmm1, dword [esp + 0xc]
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 [0x10235ce0], eax
mov dword [0x10235ce4], 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 + 0xe0], 0
mov byte [edi + 0xe3], al
je 0x1001e400
xor eax, eax
jmp 0x1001e40d
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10003ae0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.10029910
mov esp, ebp
pop ebp
ret
Function at 0x1001e9b0
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 0x1001eb3d
cmp esi, 0x10
jb 0x1001eb30
movaps xmm2, xmmword [0x10031940]
mov ecx, esi
and ecx, 0x8000000f
jns 0x1001ea14
dec ecx
or ecx, 0xfffffff0
inc ecx
movaps xmm0, xmmword [0x10031e90]
mov edx, esi
movups xmm3, xmmword [0x10031ae0]
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 0x1001ea50
mov esi, dword [ebp - 0xc]
mov edi, dword [ebx + 8]
cmp eax, esi
jge 0x1001eb3d
nop word [eax + eax]
lea edx, [edi + eax]
lea ecx, [eax - 0x57]
inc eax
xor byte [edx], cl
cmp eax, esi
jl 0x1001eb30
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1001fda0
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 0x1001fe10
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 0x1001fe70
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 0x1001fed2
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 0x1001ff31
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 0x10027190
Capabilities:
Create thread

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

Function at 0x10028a90
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 0x10028abc
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 0x10028ae4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10028aea
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 0x10028b74
jg 0x10028b01
test esi, esi
je 0x10028b74
test ecx, ecx
jl 0x10028b57
jg 0x10028b0b
test eax, eax
je 0x10028b57
cmp edi, ecx
jg 0x10028b1f
jl 0x10028b15
cmp esi, eax
jae 0x10028b1f
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 0x10028b74
jg 0x10028b5a
test esi, esi
je 0x10028b74
jmp 0x10028b5a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10028b74
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 0x10028b90
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 0x10028bbc
jl 0x10028bb0
test ecx, ecx
jne 0x10028bbc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10028bd5
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 0x10028c23
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10028c29
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 0x10028c29
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10028c96
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10028c52
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 0x10028c84
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 0x10028c96
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10028c60
test edi, edi
je 0x10028c96
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 0x10029010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10029040
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029910
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002907c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002907c
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.10029910
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10029153
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100290a4
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 0x100290b0
movsx eax, bl
jmp 0x100290e8
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 0x10029112
sub eax, 1
je 0x10029112
sub eax, 2
jne 0x10029153
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.10029910
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029130
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 0x10029153
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.10029910
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.10029910
mov esp, ebp
pop ebp
ret 4
Function at 0x10029370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002942c
cmp byte [esi + 0x3d], 0
je 0x1002942c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002941a
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 0x100293e1
sub eax, 1
je 0x100293e5
sub eax, 2
jne 0x1002941a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029910
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029403
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 0x1002941a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029910
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029910
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10029910
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219