joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456780
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
nop dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.0040dd20
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4567f4
cmp eax, 0xea
jne 0x456911
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jb 0x456911
nop dword [eax + eax]
cmp dword [ebp + 0xc], 0
je 0x456901
cmp dword [edi + 4], 0
jne 0x456901
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, dword [eax]
or ebx, 5
mov dword [ebp - 0x18], ecx
mov dword [eax], 0x6e6190
mov dword [ebp - 0x10], ebx
test bl, 2
je 0x45687a
mov eax, dword [esi]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x45686a
cmp eax, 0xffffffff
je 0x456877
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x456877
push 4
push 2
push esi
call fcn.00403d20
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x4568b4
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x4568a5
cmp eax, 0xffffffff
je 0x4568b4
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4568b4
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.00406720
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x4568ee
cmp ecx, 0xffffffff
je 0x4568fb
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x4568fb
push 4
push 2
push eax
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jbe 0x456810
push dword [ebp - 0x24]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x30]
cmp eax, 0xea
je 0x4567c0
test eax, eax
sete al
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 0x4595c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fd3d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
je 0x45964a
mov edi, dword [ebx + 0x20]
nop
inc dword [edi + 8]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebx + 0x30]
xor esi, esi
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
test eax, eax
jle 0x459643
mov eax, dword [ecx + 8]
add eax, esi
mov ecx, dword [ecx + eax*4 + 0x10]
test ecx, ecx
je 0x459635
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x459660
mov ecx, dword [ebx + 0x30]
inc esi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
cmp esi, eax
jl 0x459614
mov eax, dword [edi + 8]
dec eax
mov dword [edi + 8], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
dec dword [edi + 8]
mov al, 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 0xc
Function at 0x45c3f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550283
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x6f6960], 0xffffffff
jne 0x45c451
mov esi, 0x6fe92c
mov ecx, esi
call fcn.0043f350
and esi, 0xfffffffe
cmp dword [0x6f6960], 0xffffffff
jne 0x45c447
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6f6960], eax
and esi, 0xfffffffe
mov ecx, esi
call fcn.0043f800
push dword [0x6f6960]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x45c4f4
cmp byte [ebp + 8], al
je 0x45c4f4
push 0x44
call fcn.005247b1
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0045b350
mov ebx, eax
push ebx
push dword [0x6f6960]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
mov dword [ebp - 4], 1
call fcn.005247b1
add esp, 4
mov dword [ebp - 0x1c], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0045b230
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
nop
nop
mov ecx, ebx
mov dword [ebx + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0045b900
mov byte [ebx + 0x42], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x28], eax
mov eax, dword [0x6fb0d8]
nop
test eax, eax
jne 0x45c508
mov eax, dword [ebx + 0x24]
nop
mov dword [0x6fb0d8], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x14], 0xffffffff
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
push 2
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x24]
nop
push eax
push dword [ebp - 0x14]
call fcn.0045cc40
add esp, 8
mov eax, ebx
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 0x45c740
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x45d270
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x30]
mov dword [esp + 8], eax
test eax, eax
je 0x45d28f
mov ecx, eax
call fcn.0043f350
or dword [esp + 8], 1
cmp byte [esi + 0x38], 0
je 0x45d2b7
cmp byte [esi + 0x58], 0
jne 0x45d2a1
mov byte [esi + 0x59], 1
jmp 0x45d2b7
push 0
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
call fcn.0045c5e0
add esp, 8
mov ecx, dword [esp + 8]
pop edi
pop esi
test cl, 1
je 0x45d2cd
and ecx, 0xfffffffe
add esp, 4
jmp fcn.0043f800
pop ecx
ret
Function at 0x46cea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x46cf0c
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46cf0c
cmp dword [esp + 0xc], 4
jne 0x46cf0c
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 4
push eax
push 0
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
test eax, eax
mov eax, dword [esp + 0x18]
sete dl
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 4], dl
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov byte [eax + 4], 0
add esp, 0xc
ret 0xc
Function at 0x46cf30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551902
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 1
mov esi, dword [ebp + 8]
mov dword [esi], 0x6e6190
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x46d0c4
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d0c4
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x46cfb5
cmp eax, 2
jne 0x46d0c4
mov eax, dword [ebp - 0x10]
cmp eax, 2
jbe 0x46d0c4
add eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x128], eax
cmp eax, 0x100
jle 0x46d005
push eax
call fcn.0052a452
mov ecx, eax
add esp, 4
mov dword [ebp - 0x124], ecx
test ecx, ecx
jne 0x46cff4
call fcn.00425c20
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x10]
jmp 0x46d01b
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x12c], 0x100
mov dword [ebp - 0x124], ecx
push eax
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.00526b90
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d0ab
push 0xffffffffffffffff
push dword [ebp - 0x124]
lea eax, [ebp - 0x14]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, dword [eax]
mov dword [eax], 0x6e6190
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], ecx
mov eax, dword [eax]
test eax, eax
je 0x46d08a
cmp eax, 0xffffffff
je 0x46d099
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x46d099
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
mov dword [esi], eax
call fcn.00401a70
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x46d0c4
push eax
call fcn.0052a437
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x486cf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5530f8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0x6f6e64
mov eax, dword [ebp + 0x10]
mov edx, 0x40
test eax, eax
mov dword [ebp - 4], 0
cmovne edx, eax
mov dword [ebp - 0xa0], edx
cmp edx, 0x40
jle 0x486d72
lea eax, [edx + edx]
push eax
call fcn.0052a452
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x486d64
call fcn.00425c20
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
jmp 0x486d88
lea eax, [ebp - 0x94]
mov dword [ebp - 0xa4], 0x40
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edx
push eax
push esi
push dword [ebx]
mov byte [ebp - 4], 1
call edi
test eax, eax
jne 0x486e5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x50
jne 0x486dde
test eax, eax
jne 0x486dde
mov esi, dword [ebp + 8]
mov dword [esi], 0x6f6e64
mov eax, dword [0x6f6e64]
test eax, eax
je 0x486e7f
cmp eax, 0xffffffff
je 0x486e7f
lock inc dword [0x6f6e64]
jmp 0x486e7f
cmp eax, 0x7a
je 0x486df1
mov esi, dword [ebp + 8]
mov dword [esi], 0x6e6190
jmp 0x486e7f
push 0
push 0
push esi
push dword [ebx]
call edi
mov edx, eax
test edx, edx
je 0x486e2f
cmp edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
cmovl eax, dword [ebp - 0xa4]
push eax
push edx
call fcn.004552b0
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push esi
push dword [ebx]
call edi
test eax, eax
jne 0x486e5b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
mov dword [esi], 0x6e6190
cmp eax, ecx
je 0x486e51
push eax
call fcn.0052a437
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00401a70
jmp 0x486eca
mov eax, dword [ebp - 0x9c]
cmp esi, 0x50
jne 0x486e70
cmp word [eax], 0
je 0x486db3
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
push esi
call fcn.00420fa0
add esp, 0xc
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x486e98
push eax
call fcn.0052a437
add esp, 4
mov eax, dword [0x6f6e64]
test eax, eax
je 0x486eb9
cmp eax, 0xffffffff
je 0x486eca
or eax, 0xffffffff
lock xadd dword [0x6f6e64], eax
dec eax
setne al
test al, al
jne 0x486eca
push 4
push 2
push 0x6f6e64
call fcn.00403d20
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487160
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xffffffffffffffff
push 0x553188
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x6f9540]
xor eax, ebp
mov dword [ebp + 0x28], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov esi, dword [ebp + 0x34]
mov dword [ebp + 8], esi
sub eax, 0
je 0x48733a
sub eax, 1
je 0x487307
sub eax, 1
jne 0x487217
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x98], 0x40
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 0x40
push 0x40
push eax
push 0x1008
push dword [edi]
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x487296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x487252
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x487217
push eax
call fcn.0052a437
add esp, 4
mov eax, dword [esi + 8]
and eax, 0xc0000000
mov dword [esi], 0
and eax, 0xbfffffff
or eax, 0x80000000
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x28]
xor ecx, ebp
call fcn.00524b20
lea esp, [ebp + 0x2c]
pop ebp
ret 8
mov ecx, 0xff
cmp dword [ebp - 0x9c], ecx
cmovg ecx, dword [ebp - 0x9c]
push ecx
push 0xff
lea ecx, [ebp - 0x9c]
call fcn.004552b0
push dword [ebp - 0x98]
push dword [ebp - 0x94]
push 0x1008
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4871fe
push 0xffffffffffffffff
push dword [ebp - 0x94]
lea eax, [ebp + 4]
push eax
call fcn.00420fa0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00481770
mov eax, dword [ebp + 4]
mov eax, dword [eax]
test eax, eax
je 0x4872d6
cmp eax, 0xffffffff
je 0x4872e5
mov eax, dword [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4872e5
push 4
push 2
push dword [ebp + 4]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x487232
push eax
call fcn.0052a437
add esp, 4
jmp 0x487232
push 0xd
lea eax, [ebp + 0xc]
push eax
push 0x14
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x487217
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00420fa0
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x48736b
push 9
lea eax, [ebp + 0xc]
push eax
push 0x15
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x487217
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00420fa0
add esp, 0xc
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00481770
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x48739b
cmp eax, 0xffffffff
je 0x487232
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x487232
push 4
push 2
push dword [ebp + 8]
call fcn.00403d20
add esp, 0xc
jmp 0x487232
Function at 0x488cb0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6f9540]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x488d61
push 8
lea eax, [esp + 8]
push eax
push 0x1014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x488d59
mov ax, word [esp + 4]
cmp ax, 0x31
je 0x488d59
cmp ax, 0x30
jne 0x488d11
mov dword [esi + 4], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00524b20
add esp, 0x2c
ret
cmp ax, 0x32
je 0x488d3d
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x488d59
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 4]
add ecx, 2
cmp eax, ecx
jne 0x488d59
mov dword [esi + 4], 2
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00524b20
add esp, 0x2c
ret
mov eax, 3
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00524b20
add esp, 0x2c
ret

