joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40631d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x406352
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40634f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40635b
add edx, 0x28
cmp edx, esi
jne 0x40633d
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x406358

Function at 0x406794
Capabilities:
Parse pe header

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

Function at 0x41338e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42c660
push esi
call fcn.0041a9e5
pop ecx
pop ecx
test eax, eax
jne 0x4133bc
xor al, al
jmp 0x413439
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004130b0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4133f6
push dword [ebp - 0x210]
call fcn.004115f0
xor al, al
jmp 0x413437
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4133fc
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x41341c
push edx
call fcn.004132c5
pop ecx
test al, al
je 0x4133e7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41342a
mov bl, 1
push dword [ebp - 0x210]
call fcn.004115f0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004060be
leave
ret
Function at 0x401470
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4026f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x403490
mov cl, byte [esi + 0x4c]
lea eax, [esi + 0x4c]
test cl, cl
mov dword [esp + 0x10], 0
je 0x4014ac
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [esi + 0x40]
test al, al
je 0x4014bd
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
lea ecx, [esi + 0x150]
call fcn.004023be
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004023be
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401730
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402738
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
push str.SHOCKWAVE
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401780
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4017a0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add ebx, 0x4c
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.game.dcr
or ecx, 0xffffffff
xor eax, eax
push 0x1001
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004023fa
mov ecx, dword [esp + 0x28]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4018c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc0c]
push 0x800
mov esi, ecx
mov ebx, edx
push 0
mov dword [ebp - 0xc10], esi
push eax
mov dword [ebp - 0xc10], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x10]
add esp, 0xc
cmp dword [ebx + 0x14], 0xf
mov dword [ebp - 0xc10], 0x800
jbe 0x401918
add eax, dword [ebx]
mov ebx, dword [ebx]
jmp 0x40191a
add eax, ebx
push ecx
push eax
push ebx
lea ecx, [ebp - 0xc30]
call fcn.00403c10
cmp dword [eax + 0x14], 7
jbe 0x401930
mov eax, dword [eax]
lea ecx, [ebp - 0xc14]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0xc1c]
mov ebx, eax
cmp ecx, 7
jbe 0x40198b
mov edx, dword [ebp - 0xc30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401981
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401981
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404791
add esp, 8
test ebx, ebx
je 0x4019c7
xorps xmm0, xmm0
mov eax, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404556
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x4019d6
add eax, dword [edi]
mov edi, dword [edi]
jmp 0x4019d8
add eax, edi
push ecx
push eax
push edi
lea ecx, [ebp - 0xc30]
call fcn.00403c10
cmp dword [eax + 0x14], 7
jbe 0x4019ee
mov eax, dword [eax]
lea ecx, [ebp - 0xc10]
push ecx
lea ecx, [ebp - 0xc0c]
push ecx
push 0
push 0
push eax
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc1c]
mov edi, eax
cmp ecx, 7
jbe 0x401a51
mov edx, dword [ebp - 0xc30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404791
add esp, 8
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40198f
push edi
push edi
push 0x400
lea eax, [ebp - 0x40c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc0c]
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x40c]
mov ecx, esi
push eax
call fcn.00403560
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404556
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28a0
call fcn.00405390
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x289c]
mov esi, ecx
push eax
lea eax, [ebp - 0x2898]
mov dword [ebp - 0x289c], esi
mov dword [ebp - 0x289c], esi
push eax
mov dword [ebp - 0x289c], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x401d8f
lea eax, [ebp - 0x2898]
nop
cmp dword [eax + 0x190], 6
je 0x401dac
mov eax, dword [eax]
test eax, eax
jne 0x401d80
push 0x4062e4
mov ecx, esi
call fcn.00403560
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404556
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
call fcn.00403d30
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
jmp 0x401d94
Function at 0x402650
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x478
mov eax, dword [0x409040]
xor eax, esp
mov dword [esp + 0x474], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
push edi
push eax
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x20], 0x402830
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.kadeykadeykadey
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.op_op_op
push str.kadeykadeykadey
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x402813
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 0xa
push 0x10
push str.hijo_de_puta
push str.non_chalant
push 0
call edi
sub esi, 1
jne 0x4026e1
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x68]
push eax
push esi
push esi
push 7
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4027a1
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x274]
push str._sjoseangelputo.lnk
push eax
call fcn.00403d60
add esp, 0xc
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
push 0x406270
push 1
push esi
push 0x406290
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4027a1
mov eax, dword [esp + 0x10]
push str.C:_fahysuifasuhfsajoseangelputo.exe
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], esi
push 0x406280
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
js 0x402797
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x270]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00401e00
call fcn.00401400
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x40]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
push eax
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
call esi
test eax, eax
je 0x402813
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x4027f0
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00404556
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402be0
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 0x402c0c
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 0x402c34
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x402c3a
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 0x402ca2
jg 0x402c51
test esi, esi
je 0x402ca2
test ecx, ecx
jl 0x402c9d
jg 0x402c5b
test eax, eax
je 0x402c9d
cmp edi, ecx
jg 0x402c6f
jl 0x402c65
cmp esi, eax
jae 0x402c6f
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 0x402ca5
mov ecx, dword [ebp + 8]
jmp 0x402caf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x402cc9
jg 0x402caf
test esi, esi
je 0x402cc9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402cc9
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 0x402ce0
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 0x402d0c
jl 0x402d00
test ecx, ecx
jne 0x402d0c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402d25
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 0x402d73
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402d79
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 0x402d79
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402de6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402da2
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 0x402dd4
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 0x402de6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402db0
test edi, edi
je 0x402de6
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 0x403170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4031a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404556
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4031dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4031dc
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.00404556
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4032b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403204
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 0x403210
movsx eax, bl
jmp 0x403248
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 0x403272
sub eax, 1
je 0x403272
sub eax, 2
jne 0x4032b3
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.00404556
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403290
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 0x4032b3
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.00404556
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.00404556
mov esp, ebp
pop ebp
ret 4
Function at 0x403740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4037fc
cmp byte [esi + 0x3d], 0
je 0x4037fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4037ea
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 0x4037b1
sub eax, 1
je 0x4037b5
sub eax, 2
jne 0x4037ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404556
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4037d3
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 0x4037ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404556
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404556
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00404556
mov esp, ebp
pop ebp
ret

