joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
jne 0x10065368
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
add ebx, 0x1f
push esi
and ebx, 0xffffffe0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x40]
test edi, edi
je 0x10065294
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
cmp ebx, eax
jbe 0x1006533f
mov edi, dword [edi]
test edi, edi
jne 0x10065280
mov eax, 0x8000
cmp ebx, eax
push 0x10
cmova eax, ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1006530a
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
je 0x100652f9
call fcn.10064640
mov edx, dword [ebp + 8]
mov ecx, eax
test edx, edx
jne 0x100652d3
mov eax, dword [ecx + 8]
mov edx, eax
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xc]
dec ecx
push 0x40
add ecx, eax
neg eax
push 0x3000
and ecx, eax
push ecx
push 0
push edx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
test edx, edx
jne 0x1006531c
push edi
mov dword [edi + 4], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [edi + 8]
test eax, eax
je 0x10065328
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 4]
mov dword [edi + 0xc], 0
mov eax, dword [edx + 0x40]
mov dword [edi], eax
mov dword [edx + 0x40], edi
jmp 0x10065342
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
add eax, ecx
add ecx, ebx
mov dword [edi + 0xc], ecx
add dword [edx + 0x2c], ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
call fcn.10064cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10068190
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 sub.VCRUNTIME140.dll_memset
push 0xf8
lea eax, [esp + 0x68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x10068265
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 0x10068265
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x10068265
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 0x10068265
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 0x10068265
cmp dword [esp + 0x58], 0x4550
sete al
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 0x10068430
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.10065780
lea ecx, [esp + 0x34]
call fcn.10065f30
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 ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], eax
cmp ecx, 8
jb 0x100684c4
mov edx, dword [esp + 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100684ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100684ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
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 0x100684fc
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100684e7
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.10069440
cmp dword [eax + 4], 0
je 0x10068531
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0xc]
call fcn.100688d0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
cmp edi, 8
jb 0x10068567
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1006855d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006855d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1013b151
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100688d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
mov edi, esi
cmp dword [esi + 0x14], 8
mov ebx, dword [esi + 0x10]
jb 0x100688ec
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x10068908
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x100688f7
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0xc]
mov ebx, dword [ebp - 4]
xor edi, edx
push edi
push esi
push eax
mov ecx, ebx
call fcn.10069440
mov esi, dword [eax + 4]
test esi, esi
je 0x10068985
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 0x1006894c
cmp eax, esi
jne 0x10068944
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10068954
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x10068954
cmp eax, esi
jne 0x10068954
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.100694c0
push 0x2c
push esi
call fcn.1013b151
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 0x10068f70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1013ea45
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 0x10068fa0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x10068fc4
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10068fb0
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.10069440
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10068ffc
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
jne 0x10069010
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.1013b121
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
push ebx
call fcn.1004fd90
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 + 0x101a0490]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x101a0490]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x100690ed
divss xmm0, xmm3
call fcn.1005c200
call fcn.1013b7d0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x100690ce
cmp ebx, 0x200
jae 0x100690cc
shl ebx, 3
cmp ebx, ecx
jae 0x100690ce
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.100691f0
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.10069440
mov edx, dword [eax]
jmp 0x100690f3
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x18]
and eax, ebx
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
jne 0x1006911d
mov dword [ecx + eax*8], esi
jmp 0x1006912f
cmp edi, edx
jne 0x10069126
mov dword [ecx + eax*8], esi
jmp 0x10069133
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10069133
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
Function at 0x1006a670
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013eb03
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.1006bd50
lea ecx, [ebx + 0x74]
mov byte [ebp - 4], 5
call fcn.1006bd50
xor eax, eax
mov dword [ebx + 0x94], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 7
mov word [ebx + 0x94], ax
mov dword [ebx + 0xac], eax
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], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
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.1013b121
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 0x1006a9c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
test eax, eax
je 0x1006a9e5
jle 0x1006a9df
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 0x1006aa04
jle 0x1006a9fd
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 0x1006aa15
jle 0x1006aa0f
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 0x34]
test eax, eax
je 0x1006aa2c
jle 0x1006aa25
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], 0
lea ecx, [edi + 0x94]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
cmp ecx, esi
je 0x1006aa57
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006aa4e
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.10050370
mov byte [edi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x1006aa63
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, eax
cmp esi, ecx
je 0x1006aa90
test ecx, ecx
jle 0x1006aa8c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
mov ecx, esi
test ecx, ecx
jle 0x1006ab75
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 esi, eax
cmp esi, ecx
je 0x1006aac5
test ecx, ecx
jle 0x1006aac0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], esi
mov ecx, esi
push 0
push 0
push 0
test ecx, ecx
jle 0x1006aad5
mov byte [edi + 0xc], 0
jmp 0x1006ab08
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 esi, eax
cmp esi, ecx
je 0x1006aafe
test ecx, ecx
jle 0x1006aaf9
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], esi
mov ecx, esi
test ecx, ecx
jle 0x1006ab3c
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 0x1006ab30
mov eax, dword [ebx]
cmp esi, eax
je 0x1006ab3c
test eax, eax
jle 0x1006ab2c
push eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
mov dword [ebx], esi
jmp 0x1006ab3c
test esi, esi
jle 0x1006ab3c
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call eax
cmp dword [ebx], 0
je 0x1006ab75
push 0
mov ecx, edi
call fcn.1006ad20
test eax, eax
js 0x1006ab81
cmp byte [ebp + 0xc], 0
jne 0x1006ab81
cmp dword [edi + 0xa8], 8
lea eax, [edi + 0x94]
jb 0x1006ab65
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.1006b9e0
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 0x1006ac40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1006ac5d
jle 0x1006ac56
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1006ac74
jle 0x1006ac6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x1006ac89
jle 0x1006ac83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1006aca0
jle 0x1006ac99
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [esi + 0x34], 0
cmp byte [ebp + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
jne 0x1006ad12
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x1006acc9
mov ecx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0xa4], 0
mov word [ecx], ax
cmp byte [esi + 0x10], al
je 0x1006acf6
add esi, 0xac
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1006aced
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1006acfc
add esi, 0xac
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006ad06
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
pop esi
pop ebp
ret 4
Function at 0x1006b9e0
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 0x1013eb6d
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 sub.VCRUNTIME140.dll_memset
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.1006bbd0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1006bbb5
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x1006bb43
push 0x200
push ecx
lea eax, [ebp - 0x440]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1006baba
mov eax, 0xc0150002
jmp 0x1006bbb7
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 0x1006bb35
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 0x1006bb17
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
lea ecx, [edi + 0xac]
jmp 0x1006bb6f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x1006bbb7
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 0x1006bb75
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x1006bb6e
mov eax, dword [eax]
push edx
push eax
call fcn.10050370
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 0x1006bb98
test ecx, ecx
jle 0x1006bb93
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], esi
mov ecx, esi
test ecx, ecx
jg 0x1006bbb5
mov eax, dword fs:[0x18]
cmp dword [eax + 0xbf4], 0xc0000022
jne 0x1006bb35
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 0x1006be80
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 0x1013ebc5
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 0x1006beb0
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x1006bed4
mov edx, eax
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1006bec0
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10063960
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1006bf04
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
jne 0x1006bf18
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.1013b121
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.1004fd90
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 + 0x101a0490]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x101a0490]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1006bff4
divss xmm0, xmm3
call fcn.1005c200
call fcn.1013b7d0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x1006bfd8
cmp eax, 0x200
jae 0x1006bfd6
shl eax, 3
cmp eax, ecx
jae 0x1006bfd8
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10063750
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10063960
mov edx, dword [eax]
jmp 0x1006bff7
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x1006c01f
mov dword [ecx + eax*8], edi
jmp 0x1006c031
cmp esi, edx
jne 0x1006c028
mov dword [ecx + eax*8], edi
jmp 0x1006c035
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1006c035
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
Function at 0x1006fb70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.10047310
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push str.BlackBone:__s_r_n
push eax
call fcn.1006fb30
add esp, 0x28
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret