joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100cf40], ebx
push esi
push edi
jne 0x100897d
push 0x10027e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10089b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10027dc
push edi
call esi
test eax, eax
mov dword [0x100cf40], eax
je 0x10089b8
push 0x10027cc
push edi
call esi
push 0x10027b8
push edi
mov dword [0x100cf44], eax
call esi
cmp dword [0x100ca74], 2
mov dword [0x100cf48], eax
jne 0x100897d
push 0x100279c
push edi
call esi
test eax, eax
mov dword [0x100cf50], eax
je 0x100897d
push 0x1002784
push edi
call esi
mov dword [0x100cf4c], eax
mov eax, dword [0x100cf4c]
test eax, eax
je 0x10089c2
call eax
test eax, eax
je 0x10089a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100cf50]
test eax, eax
je 0x10089a9
test byte [ebp - 8], 1
jne 0x10089c2
cmp dword [0x100ca80], 4
jb 0x10089bc
or byte [ebp + 0x12], 0x20
jmp 0x10089e1
xor eax, eax
jmp 0x10089f1
or byte [ebp + 0x12], 4
jmp 0x10089e1
mov eax, dword [0x100cf44]
test eax, eax
je 0x10089e1
call eax
mov ebx, eax
test ebx, ebx
je 0x10089e1
mov eax, dword [0x100cf48]
test eax, eax
je 0x10089e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100cf40]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009182
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10091b3
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10091ba
cmp ebx, dword [ebp + 8]
jae 0x10091ba
xor eax, eax
jmp 0x10093aa
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10091cb
xor eax, eax
inc eax
jmp 0x10093a9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10091e1
cmp ecx, edx
jae 0x1009326
cmp dword [eax + 4], 0
je 0x10091ea
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10091d2
cmp dword [ebp + 8], 0
je 0x100920c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1009326
cmp eax, esi
jae 0x1009326
mov eax, dword [0x100cf58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1009231
cmp dword [esi*4 + 0x100cf60], edi
je 0x100932a
inc esi
cmp esi, eax
jl 0x100921f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10093a6
cmp dword [ebp - 8], 0x1000000
jne 0x10093a6
test byte [ebp - 0xc], 0xcc
je 0x10092af
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10093a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10093a6
cmp word [eax + 0x18], 0x10b
jne 0x10093a6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10093a6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10092af
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10092af
test byte [ecx + 0x27], 0x80
jne 0x1009326
push 1
push 0x100cfa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x10091c3
mov ecx, dword [0x100cf58]
test ecx, ecx
mov edx, ecx
jle 0x10092e3
lea eax, [ecx*4 + 0x100cf5c]
cmp dword [eax], edi
je 0x10092e3
dec edx
sub eax, 4
test edx, edx
jg 0x10092d7
test edx, edx
jne 0x1009314
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10092f0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1009308
lea eax, [edx*4 + 0x100cf60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10092f6
cmp ecx, 0x10
jge 0x1009314
inc ecx
mov dword [0x100cf58], ecx
push 0
push 0x100cfa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10091c3
xor eax, eax
jmp 0x10093a9
test esi, esi
jle 0x10091c3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100cfa0
call ebx
test eax, eax
jne 0x10091c3
cmp dword [esi*4 + 0x100cf60], edi
je 0x1009380
mov eax, dword [0x100cf58]
lea esi, [eax - 1]
test esi, esi
jl 0x100936e
cmp dword [esi*4 + 0x100cf60], edi
je 0x100936a
dec esi
jns 0x100935e
test esi, esi
jge 0x100937e
cmp eax, 0x10
jge 0x1009379
inc eax
mov dword [0x100cf58], eax
lea esi, [eax - 1]
jmp 0x1009380
je 0x1009398
xor ecx, ecx
test esi, esi
jl 0x1009398
lea eax, [ecx*4 + 0x100cf60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1009386
push 0
push 0x100cfa0
call ebx
jmp 0x10091c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a3db
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
je 0x100a445
push 0x3d
push esi
call fcn.0100b4ef
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
je 0x100a445
cmp esi, edi
je 0x100a445
xor eax, eax
cmp byte [edi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x100ca94]
cmp eax, dword [0x100ca98]
jne 0x100a42b
call fcn.0100a37c
mov dword [0x100ca94], eax
cmp eax, ebx
jne 0x100a484
cmp dword [ebp + 0xc], ebx
je 0x100a44d
cmp dword [0x100ca9c], ebx
je 0x100a44d
call fcn.01008540
test eax, eax
je 0x100a484
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x100a585
push 4
pop ecx
call fcn.01008f8d
cmp eax, ebx
mov dword [0x100ca94], eax
je 0x100a445
mov dword [eax], ebx
cmp dword [0x100ca9c], ebx
jne 0x100a484
push 4
pop ecx
call fcn.01008f8d
cmp eax, ebx
mov dword [0x100ca9c], eax
je 0x100a445
mov dword [eax], ebx
mov ebx, dword [0x100ca94]
sub edi, esi
push esi
call fcn.0100a325
mov edi, eax
test edi, edi
pop ecx
jl 0x100a4db
cmp dword [ebx], 0
je 0x100a4db
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.010053c2
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x100a4c2
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x100a50f
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x100a4b9
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.01009017
test eax, eax
mov esi, dword [ebp + 8]
je 0x100a50f
jmp 0x100a50a
cmp dword [ebp - 4], 0
jne 0x100a57e
test edi, edi
jge 0x100a4eb
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.01009017
test eax, eax
je 0x100a445
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x100ca94], eax
cmp dword [ebp + 0xc], 0
je 0x100a569
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a51a
sub eax, edx
lea ecx, [eax + 2]
call fcn.01008f8d
mov edi, eax
test edi, edi
je 0x100a569
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x100a535
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x100a562
or dword [ebp - 8], 0xffffffff
push edi
call fcn.010053c2
pop ecx
cmp dword [ebp - 4], 0
je 0x100a576
push esi
call fcn.010053c2
pop ecx
mov eax, dword [ebp - 8]
jmp 0x100a448
push esi
call fcn.010053c2
pop ecx
xor eax, eax
jmp 0x100a448
Function at 0x100aff5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x100e288]
jae 0x100b150
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x100e2a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x100b150
push 1
push esi
push ebx
call fcn.010093b3
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x100b15a
push 2
push esi
push ebx
call fcn.010093b3
add esp, 0xc
cmp eax, 0xffffffff
je 0x100b15a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100b0fd
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x100b093
mov dword [0x100ca68], 0xc
or esi, 0xffffffff
jmp 0x100b13d
push 0x8000
push ebx
call fcn.0100b55d
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0x100b0ae
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.010080e7
add esp, 0xc
cmp eax, 0xffffffff
je 0x100b0c8
sub edi, eax
test edi, edi
jg 0x100b0a3
jmp 0x100b0de
cmp dword [0x100ca6c], 5
jne 0x100b0db
mov dword [0x100ca68], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.0100b55d
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100b13d
jge 0x100b13d
push 0
push dword [ebp + 0xc]
push ebx
call fcn.010093b3
push ebx
call fcn.01009b3c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x100b13d
mov dword [0x100ca68], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100ca6c], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.010093b3
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100b15d
mov dword [0x100ca68], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x100b39f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01005a30
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b49b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x100ca74], 2
jne 0x100b420
push 0x1003074
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x100b420
push 0x100305c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100b420
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x100b420
cmp dword [ebp - 4], esi
jbe 0x100b420
mov esi, dword [ebp - 4]
mov edx, dword [0x100ca74]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x100b449
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x100b455
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x100b467
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x100b49b
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100b49b
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100b49b
xor eax, eax
inc eax
jmp 0x100b49d
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4149cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414845

