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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002ea9c
cmp byte [esi + 0x3d], 0
je 0x1002ea9c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002ea8a
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 0x1002ea51
sub eax, 1
je 0x1002ea55
sub eax, 2
jne 0x1002ea8a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002ea73
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 0x1002ea8a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002f367
mov esp, ebp
pop ebp
ret

Function at 0x100304e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10030690
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100305ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003c014]
jb 0x1003052a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003c018]
ja 0x1003052a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100304fa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10030550
jmp 0x100305ad
cmp dword [ebp - 0x14], 0x10000
jne 0x10030593
cmp dword [ebp - 0x18], 0x10000
jb 0x10030593
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10030586
mov eax, dword [ebp - 8]
jmp 0x100305af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100305a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10030690
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100304fa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100305c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100306c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10030685
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003c014]
jb 0x10030605
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003c018]
ja 0x10030605
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100305d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003062b
jmp 0x10030685
cmp dword [ebp - 0x14], 0x10000
jne 0x1003066e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003066e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10030661
mov eax, dword [ebp - 8]
jmp 0x10030687
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10030680
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100306c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100305d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100306f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10030ae0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10060484], 0
jne 0x1003072d
cmp dword [0x10060480], 0
je 0x1003072d
mov eax, dword [0x10060480]
mov dword [0x10060484], eax
cmp dword [0x10060484], 0
je 0x100307aa
mov ecx, dword [0x10060484]
cmp dword [ecx + 8], 0
je 0x100307aa
mov edx, dword [0x10060484]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100307aa
mov ecx, dword [0x10060484]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100307aa
mov eax, dword [0x10060484]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10030779
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10030780
xor eax, eax
jmp 0x100308c9
mov ecx, dword [0x10060484]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100308c9
mov edx, dword [0x10060480]
mov dword [0x10060484], edx
jmp 0x100307c6
mov eax, dword [0x10060484]
mov ecx, dword [eax + 4]
mov dword [0x10060484], ecx
cmp dword [0x10060484], 0
je 0x10030806
cmp dword [0x10060484], 0
je 0x10030804
mov edx, dword [0x10060484]
cmp dword [edx + 8], 0
je 0x10030804
mov eax, dword [0x10060484]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10030804
mov edx, dword [0x10060484]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10030804
jmp 0x1003075e
jmp 0x100307b8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100308d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100308c7
mov eax, dword [ebp - 0x18]
mov dword [0x10060484], eax
mov ecx, dword [0x10060484]
mov dword [ecx], 0x52727464
mov edx, dword [0x10060484]
mov dword [edx + 8], 0
mov eax, dword [0x10060484]
mov ecx, dword [0x10060480]
mov dword [eax + 4], ecx
mov edx, dword [0x10060484]
mov dword [0x10060480], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10060484]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10030897
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100308b7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003088e
mov eax, dword [0x10060484]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003075e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404c40
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x438080]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push dword [ebp + 0xc]
lea eax, [edx + 0x24234428]
mov dword [esp + 0x14], edx
push dword [ebp + 8]
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
lea eax, [edx - 0x7a143589]
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], eax
lea eax, [edx + 0x61c8864f]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
movlpd qword [esp + 0x3c], xmm0
call fcn.00404a50
cmp dword [esp + 0x34], 0
mov esi, dword [esp + 0x30]
ja 0x404cb5
cmp esi, 0x10
jae 0x404cb5
mov eax, dword [esp + 0x10]
add eax, 0x165667b1
add eax, esi
jmp 0x404cd9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
ror eax, 0x14
ror edx, 0xe
add edx, eax
ror ecx, 0x19
mov eax, dword [esp + 8]
add ecx, esi
ror eax, 0x1f
add ecx, edx
add eax, ecx
lea edx, [esp + 0x18]
mov esi, edx
lea ecx, [esp + 0x1c]
add esi, dword [esp + 0x28]
cmp ecx, esi
ja 0x404d0b
nop dword [eax + eax]
imul ecx, dword [edx], 0x3d4d51c3
add edx, 4
sub eax, ecx
lea ecx, [edx + 4]
ror eax, 0xf
imul eax, eax, 0x27d4eb2f
cmp ecx, esi
jbe 0x404cf0
cmp edx, esi
je 0x404d29
nop
movzx ecx, byte [edx]
inc edx
imul ecx, ecx, 0x165667b1
add ecx, eax
ror ecx, 0x15
imul eax, ecx, 0x9e3779b1
cmp edx, esi
jne 0x404d10
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul ecx, ecx, 0x85ebca77
pop esi
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00429136
mov esp, ebp
pop ebp
ret

