joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65ff61c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x66002870]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x65ff61f2
xor eax, eax
jmp 0x65ff6360
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x66004740]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x65ff6225
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.65ff786a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x65ff62f7
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x65ff6332
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x65ff6280
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x65ff6271
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x65ff6254
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x65ff62c0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x65ff62c9
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x65ff6245
jmp 0x65ff62cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x65ff635b
cmp dword [ebp - 8], edi
je 0x65ff6332
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x65ff6324
call fcn.65fedada
mov dword [eax], 9
call fcn.65fedae3
mov dword [eax], esi
jmp 0x65ff632d
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x65ff6319
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x65ff62cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x65ff62cb
push dword [ebp - 8]
call fcn.65fedaec
pop ecx
or eax, 0xffffffff
jmp 0x65ff635e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x65ff6347
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x65ff6347
xor eax, eax
jmp 0x65ff635e
call fcn.65fedada
mov dword [eax], 0x1c
call fcn.65fedae3
mov dword [eax], edi
jmp 0x65ff632d
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.65ff35ec
leave
ret
Function at 0x65ff65c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x660033d4], ebx
push esi
push edi
jne 0x65ff6640
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x65ff667b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65ffa104
push edi
call esi
test eax, eax
mov dword [0x660033d4], eax
je 0x65ff667b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x660033d8], eax
call esi
cmp dword [0x66003080], 2
mov dword [0x660033dc], eax
jne 0x65ff6640
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x660033e4], eax
je 0x65ff6640
push 0x65ffa0ac
push edi
call esi
mov dword [0x660033e0], eax
mov eax, dword [0x660033e0]
test eax, eax
je 0x65ff6685
call eax
test eax, eax
je 0x65ff666c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x660033e4]
test eax, eax
je 0x65ff666c
test byte [ebp - 8], 1
jne 0x65ff6685
cmp dword [0x6600308c], 4
jb 0x65ff667f
or byte [ebp + 0x12], 0x20
jmp 0x65ff66a4
xor eax, eax
jmp 0x65ff66b4
or byte [ebp + 0x12], 4
jmp 0x65ff66a4
mov eax, dword [0x660033d8]
test eax, eax
je 0x65ff66a4
call eax
mov ebx, eax
test ebx, ebx
je 0x65ff66a4
mov eax, dword [0x660033dc]
test eax, eax
je 0x65ff66a4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x660033d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x65ff70ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x65ff72b3
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x66004740]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x65ff72b3
test cl, 0x48
je 0x65ff7153
mov al, byte [eax + 5]
cmp al, 0xa
je 0x65ff7153
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x65ff71a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x65ff718d
call fcn.65fedada
mov dword [eax], 9
call fcn.65fedae3
mov dword [eax], esi
jmp 0x65ff719d
cmp eax, 0x6d
je 0x65ff72b3
push eax
call fcn.65fedaec
pop ecx
or eax, 0xffffffff
jmp 0x65ff72b5
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x65ff72ae
test edx, edx
je 0x65ff71c8
cmp byte [ebx], 0xa
jne 0x65ff71c8
or al, 4
jmp 0x65ff71ca
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x65ff72a8
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x65ff7298
cmp al, 0xd
je 0x65ff71fe
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x65ff728a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x65ff7218
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x65ff7213
add dword [ebp + 0x10], 2
jmp 0x65ff726c
mov dword [ebp + 0x10], eax
jmp 0x65ff7286
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x65ff7240
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x65ff7286
cmp dword [ebp - 0xc], 0
je 0x65ff7286
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x65ff7261
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x65ff726c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x65ff7289
cmp ebx, dword [ebp + 0xc]
jne 0x65ff7271
cmp byte [ebp - 1], 0xa
jne 0x65ff7271
mov byte [ebx], 0xa
jmp 0x65ff7289
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.65ff60aa
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x65ff728a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x65ff71e2
jmp 0x65ff72a8
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x65ff72a8
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x65ff72b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f5f
Capabilities:
Parse pe header

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

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405610
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
push 5
push 2
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
cmp eax, 0x7a
jne 0x405745
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x405745
push 0
push 5
push 2
push 0
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
test eax, eax
jne 0x40573b
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [edi], ecx
jbe 0x40573b
mov eax, dword [ebp - 0x18]
add edi, 4
nop
movups xmm0, xmmword [edi]
mov ecx, dword [ebp - 0x24]
movq xmm1, qword [edi + 0x10]
mov edx, dword [edi + 0x18]
movq qword [ebp - 0x34], xmm1
cmp dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x2c], edx
jne 0x40572d
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40571b
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm1
mov dword [eax + 0x18], edx
add dword [esi + 4], 0x1c
jmp 0x40572a
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.0040d460
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc ecx
add edi, 0x1c
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [eax]
jb 0x4056e0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret
Function at 0x408e00
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 0x408e2c
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 0x408e54
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x408e5a
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 0x408ec2
jg 0x408e71
test esi, esi
je 0x408ec2
test ecx, ecx
jl 0x408ebd
jg 0x408e7b
test eax, eax
je 0x408ebd
cmp edi, ecx
jg 0x408e8f
jl 0x408e85
cmp esi, eax
jae 0x408e8f
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 0x408ec5
mov ecx, dword [ebp + 8]
jmp 0x408ecf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x408ee9
jg 0x408ecf
test esi, esi
je 0x408ee9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x408ee9
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 0x408f00
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 0x408f2c
jl 0x408f20
test ecx, ecx
jne 0x408f2c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408f45
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 0x408f93
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x408f99
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 0x408f99
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x409006
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408fc2
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 0x408ff4
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 0x409006
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x408fd0
test edi, edi
je 0x409006
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 0x409380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4093b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4093ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4093ec
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.0043f497
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4094c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x409414
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 0x409420
movsx eax, bl
jmp 0x409458
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 0x409482
sub eax, 1
je 0x409482
sub eax, 2
jne 0x4094c3
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.0043f497
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4094a0
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 0x4094c3
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.0043f497
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.0043f497
mov esp, ebp
pop ebp
ret 4

