joyce8/EMBER2024-capa huggingface dataset:
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
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x401840
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43afa0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x455134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 1
lea ecx, [ebp - 0x70]
push ecx
call fcn.00412b00
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
push str.EaseUS_
lea ecx, [ebp - 0x58]
push ecx
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
push str._Lancher
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402ea0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.00401ee0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00401f60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00401f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
je 0x401918
cmp dword [ebp - 0x14], 0xb7
jne 0x40191e
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x405580
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4055dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 8
lea ecx, [ebp - 0xc]
call fcn.00404c60
call fcn.004053b0
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.004042d0
push 0x44c8a8
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405300
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret

Function at 0x405610
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x405675
lea edx, [ebp - 0x194]
push edx
movzx eax, byte [ebp + 0xc]
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 0x10]
and edx, 0xff
movzx eax, dl
shl eax, 8
or ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ebp + 8]
add edx, 4
xchg dword [edx], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret
Function at 0x4058e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b34e
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405710
xorps xmm0, xmm0
movlpd qword [ebp - 0x250], xmm0
mov dword [ebp - 0x244], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
je 0x405955
cmp dword [ebp - 0x244], 0
jne 0x40595a
jmp 0x405a98
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea ecx, [ebp - 0x23c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x274]
call fcn.004067f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x14]
call fcn.00405b10
mov byte [ebp - 0x245], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.00401dc0
movzx eax, byte [ebp - 0x245]
test eax, eax
je 0x4059ec
mov ecx, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], edx
jmp 0x405a98
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405a90
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x28c]
call fcn.004067f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405b10
movzx ecx, al
test ecx, ecx
jne 0x405a40
mov dword [ebp - 0x254], 1
jmp 0x405a4a
mov dword [ebp - 0x254], 0
mov dl, byte [ebp - 0x254]
mov byte [ebp - 0x246], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.00401dc0
movzx eax, byte [ebp - 0x246]
test eax, eax
je 0x405a75
jmp 0x4059ec
mov ecx, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], edx
jmp 0x405a90
xor eax, eax
jne 0x405933
cmp dword [ebp - 0x244], 0
je 0x405ab7
cmp dword [ebp - 0x244], 0xffffffff
je 0x405ab7
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f60
mov eax, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret
Function at 0x405b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b398
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402a10
push eax
lea ecx, [ebp - 0x28]
call fcn.00401e60
mov byte [ebp - 4], 2
push 0x4409f0
push 0x4409f4
lea eax, [ebp - 0x28]
push eax
call fcn.00407eb0
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x4409f8
lea ecx, [ebp - 0x28]
call fcn.00406640
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 0x20]
call fcn.00406640
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x405c76
mov byte [ebp - 0x65], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401dc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00401dc0
mov al, byte [ebp - 0x65]
jmp 0x405cb8
movzx edx, byte [ebp + 0x38]
test edx, edx
je 0x405c8a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0x66], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401dc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00401dc0
mov al, byte [ebp - 0x66]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret

Function at 0x405ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp + 8]
call fcn.00405240
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0x20]
call fcn.00406640
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x405d48
mov dword [ebp - 0x44], 1
jmp 0x405d4f
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x405d6c
jmp 0x405d76
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
xor ecx, ecx
jne 0x405cf7
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp + 8]
call fcn.00401800
lea ecx, [ebp + 0x20]
call fcn.00401dc0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret
Function at 0x405ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x405edc
cmp dword [ebp + 8], 0xffffffff
jne 0x405ef3
mov dword [ebp - 0x60], 0
lea ecx, [ebp + 0x10]
call fcn.00401dc0
mov eax, dword [ebp - 0x60]
jmp 0x405f9b
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x405f22
mov dword [ebp - 0x5c], 1
jmp 0x405f29
mov dword [ebp - 0x5c], 0
mov dx, word [ebp - 0x5c]
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00406640
push eax
push 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x405f89
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x64], edx
lea ecx, [ebp + 0x10]
call fcn.00401dc0
mov eax, dword [ebp - 0x64]
jmp 0x405f9b
mov dword [ebp - 0x68], 0
lea ecx, [ebp + 0x10]
call fcn.00401dc0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret
Function at 0x413db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x413ddc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
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__]
jmp 0x413ec2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x413e73
jg 0x413e05
cmp dword [ebp + 0xc], 0
jbe 0x413e73
cmp dword [ebp - 8], 0
jl 0x413e73
jg 0x413e13
cmp dword [ebp - 0xc], 0
jbe 0x413e73
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x413e31
jl 0x413e25
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x413e31
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x413eb6
jg 0x413e81
cmp dword [ebp + 0xc], 0
jbe 0x413eb6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x413eb6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x413efc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
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__]
jmp 0x413fea
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x413f93
jg 0x413f25
cmp dword [ebp + 0xc], 0
jbe 0x413f93
cmp dword [ebp - 8], 0
jl 0x413f93
jg 0x413f33
cmp dword [ebp - 0xc], 0
jbe 0x413f93
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x413f51
jl 0x413f45
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x413f51
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x413fde
jg 0x413fa1
cmp dword [ebp + 0xc], 0
jbe 0x413fde
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x413fde
mov ecx, dword [ebp - 4]
call fcn.00415b10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x415bc7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x415bce
mov al, 1
jmp 0x415cb4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.00402a80
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.00402a80
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00404090
add esp, 8
movzx eax, al
test eax, eax
je 0x415c14
xor al, al
jmp 0x415cb4
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x415c57
cmp dword [ebp - 0x34], 1
je 0x415c5e
cmp dword [ebp - 0x34], 3
je 0x415cae
jmp 0x415cb2
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x415c8e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x415c8e
xor al, al
jmp 0x415cb4
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x415ca2
mov dword [ebp - 0x3c], 1
jmp 0x415ca9
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x415cb4
mov al, 1
jmp 0x415cb4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret
Function at 0x403cf0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48729a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b5320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], eax
mov byte [esi + 0x30], al
sub esp, 8
mov byte [ebp - 4], 2
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.004049c0
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov byte [ebp - 4], 3
push 2
push eax
call dword [sym.imp.MSVCP120.dll__Mtx_init]
add esp, 8
test eax, eax
je 0x403d7e
push eax
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
lea eax, [esi + 0x54]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.MSVCP120.dll__Cnd_init]
add esp, 4
test eax, eax
je 0x403d9d
push eax
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [esi + 0x58], 0
mov byte [esi + 0x5c], 0
mov byte [ebp - 4], 6
lea ecx, [esi + 0x64]
mov word [esi + 0x60], 0
call fcn.0042f320
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x6c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4072a5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4072b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4072b0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4072e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4072f9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407305
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407300
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8