joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5007c0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x78], 0
mov dword [esp + 0x1c], edi
mov dword [edi], vtable.QWinSettingsPrivate.0
je 0x500941
mov eax, dword [edi + 0x74]
cmp dword [eax + 8], 0
je 0x500941
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.004fe020
test eax, eax
je 0x500941
cmp byte [esi + 0xc], 0
jne 0x500941
mov ecx, esi
call fcn.004fe020
test eax, eax
je 0x500941
mov dword [esp + 0xc], 0x6bb0d4
mov eax, 0x6bb0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [edi + 0x74]
cmp dword [eax + 8], 0
je 0x500851
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.004fe020
test eax, eax
je 0x500851
cmp byte [esi + 0xc], 0
jne 0x500851
mov ecx, esi
call fcn.004fe020
mov esi, eax
jmp 0x500853
xor esi, esi
lea ecx, [esp + 0xc]
call fcn.004b9a40
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x500927
mov edx, dword [edi + 0x74]
mov ecx, dword [edx + 0x18]
mov dword [esp + 8], ecx
mov edx, 1
lock xadd dword [ecx], edx
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x1c]
call fcn.004fe2b0
mov ecx, eax
call fcn.004b9600
mov ecx, eax
call fcn.00451aac
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call fcn.004b9600
mov ecx, eax
call fcn.00451aac
push eax
push str.QSettings:_Failed_to_delete_key___s_:__s
call fcn.004b1320
mov eax, dword [esp + 0x1c]
add esp, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5008d9
mov edx, dword [esp + 0x10]
push edx
call fcn.004be350
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5008f3
mov edx, dword [esp + 8]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50090d
mov edx, dword [esp + 0x14]
push edx
call fcn.004be350
add esp, 4
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500927
mov edx, dword [esp + 0x18]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500941
mov edx, dword [esp + 0xc]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [edi + 0x74]
lea esi, [edi + 0x74]
push ebp
xor ebp, ebp
cmp dword [eax + 8], ebp
jle 0x500998
push ebx
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, 1
je 0x50096c
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
mov ecx, esi
call fcn.004fe580
mov ecx, dword [esi]
mov eax, dword [ebx + ecx + 0x14]
lea edi, [ebx + ecx + 0x10]
test eax, eax
je 0x500981
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], 0
mov edx, dword [esi]
inc ebp
add ebx, 0x10
cmp ebp, dword [edx + 8]
jl 0x500952
mov edi, dword [esp + 0x24]
pop ebx
mov eax, dword [esi]
pop ebp
test eax, eax
je 0x5009b2
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5009b2
mov edx, dword [esi]
push edx
mov ecx, esi
call fcn.004fe530
mov ecx, edi
pop edi
pop esi
add esp, 0x18
jmp fcn.004c2300
Function at 0x503260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
mov dword [ecx], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
mov edx, 1
lock xadd dword [eax], edx
movzx eax, word [esi + 0xc]
mov word [ecx + 8], ax
mov dx, word [esi + 0xe]
mov word [ecx + 0xa], dx
movzx eax, word [esi + 0x10]
mov word [ecx + 0xc], ax
mov edx, dword [esi + 0x18]
lea eax, [edi + 0x18]
mov dword [eax], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x20]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0x14], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x34]
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 0x38]
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x3c]
mov dword [eax + 0x24], edx
mov edx, dword [esi + 0x40]
push eax
push ecx
mov dword [eax + 0x28], edx
call fcn.0052b230
add esp, 8
mov dword [edi + 0x48], eax
lea eax, [edi + 0x4c]
lea ecx, [ebx + 8]
push ebp
lea ecx, [ecx]
mov dword [eax], 0x6bb0d4
mov edx, 0x6bb0d4
mov ebp, 1
lock xadd dword [edx], ebp
add eax, 4
sub ecx, 1
jns 0x503300
lea eax, [edi + 0x70]
mov ecx, 1
jmp 0x503330
mov dword [eax], 0x6bb0d4
mov edx, 0x6bb0d4
mov ebp, 1
lock xadd dword [edx], ebp
add eax, 4
sub ecx, 1
jns 0x503330
and byte [edi + 0x7c], 0xfe
and dword [edi + 0x78], 0xc0000000
mov cl, byte [esi + 0x7c]
mov al, byte [edi + 0x7c]
xor cl, al
and cl, 2
xor cl, al
mov dword [edi + 0x80], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov byte [edi + 0x7c], cl
lea esi, [edi + 0x90]
mov ebx, 2
pop ebp
mov ecx, esi
call fcn.004f4ea0
add esi, 4
sub ebx, 1
jns 0x503385
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x511360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x5113f0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.00578180
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x5113bf
sub eax, ebp
jmp 0x5113c1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5113b0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x5113e0
sub eax, ebp
jmp 0x5113e2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5113d1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x51151f
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x511418
mov ebx, edx
test ebx, ebx
je 0x511469
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x51143b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0052e520
jmp 0x51144d
cmp ecx, 2
jne 0x511457
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0050f710
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.00578180
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x511493
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x5114a7
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x511370
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x51151f
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x5114ee
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x5114ce
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.005780d0
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x51151f
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x511508
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.005780d0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5184b0
Capabilities:
Terminate thread