Function at 0x489dc0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x55367e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6f9540]
xor eax, ebp
mov dword [ebp + 0x200], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov dword [esi], 0x6e6190
push 0xff
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
push 0x5a
push dword [ebp + 0x210]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x489e81
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420fa0
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x489e72
cmp eax, 0xffffffff
je 0x489e81
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x489e81
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00524b20
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x48a4c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6f9540]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [esp + 0x30]
push edi
mov dword [esp + 8], esi
lea edi, [ecx + 8]
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x48a548
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48a548
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00420fa0
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
test eax, eax
je 0x48a538
cmp eax, 0xffffffff
je 0x48a548
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48a548
push 4
push 2
push dword [esp + 0x10]
call fcn.00403d20
add esp, 0xc
push edi
mov ecx, esi
call fcn.00481770
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00524b20
add esp, 0x28
ret 4
Function at 0x4d0ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55841b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x1c
call fcn.005247b1
mov esi, eax
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
call fcn.005247b1
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00493380
mov dword [esi], eax
mov dword [esi + 0x14], 0x6e6190
mov byte [esi + 0x18], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 1
mov dword [edi], esi
mov byte [esi + 0x18], 1
mov eax, dword [edi]
push 0x22
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d3d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x4c
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
cmp ecx, eax
jg 0x4d3e9a
mov eax, ecx
mov ecx, dword [esp + 0x64]
sar eax, 1
mov edi, ecx
mov dword [esp + 0x18], eax
shl eax, 5
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 4
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x4d3e4c
nop
mov eax, dword [esp + 0x14]
mov ebp, ebx
mov ecx, dword [esp + 0x10]
shr ebp, 1
mov esi, ebp
movups xmm0, xmmword [eax]
shl esi, 5
movups xmmword [esp + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x1c]
push eax
movups xmmword [esp + 0x30], xmm0
lea eax, [esp + 0x40]
movups xmm0, xmmword [esi + edi]
push eax
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [esi + edi + 0x10]
movups xmmword [esp + 0x54], xmm0
call fcn.004d5320
test eax, eax
jns 0x4d3e36
or eax, 0xffffffff
add edi, 0x20
sub eax, ebp
add edi, esi
add ebx, eax
jmp 0x4d3e38
mov ebx, ebp
test ebx, ebx
jg 0x4d3de0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, edi
sub eax, ecx
sar eax, 4
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
push edi
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
push eax
push dword [esp + 0x8c]
push ecx
push esi
call fcn.004d3c30
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x7c]
mov edi, esi
sar eax, 1
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
shl ecx, 5
add ecx, eax
mov dword [esp + 0x10], edx
sub eax, esi
mov dword [esp + 0x14], ecx
sar eax, 4
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x4d3f38
nop dword [eax]
mov ebp, ebx
lea eax, [esp + 0x3c]
shr ebp, 1
mov esi, ebp
shl esi, 5
push eax
lea eax, [esp + 0x20]
push eax
movups xmm0, xmmword [esi + edi]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [esi + edi + 0x10]
movups xmmword [esp + 0x54], xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x18]
movups xmmword [esp + 0x34], xmm0
call fcn.004d5320
test eax, eax
jns 0x4d3f18
mov ebx, ebp
jmp 0x4d3f24
or eax, 0xffffffff
add edi, 0x20
sub eax, ebp
add edi, esi
add ebx, eax
mov ecx, dword [esp + 0x14]
test ebx, ebx
jg 0x4d3ed0
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
mov eax, edi
sub eax, esi
sar eax, 4
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x78]
push ecx
push edi
push dword [esp + 0x20]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
push eax
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push esi
call fcn.004d3c30
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x4d91c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x6f9540]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp]
mov eax, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
push edx
lea edx, [esp + 0xc]
mov dword [esp + 8], 0x2c
push edx
push 0
push 0
push eax
mov byte [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d9247
movups xmm0, xmmword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x40]
mov byte [edi], 1
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0xc]
movups xmmword [esi + 0xc], xmm0
sub ecx, eax
mov dword [esi + 4], eax
movups xmm0, xmmword [esp + 0x28]
add ecx, dword [esp + 0xc]
mov eax, esi
mov dword [esi + 8], ecx
movups xmmword [esi + 0x1c], xmm0
pop esi
pop edi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00524b20
add esp, 0x34
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
pop edi
xor ecx, esp
call fcn.00524b20
add esp, 0x34
ret