joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10057330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0xa
mov eax, dword [esi]
mov dword [esi + 4], eax
movzx eax, word [esp + 0x18]
push eax
push dword [0x107642bc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x100573e6
push edi
push dword [0x107642bc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x100573e6
push edi
push dword [0x107642bc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x100573e6
mov eax, dword [esi + 4]
lea edi, [ebx + 1]
mov edx, dword [esi]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], eax
cmp edi, ecx
jae 0x1005739a
lea eax, [edx + edi]
jmp 0x100573c7
jbe 0x100573ca
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x100573b0
push ecx
push edi
mov ecx, esi
call fcn.1005d590
jmp 0x100573ca
sub edi, ecx
push edi
push 0
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x100639d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, ebx
shl edx, 6
or edx, dword [ebp + 0xc]
shl edx, 0xe
or edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x10], edx
mov eax, edx
mov dword [ebp - 0x24], edi
shr eax, 8
movzx ecx, al
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 0x18], edx
imul eax, eax, 0x1000193
xor ecx, eax
mov eax, edx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, edx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x2084]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1006f3c0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10063a66
mov eax, dword [edi + 0x2088]
cmp eax, dword [edi + 0x2088]
je 0x10063a84
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x20
push 0x4660
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10063bb3
mov eax, dword [ebp + 0x10]
shl ebx, 7
xor edi, edi
mov byte [ebp - 4], 1
mov dword [esi], 0x101995c0
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x10762104]
mov dword [ebp + 0x10], ebx
lea ebx, [esi + 0x20]
mov esi, eax
nop dword [eax + eax]
push dword [ebp + 0xc]
lea eax, [edi*8]
push dword [ebp + 8]
push eax
push 0
call esi
inc edi
mov word [ebx], ax
add esp, 0x10
lea ebx, [ebx + 2]
cmp edi, 0x100
jl 0x10063ad0
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10762174]
mov dword [esi + 0x220], eax
lea ebx, [esi + 0x240]
mov eax, dword [ecx + 0x10762100]
mov esi, eax
push dword [ebp + 0xc]
mov eax, edi
push dword [ebp + 8]
and eax, 0x7ff
push eax
push 0
call esi
inc edi
mov dword [ebx], eax
add esp, 0x10
lea ebx, [ebx + 4]
cmp edi, 0x1000
jl 0x10063b16
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10762154]
mov dword [esi + 0x4240], eax
lea edi, [esi + 0x4260]
mov eax, dword [ecx + 0x10762158]
mov dword [esi + 0x4244], eax
mov eax, dword [ecx + 0x1076215c]
mov dword [esi + 0x4248], eax
mov eax, dword [ecx + 0x10762160]
mov dword [esi + 0x424c], eax
mov eax, dword [ecx + 0x10762164]
mov dword [esi + 0x4250], eax
mov eax, dword [ecx + 0x10762168]
mov dword [esi + 0x4254], eax
mov eax, dword [ecx + 0x1076216c]
mov dword [esi + 0x4258], eax
mov eax, dword [ecx + 0x10762170]
mov ecx, 0x100
mov dword [esi + 0x425c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x24]
jmp 0x10063bb5
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [edi + 0x2084]
call fcn.100694c0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006bb60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.1006f3c0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1006bbe8
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], 0xfffffff
jne 0x1006bbfc
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 0x10
mov dword [ebp - 0x18], 0
call fcn.100cd0b0
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101a5340]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x101a5340]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1006bce4
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.1016c380
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1006bcc3
cmp ebx, 0x200
jae 0x1006bcc1
shl ebx, 3
cmp ebx, ecx
jae 0x1006bcc3
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.1006c2f0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1006f3c0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x1006bce7
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x18]
jne 0x1006bd15
mov dword [ecx + eax*8], esi
jmp 0x1006bd24
cmp edi, edx
jne 0x1006bd1e
mov dword [ecx + eax*8], esi
jmp 0x1006bd28
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1006bd28
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 0x1006bd50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.1006f3c0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1006bdd8
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], 0x15555555
jne 0x1006bdec
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 0xc
mov dword [ebp - 0x18], 0
call fcn.100cd0b0
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi + 8], ecx
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101a5340]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x101a5340]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1006becd
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.1016c380
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1006beac
cmp ebx, 0x200
jae 0x1006beaa
shl ebx, 3
cmp ebx, ecx
jae 0x1006beac
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.1006c460
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1006f3c0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x1006bed0
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x18]
jne 0x1006befe
mov dword [ecx + eax*8], esi
jmp 0x1006bf0d
cmp edi, edx
jne 0x1006bf07
mov dword [ecx + eax*8], esi
jmp 0x1006bf11
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1006bf11
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 0x1006c2f0
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
push edi
mov edi, 1
mov dword [esp + 0x14], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
jbe 0x1006c321
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, 1
lea ebp, [ebx + 0xc]
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, ebp
lea eax, [edi + edi]
push eax
call fcn.1001c8c0
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1006c430
nop dword [eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebp]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [esp + 0x1c], eax
cmp ebx, esi
jne 0x1006c3b2
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1006c41b
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x1006c3e5
mov eax, dword [eax]
cmp eax, ecx
je 0x1006c3dc
mov ebp, dword [ecx + 4]
mov dword [ebp], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x1006c41b
cmp ebx, eax
je 0x1006c3fc
nop dword [eax]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1006c43a
cmp ebx, eax
jne 0x1006c3f0
mov ebp, dword [ecx + 4]
mov dword [ebp], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ebp
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [esp + 0x14]
mov ecx, edx
lea ebp, [ebx + 0xc]
cmp edx, esi
jne 0x1006c360
nop dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [ecx + 4]
mov ebp, dword [eax]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ecx
mov dword [ebp + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1006c41b
Function at 0x1006c460
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, 0x1fffffff
push ebx
push ebp
mov ebp, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 0x10], ebp
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
jbe 0x1006c491
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ebx, dword [ebp + 4]
lea eax, [edx - 1]
or eax, 1
mov dword [esp + 0x1c], ebx
bsr ecx, eax
push ebx
lea edi, [ebp + 0xc]
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, edi
lea eax, [esi + esi]
push eax
call fcn.1001c8c0
mov edx, dword [ebp + 4]
lea eax, [esi - 1]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], esi
mov edx, dword [edx]
cmp edx, ebx
je 0x1006c590
mov ecx, edx
nop dword [eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul esi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor esi, eax
movzx eax, byte [ecx + 0xa]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [ecx + 0xb]
imul esi, esi, 0x1000193
xor esi, eax
imul eax, esi, 0x1000193
mov esi, dword [ebp + 0x18]
and esi, eax
mov eax, dword [edi]
mov edi, dword [eax + esi*8]
lea ebp, [eax + esi*8]
cmp edi, ebx
jne 0x1006c51e
mov dword [ebp], ecx
mov dword [ebp + 4], ecx
jmp 0x1006c57f
mov eax, dword [ebp + 4]
mov esi, dword [ecx + 8]
cmp esi, dword [eax + 8]
jne 0x1006c550
mov eax, dword [eax]
cmp eax, ecx
je 0x1006c54b
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov dword [eax + 4], edi
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [ecx + 4], esi
mov dword [ebp + 4], ecx
jmp 0x1006c57f
cmp edi, eax
je 0x1006c560
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x1006c59a
cmp edi, eax
jne 0x1006c554
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov dword [eax + 4], edi
mov dword [edx + 4], ebx
mov dword [ecx + 4], esi
mov dword [ebp], ecx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ecx, edx
lea edi, [ebp + 0xc]
cmp edx, ebx
jne 0x1006c4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edi, dword [ecx + 4]
mov ebx, dword [eax]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ebx + 4], esi
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
jmp 0x1006c57b
Function at 0x10075b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016f3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0x10]
mov ecx, 0x10761d60
mov dword [ebp - 4], 0
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], 0x1019982c
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
movq qword [edi + 0x58], xmm0
push str.extrathreads_height
mov dword [edi + 0x60], 0
call fcn.1005c680
push 4
push 0x3000
mov edx, 4
lea ecx, [eax - 1]
cmp ecx, 7
push 0x20000
cmovbe edx, eax
push 0
mov dword [edi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x50], eax
mov eax, 0x800
sar eax, cl
add eax, 0x10
mov dword [edi + 0x54], 0
push 0x40
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
xor esi, esi
mov dword [edi + 0x18], eax
add esp, 8
cmp dword [ebp + 0x14], esi
jle 0x10075c27
xor eax, eax
test ebx, ebx
jle 0x10075c22
nop dword [eax]
cmp eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
sete dl
inc eax
mov byte [esi + ecx], dl
inc esi
cmp eax, ebx
jl 0x10075c10
cmp esi, dword [ebp + 0x14]
jl 0x10075c07
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10082d20
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, esi
je 0x10082d96
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x10082d98
cmp eax, edx
je 0x10082d96
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x10082d78
mov ecx, dword [esp + 0xc]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
ret 8
xor eax, eax
mov ecx, dword [esp + 0xc]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
ret 8

