joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4237bc
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x4c], 0xdcf52ad7
mov dword [esp + 0x50], 0x2ed4ffd2
mov dword [esp + 0x54], 0xdad3d1f3
mov dword [esp + 0x58], 0xd930d4f7
mov dword [esp + 0x5c], 0x36ede0d4
mov dword [esp + 0x60], 0xc1e2e4ef
mov dword [esp + 0x64], 0xc4cfecc8
mov dword [esp + 0x68], 0xb891c6e1
mov dword [esp + 0x6c], 0x90a6a4a0
mov dword [esp + 0x70], 0xb09d87a3
mov dword [esp + 0x74], 0xdd8c9393
mov eax, 0xcf9f0ca2
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x3060f3aa]
or ecx, 0x249ecd00
lea edx, [eax + 0x5061b500]
and edx, ecx
or ecx, eax
sub ecx, edx
mov edx, ecx
and edx, 0x6f
xor ecx, 0xef
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax + 0x3060f3aa], cl
inc eax
cmp eax, 0xcf9f0cce
jne 0x423820
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push 0
push 0x2b
push edi
push eax
call fcn.00436450
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
xor eax, eax
cmp ebx, ebp
sete al
mov dword [esp + 0x28], ebp
jmp dword [eax*4 + 0x43fbbc]

Function at 0x423d2a
Capabilities:
Encode data using xor

Disassembly:
push dword [esp]
call fcn.00408340
add esp, 4

Function at 0x42401a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, esi
nop
nop
nop
nop
mov eax, ecx
add ecx, 2
cmp word [eax], 0
jne 0x424020
sub eax, esi
cmp eax, 0xffffffd9
jge 0x424039
mov eax, 0xffffffff
jmp 0x42403c
add eax, 0x26
push eax
call fcn.00408330
add esp, 4
mov ebp, eax
mov dword [esp + 0x6a], 0x7b9979a4
mov dword [esp + 0x6e], 0x7f907d93
mov dword [esp + 0x72], 0x3eb01e6
mov dword [esp + 0x76], 0x7da05e3
mov dword [esp + 0x7a], 0xbe509eb
mov dword [esp + 0x7e], 0xfe80de2
mov dword [esp + 0x82], 0x13f511f9
mov dword [esp + 0x86], 0x17e0153a
mov dword [esp + 0x8a], 0x1bfc19fc
mov word [esp + 0x8e], 0x1d1c
mov eax, 0x3af3a3b8
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x3af3a34e]
xor edx, eax
mov ecx, edx
xor ecx, 0xc0
or edx, 0x3f
and ecx, edx
add ecx, edx
inc cl
mov byte [esp + eax - 0x3af3a34e], cl
inc eax
cmp eax, 0x3af3a3de
jne 0x4240b0
movzx ecx, word [esi]
mov eax, ebp
test cx, cx
je 0x424101
mov edx, esi
add edx, 2
mov eax, ebp
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4240f0
mov word [eax], 0
movzx ecx, word [esp + 0x6a]
test cx, cx
je 0x424131
lea edx, [esp + 0x6c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x424120
mov word [eax], 0
jmp dword [0x43fc3c]

Function at 0x42413c
Capabilities:
Copy file

Disassembly:
push esi
call fcn.00408340
add esp, 4
xor eax, eax
cmp word [ebp], 0x2a
sete al
jmp dword [eax*4 + 0x43fc44]

Function at 0x424156
Capabilities:
Copy file
Encode data using xor

Disassembly:
xor eax, eax
cmp word [ebp], 0x2a
sete al
jmp dword [eax*4 + 0x43fc44]

Function at 0x424487
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp ebx, edi
sete al
jmp dword [eax*4 + 0x43fcb4]
Function at 0x4245c6
Capabilities:
Encode data using xor

Disassembly:
mov ebx, dword [esp + 0xd8]
test ebx, ebx
jns 0x42463c
mov eax, 0xffffffff
jmp 0x42463f
lea eax, [ebx + ebx]
push eax
call fcn.00408330
add esp, 4
mov ebp, eax
push edi
push ebx
push eax
push 0x1e
push esi
push 0
call dword [0x444850]
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x43fce4]

