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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006941e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100aa040]
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, edx
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
push 7
push str.UNKNOWN
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000fc90
mov dword [ebp - 4], 1
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100015bc
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1000f770
mov dword [ebp - 0x4c], 1
jmp 0x1000168c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100015df
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1000f770
mov dword [ebp - 0x4c], 1
jmp 0x1000168c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0x10096a78
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100015c8
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x50]
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x54], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x58], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x5c], eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0xb
push str....
call fcn.100019f0
add esp, 0x14
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x40]
mov dword [esi + 0x14], 0
mov byte [ebp - 0x40], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x4c], 1
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1000f910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000f910
mov eax, esi
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.10047c45
mov esp, ebp
pop ebp
ret
Function at 0x1000ebd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069daf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100aa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.1002fb8c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000ec81
push eax
push esi
call fcn.1002fa1a
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1002f4fd
int3
Function at 0x10010f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a305
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100aa040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x30], 0x75007074
lea ecx, [ebp - 0x30]
mov word [ebp - 0x2c], 0x71
push eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
call fcn.10011410
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2a]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x85018084
push eax
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x181
push ecx
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
call fcn.10011410
mov byte [ebp - 4], 1
lea esi, [ebp - 0x20]
mov al, byte [ebx]
mov byte [ebp - 0x25], al
cmp al, 0xf
jne 0x1001102a
mov al, byte [ebx + 1]
lea esi, [ebp - 0x18]
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x25]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10011840
mov ebx, dword [ebp - 0x2c]
cmp byte [ebx + 0xd], 0
jne 0x1001107b
mov al, byte [ebp - 0x25]
cmp al, byte [ebx + 0xe]
jb 0x1001107b
cmp ebx, dword [esi]
je 0x1001107b
movzx edi, byte [ebx + 0x10]
lea eax, [ebp - 0x24]
add edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 1
push edi
call esi
mov al, byte [ebx + 0xf]
mov byte [edi], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push 1
push edi
call esi
mov bl, 1
jmp 0x1001107d
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x100110b6
nop dword [eax]
push dword [esi + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.10011890
mov eax, esi
mov esi, dword [esi]
push 0x14
push eax
call fcn.10047ca6
add esp, 8
cmp byte [esi + 0xd], 0
je 0x10011090
mov eax, dword [ebp - 0x18]
push 0x14
push eax
call fcn.10047ca6
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x100110fa
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, eax
call fcn.10011890
mov eax, esi
mov esi, dword [esi]
push 0x14
push eax
call fcn.10047ca6
add esp, 8
cmp byte [esi + 0xd], 0
je 0x100110d4
mov eax, dword [ebp - 0x20]
push 0x14
push eax
call fcn.10047ca6
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047c45
mov esp, ebp
pop ebp
ret
Function at 0x10013620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1001364b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10013634
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x100142f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jbe 0x1001430e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10014334
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10014320
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10014360
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10014354
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10014830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a96d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 8]
lea esi, [ebx + 0x2c]
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 8]
mov cl, byte [eax + 0xd]
xor eax, eax
test cl, cl
mov byte [ebp - 0xd], cl
sete al
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x10]
mov edi, dword [eax]
cmp edi, eax
je 0x1001497a
mov esi, ebx
nop
mov eax, dword [edi + 0x24]
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
cmp byte [eax + 0x48], 0
jne 0x10014969
cmp dword [edi + 0x1c], 7
lea ebx, [edi + 8]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x18], ebx
jbe 0x100148b6
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
lea eax, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100148e7
mov ebx, dword [ebp - 0x18]
mov esi, eax
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100148d0
mov esi, dword [ebp - 0x14]
lea ebx, [edi + 8]
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi + 0x18]
xor ecx, edx
and ecx, dword [esi + 0x24]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x10014912
cmp eax, edi
jne 0x1001490a
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1001491b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x1001491b
cmp eax, edi
jne 0x1001491b
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov ecx, dword [edi]
dec dword [esi + 0x14]
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x10014953
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10014953
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10014953
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [edi + 8]
call fcn.100104a0
push 0x2c
push edi
call fcn.10047ca6
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edi, ecx
cmp ecx, dword [esi + 0x10]
jne 0x10014890
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x28]
push ecx
mov ecx, ebx
call fcn.10015520
cmp byte [ebp - 0xd], 0
je 0x10014995
push 1
push ecx
mov ecx, ebx
call fcn.10015520
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10015410
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.10049980
add esp, 0xc
lea eax, [esp + 0x58]
push 0xf8
push 0
push eax
call fcn.10049980
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
or eax, edx
mov ecx, dword [esi + 4]
movlpd qword [esp + 8], xmm0
je 0x100154e8
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 0x100154e8
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x100154e8
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 0x100154e8
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 0x100154e8
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 0x10015ed0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006aad5
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], 7
mov eax, dword [ebx + 0x10]
jbe 0x10015f00
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x10015f24
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10015f10
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.100165d0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10015f5c
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 0x100160b7
lea eax, [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.10047c76
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
push ebx
call fcn.10014470
mov ecx, dword [ebx + 0x18]
xorps xmm0, xmm0
mov dword [esi + 0x20], ecx
movq qword [esi + 0x24], xmm0
mov dword [esi + 0x24], 0
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
addsd xmm0, qword [eax*8 + 0x100a1680]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100a1680]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x10016055
divss xmm2, xmm3
movaps xmm0, xmm2
call fcn.10014520
call fcn.10069380
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10016036
cmp ebx, 0x200
jae 0x10016034
shl ebx, 3
cmp ebx, ecx
jae 0x10016036
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10016380
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.100165d0
mov edx, dword [eax]
jmp 0x1001605b
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 0x10016085
mov dword [ecx + eax*8], esi
jmp 0x10016097
cmp edi, edx
jne 0x1001608e
mov dword [ecx + eax*8], esi
jmp 0x1001609b
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1001609b
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.1002f4bd
int3
Function at 0x100169e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ab1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
mov dword [ebp - 0x14], 1
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0
push 4
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
test esi, esi
jg 0x10016a55
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
jmp 0x10016b70
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x1c
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10016b5b
mov ecx, dword [edi]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ecx + 4]
jne 0x10016b48
push 0x18
call fcn.10047c76
mov ecx, dword [ebp - 0x1c]
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_blackbone::Thread_.0
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0x10005b
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
or dword [ebp - 0x14], 2
lea ecx, [edi + 0xc]
mov dword [ecx + 8], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x10016b0d
mov dword [eax + 4], edi
xor edi, edi
mov dword [eax], ecx
add dword [ebx + 4], 8
mov dword [ebp - 0x2c], 0
jmp 0x10016b1c
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.10016c30
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test edi, edi
je 0x10016b45
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10016b45
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x10016b45
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10016a81
mov dword [ebp - 0x14], 0
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016e70
Capabilities:
Query or enumerate registry value

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 0x1006ab3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x248
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001702d
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.10049980
add esp, 0xc
mov dword [ebp - 0x1c], 0x208
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.BuildLabEx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017024
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x38]
call fcn.10010700
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
cmp dword [ebp - 0x24], 7
mov eax, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x38]
test eax, eax
je 0x10016f6b
xor esi, esi
mov ecx, edx
test eax, eax
je 0x10016f61
cmp word [edx], 0x2e
je 0x10016f5f
nop dword [eax + eax]
cmp eax, 1
je 0x10016f61
add ecx, 2
dec eax
cmp word [ecx], 0x2e
jne 0x10016f50
mov esi, ecx
test esi, esi
je 0x10016f6b
sub esi, edx
sar esi, 1
jmp 0x10016f6e
or esi, 0xffffffff
lea edi, [esi + 1]
push edi
push ecx
lea ecx, [ebp - 0x38]
call fcn.10017cc0
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x1001701c
cmp esi, 0xffffffff
je 0x1001701c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
cmp edx, edi
jb 0x10017042
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
sub ecx, esi
sub edx, edi
dec ecx
cmp edx, ecx
cmovb ecx, edx
cmp dword [ebp - 0x24], 7
push ecx
cmova eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
lea eax, [eax + edi*2]
push eax
call fcn.10010650
cmp dword [ebp - 0x3c], 7
lea eax, [ebp - 0x50]
push 0xa
cmova eax, dword [ebp - 0x50]
push 0
push eax
call fcn.1004d858
add esp, 0xc
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.100104a0
lea ecx, [ebp - 0x38]
call fcn.100104a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x38]
call fcn.100104a0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000f330
int3
Function at 0x10017fd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1001814a
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10014130
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10018125
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jbe 0x10018051
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x1001807a
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10018063
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x10018099
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1001811b
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100143e0
test al, al
jne 0x100180d3
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100180cb
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x10018118
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x100180fb
nop word [eax + eax]
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100143e0
test al, al
je 0x1001812e
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x100180e0
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x10018035
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x10018118
push str.invalid_hash_bucket_count
call fcn.1002f4bd
int3