Function at 0x419000
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418b53

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2cd31535
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2df34747
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x113d611a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x3644756c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
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 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401e40
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 0x401e6c
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 0x401e94
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401e9a
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 0x401f02
jg 0x401eb1
test esi, esi
je 0x401f02
test ecx, ecx
jl 0x401efd
jg 0x401ebb
test eax, eax
je 0x401efd
cmp edi, ecx
jg 0x401ecf
jl 0x401ec5
cmp esi, eax
jae 0x401ecf
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 0x401f05
mov ecx, dword [ebp + 8]
jmp 0x401f0f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x401f29
jg 0x401f0f
test esi, esi
je 0x401f29
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401f29
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 0x401f40
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 0x401f6c
jl 0x401f60
test ecx, ecx
jne 0x401f6c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x401f85
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 0x401fd3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x401fd9
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 0x401fd9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402046
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402002
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 0x402034
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 0x402046
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402010
test edi, edi
je 0x402046
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 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4023f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e86
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40242c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40242c
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.00402e86
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402503
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402454
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 0x402460
movsx eax, bl
jmp 0x402498
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 0x4024c2
sub eax, 1
je 0x4024c2
sub eax, 2
jne 0x402503
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.00402e86
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4024e0
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 0x402503
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.00402e86
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.00402e86
mov esp, ebp
pop ebp
ret 4
Function at 0x4027a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40285c
cmp byte [esi + 0x3d], 0
je 0x40285c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40284a
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 0x402811
sub eax, 1
je 0x402815
sub eax, 2
jne 0x40284a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e86
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402833
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 0x40284a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e86
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e86
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402e86
mov esp, ebp
pop ebp
ret

Function at 0x403754
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
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
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219