joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b710
Capabilities:
Hash data using fnv
Set 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 0x49e37d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4c0180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 0x44]
lea edi, [eax + 0x40]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x14], ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.00418fa0
mov eax, dword [eax + 4]
test eax, eax
jne 0x44b7a5
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x14]
mov ecx, edi
push esi
lea eax, [ebp - 0x24]
push eax
je 0x44b7ca
call fcn.00450620
movups xmm0, xmmword [esi + 4]
mov eax, dword [eax]
movups xmmword [eax + 0xc], xmm0
movups xmm0, xmmword [esi + 0x14]
movups xmmword [eax + 0x1c], xmm0
jmp 0x44b7cf
call fcn.00451b30
lea eax, [ebp - 0x18]
push eax
push dword [0x4c5ef8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push edi
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0044f970
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x44b829
add eax, eax
push eax
push esi
push 1
push 0x4afd34
push 0x4ae304
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x60]
call fcn.00404ca0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44b851
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x44bd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e42b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4c0180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x218]
push eax
push dword [0x4c5ef8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x4afd34
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44be00
sub ecx, edx
sar ecx, 1
cmp ecx, 0x14
jbe 0x44befd
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x44bf17
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x214]
call fcn.004044c0
test al, al
jne 0x44be82
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44be60
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x214]
call fcn.004047f0
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0044b870
push eax
lea ecx, [esi + 0x40]
call fcn.00450190
lea ecx, [ebp - 0x240]
call fcn.00421fb0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x214]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44bed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x210]
lea ecx, [esi + 0x60]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44bee1
sub edx, esi
lea eax, [ebp - 0x210]
sar edx, 1
push edx
push eax
call fcn.004047f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470c0a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404f30
int3
Function at 0x450620
Capabilities:
Hash data using fnv

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 0x49c455
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4c0180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 0xc]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00418fa0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4506b7
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x450810
cmp dword [edi + 8], 0x5d1745d
je 0x450826
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.00470c26
mov ecx, dword [ebx + 0xc]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], esi
add esp, 4
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
movups xmmword [esi + 0xc], xmm0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b0c80]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b0c80]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x4507c0
divss xmm0, xmm3
call fcn.0041cc80
call fcn.00498730
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x45079c
cmp eax, 0x200
jae 0x45079a
shl eax, 3
cmp eax, ecx
jae 0x45079c
mov eax, ecx
push eax
mov ecx, edi
call fcn.0042ea00
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418fa0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x4507c3
mov edx, dword [ebp - 0x1c]
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 esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x20]
jne 0x4507f1
mov dword [ecx + eax*8], esi
jmp 0x450803
cmp edi, edx
jne 0x4507fa
mov dword [ecx + eax*8], esi
jmp 0x450807
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x450807
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 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
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.0045831f
int3
Function at 0x451b30
Capabilities:
Hash data using fnv

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 0x49c455
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4c0180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 0xc]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00418fa0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x451bc7
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x451d00
cmp dword [edi + 8], 0x5d1745d
je 0x451d16
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.00470c26
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
mov dword [esi + 8], ecx
movups xmm0, xmmword [eax + 4]
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x14]
movups xmmword [esi + 0x1c], xmm0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b0c80]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b0c80]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x451cb0
divss xmm0, xmm3
call fcn.0041cc80
call fcn.00498730
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x451c8c
cmp eax, 0x200
jae 0x451c8a
shl eax, 3
cmp eax, ecx
jae 0x451c8c
mov eax, ecx
push eax
mov ecx, edi
call fcn.0042ea00
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418fa0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x451cb3
mov edx, dword [ebp - 0x1c]
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 esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x20]
jne 0x451ce1
mov dword [ecx + eax*8], esi
jmp 0x451cf3
cmp edi, edx
jne 0x451cea
mov dword [ecx + eax*8], esi
jmp 0x451cf7
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x451cf7
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 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
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.0045831f
int3
Function at 0x455c60
Capabilities:
Hide graphical window

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 0x49f1cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4c0180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [esi + 4]
test edi, edi
jne 0x455da3
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x455e24
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004044c0
test al, al
jne 0x455cea
push 0x12
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
call fcn.004047f0
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov eax, dword [0x4c0cac]
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x58], 0x455e30
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x4c0cac]
mov esi, dword [ebp - 0x14]
push 0
push eax
push 0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push SysReAllocString
push 0
push esi
push 0x8000000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x455d75
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x455d71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x455d9d
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x455d9d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [esi + 4], edi
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea eax, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x455e0e
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x30]
cmp eax, 0x401
je 0x455df5
cmp eax, 0x402
je 0x455df5
cmp eax, 0x12
jne 0x455e0e
mov dword [esi + 8], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00404f30
int3
Function at 0x456700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov ebx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 2
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
lea esi, [ebx + 0x20]
mov dword [ebp - 0x2c], 4
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
call dword [sym.imp.Secur32.dll_ApplyControlToken]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 2
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0
push ecx
push 0
push 0
push 0x811c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 1
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x18]
push esi
push eax
mov dword [ebp - 8], 0x811c
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
test eax, eax
jne 0x4567c5
mov esi, dword [ebp - 0x18]
push edi
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x4567ba
nop dword [eax]
push 0
push edi
push esi
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4567b7
add esi, eax
sub edi, eax
jne 0x4567a0
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
lea esi, [ebx + 0x20]
pop edi
push 2
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4574b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4c0180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x414], 0x400
push edi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x410], eax
call fcn.00457620
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004046a0
mov edi, eax
lea eax, [ebp - 0x408]
lea ecx, [edi + 0x10]
push ecx
push 0x4b0980
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x457519
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 8]
cmp al, 0xff
jne 0x45758c
cmp byte [ebp + 0xc], 0
jne 0x45758c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x4ae304
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ax, word [ebp - 0x408]
cmp ax, 0x31
jne 0x457574
mov dword [esi + 0xc], 1
jmp 0x4575da
cmp ax, 0x32
jne 0x457583
mov dword [esi + 0xc], 2
jmp 0x4575da
mov dword [esi + 0xc], 0
jmp 0x4575da
push eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x408]
push 0x4afb8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x408]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4575b0
sub ecx, edx
lea eax, [ebp - 0x408]
sar ecx, 1
push ecx
push eax
push 1
push 0x4ae304
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x410]
cmp eax, dword [esi + 0xc]
je 0x4575ec
mov cl, 1
lea eax, [esi + 8]
xchg byte [eax], cl
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00470c0a
mov esp, ebp
pop ebp
ret 8
Function at 0x45e3f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x45e414
jl 0x45e40b
test edi, edi
jne 0x45e414
xor eax, eax
xor edx, edx
jmp 0x45e4d5
cmp dword [ebx + 0x38], 0
je 0x45e429
push eax
push edi
push dword [ebp + 8]
call fcn.0045e4db
jmp 0x45e4d5
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45e470
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x45e470
cmp eax, edi
jb 0x45e44a
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00472b90
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x45e476
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x45e4ca
mov ecx, ebx
call fcn.0045dcf9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x45e4b5
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004837a8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x45e4ca
jmp 0x45e488
test edx, edx
je 0x45e4ca
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004837a8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4707a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00482604
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4707ec
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4707ec
sub eax, 1
je 0x4707e7
sub eax, 1
je 0x4707e3
xor eax, eax
leave
ret
push 3
jmp 0x4707ee
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x471bbf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x471bfe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x471bfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x471bfe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x471bfe
cmp dword [ecx + 0x74], 0xe
jbe 0x471bfe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48b149
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a7934
push 0x4a792c
push str.FlsAlloc
push 0x1f
call fcn.0048af74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b17d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2408]
call esi
jmp 0x48b183
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x48b1c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a7944
push 0x4a793c
push str.FlsGetValue
push 0x21
call fcn.0048af74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b1fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2408]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48b206
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a794c
push 0x4a7944
push str.FlsSetValue
push 0x22
call fcn.0048af74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b240
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a2408]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48f602
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00471e10
mov eax, dword [0x4c0180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0048a76d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48f644
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48f7a0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004982a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c5a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004903a7
mov ecx, dword [esi*4 + 0x4c5a40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x48f799
cmp eax, dword [ecx + edi + 0x24]
jne 0x48f799
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f799
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004903a7
add esp, 0x14
test edx, edx
jl 0x48f799
jg 0x48f70f
test eax, eax
jb 0x48f799
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48f799
jl 0x48f729
cmp dword [ebp - 0x1008], eax
ja 0x48f799
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48f747
test ebx, ebx
je 0x48f780
cmp ecx, edi
jae 0x48f780
mov al, byte [ecx]
cmp al, 0xd
jne 0x48f761
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48f76d
cmp byte [ecx + 1], 0xa
jne 0x48f76d
inc ecx
jmp 0x48f76d
movzx eax, al
movsx eax, byte [eax + 0x4c0608]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48f747
cmp edx, ebx
jne 0x48f747
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48f79e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00470c0a
leave
ret