Function at 0x409780
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4097b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4097a0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40a3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40a46c
cmp byte [esi + 0x3d], 0
je 0x40a46c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40a45a
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 0x40a421
sub eax, 1
je 0x40a425
sub eax, 2
jne 0x40a45a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a443
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 0x40a45a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0043f497
mov esp, ebp
pop ebp
ret
Function at 0x432360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4445b5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 0xc]
mov dword [ebp - 0x18], esi
push eax
mov dword [esi], vtable.std::_Associated_state_int_.0
mov dword [esi + 4], 1
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__]
lea eax, [esi + 0x14]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov word [esi + 0x74], 0
mov byte [esi + 0x76], 0
mov dword [esi + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [esi + 0x80]
mov dword [esi], vtable.std::_Packaged_state_void____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x3c
mov byte [ebp - 4], 1
call fcn.0043f6a2
mov edx, eax
add esp, 0x14
push ebx
lea ecx, [edx + 4]
mov dword [edx], 0x44811c
call fcn.00434d80
mov ecx, dword [ebx + 0x30]
mov eax, esi
mov dword [edx + 0x34], ecx
mov ecx, dword [ebx + 0x34]
mov dword [edx + 0x38], ecx
mov dword [edi + 0x24], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x438a10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
movzx eax, byte [esi + 0x68]
mov byte [eax + esi + 0x28], 0x80
mov eax, 0x40
inc byte [esi + 0x68]
movzx edx, byte [esi + 0x68]
sub eax, edx
push eax
lea eax, [esi + 0x28]
add eax, edx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [esi + 0x68], 0x38
jbe 0x438aae
lea edx, [esi + 0x28]
mov ecx, esi
call fcn.00438770
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov ecx, dword [esi]
lea edx, [esi + 0x28]
mov eax, dword [esi + 4]
shld eax, ecx, 3
pop edi
shl ecx, 3
mov byte [esi + 0x67], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [esi + 0x66], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [esi + 0x65], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [esi + 0x64], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [esi + 0x63], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [esi + 0x62], cl
shrd ecx, eax, 8
mov byte [esi + 0x61], cl
shr eax, 8
shrd ecx, eax, 8
mov byte [esi + 0x60], cl
mov ecx, esi
pop esi
jmp fcn.00438770