joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x40e822
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004031b0
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x40e7fa
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
jb 0x40e721
mov edx, dword [ebx]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 8], 0x811c9dc5
test esi, esi
je 0x40e754
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x40e737
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 8]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov dword [ebp - 8], edx
cmp dword [edx], ecx
jne 0x40e774
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x40e7f0
mov esi, dword [edx + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.004037b0
test al, al
jne 0x40e7ae
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
cmp ecx, edi
je 0x40e7a6
mov ebx, dword [edi + 4]
mov dword [ebx], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov edx, dword [ecx + 4]
mov dword [edx], edi
mov dword [ecx + 4], esi
mov dword [eax + 4], ebx
mov dword [edi + 4], edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], edi
jmp 0x40e7ed
mov eax, dword [ebp - 8]
cmp dword [eax], esi
je 0x40e7cd
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.004037b0
test al, al
je 0x40e803
mov eax, dword [ebp - 8]
cmp dword [eax], esi
jne 0x40e7b5
mov ebx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov dword [esi + 4], edx
mov dword [eax + 4], ebx
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov edi, eax
cmp eax, ecx
jne 0x40e705
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x40e7ed
push str.invalid_hash_bucket_count
call fcn.0046b26b
int3
Function at 0x4109a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
push esi
push edi
push 0x40
lea eax, [esp + 0x1c]
mov esi, ecx
push 0
push eax
call fcn.00470f10
push 0xf8
lea eax, [esp + 0x68]
push 0
push eax
call fcn.00470f10
mov eax, dword [ebp + 8]
add esp, 0x18
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
or eax, edx
mov ecx, dword [esi + 4]
movlpd qword [esp + 8], xmm0
je 0x410a76
mov eax, dword [ecx + 0x4c]
lea edi, [esp + 8]
push edi
push 0x40
lea edi, [esp + 0x20]
mov ecx, dword [eax + 8]
push edi
mov edi, dword [ebp + 8]
push edx
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x410a76
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x410a76
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
cdq
mov esi, eax
movlpd qword [esp + 0x10], xmm0
add esi, edi
mov ecx, esi
adc edx, dword [ebp + 0xc]
or ecx, edx
je 0x410a76
mov eax, dword [esp + 8]
lea edi, [esp + 0x10]
push edi
push 0xf8
lea edi, [esp + 0x60]
mov eax, dword [eax + 0x4c]
push edi
push edx
push esi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x410a76
cmp dword [esp + 0x58], 0x4550
jne 0x410a76
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x410bf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0x18
mov dword [esp + 0x30], ecx
mov ecx, esp
call fcn.00402440
lea ecx, [esp + 0x34]
call fcn.00402af0
xor ecx, ecx
add esp, 0x18
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], eax
cmp edx, 8
jb 0x410c82
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d28
push edx
push ecx
call fcn.0046d4cf
add esp, 8
mov edi, dword [esp + 0x48]
lea ebx, [esp + 0x34]
mov esi, dword [esp + 0x34]
cmp edi, 8
mov eax, dword [esp + 0x44]
mov edx, 0x811c9dc5
cmovae ebx, esi
xor ecx, ecx
add eax, eax
je 0x410cba
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x410ca5
mov edi, dword [esp + 0x48]
xor edx, dword [ebp + 0xc]
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0xc]
call fcn.00411c70
cmp dword [eax + 4], 0
je 0x410cef
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0xc]
call fcn.004110a0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
cmp edi, 8
jb 0x410d1f
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x410d15
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d2d
push ecx
push esi
call fcn.0046d4cf
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00472aca
call fcn.00472aca
int3
Function at 0x4110a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
jb 0x4110bc
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4110d8
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4110c7
mov edi, dword [edx + 0x18]
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 8]
xor edi, esi
push edi
push edx
push eax
mov ecx, ebx
call fcn.00411c70
mov esi, dword [eax + 4]
test esi, esi
je 0x411155
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x41111c
cmp eax, esi
jne 0x411114
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x411124
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x411124
cmp eax, esi
jne 0x411124
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [ebx + 8]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 8]
call fcn.004120c0
push 0x2c
push esi
call fcn.0046d4cf
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4115b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4921c5
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x4115e0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x411604
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4115f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
mov ecx, edi
xor eax, edx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00411c70
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41163c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 8], 0x5d1745d
je 0x4117a6
lea eax, [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.0046d49f
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
push ebx
call fcn.00402dc0
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [ecx]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x28], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x4b46b0]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b46b0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x411740
divss xmm0, xmm3
call fcn.004038b0
call fcn.0046dc40
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x411721
cmp ebx, 0x200
jae 0x41171f
shl ebx, 3
cmp ebx, ecx
jae 0x411721
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.00411eb0
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00411c70
mov edx, dword [eax]
jmp 0x411746
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, ebx
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 0xc]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
jne 0x411774
mov dword [ecx + eax*8], esi
jmp 0x411786
cmp edi, edx
jne 0x41177d
mov dword [ecx + eax*8], esi
jmp 0x41178a
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x41178a
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.0046b26b
int3
Function at 0x411a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4921c5
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x411a40
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x411a64
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x411a50
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
mov ecx, edi
xor eax, edx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00411c70
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x411a9c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x5d1745d
je 0x411bec
lea eax, [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.0046d49f
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
push ebx
call fcn.00402dc0
mov ecx, dword [ebx + 0x18]
xorps xmm0, xmm0
mov dword [esi + 0x20], ecx
movq qword [esi + 0x24], xmm0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x4b46b0]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b46b0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x411b86
divss xmm0, xmm3
call fcn.004038b0
call fcn.0046dc40
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x411b67
cmp ebx, 0x200
jae 0x411b65
shl ebx, 3
cmp ebx, ecx
jae 0x411b67
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.00411eb0
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00411c70
mov edx, dword [eax]
jmp 0x411b8c
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, ebx
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 0xc]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
jne 0x411bba
mov dword [ecx + eax*8], esi
jmp 0x411bcc
cmp edi, edx
jne 0x411bc3
mov dword [ecx + eax*8], esi
jmp 0x411bd0
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x411bd0
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0046b26b
int3
Function at 0x413270
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
push edi
mov dword [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
lea ecx, [ebx + 0x54]
mov byte [ebp - 4], 4
call fcn.00414910
lea ecx, [ebx + 0x74]
mov byte [ebp - 4], 5
call fcn.00414910
xor eax, eax
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 7
mov word [ebx + 0x94], ax
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0xc0], 7
mov word [ebx + 0xac], ax
lea edi, [ebx + 0xc4]
mov dword [ebp - 0x14], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 9
push 0x44
mov dword [ebp - 0x18], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0046d49f
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4135b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
test eax, eax
je 0x4135d2
jle 0x4135cc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], 0
mov eax, dword [edi + 4]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4135f1
jle 0x4135ea
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x413602
jle 0x4135fc
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 0x34]
test eax, eax
je 0x413619
jle 0x413612
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], 0
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x94]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
cmp ecx, esi
je 0x413647
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41363e
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00402f30
mov byte [edi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x413653
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 7
push 0x120089
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x413686
test ecx, ecx
jle 0x413682
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov ecx, eax
test ecx, ecx
jle 0x41376b
push 0
push 0
push 0
push 0x1000002
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x4136bb
test ecx, ecx
jle 0x4136b6
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov ecx, eax
push 0
push 0
push 0
test ecx, ecx
jle 0x4136cb
mov byte [edi + 0xc], 0
jmp 0x4136fe
push 2
push 0
push dword [edi]
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x4136f4
test ecx, ecx
jle 0x4136ef
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov ecx, eax
test ecx, ecx
jle 0x413732
push 0
push 0
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea eax, [ebp + 8]
cmp eax, ebx
je 0x413726
mov eax, dword [ebx]
cmp esi, eax
je 0x413732
test eax, eax
jle 0x413722
push eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
mov dword [ebx], esi
jmp 0x413732
test esi, esi
jle 0x413732
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call eax
cmp dword [ebx], 0
je 0x41376b
push 0
mov ecx, edi
call fcn.00413910
test eax, eax
js 0x413777
cmp byte [ebp + 0xc], 0
jne 0x413777
cmp dword [edi + 0xa8], 8
lea eax, [edi + 0x94]
jb 0x41375b
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.004145a0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4145a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4922ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x430
push esi
push edi
push 0x200
lea eax, [ebp - 0x240]
mov edi, ecx
push 0
push eax
call fcn.00470f10
add esp, 0xc
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x38]
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov ecx, edi
movups xmmword [ebp - 0x3c], xmm0
push esi
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x3c], 0x20
call fcn.00414790
mov dword [ebp - 0x18], eax
test eax, eax
je 0x414775
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x414703
push 0x200
push ecx
lea eax, [ebp - 0x440]
push eax
call fcn.00470f10
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x240]
push eax
push 0
push str.ImageManifest
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41467a
mov eax, 0xc0150002
jmp 0x414777
push 0
push 0
push 4
push 0
push 0
push 0x120116
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jle 0x4146f5
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4146d7
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
lea ecx, [edi + 0xac]
jmp 0x41472f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x414777
movzx eax, word [esi]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x94]
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0xac]
mov dword [ebp - 0x38], 8
cmp ecx, eax
je 0x414735
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x41472e
mov eax, dword [eax]
push edx
push eax
call fcn.00402f30
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov ecx, dword [edi + 0x34]
mov esi, eax
cmp esi, ecx
je 0x414758
test ecx, ecx
jle 0x414753
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], esi
mov ecx, esi
test ecx, ecx
jg 0x414775
mov eax, dword fs:[0x18]
cmp dword [eax + 0xbf4], 0xc0000022
jne 0x4146f5
mov dword [edi + 0x38], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x414f10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x492355
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
jb 0x414f40
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x414f64
mov edx, eax
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x414f50
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040ad70
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x414f94
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x5d1745d
je 0x4150de
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.0046d49f
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00402dc0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b46b0]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b46b0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x41507d
divss xmm0, xmm3
call fcn.004038b0
call fcn.0046dc40
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x415061
cmp eax, 0x200
jae 0x41505f
shl eax, 3
cmp eax, ecx
jae 0x415061
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0040ab20
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ad70
mov edx, dword [eax]
jmp 0x415080
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x4150ac
mov dword [ecx + eax*8], edi
jmp 0x4150be
cmp esi, edx
jne 0x4150b5
mov dword [ecx + eax*8], edi
jmp 0x4150c2
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x4150c2
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0046b26b
int3