Function at 0x424b47
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
and al, 1
movzx ecx, al
mov eax, edx
jmp dword [ecx*4 + 0x43fdd4]
Function at 0x425b03
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp eax, 0xc0000023
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x43fe14]

Function at 0x425d4c
Capabilities:
Encode data using xor

Disassembly:
mov dword [ebp - 0x88], 0xca08c832
mov dword [ebp - 0x84], 0xce5dcc5b
mov dword [ebp - 0x80], 0xc260c00b
mov dword [ebp - 0x7c], 0xc664c457
mov dword [ebp - 0x78], 0xbab9b822
mov eax, 0x69742af
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebp + eax - 0x6974337]
xor ecx, eax
add ecx, 0xcb45ea87
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [ebp + eax - 0x6974337], cl
inc eax
cmp eax, 0x69742c3
jne 0x425d80
lea eax, [ebp - 0xd4]
lea edx, [ebp - 0x88]
mov edi, eax
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [ebp - 0xc0]
lea edx, [ebp - 0x74]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 9
push eax
push 0
call dword [0x444850]

Function at 0x425de8
Capabilities:
Encode data using xor

Disassembly:
push eax
sub esp, 0x14
mov ebx, esp
sub esp, 8
mov esi, esp
sub esp, 8
mov dword [ebp - 0x68], esp
sub esp, 0x10
mov edi, esp
sub esp, 0x30
mov dword [ebp - 0x6c], esp
sub esp, 0x14
mov dword [ebp - 0x98], esp
push eax
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0x88], 0xca08c832
mov dword [ebp - 0x84], 0xce5dcc5b
mov dword [ebp - 0x80], 0xc260c00b
mov dword [ebp - 0x7c], 0xc664c457
mov dword [ebp - 0x78], 0xbab9b822
mov eax, 0x69742af
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebp + eax - 0x6974337]
xor ecx, eax
add ecx, 0xcb45ea87
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [ebp + eax - 0x6974337], cl
inc eax
cmp eax, 0x69742c3
jne 0x425e50
mov dword [ebp - 0x50], edi
mov dword [ebp - 0xb0], esi
lea esi, [ebp - 0xd4]
lea eax, [ebp - 0x88]
mov edi, esi
mov ecx, 5
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [ebp - 0xc0]
lea eax, [ebp - 0x74]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [ebp - 0x4c]
push edi
push 0
push 0
push 9
push esi
push 0
call dword [0x444850]
jmp dword [0x43fe10]
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5de34d79
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x34187c64
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x98b15c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98b183
call fcn.0092d6a8
mov dword [eax], esi
call fcn.0092d695
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092e2ea
mov eax, esi
jmp 0x98b1d8
test dword [ebp + 0xc], 0xfffffff9
jne 0x98b169
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092d6bb
pop ecx
call fcn.0092d695
mov eax, dword [eax]
jmp 0x98b1d8
test al, 0x10
jne 0x98b1d6
test al, 1
je 0x98b1d6
test byte [ebp + 0xc], 2
je 0x98b1d6
call fcn.0092d6a8
mov dword [eax], 5
call fcn.0092d695
mov dword [eax], 0xd
jmp 0x98b1a7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
add ebx, ecx
call fcn.0040895f
sub ecx, 0xbf8c7dcb
xor dword [edi], eax
add edi, 1
sub ecx, 0xa1fea240
cmp edi, esi
jne fcn.00408936
ret
Function at 0x4205e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42060d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42060d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3
Function at 0x401e70
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 sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401ef0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x401ec3
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401350
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x44a047
Capabilities:
Encode data using xor

