joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401120
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.00404cd0
mov eax, dword [0x4082b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1110]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
xor edi, edi
push ecx
mov dword [ebp - 0x110c], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40116b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404cb4
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x401233
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x40121f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40121f
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40121f
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401202
test dl, dl
je 0x4011fe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401202
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011e2
xor eax, eax
jmp 0x401207
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401218
mov eax, dword [ebp + edi*4 - 0x1108]
mov dword [ebp - 0x110c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1110]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x401180
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.00404cb4
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4082b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x104]
push str._s.
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea ecx, [ebp - 0x104]
push str._s_s
push ecx
call ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 0x14
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401297
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404cb4
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405768
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4082b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x4024b7
cmp byte [edi + 0x49], 0
je 0x4024b7
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4024ab
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x402406
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x402426
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40244b
dec eax
je 0x40244f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4024a6
jmp 0x4024b2
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x40245f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x402489
cmp edx, 0x10
jae 0x40246e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4024a3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4024af
test esi, esi
jne 0x40241a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401dd0
jmp 0x402414
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
xor al, al
jmp 0x4024b9
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404cb4
mov esp, ebp
pop ebp
ret
Function at 0x404cb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4082b4]
jne 0x404cbe
repz ret
jmp fcn.0040516b
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x3d6d1b21
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x140e6a27
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4021e0
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f73b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x20], xmm0
xor edi, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
push edi
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmova eax, dword [ebp + 8]
push ecx
push edi
push 1
push edi
push eax
mov dword [ebp - 0x14], edi
call ebx
test eax, eax
jne 0x40225e
mov edx, str.CryptStringToBinaryA__1__:_Failed_to_convert_BASE64_private_key.__n
jmp 0x4022d4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402275
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00405d00
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push esi
push 1
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push 0
push eax
call ebx
test eax, eax
jne 0x40229b
mov edx, str.CryptStringToBinaryA__2__:_Failed_to_convert_BASE64_private_key.__n
jmp 0x4022d4
push 8
call fcn.004f5ee9
add esp, 4
mov ebx, eax
lea eax, [esi + 5]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push ebx
push 0
push 0
push 0
add eax, 0xfffffffb
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x4022e1
mov edx, str.CryptUnprotectData__1__:_Failed_to_convert_BASE64_private_key.__n
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404990
xor ebx, ebx
test esi, esi
je 0x40230b
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x402301
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402331
push edi
push esi
call fcn.004f5f19
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x402341
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402337
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402337
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004f5f19
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret 0x18
Function at 0x403530
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 0x40355c
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 0x403584
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40358a
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 0x4035f2
jg 0x4035a1
test esi, esi
je 0x4035f2
test ecx, ecx
jl 0x4035ed
jg 0x4035ab
test eax, eax
je 0x4035ed
cmp edi, ecx
jg 0x4035bf
jl 0x4035b5
cmp esi, eax
jae 0x4035bf
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 0x4035f5
mov ecx, dword [ebp + 8]
jmp 0x4035ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403619
jg 0x4035ff
test esi, esi
je 0x403619
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403619
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 0x403630
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 0x40365c
jl 0x403650
test ecx, ecx
jne 0x40365c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403675
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 0x4036c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4036c9
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 0x4036c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403736
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4036f2
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 0x403724
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 0x403736
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403700
test edi, edi
je 0x403736
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 0x403ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x513040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403af0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403b2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x403b2c
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.004f5edb
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403c03
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403b54
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 0x403b60
movsx eax, bl
jmp 0x403b98
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 0x403bc2
sub eax, 1
je 0x403bc2
sub eax, 2
jne 0x403c03
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.004f5edb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403be0
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 0x403c03
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.004f5edb
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.004f5edb
mov esp, ebp
pop ebp
ret 4