Function at 0x404ef6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404f35
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404f35
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404f35
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404f35
cmp dword [ecx + 0x74], 0xe
jbe 0x404f35
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42d0a0
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
test esi, esi
je 0x42d11e
mov dword [ebp - 0x14], ecx
mov ecx, esi
xor ebx, ebx
mov eax, 0x811c9dc5
mov esi, edx
mov dword [ebp - 0x10], edx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edx, byte [esi]
inc esi
xor edx, eax
mov eax, 0x100
mov edi, edx
imul edi, eax
mov eax, edx
mov edx, 0x1b3
mul edx
add edx, edi
mov edi, 0x1b3
imul ebx, edi
add ebx, edx
dec ecx
jne 0x42d0d0
mov ecx, 0x1b3
xor eax, 0xff
mov esi, 0x100
imul esi, eax
mul ecx
imul ebx, ecx
mov ecx, dword [ebp - 0x14]
add edx, esi
mov esi, dword [ebp + 8]
add ebx, edx
mov edx, dword [ebp - 0x10]
jmp 0x42d128
mov ebx, 0x1c9d3adb
mov eax, 0x639f298e
mov dword [ecx], eax
mov edi, dword [0x6d3de0]
mov eax, dword [0x6d6b64]
movaps xmm0, xmmword [0x606300]
mov dword [ecx + 4], ebx
mov byte [ecx + 0x144], 2
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], edi
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], edi
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], edi
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], edi
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0x110000
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x84], eax
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x90], eax
movups xmmword [ecx + 0x94], xmm0
mov dword [ecx + 0xa4], eax
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0xac], 0
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], 0
mov dword [ecx + 0xb8], 0
mov dword [ecx + 0xbc], 0
mov dword [ecx + 0xc4], 0
mov dword [ecx + 0xcc], 0
mov dword [ecx + 0xd4], 0
mov dword [ecx + 0xdc], 0
mov dword [ecx + 0xe4], 0
mov dword [ecx + 0xec], 0x110000
mov dword [ecx + 0xf0], eax
mov dword [ecx + 0xf4], 0
mov dword [ecx + 0xf8], 0
mov dword [ecx + 0xfc], edi
mov dword [ecx + 0x100], 0
mov dword [ecx + 0x104], 0
mov dword [ecx + 0x108], eax
mov dword [ecx + 0x10c], 0
mov dword [ecx + 0x110], 0
mov dword [ecx + 0x114], 0
mov dword [ecx + 0x128], 0
mov dword [ecx + 0x130], 0
mov dword [ecx + 0x138], 0
mov word [ecx + 0x145], 0
mov byte [ecx + 0x147], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42d690
Capabilities:
Encode data using base64
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c8
call fcn.0042d6a4
Function at 0x45e170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x45e1c0
cmp edi, esi
jb 0x45e22b
cmp edi, dword [ebp + 0x10]
ja 0x45e23e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x45e1c2
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x45e1b0
jmp 0x45e21f
ja 0x45e1c9
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x45e185
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x45e200
mov ebx, esi
sub ecx, edx
jns 0x45e217
jmp 0x45e221
cmp esi, edi
je 0x45e252
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x45e221
xor al, 1
cmp ebx, edi
jne 0x45e1e0
jmp 0x45e221
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x60d22c
call fcn.0045ce70
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x60d22c
call fcn.0045ab50
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_532d2b14c05f9bc20b2d27cbb5f4550d28343a36librarycore_src_strpattern.rs
mov edx, 0x2b
push 0x60d23c
call fcn.0045aec0
add esp, 4
ud2