Disassembly:
push 0
call fcn.004da590
ret
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0xc]
call fcn.004b2190
cmp byte [esi + 0x50], 0
jne 0x4e0446
mov eax, dword [esp + 8]
test al, 1
je 0x4e0477
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e042a
pop edi
pop esi
add esp, 4
jmp fcn.004dc330
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e0477
pop edi
pop esi
add esp, 4
jmp fcn.004dc360
cmp byte [esi + 0x70], 0
jne 0x4e0456
mov eax, dword [esp + 8]
mov byte [esi + 0x71], 1
jmp 0x4e040f
mov eax, dword [esi + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
mov byte [esi + 0x52], 1
call fcn.004e0210
mov eax, dword [esp + 0x10]
add esp, 8
jmp 0x4e040f
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 8], 0
jne case.default.0x5184c0
mov eax, dword [esp + 0xc]
cmp eax, 6
ja case.default.0x5184c0
jmp dword [eax*4 + 0x518514]
mov ecx, dword [esp + 4]
jmp fcn.00518450
mov ecx, dword [esp + 4]
jmp fcn.00518470
mov ecx, dword [esp + 4]
jmp fcn.00518490
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 4]
push edx
call fcn.004e0880
ret
mov ecx, dword [esp + 4]
push 7
call fcn.004e0880
ret
mov ecx, dword [esp + 4]
jmp 0x4e03f0
mov ecx, dword [esp + 4]
jmp 0x4da630

Function at 0x519660
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
jne 0x51974a
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 8
lea eax, [esp + 0xc]
push eax
push 0x1014
push ecx
call edi
test eax, eax
jne 0x5196b1
mov eax, 3
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057340c
add esp, 0x2c
ret
mov ax, word [esp + 8]
cmp ax, 0x31
jne 0x5196d7
mov dword [esi + 8], 3
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057340c
add esp, 0x2c
ret
cmp ax, 0x30
jne 0x5196f8
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057340c
add esp, 0x2c
ret
cmp ax, 0x32
jne 0x519719
mov dword [esi + 8], 2
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057340c
add esp, 0x2c
ret
mov eax, dword [esi + 4]
push 0xb
lea edx, [esp + 0x1c]
push edx
push 0x13
push eax
call edi
test eax, eax
je 0x519698
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 8]
add ecx, 2
xor eax, eax
cmp edx, ecx
setne al
add eax, 2
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.0057340c
add esp, 0x2c
ret
Function at 0x5197e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x208
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x204], eax
mov dword [esi], 0x6bb0d4
mov eax, 0x6bb0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x20c]
push 0xff
lea edx, [esp + 8]
push edx
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51985a
push 0xffffffffffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, esi
call fcn.004b7cb0
mov eax, dword [esp]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51985a
mov edx, dword [esp]
push edx
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x204]
xor ecx, esp
mov eax, esi
call fcn.0057340c
add esp, 0x208
ret