Function at 0x403e40
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 0x403e71
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x403e60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x513040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4045dc
cmp byte [esi + 0x3d], 0
je 0x4045dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4045ca
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 0x404591
sub eax, 1
je 0x404595
sub eax, 2
jne 0x4045ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4045b3
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 0x4045ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
Function at 0x41d5f0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f930f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x513040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], esi
call fcn.00404190
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push eax
call fcn.00404190
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
push eax
call fcn.00404190
lea eax, [ebx + 0x48]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
push eax
call fcn.00404190
lea edi, [esi + 0x60]
mov dword [ebp - 4], 3
lea esi, [ebx + 0x60]
mov dword [ebp + 8], edi
push esi
mov ecx, edi
call fcn.00404190
lea eax, [esi + 0x18]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x18]
push eax
call fcn.00404190
lea eax, [esi + 0x30]
mov byte [ebp - 4], 5
lea ecx, [edi + 0x30]
push eax
call fcn.00404190
lea eax, [esi + 0x48]
mov byte [ebp - 4], 6
lea ecx, [edi + 0x48]
push eax
call fcn.00404190
lea eax, [esi + 0x60]
mov byte [ebp - 4], 7
lea ecx, [edi + 0x60]
push eax
call fcn.00404190
mov byte [ebp - 4], 8
lea esi, [ebx + 0xd8]
mov edi, dword [ebp - 0x10]
add edi, 0xd8
push esi
mov ecx, edi
mov dword [ebp + 8], edi
call fcn.00404190
lea eax, [esi + 0x18]
mov byte [ebp - 4], 9
lea ecx, [edi + 0x18]
push eax
call fcn.00404190
lea eax, [esi + 0x30]
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x30]
push eax
call fcn.00404190
lea eax, [esi + 0x48]
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x48]
push eax
call fcn.00404190
lea eax, [esi + 0x60]
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0x60]
push eax
call fcn.00404190
mov byte [ebp - 4], 0xd
lea esi, [ebx + 0x150]
mov edi, dword [ebp - 0x10]
add edi, 0x150
push esi
mov ecx, edi
mov dword [ebp + 8], edi
call fcn.00404190
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x18]
push eax
call fcn.00404190
lea eax, [esi + 0x30]
mov byte [ebp - 4], 0xf
lea ecx, [edi + 0x30]
push eax
call fcn.00404190
lea eax, [esi + 0x48]
mov byte [ebp - 4], 0x10
lea ecx, [edi + 0x48]
push eax
call fcn.00404190
lea eax, [esi + 0x60]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [edi + 0x60]
call fcn.00404190
mov eax, dword [ebp - 0x10]
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 0x432270
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.004e3c30
test eax, eax
jne 0x4323d7
cmp byte [0x513194], al
jne 0x432296
xor edi, edi
jmp 0x4322b1
push 5
call dword [0x5131d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x4322b1
push edi
call dword [0x5131e0]
add esp, 4
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x4323bf
test esi, esi
je 0x4323bf
cmp dword [0x515e58], 0
jne 0x432349
push 0
call fcn.0042e520
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x515e58], xmm0
test eax, eax
jne 0x4322f8
push 0x2c
push eax
push 0x515e68
call sub.VCRUNTIME140.dll_memset
jmp 0x432328
cmp dword [0x5132a4], 0
je 0x43231b
push 0x2c
push 0
push 0x515e68
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x5132a4]
mov dword [0x515e68], eax
jmp 0x432328
push 0x515e68
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x515e88]
add esp, 0xc
xor cl, cl
mov dword [0x515e94], eax
mov dword [0x515e88], 0
mov byte [0x515ed8], cl
jmp 0x43234f
mov cl, byte [0x515ed8]
movzx eax, cl
cmp ebx, eax
jle 0x432399
test cl, cl
je 0x432377
movzx eax, cl
push eax
push 0x515e98
push esi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x515ed8]
add esp, 0xc
sub ebx, eax
add esi, eax
inc dword [0x515e88]
mov edx, 0x515e58
mov ecx, 0x515e98
call fcn.00431ef0
mov cl, 0x40
mov byte [0x515ed8], cl
cmp ebx, 0x40
jg 0x432356
movzx eax, cl
sub eax, ebx
push ebx
add eax, 0x515e98
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x515ed8], bl
add esp, 0xc
test edi, edi
jne 0x4323cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x515e58], 0
test edi, edi
je 0x4323d7
push edi
call dword [0x5131e8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cfd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x45cffd
push esi
lea esi, [edx + 1]
nop dword [eax + eax]
mov ecx, dword [eax + 0x98]
mov edx, esi
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax + 0x98], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x45cfe0
pop esi
ret