Function at 0x10087ab0
Capabilities:
Execute anti-debugging instructions

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 0x1016f8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 1
lea esi, [edi + 0x2f08]
rdtsc
mov dword [esi + 0x1a8], eax
mov eax, dword [esi + 0x88]
or eax, dword [esi + 0x8c]
mov dword [ebp - 0x18], esi
mov dword [esi + 0x1ac], edx
jne 0x10087b23
mov eax, dword [esi + 0x1a8]
mov dword [esi + 0x88], eax
mov eax, edx
mov dword [esi + 0x8c], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x33a0]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0x33a0]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [edi + 0x2f30]
movsd qword [edi + 0x2f30], xmm0
mov edi, dword [esi + 0x1ac]
mov ecx, dword [esi + 0x1a8]
test edi, edi
jne 0x10087b70
test ecx, ecx
je 0x10087b96
rdtsc
sub eax, ecx
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1ac], 0
sbb edx, edi
add dword [esi + 0x118], eax
adc dword [esi + 0x11c], edx
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 0x100944e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
cmp byte [0x101b8208], 0
push ebx
push ebp
push esi
push edi
jne 0x100944fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0x8741
push esi
call dword [0x101b8a54]
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call fcn.100cd26e
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebp
push ebp
push eax
push 0
push dword [esp + 0x1c]
push esi
call dword [0x101b860c]
mov esi, dword [esp + 0x20]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10094548
mov eax, dword [esi]
push 0x10175748
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, eax
xor ecx, ecx
mov dword [esp + 0x24], ebx
test edx, edx
jle 0x10094579
cmp byte [ecx + ebp], 0x21
jne 0x10094574
cmp byte [ecx + ebp + 1], 0x21
je 0x10094579
inc ecx
cmp ecx, edx
jl 0x10094567
or edi, 0xffffffff
cmp ecx, edx
jge 0x10094662
lea eax, [ecx + ebp]
push 0x1017547c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
je 0x1009464f
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
push 3
push 0x1019d0c8
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x100945d2
push 5
push str.ENDIF
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x10094647
push 3
push 0x1019d0d4
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x1009461c
push 4
push str.TEMP
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x1009461c
push 4
push str.LONG
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x1009461c
test edi, edi
js 0x1009461e
jne 0x10094619
push 0x1017547c
push ebp
call fcn.1001d650
add esp, 8
inc edi
jmp 0x1009461e
xor edi, edi
push esi
push 0x10197888
push ebp
call fcn.1001d650
add esp, 0xc
push 0x1017547c
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100945b0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
push edi
push str._nFound__d_instructions_n
push ebx
call fcn.1001d650
mov esi, dword [esp + 0x2c]
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call ebx
add esp, 4
test edi, edi
jns 0x100946b5
push str.Error:_failed_to_find_the_number_of_instructions__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.1001d650
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x10094693
mov esi, dword [esi]
push 0x10198994
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
push esi
push 1
push dword [esp + 0x20]
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call ebx
add esp, 0x1c
push ebp
call fcn.100cd0e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x100989e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016fce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [0x10761d5c]
push esi
lea esi, [ebx + 0x2f08]
mov dword [ebp - 0x10], 0
rdtsc
mov dword [esi + 0x1a0], eax
mov eax, dword [esi + 0x80]
or eax, dword [esi + 0x84]
push edi
mov dword [ebp - 0x14], esi
mov dword [esi + 0x1a4], edx
jne 0x10098a44
mov eax, dword [esi + 0x1a0]
mov dword [esi + 0x80], eax
mov eax, edx
mov dword [esi + 0x84], eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.10097220
mov edi, dword [ebp + 0xc]
mov ecx, ebx
shl edi, 4
push edi
push dword [ebp + 8]
call fcn.10097b30
mov ebx, dword [ebx + 0x315c]
test ebx, ebx
je 0x10098a89
mov dword [ebp + 0xc], edi
test edi, edi
je 0x10098a89
mov eax, dword [ebx]
mov ecx, ebx
push 2
call dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 4
push ecx
mov ecx, ebx
call dword [eax + 4]
mov edi, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a0]
test edi, edi
jne 0x10098a9d
test ecx, ecx
je 0x10098ac3
rdtsc
sub eax, ecx
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x1a4], 0
sbb edx, edi
add dword [esi + 0x110], eax
adc dword [esi + 0x114], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8