Function at 0x5198c0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0xc
push esi
push 2
lea eax, [esp + 0xc]
push eax
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519953
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004babe0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x68cfcc
call fcn.004b7d40
test al, al
je 0x519939
mov esi, dword [esp + 0x14]
push 1
mov ecx, esi
call fcn.004c7d80
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519960
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519953
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov esi, dword [esp + 0x14]
push 0
mov ecx, esi
call fcn.004c7d80
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x519970
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5199e4
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, esi
call fcn.004c9dd0
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5199f1
mov eax, dword [esp + 4]
push eax
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0057340c
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057340c
add esp, 0x28
ret 4
Function at 0x519a10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x29
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519a84
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, esi
call fcn.004c9dd0
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519a91
mov eax, dword [esp + 4]
push eax
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0057340c
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057340c
add esp, 0x28
ret 4

Function at 0x519ab0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x18]
push 4
lea eax, [esp + 0xc]
push eax
push 0x100c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519b33
push 0xa
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004babe0
add esp, 0xc
mov ecx, eax
call fcn.004b81c0
inc eax
push eax
mov ecx, esi
call fcn.004c7da0
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519b3c
mov eax, dword [esp + 4]
push eax
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0057340c
add esp, 0x10
ret 4
push 1
mov ecx, esi
call fcn.004c7d80
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057340c
add esp, 0x10
ret 4
Function at 0x519b50
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, 0x6bb0d4
push ebx
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x10], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xff
lea edx, [esp + 0x20]
push edx
push 1
push edi
call ebx
test eax, eax
je 0x519bd7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7cb0
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519bd7
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x519c52
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004b9600
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0xf]
push edx
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0051c560
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x519c38
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x519c38
cmp eax, 0x814
jne 0x519c38
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x642f38
call fcn.004ba8b0
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519c52
mov eax, dword [esp + 4]
push eax
call fcn.004be350
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x519c9c
mov dword [esi], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519c81
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b7ca0
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519d2a
mov ecx, dword [esp + 8]
push ecx
jmp 0x519d22
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x519ce7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004babe0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004b7cb0
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519ce7
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519d10
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519d2a
mov edx, dword [esp + 8]
push edx
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0057340c
add esp, 0x21c
ret
Function at 0x51a100
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
jne 0x51a118
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x51a138
add eax, eax
push eax
call fcn.004be340
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x51a144
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x40
mov esi, dword [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ecx
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
mov dword [esp + 0x28], eax
call edi
test eax, eax
jne 0x51a182
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6bb0d4
mov edx, 0x6bb0d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x51a212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x51a1fb
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x51a1c3
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6bb0d4
mov eax, 0x6bb0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x51a21c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x51a1d5
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004f2d30
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
push edx
push eax
push esi
push ecx
call edi
test eax, eax
je 0x51a162
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.004babe0
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x51a227
push eax
call fcn.004be350
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x51a4b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd0]
sub eax, 0
push ebx
push esi
push edi
mov edi, dword [esp + 0xd8]
mov esi, ecx
je 0x51a65a
sub eax, 1
je 0x51a5fa
sub eax, 1
jne 0x51a540
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, 0x40
lea ecx, [esp + 0x2c]
push eax
mov edx, ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push 0x1008
push eax
mov dword [esp + 0x34], ecx
call ebx
test eax, eax
jne 0x51a5a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x51a569
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x51a540
push eax
call fcn.004be350
add esp, 4
mov dword [edi + 8], closesocket
mov dword [edi], 0
mov ecx, dword [esp + 0xd0]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057340c
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x51a580
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.004f2d30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ecx
push 0x1008
push edx
call ebx
test eax, eax
je 0x51a52b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, edi
call fcn.004c9dd0
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51a5dc
mov eax, dword [esp + 0x14]
push eax
call fcn.004b7ca0
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x51a54d
push eax
call fcn.004be350
add esp, 4
jmp 0x51a54d
mov eax, dword [esi + 4]
push 0xd
lea edx, [esp + 0xb8]
push edx
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51a540
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, edi
call fcn.004c9dd0
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51a54d
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7ca0
add esp, 4
jmp 0x51a54d
mov ecx, dword [esi + 4]
push 9
lea eax, [esp + 0xb8]
push eax
push 0x15
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51a540
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004babe0
add esp, 0xc
push eax
mov ecx, edi
call fcn.004c9dd0
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51a54d
mov eax, dword [esp + 0xc]
push eax
call fcn.004b7ca0
add esp, 4
jmp 0x51a54d