joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b640
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeced
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8d7a
mov edi, eax
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], eax
mov ecx, 0x4f9d20
mov eax, dword [ebp + 0x14]
test eax, eax
cmovne ecx, eax
push ecx
mov dword [ebp - 0x18], ecx
call fcn.004c8d00
mov ebx, eax
push 0
mov dword [ebp - 0x14], ebx
call fcn.004c8d5f
push 0x4faa88
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
test esi, esi
mov ecx, 0x4f9d20
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x1c
lea ecx, [ebp - 0x10]
push ebx
call fcn.004050e0
push esi
call fcn.004c8d5f
push 0x4faa74
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov ecx, dword [ebp - 0x10]
mov eax, 0x4f9d20
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov dword [ebp + 0x14], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp + 0x14]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov ebx, dword [ebp + 0x14]
mov eax, 0x4f9d20
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8d00
mov esi, eax
push edi
mov dword [ebp + 0x14], esi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa40
add esp, 0x24
cmp dword [ebp + 8], 0
je 0x40b885
mov eax, dword [0x539fdc]
test eax, eax
je 0x40b78a
push 1
call eax
push 0x200
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x18]
call fcn.004c8d00
mov ebx, eax
push 0
mov dword [ebp - 0x18], ebx
call fcn.004c8d5f
push 0x4faab8
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov edi, 0x4f9d20
test esi, esi
mov ecx, edi
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp + 8], eax
call fcn.004c8d5f
add esp, 0x18
lea ecx, [ebp + 8]
push ebx
call fcn.004050e0
push esi
call fcn.004c8d5f
push 0x4faa74
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov ecx, dword [ebp + 8]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp - 0x10]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov ebx, dword [ebp - 0x10]
mov eax, 0x4f9d20
mov edi, dword [ebp + 0x14]
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8d00
mov esi, eax
push edi
mov dword [ebp + 0x14], esi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
push dword [ebp + 8]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa40
mov eax, dword [0x539fdc]
add esp, 0x24
test eax, eax
je 0x40b885
push 0
call eax
push 0x100
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.004c8d5f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1d97
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x535a40]
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, dword [ebp + 8]
xor eax, eax
push 0x206
mov dword [ebp - 0x21c], ebx
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004c53a0
mov ecx, dword [0x539fa8]
add esp, 0xc
test ecx, ecx
jne 0x4253c3
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push 0x1c
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x42540a
add ecx, 0x418
lea edx, [ebp - 0x218]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4253d1
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4253f0
mov ecx, 7
mov esi, 0x4ffe18
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425413
mov ecx, 0x14
mov esi, 0x4ffe38
rep movsd dword es:[edi], dword [esi]
push 0xc
call fcn.004c3653
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42546b
lea eax, [ebp - 0x218]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x425498
jmp 0x42546d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
test esi, esi
je 0x4254a2
mov eax, ebx
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.004c34b7
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004c3020
push 0x8007000e
call fcn.004c3020
int3
Function at 0x4447c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3efd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004c3653
mov edi, eax
add esp, 4
test edi, edi
je 0x44485d
push 1
mov dword [ebp - 4], 0
call fcn.004c220b
add esp, 4
mov dword [edi + 4], eax
jmp 0x44485f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0043f080
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4448bb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4448bb
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x4448d8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4448fb
cmp byte [ebp + 0xc], 0
je 0x4448e7
push esi
call fcn.004c27e4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x444907
mov esi, 0x501a14
jmp 0x444917
test cl, 2
mov esi, 0x501a2c
mov eax, 0x501a44
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00444940
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0043fd30
push 0x526750
lea eax, [ebp - 0x28]
push eax
call fcn.004c5aec
int3
Function at 0x445fd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3fe5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
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 - 0x1c]
push ebx
push eax
call fcn.00445ce0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x446063
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x15555555
je 0x4461b1
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004c3653
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x502460]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x502460]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x446153
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.004d71d0
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.004c3c50
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x446135
cmp ebx, 0x200
jae 0x446133
shl ebx, 3
cmp ebx, ecx
jae 0x446135
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.0044b860
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00445ce0
mov edx, dword [eax]
jmp 0x446156
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
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 - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x446181
mov dword [ecx + eax*8], esi
jmp 0x446190
cmp edi, edx
jne 0x44618a
mov dword [ecx + eax*8], esi
jmp 0x446194
cmp dword [ecx + eax*8 + 4], ebx
jne 0x446194
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]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x502410
call fcn.004c1a7a
int3
Function at 0x44b860
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x44b9ac
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0044b770
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x44b987
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
mov edx, dword [edi + 0xc]
imul esi, esi, 0x1000193
and esi, dword [edi + 0x18]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x44b912
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x44b97c
mov edx, dword [ebx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x44b949
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x44b944
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x44b979
cmp esi, edx
je 0x44b95c
nop dword [eax]
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x44b990
cmp esi, edx
jne 0x44b950
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x44b8c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x44b979
push 0x50242c
call fcn.004c1a7a
int3
Function at 0x451f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451fcd
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x509324
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x451fcd
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4522b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x45236b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45236b
xor esi, esi
cmp dword [edi], ebx
jle 0x452349
nop dword [eax]
nop dword [eax + eax]
push 0x509354
push dword [eax + esi*4]
call fcn.004c9460
add esp, 8
test eax, eax
je 0x452317
mov eax, dword [ebp + 0x10]
push 0x50936c
push dword [eax + esi*4]
call fcn.004c9460
add esp, 8
test eax, eax
je 0x452317
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4522e0
jmp 0x452349
mov ecx, dword [edi]
mov ebx, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x452344
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
nop dword [eax + eax]
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x452330
mov ebx, dword [ebp + 0xc]
lea eax, [ecx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.00452470
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
pop ebp
ret
push 0x509340
push 1
push 0x4fa270
xor edi, edi
call fcn.0042f970
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x452413
push 0x54a96c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x54a96c], esi
jle 0x452413
nop dword [eax]
push 0x509354
push dword [ebx + esi*4]
call fcn.004c9460
add esp, 8
test eax, eax
je 0x4523e5
push 0x50936c
push dword [ebx + esi*4]
call fcn.004c9460
add esp, 8
test eax, eax
je 0x4523e5
inc esi
xor edi, edi
cmp esi, dword [0x54a96c]
jl 0x4523b0
jmp 0x452413
mov ecx, dword [0x54a96c]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x45240c
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x54a96c]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4523f7
dec ecx
mov dword [0x54a96c], ecx
push edi
push dword [ebp + 8]
call fcn.00452470
add esp, 8
mov ecx, 1
test eax, eax
cmovne edi, ecx
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x456fc0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x434], eax
push edi
mov byte [ebp - 0x42d], 0
mov dword [eax], esi
nop dword [eax]
push ebx
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0x18
je 0x456ff0
cmp edi, 0xffffffff
je 0x45718a
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x457051
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45718c
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40c]
push 0x50adf0
push eax
call fcn.004c580a
add esp, 8
test eax, eax
je 0x457076
mov bl, 1
mov byte [ebp - 0x42d], bl
jmp 0x45715e
lea eax, [ebp - 0x40c]
push 0x50ae04
push eax
call fcn.004c9460
add esp, 8
test eax, eax
je 0x4570c2
lea eax, [ebp - 0x40c]
push 0x50ae14
push eax
call fcn.004c9460
add esp, 8
test eax, eax
je 0x4570c2
lea eax, [ebp - 0x40c]
push 0x50ae30
push eax
call fcn.004c9460
add esp, 8
test eax, eax
jne 0x457158
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c5767
add esp, 8
test eax, eax
je 0x457158
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c5767
add esp, 8
test eax, eax
je 0x457158
lea edx, [eax + 2]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457100
sub ecx, ebx
sar ecx, 1
cmp ecx, 4
jb 0x457158
movzx ecx, word [edx + 2]
cmp ecx, 0x31
jne 0x457137
movzx eax, word [edx + 6]
mov edx, eax
cmp eax, 0x30
jne 0x45712d
or esi, 1
jmp 0x457158
cmp edx, 0x31
jne 0x457137
or esi, 2
jmp 0x457158
cmp ecx, 0x32
jne 0x457141
or esi, 4
jmp 0x457158
cmp ecx, 0x34
je 0x457155
cmp ecx, 0x35
je 0x457155
cmp ecx, 0x36
je 0x457155
cmp ecx, 0x37
jne 0x457158
or esi, 8
mov bl, byte [ebp - 0x42d]
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x457051
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x45718a
test esi, esi
je 0x45718a
mov eax, dword [ebp - 0x434]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
Function at 0x45a940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test eax, eax
jne 0x45a972
mov esi, 0x50b120
mov ebx, 0x50b138
jmp 0x45a985
cmp eax, 1
jne 0x45aac8
mov esi, 0x50b154
mov ebx, 0x50b16c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x20019
push 0
push 0x50b180
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45aac8
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
push dword [ebp + 8]
test eax, eax
je 0x45a9e3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
call ebx
test eax, eax
jne 0x45aac8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3a3e
add esp, 4
mov dword [edi + 8], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
call ebx
test eax, eax
jne 0x45aa5c
mov eax, dword [edi]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3a3e
mov ecx, eax
add esp, 4
mov dword [edi + 4], ecx
test ecx, ecx
jne 0x45aa72
push dword [edi + 8]
call fcn.004c3683
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
lea eax, [eax*4 + 4]
push eax
push 0
push ecx
call fcn.004c53a0
mov esi, dword [edi + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x45aac8
push esi
call fcn.004d5dfb
add esp, 4
cmp eax, dword [edi]
ja 0x45aac8
mov ecx, dword [edi + 4]
lea esi, [esi + ebx*2]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 2
push esi
mov dword [ecx + eax*4], esi
call ebx
lea esi, [esi + eax*2]
add esi, 2
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x45aa97
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45ad30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x50b204
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45ada2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x50b214
push dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.004c9e8b
add esp, 0xc
test eax, eax
jne 0x45ada2
push dword [ebp - 4]
push edi
push 1
push esi
call fcn.004d8317
push dword [ebp - 4]
call fcn.004d8022
add esp, 0x14
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466310
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5b45
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
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 - 0x1c]
push ebx
push eax
call fcn.00445ce0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4663a3
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xccccccc
je 0x466509
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004c3653
mov ecx, dword [ebx]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 4]
sub ecx, 0x10
push ecx
call fcn.00440d70
add eax, 0x10
add esp, 8
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x502460]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x502460]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x4664ab
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.004d71d0
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.004c3c50
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x46648d
cmp ebx, 0x200
jae 0x46648b
shl ebx, 3
cmp ebx, ecx
jae 0x46648d
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.0046ae20
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00445ce0
mov edx, dword [eax]
jmp 0x4664ae
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
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 - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x4664d9
mov dword [ecx + eax*8], esi
jmp 0x4664e8
cmp edi, edx
jne 0x4664e2
mov dword [ecx + eax*8], esi
jmp 0x4664ec
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4664ec
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]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x502410
call fcn.004c1a7a
int3