Function at 0x404d60
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x438080]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404e14
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
nop dword [eax]
lea eax, [esp + 0x34]
push 0x42eb5c
push eax
call edi
add esp, 8
test eax, eax
je 0x404dd6
lea eax, [esp + 0x34]
push str.samp.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x404e04
push dword [esp + 0x18]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404dfe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x404e04
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x404db0
push ebx
call esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429136
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a687
mov eax, dword fs:[0]
push eax
mov eax, 0x4044
call fcn.0042a010
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x401c], esi
lea eax, [ebp - 0x4018]
mov dword [ebp - 0x401c], esi
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4050], 0
push eax
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4018], 0x3fff
push eax
push 2
push str.PlayerName
push 0x42e985
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
xorps xmm0, xmm0
test eax, eax
jne 0x404ef3
mov eax, dword [ebp - 0x4018]
lea ecx, [ebp - 0x404c]
dec eax
mov dword [ebp - 0x403c], 0
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4038], 0
push eax
movups xmmword [ebp - 0x404c], xmm0
call fcn.00410940
lea ecx, [ebp - 0x404c]
mov eax, 1
jmp 0x404f2b
push 0
push 0x42e985
lea ecx, [ebp - 0x4034]
mov dword [ebp - 0x4024], 0
movups xmmword [ebp - 0x4034], xmm0
mov dword [ebp - 0x4020], 0
call fcn.00410940
lea ecx, [ebp - 0x4034]
mov eax, 2
xorps xmm0, xmm0
or eax, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
test al, 2
je 0x404fac
mov ecx, dword [ebp - 0x4020]
and eax, 0xfffffffd
mov dword [ebp - 0x401c], eax
cmp ecx, 0xf
jbe 0x404fac
mov edx, dword [ebp - 0x4034]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404f9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdc
push ecx
push edx
call fcn.004294df
mov eax, dword [ebp - 0x401c]
add esp, 8
test al, 1
je 0x404fec
mov ecx, dword [ebp - 0x4038]
cmp ecx, 0xf
jbe 0x404fec
mov edx, dword [ebp - 0x404c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404fe2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404fe2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
Function at 0x40adf0
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 0x40ae1c
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 0x40ae44
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40ae4a
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 0x40aeb2
jg 0x40ae61
test esi, esi
je 0x40aeb2
test ecx, ecx
jl 0x40aead
jg 0x40ae6b
test eax, eax
je 0x40aead
cmp edi, ecx
jg 0x40ae7f
jl 0x40ae75
cmp esi, eax
jae 0x40ae7f
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 0x40aeb5
mov ecx, dword [ebp + 8]
jmp 0x40aebf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40aed9
jg 0x40aebf
test esi, esi
je 0x40aed9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40aed9
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 0x40aef0
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 0x40af1c
jl 0x40af10
test ecx, ecx
jne 0x40af1c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40af35
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 0x40af83
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x40af89
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 0x40af89
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x40aff6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40afb2
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 0x40afe4
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 0x40aff6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40afc0
test edi, edi
je 0x40aff6
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 0x40b380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40b3b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b3ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40b3ec
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.00429136
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40b4c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40b414
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 0x40b420
movsx eax, bl
jmp 0x40b458
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 0x40b482
sub eax, 1
je 0x40b482
sub eax, 2
jne 0x40b4c3
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.00429136
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b4a0
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 0x40b4c3
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.00429136
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.00429136
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40de1c
cmp byte [esi + 0x3d], 0
je 0x40de1c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40de0a
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 0x40ddd1
sub eax, 1
je 0x40ddd5
sub eax, 2
jne 0x40de0a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ddf3
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 0x40de0a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00429136
mov esp, ebp
pop ebp
ret
Function at 0x423fea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x424011
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x424014
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00423fc5
pop esi
leave
ret 8