joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f80
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 0x403fac
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 0x403fd4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403fda
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 0x404042
jg 0x403ff1
test esi, esi
je 0x404042
test ecx, ecx
jl 0x40403d
jg 0x403ffb
test eax, eax
je 0x40403d
cmp edi, ecx
jg 0x40400f
jl 0x404005
cmp esi, eax
jae 0x40400f
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 0x404045
mov ecx, dword [ebp + 8]
jmp 0x40404f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404069
jg 0x40404f
test esi, esi
je 0x404069
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404069
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 0x404080
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 0x4040ac
jl 0x4040a0
test ecx, ecx
jne 0x4040ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4040c5
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 0x40410d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x404113
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x404113
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404186
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40413c
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 0x404174
nop dword [eax]
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 0x404186
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404150
test edi, edi
je 0x404186
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 0x404500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404530
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40456c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40456c
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.004640a7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404643
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404594
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 0x4045a0
movsx eax, bl
jmp 0x4045d8
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 0x404602
sub eax, 1
je 0x404602
sub eax, 2
jne 0x404643
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.004640a7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404620
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 0x404643
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.004640a7
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.004640a7
mov esp, ebp
pop ebp
ret 4
Function at 0x404cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x404d8c
cmp byte [esi + 0x3d], 0
je 0x404d8c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404d7a
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 0x404d41
sub eax, 1
je 0x404d45
sub eax, 2
jne 0x404d7a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404d63
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 0x404d7a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004640a7
mov esp, ebp
pop ebp
ret
Function at 0x4066a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x4b6100]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
mov edi, ecx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x4066c8
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40683c
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x406884
xor edx, edx
mov dword [esp + 0xc], edx
nop dword [eax]
mov esi, 0x4703b8
lea eax, [esi + 1]
mov dword [esp + 8], eax
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x406700
sub esi, dword [esp + 8]
cmp dword [edi + 0x14], 0xf
mov dword [esp + 8], edi
jbe 0x40671b
mov eax, dword [edi]
mov dword [esp + 8], eax
test esi, esi
je 0x40677e
cmp edx, ecx
jae 0x40677e
push 0x100
lea eax, [esp + 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x4703b8
lea edx, [esi + 0x4703b8]
add esp, 0xc
cmp edx, ecx
je 0x406753
movzx eax, byte [ecx]
inc ecx
mov byte [esp + eax + 0x38], 1
cmp ecx, edx
jne 0x406746
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 8]
add ecx, edx
mov esi, dword [esp + 0xc]
add esi, edx
cmp esi, ecx
jae 0x40677e
movzx eax, byte [esi]
cmp byte [esp + eax + 0x38], 0
jne 0x406777
inc esi
cmp esi, ecx
jb 0x406766
jmp 0x40677e
sub esi, edx
cmp esi, 0xffffffff
jne 0x406781
mov esi, dword [edi + 0x10]
cmp dword [edi + 0x10], esi
mov ecx, esi
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 0xf
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
jbe 0x4067ac
mov eax, dword [edi]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004051d0
cmp dword [esp + 0x20], 0
je 0x4067f4
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4067f4
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
jne 0x406852
mov ecx, dword [esp + 0x24]
lea edx, [esi + 1]
mov dword [esp + 0xc], edx
cmp ecx, 0xf
jbe 0x406831
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406823
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40689a
push ecx
push edx
call fcn.004640ea
mov edx, dword [esp + 0x14]
add esp, 8
mov ecx, dword [edi + 0x10]
cmp edx, ecx
jb 0x4066f0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x406884
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40687a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40689a
push ecx
push edx
call fcn.004640ea
add esp, 8
mov ecx, dword [esp + 0x13c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x407920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b6100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 4]
mov dword [edi], vtable.spdlog::pattern_formatter.0
xorps xmm0, xmm0
push 2
movups xmmword [ecx], xmm0
push 0x4abf54
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004051d0
xorps xmm0, xmm0
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
movups xmm0, xmmword [ebp + 0xc]
mov dword [edi + 0x30], 0
mov byte [ebp + 0xc], 0
movups xmmword [edi + 0x1c], xmm0
movq xmm0, qword [ebp + 0x1c]
movq qword [edi + 0x2c], xmm0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov dword [edi + 0x34], 0
mov byte [edi + 0x38], 1
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 3
call fcn.0040d1e0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 0x3c], xmm0
push 0x128
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.004640b5
push 0x128
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0x10
movq xmm0, qword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movq qword [ecx + 4], xmm0
mov dword [ecx + 0xc], eax
lea eax, [ecx + 0x28]
mov dword [ecx], vtable.spdlog::details::full_formatter.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x18], vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x24], 0xfa
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x6c]
cmp eax, dword [edi + 0x70]
je 0x407a90
mov dword [eax], ecx
add dword [edi + 0x6c], 4
jmp 0x407aaa
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [edi + 0x68]
call fcn.00416fe0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x407aaa
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xf
jbe 0x407ae0
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ad6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407ad6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004640ea
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40c7e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4665f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x40c877
cmp dword [ecx + 0x14], 7
mov eax, dword [ecx + 0x10]
jbe 0x40c848
mov ecx, dword [ecx]
cmp eax, 7
ja 0x40c86a
lea esi, [eax + eax]
mov dword [ebp - 0x24], eax
push esi
push ecx
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x34], ax
jmp 0x40c877
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
call fcn.00411820
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
test ecx, ecx
je 0x40c88c
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x40c8be
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c8be
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c8be
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
push 0x40c290
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
test esi, esi
je 0x40c8f9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c8f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c8f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x40c935
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c92b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c92b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004640ea
add esp, 8
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
test esi, esi
je 0x40c96e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c96e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c96e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret
Function at 0x40cd00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466643
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4b6100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
movups xmmword [edi + 0xc], xmm0
push 2
movq qword [edi + 0x1c], xmm0
mov dword [edi + 0x24], 0
push edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x30]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
push eax
call esi
lea eax, [edi + 0x58]
push eax
call esi
add esp, 0x10
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 2
add edi, 1
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
je 0x40ce8d
cmp edi, 0xbe82fa
ja 0x40ceac
imul eax, edi, 0x158
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x40ce31
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40ceb1
push ecx
call fcn.004640b5
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40ce2b
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [esi + 0x90], eax
add eax, dword [ebp - 0x14]
jmp 0x40ce53
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test eax, eax
je 0x40ce49
push eax
call fcn.004640b5
add esp, 4
mov dword [esi + 0x90], eax
add eax, dword [ebp - 0x14]
jmp 0x40ce53
xor ecx, ecx
mov dword [esi + 0x90], ecx
add eax, ecx
mov dword [esi + 0x98], eax
mov esi, dword [esi + 0x90]
nop
push 0x158
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00409300
add esi, 0x158
sub edi, 1
jne 0x40ce60
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x94], esi
mov esi, edi
mov dword [esi + 0x9c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00405980
call fcn.00401f30
int3
Function at 0x410680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466b66
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x10c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
add esp, 0xc
mov dword [ebp - method.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov dword [ebp - 4], 0
lea edx, [ebp - 0x11c]
mov ecx, dword [edi + 8]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x41072d
mov esi, dword [ebp - 0x114]
push eax
push esi
push 1
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x410794
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov dword [ebp - method.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x410777
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x41076d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41076d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004640ea
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea edx, [edi + 0x4c]
lea ecx, [ebp - 0x134]
mov esi, dword [eax]
call fcn.00406680
push eax
mov edx, str.Failed_writing_to_file
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14c]
call fcn.004101e0
add esp, 4
mov edx, esi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004064d0
int3
Function at 0x416120
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x416151
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x14], ecx
lea eax, [edi + edi]
push eax
call fcn.0040dc50
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x416239
nop dword [eax]
mov bl, byte [eax + 8]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx]
movzx edx, bl
xor edx, 0x811c9dc5
mov edi, dword [edi + 0x18]
imul edx, edx, 0x1000193
and edi, edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0xc], edx
cmp edi, esi
jne 0x4161c4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x41622f
mov edx, dword [edx + 4]
cmp bl, byte [edx + 8]
jne 0x4161fb
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x4161f3
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x41622f
cmp edi, edx
je 0x41620c
nop
mov edx, dword [edx + 4]
cmp bl, byte [edx + 8]
je 0x416242
cmp edi, edx
jne 0x416200
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
jne 0x416190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x41622f