Disassembly:
stc
outsd dx, dword [esi]
not byte [eax - 0x3d]
sti
and ebp, dword [ebp + ebx - 0xbdade3d]
and dword [0x9b1dfaf4], esp
sar al, cl
push ebx
sahf
loop 0x44a054
lds esi, [ebp - 0x2ff870d7]
lock add byte [esi - 0x19], dl
ret 0xb04e
jg 0x44a05c
jae 0x44a031
xchg ebp, eax
push ebp
movsd dword es:[edi], dword [esi]
xor cl, dl
dec esi
or bh, bl
and al, 0xf7
push ebx
pop ss
not dword [ebx + 0x17]
lahf
add dword [eax + 0x73], ebx
jne 0x44a015
test eax, 0xb1caa79e

Function at 0x44a1b3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov esi, dword [esi - 0x48]
dec esi
pop ebp
sub eax, 0x66609f64
pushal
mov di, 0xae1f
dec ebp
invalid
insd dword es:[edi], dx

Function at 0x44a1bb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov esi, dword [esi - 0x48]
dec esi
pop ebp
sub eax, 0x66609f64
pushal
mov di, 0xae1f
dec ebp
invalid
insd dword es:[edi], dx

Function at 0x4ad737
Capabilities:
Encode data using xor

Disassembly:
sbb ebx, dword [ecx - 0x34]
loopne 0x4ad736
bound esp, qword [eax]
sar byte [ebp - 0x74345f03], 1
popfd
scasd eax, dword es:[edi]
add eax, 0xd84bac9d
aad 0xbd
mov edx, 0x57bcbb1e
invalid
invalid
push edi
inc edx
cmpsb byte es:[esi], byte es:[edi]

Function at 0x4c7fc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d23f8
cmp edx, dword [eax]
je 0x4c7fe3
add eax, 8
inc ecx
cmp eax, 0x4d2488
jl 0x4c7fd4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d23f8]
jne 0x4c8111
mov eax, dword [0x4d7e20]
cmp eax, 1
je 0x4c80eb
test eax, eax
jne 0x4c8014
cmp dword [0x4d2320], 1
je 0x4c80eb
cmp edx, 0xfc
je 0x4c8111
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c804b
lea eax, [ebp - 0x1a4]
push 0x4cdde8
push eax
call fcn.004c89a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c808e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cdde4
push edi
call fcn.004cad00
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cddc8
push eax
call fcn.004c89a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c89b0
lea eax, [ebp - 0xa0]
push 0x4cddc4
push eax
call fcn.004c89b0
push dword [esi + 0x4d23fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c89b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cdd9c
push eax
call fcn.004cac74
add esp, 0x2c
pop edi
jmp 0x4c8111
lea eax, [ebp + 8]
lea esi, [esi + 0x4d23fc]
push 0
push eax
push dword [esi]
call fcn.004c8e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402170
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 0x40219c
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 0x4021c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4021ca
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 0x402232
jg 0x4021e1
test esi, esi
je 0x402232
test ecx, ecx
jl 0x40222d
jg 0x4021eb
test eax, eax
je 0x40222d
cmp edi, ecx
jg 0x4021ff
jl 0x4021f5
cmp esi, eax
jae 0x4021ff
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 edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x402235
mov ecx, dword [ebp + 8]
jmp 0x40223f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x402259
jg 0x40223f
test esi, esi
je 0x402259
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402259
push eax
push esi
push 1
push ecx
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 0x402270
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 0x40229c
jl 0x402290
test ecx, ecx
jne 0x40229c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4022b5
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 0x402303
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402309
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 0x402309
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402376
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402332
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 0x402364
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 0x402376
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402340
test edi, edi
je 0x402376
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 0x4026f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402720
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x402750
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x402750
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.0040eba8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x402828
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402779
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 0x402785
movsx eax, bl
jmp 0x4027bd
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 0x4027e7
sub eax, 1
je 0x4027e7
sub eax, 2
jne 0x402828
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.0040eba8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402805
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 0x402828
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.0040eba8
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.0040eba8
mov esp, ebp
pop ebp
ret 4
Function at 0x402df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x402eac
cmp byte [esi + 0x3d], 0
je 0x402eac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x402e9a
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 0x402e61
sub eax, 1
je 0x402e65
sub eax, 2
jne 0x402e9a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402e83
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 0x402e9a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040eba8
mov esp, ebp
pop ebp
ret