joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447490
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 0x4941dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b4180]
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.00417820
mov eax, dword [eax + 4]
test eax, eax
jne 0x447525
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x14]
mov ecx, edi
push esi
lea eax, [ebp - 0x24]
push eax
je 0x44754a
call fcn.0044c300
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 0x44754f
call fcn.0044d810
lea eax, [ebp - 0x18]
push eax
push dword [0x4b9808]
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.0044b650
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x4475a9
add eax, eax
push eax
push esi
push 1
push 0x4a4564
push 0x4a2ebc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x60]
call fcn.004031d0
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 0x4475d1
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 0x447af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49428b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4b4180]
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 [0x4b9808]
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 0x4a4564
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 0x447b80
sub ecx, edx
sar ecx, 1
cmp ecx, 0x14
jbe 0x447c7d
call fcn.004038b0
mov ecx, eax
test ecx, ecx
je 0x447c97
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.004029f0
test al, al
jne 0x447c02
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447be0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x214]
call fcn.00402d20
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004475f0
push eax
lea ecx, [esi + 0x40]
call fcn.0044be70
lea ecx, [ebp - 0x240]
call fcn.004206c0
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 0x447c55
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 0x447c61
sub edx, esi
lea eax, [ebp - 0x210]
sar edx, 1
push edx
push eax
call fcn.00402d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b73a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403680
int3
Function at 0x44c300
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 0x492435
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b4180]
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.00417820
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x44c397
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x44c4f0
cmp dword [edi + 8], 0x5d1745d
je 0x44c506
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.0046baaa
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 + 0x4a5460]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4a5460]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x44c4a0
divss xmm0, xmm3
call fcn.0041b320
call fcn.0048ebf0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x44c47c
cmp eax, 0x200
jae 0x44c47a
shl eax, 3
cmp eax, ecx
jae 0x44c47c
mov eax, ecx
push eax
mov ecx, edi
call fcn.0042b690
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417820
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x44c4a3
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 0x44c4d1
mov dword [ecx + eax*8], esi
jmp 0x44c4e3
cmp edi, edx
jne 0x44c4da
mov dword [ecx + eax*8], esi
jmp 0x44c4e7
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x44c4e7
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.00453d9b
int3
Function at 0x44d810
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 0x492435
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b4180]
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.00417820
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x44d8a7
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x44d9e0
cmp dword [edi + 8], 0x5d1745d
je 0x44d9f6
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.0046baaa
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 + 0x4a5460]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4a5460]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x44d990
divss xmm0, xmm3
call fcn.0041b320
call fcn.0048ebf0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x44d96c
cmp eax, 0x200
jae 0x44d96a
shl eax, 3
cmp eax, ecx
jae 0x44d96c
mov eax, ecx
push eax
mov ecx, edi
call fcn.0042b690
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417820
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x44d993
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 0x44d9c1
mov dword [ecx + eax*8], esi
jmp 0x44d9d3
cmp edi, edx
jne 0x44d9ca
mov dword [ecx + eax*8], esi
jmp 0x44d9d7
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x44d9d7
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.00453d9b
int3
Function at 0x4518c0
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 0x49501d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4b4180]
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 0x4519fe
call fcn.004038b0
mov ecx, eax
test ecx, ecx
je 0x451a7a
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.004029f0
test al, al
jne 0x45194a
push 0x12
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
call fcn.00402d20
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x58], 0x451a90
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [ebp - 0x18]
push 0
push dword [eax + 8]
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 0x4519d0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4519cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x4519f8
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 0x4519f8
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 0x451a64
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 0x451a4b
cmp eax, 0x402
jne 0x451a64
mov dword [esi + 0xc], 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.00403680
int3
Function at 0x452370
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 0x452435
mov esi, dword [ebp - 0x18]
push edi
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x45242a
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 0x452427
add esi, eax
sub edi, eax
jne 0x452410
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 0x453120
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b4180]
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.00453290
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402bd0
mov edi, eax
lea eax, [ebp - 0x408]
lea ecx, [edi + 0x10]
push ecx
push 0x4a5190
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 0x453189
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 eax, 0xff
jne 0x4531ff
cmp byte [ebp + 0xc], 0
jne 0x4531ff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x4a2ebc
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ax, word [ebp - 0x408]
cmp ax, 0x31
jne 0x4531e7
mov dword [esi + 0xc], 1
jmp 0x45324b
cmp ax, 0x32
jne 0x4531f6
mov dword [esi + 0xc], 2
jmp 0x45324b
mov dword [esi + 0xc], 0
jmp 0x45324b
push eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x408]
push 0x4a442c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x408]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453221
sub ecx, edx
lea eax, [ebp - 0x408]
sar ecx, 1
push ecx
push eax
push 1
push 0x4a2ebc
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x410]
cmp eax, dword [esi + 0xc]
je 0x45325d
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.0046b73a
mov esp, ebp
pop ebp
ret 8
Function at 0x46b2d5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0047b071
mov eax, dword [eax + 0x14]
test eax, eax
je 0x46b318
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 0x46b318
sub eax, 1
je 0x46b313
sub eax, 1
je 0x46b30f
xor eax, eax
leave
ret
push 3
jmp 0x46b31a
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x46c6ef
Capabilities:
Parse pe header

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

Function at 0x482ac7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c764
push 0x49c75c
push str.FlsAlloc
push 0x1f
call fcn.004828f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x482afb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4973d8]
call esi
jmp 0x482b01
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x482b45
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c774
push 0x49c76c
push str.FlsGetValue
push 0x21
call fcn.004828f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x482b7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4973d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x482b84
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c77c
push 0x49c774
push str.FlsSetValue
push 0x22
call fcn.004828f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x482bbe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4973d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x485e44
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b4180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x485e8f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00485fdf
test al, al
jne 0x485e89
sub edx, 2
cmp edx, edi
jne 0x485e6f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x485eb1
lea eax, [edi + 2]
cmp edx, eax
je 0x485eb1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00485d90
add esp, 0x10
jmp 0x485fab
push esi
lea ecx, [ebp - 0x255]
call fcn.00485fdf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x485ef4
push dword [ebp - 0x25c]
jmp 0x485ea1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x485f31
cmp word [ebp - 0x226], 0
je 0x485f52
cmp word [ebp - 0x226], ax
jne 0x485f31
cmp word [ebp - 0x224], 0
je 0x485f52
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00485d90
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x485f9e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x485f0b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x485f86
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x485fab
push 0x485bc0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00479c40
add esp, 0x10
jmp 0x485f7b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b73a
leave
ret

Function at 0x4868c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4868d2
pop esi
ret
push ebx
push edi
push esi
call fcn.0048688a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00481028
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4868fa
push ebx
push esi
push edi
call fcn.0046d6d0
add esp, 0xc
push 0
call fcn.00480fee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x486cca
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048690f
Function at 0x489125
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00480d00
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x489194
cmp esi, dword [ebp - 4]
je 0x48918f
cmp dword [ebp + 0xc], 0
je 0x48918f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48916c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00488c77
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x489196
xor eax, eax
inc eax
jmp 0x489196
xor eax, eax
pop edi
pop esi
leave
ret