joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512e20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], ebx
sub eax, ebx
je 0x512e93
sub eax, 1
je 0x512e8b
sub eax, 2
je 0x512e86
mov dword [esi], 0x57
mov dword [esi + 4], 2
xor al, al
jmp 0x513017
lea edi, [ebp - 0x5c]
jmp 0x512e96
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
jmp 0x512e96
lea ebx, [ebp - 0x5c]
call fcn.004f3d40
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x512f42
lea eax, [ebp - 0x48]
push eax
call fcn.004f0360
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.004f3cb0
lea ecx, [ebp - 0x48]
call fcn.004f5470
lea ecx, [ebp - 0x48]
mov word [ebp - 0x30], ax
call fcn.004f2650
lea ecx, [ebp - 0x48]
mov word [ebp - 0x2e], ax
call fcn.004f03d0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x2a], ax
call fcn.004f1fa0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x28], ax
call fcn.004f2610
lea ecx, [ebp - 0x38]
mov word [ebp - 0x26], ax
call fcn.004f3630
lea ecx, [ebp - 0x38]
mov word [ebp - 0x24], ax
call fcn.004f26b0
lea ecx, [ebp - 0x48]
mov word [ebp - 0x22], ax
call fcn.004f0430
cdq
mov ecx, 7
idiv ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
mov word [ebp - 0x2c], dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
test eax, eax
jne 0x512fda
xor al, al
jmp 0x513017
lea eax, [ebp - 0x3c]
push eax
call fcn.004f53a0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004f0360
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004f3cb0
lea ecx, [ebp - 0x50]
call fcn.004f5470
lea ecx, [ebp - 0x50]
mov word [ebp - 0x20], ax
call fcn.004f2650
lea ecx, [ebp - 0x50]
mov word [ebp - 0x1e], ax
call fcn.004f03d0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x1a], ax
call fcn.004f1fa0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], ax
call fcn.004f2610
lea ecx, [ebp - 0x34]
mov word [ebp - 0x16], ax
call fcn.004f3630
lea ecx, [ebp - 0x34]
mov word [ebp - 0x14], ax
call fcn.004f26b0
lea ecx, [ebp - 0x50]
mov word [ebp - 0x12], ax
call fcn.004f0430
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x1c], dx
call fcn.004eec70
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x512e7f
push edi
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x513015
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
mov dword [esi + 4], 2
jmp 0x513017
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596709
mov esp, ebp
pop ebp
ret
Function at 0x513440
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc43d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, edi
mov byte [ebp - 0xd], 0
call fcn.0050a4f0
test al, al
je 0x5134ed
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0050a2e0
mov eax, dword [eax + 4]
movzx ecx, word [eax]
call fcn.00497f80
mov ebx, 1
lea ecx, [eax - 0x41]
shl ebx, cl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5134db
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5134db
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
and ebx, dword [ebp - 0x14]
setne al
neg ebx
sbb ebx, ebx
and ebx, 0x14
jmp 0x5135a2
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0050a770
push 1
push str._UNC
push 7
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004977d0
test al, al
je 0x513578
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push 1
push 7
mov ax, word [eax]
mov word [ebp - 0x14], ax
push dword [ebp - 0x14]
call fcn.00493da0
mov ecx, eax
test ecx, ecx
jle 0x51355c
mov eax, dword [ebp - 0x1c]
push 1
mov ax, word [eax]
mov word [ebp - 0x14], ax
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00493da0
mov ecx, eax
test ecx, ecx
jle 0x51355c
mov eax, dword [ebp - 0x18]
dec eax
cmp ecx, eax
jne 0x513578
lea eax, [ebp - 0x20]
push eax
call fcn.005137b0
add esp, 4
test al, al
je 0x513578
mov al, 1
mov ebx, 0x10
mov byte [ebp - 0xd], al
jmp 0x51357b
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5135a2
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51359f
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
mov al, byte [ebp - 0xd]
test al, al
je 0x5135ce
mov edx, dword [ebp + 0xc]
test bl, 0x10
mov ecx, 0x20000
mov esi, 0x40000
cmovne ecx, esi
mov dword [edx + 0x10], ebx
or ecx, dword [edx + 4]
or ecx, 0x400000
mov dword [edx + 4], ecx
or dword [edx], 0x560000
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 0x5135e0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7106
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
nop dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00498670
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x28], eax
test eax, eax
je 0x513654
cmp eax, 0xea
jne 0x513781
mov edi, dword [ebp - 0x1c]
mov eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], eax
jb 0x513781
test esi, esi
je 0x513771
cmp dword [edi + 4], 0
jne 0x513771
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call fcn.00493a60
add esp, 0xc
mov ecx, dword [eax]
or ebx, 5
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x10], ebx
test bl, 2
je 0x5136e5
mov ecx, dword [ebp - 0x28]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x5136e5
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5136e5
push 4
push 2
push ecx
call fcn.00461780
add esp, 0xc
test bl, 1
je 0x513717
mov ecx, dword [ebp - 0x40]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x513717
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x513717
push 4
push 2
push dword [ebp - 0x40]
call fcn.00461780
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push dword [esi + 8]
mov ecx, esi
call fcn.00477420
mov eax, dword [esi]
test eax, eax
je 0x51373a
cmp dword [eax], 1
mov ebx, dword [ebp - 0x10]
jle 0x513747
push 0
push 0
push 0
mov ecx, esi
call fcn.00481ac0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x51376e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51376e
push 4
push 2
push ecx
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc eax
add edi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jbe 0x513668
push dword [ebp - 0x1c]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x28]
cmp eax, 0xea
je 0x513620
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 0x513db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x54]
je 0x513f52
mov eax, dword [esp + 0x4c]
cmp eax, ecx
je 0x513f52
push edi
mov edi, dword [esp + 0x5c]
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmmword [esp + 4], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 4]
push eax
movups xmmword [esp + 0x18], xmm0
lea eax, [esp + 0x28]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x2c], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x74]
movups xmmword [esp + 0x3c], xmm0
call fcn.00515160
test eax, eax
js 0x513e32
mov eax, dword [esp + 0x50]
dec edi
mov ecx, dword [esp + 0x54]
add eax, 0x20
mov dword [esp + 0x50], eax
cmp eax, ecx
jne 0x513de0
pop edi
add esp, 0x48
ret
push esi
mov esi, dword [esp + 0x64]
nop word [eax + eax]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
add ecx, 0xffffffe0
mov dword [esp + 0x48], esi
dec esi
mov dword [esp + 0x5c], ecx
cmp eax, ecx
je 0x513f0f
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esp + 8], xmm0
movups xmm0, xmmword [eax - 0x10]
lea eax, [esp + 8]
push eax
movups xmmword [esp + 0x1c], xmm0
lea eax, [esp + 0x2c]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x78]
movups xmmword [esp + 0x40], xmm0
call fcn.00515160
test eax, eax
jns 0x513e40
mov ecx, dword [esp + 0x5c]
add ecx, 0x20
mov dword [esp + 0x5c], ecx
cmp edi, 1
jne 0x513ee7
mov eax, dword [esp + 0x54]
push eax
push ecx
push dword [esp + 0x60]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x28], xmm0
call fcn.00514a30
movups xmm0, xmmword [esp + 0x48]
add esp, 0x10
mov eax, dword [eax]
pop esi
pop edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0x10], xmm0
add esp, 0x48
ret
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x54]
push edi
push ecx
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.00513f60
add esp, 0x20
pop esi
pop edi
add esp, 0x48
ret
mov eax, dword [esp + 0x58]
add ecx, 0x20
mov esi, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
push ecx
movups xmm0, xmmword [eax]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x48], xmm0
call fcn.005149a0
movups xmm0, xmmword [esp + 0x28]
add esp, 0x10
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esi + 0x10], xmm0
pop esi
pop edi
add esp, 0x48
ret
Function at 0x514310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x14]
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x64]
cmp ebp, edx
jge 0x514443
mov eax, ebp
shl eax, 5
mov dword [esp + 0x1c], eax
push edi
sub edx, ebp
add eax, esi
cmp edx, ebp
mov dword [esp + 0x14], eax
mov ecx, ebp
mov edi, eax
cmovl ecx, edx
mov ebp, ebx
sub edx, ecx
shl ecx, 5
add ecx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [esi]
lea eax, [esp + 0x24]
push eax
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x48]
movups xmm0, xmmword [esi + 0x10]
lea ebx, [ebp + 0x20]
push eax
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x20], ebx
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esp + 0x5c], xmm0
call fcn.00515160
test eax, eax
jns 0x5143de
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp edi, dword [esp + 0x10]
jne 0x5143f6
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x5143d8
nop
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp esi, eax
jne 0x5143c0
mov eax, dword [esp + 0x10]
jmp 0x514428
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp esi, dword [esp + 0x14]
je 0x514403
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x514362
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x514428
nop dword [eax + eax]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp edi, eax
jne 0x514410
mov edx, dword [esp + 0x78]
mov esi, eax
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], esi
cmp ebp, edx
jl 0x514338
pop edi
mov eax, dword [esp + 0x68]
cmp esi, eax
je 0x514467
sub ebx, esi
nop dword [eax]
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + esi], xmm1
movups xmmword [ebx + esi + 0x10], xmm0
add esi, 0x20
cmp esi, eax
jne 0x514450
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x51db30
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x5c7cf5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xb8]
mov esi, dword [ebp + 0xb4]
mov dword [ebp - 0x1c], esi
sub eax, 0
je 0x51dca0
sub eax, 1
je 0x51dc93
sub eax, 1
jne 0x51dbdd
lea eax, [ebp + 0xc]
mov dword [ebp], 0x40
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0x40
push 0x40
push eax
push 0x1008
push dword [edi]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51dc3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x51dc18
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51dbdd
push eax
call fcn.0059bad3
add esp, 4
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.00596709
lea esp, [ebp + 0xac]
pop ebp
ret 8
push 0xff
lea ecx, [ebp]
call fcn.0051f2e0
push dword [ebp + 4]
push dword [ebp + 8]
push 0x1008
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51dbca
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004b6680
add esp, 0xc
mov ecx, esi
push eax
call fcn.004cba30
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x51dc77
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51dc77
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51dbf2
push eax
call fcn.0059bad3
add esp, 4
jmp 0x51dbf2
push 0xd
lea eax, [ebp + 0x8c]
push eax
push 0x14
jmp 0x51dcab
push 9
lea eax, [ebp + 0x8c]
push eax
push 0x15
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51dbdd
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004b6680
add esp, 0xc
mov ecx, esi
push eax
call fcn.004cba30
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51dbf2
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51dbf2
push 4
push 2
push dword [ebp - 0x18]
call fcn.00461780
add esp, 0xc
jmp 0x51dbf2
Function at 0x51f620
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x72cec4]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x51f6d1
push 8
lea eax, [esp + 8]
push eax
push 0x1014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51f6c9
mov ax, word [esp + 4]
cmp ax, 0x31
je 0x51f6c9
cmp ax, 0x30
jne 0x51f681
mov dword [esi + 4], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00596709
add esp, 0x2c
ret
cmp ax, 0x32
je 0x51f6ad
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51f6c9
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 4]
add ecx, 2
cmp eax, ecx
jne 0x51f6c9
mov dword [esi + 4], 2
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00596709
add esp, 0x2c
ret
mov eax, 3
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00596709
add esp, 0x2c
ret
Function at 0x521410
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x5c827e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x72cec4]
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 - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xff
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
push 0x5a
push dword [ebp + 0x210]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5214ea
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004b6680
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5214ea
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5214ea
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
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.00596709
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x5221d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x72cec4]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], edi
cmp dword [esi + 0x10], 0
jne 0x522261
push 0xb
lea eax, [esp + 0x1c]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x522261
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004b6680
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi + 8], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x522261
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x522261
push 4
push 2
push dword [esp + 0x14]
call fcn.00461780
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call fcn.004cba30
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00596709
add esp, 0x2c
ret 4
Function at 0x52b5e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bce90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x8c], 0
mov dword [esi], vtable.QWinSettingsPrivate.0
je 0x52b72f
cmp dword [esi + 0x88], 0
je 0x52b72f
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52b72f
cmp byte [edi + 0x14], 0
jne 0x52b72f
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52b72f
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00498670
cmp dword [esi + 0x88], 0
mov ebx, eax
je 0x52b6a0
mov edi, dword [esi + 0x84]
mov ecx, edi
call fcn.0052ce90
test eax, eax
je 0x52b6a0
cmp byte [edi + 0x14], 0
jne 0x52b6a0
mov ecx, edi
call fcn.0052ce90
jmp 0x52b6a2
xor eax, eax
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
or edi, 0xffffffff
test ebx, ebx
je 0x52b710
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x52b6d8
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [ebp - 0x1c]
call fcn.00498670
push eax
push str.QSettings:_Failed_to_delete_key___ls_
push ebx
call fcn.004a1150
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
test ecx, ecx
je 0x52b710
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52b710
push 4
push 2
push dword [ebp - 0x1c]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x52b72f
lock xadd dword [eax], edi
cmp edi, 1
jne 0x52b72f
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0x88], ebx
jle 0x52b796
xor ecx, ecx
lea edx, [esi + 0x80]
mov dword [ebp - 0x10], ecx
mov eax, dword [edx]
test eax, eax
je 0x52b751
mov eax, dword [eax]
cmp eax, 1
jle 0x52b761
push 0
push 0
push 0
mov ecx, edx
call fcn.0052e150
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x84]
add edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x52b77a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
inc ebx
mov dword [edi + 4], 0
add ecx, 0x1c
lea edx, [esi + 0x80]
mov dword [ebp - 0x10], ecx
cmp ebx, dword [esi + 0x88]
jl 0x52b744
lea ecx, [esi + 0x80]
call fcn.0052b4b0
mov ecx, esi
call fcn.004d7600
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 0x52c800
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0052bb80
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], ebx
jle 0x52c94a
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x28]
or edx, 0x2001f
add esi, 8
mov dword [ebp - 0x14], edx
or edi, 0xffffffff
mov ecx, dword [esi - 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52c87e
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push edx
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
call fcn.00498670
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52c8db
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x52c8d8
push dword [ebp + 0xc]
push edi
call fcn.0052c800
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.00498670
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
jne 0x52c911
or edi, 0xffffffff
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x52c900
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x52c900
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x24]
jge 0x52c94a
mov edx, dword [ebp - 0x14]
jmp 0x52c860
lea ecx, [ebp - 0x20]
call fcn.00498670
push eax
push str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
push edi
call fcn.004a1150
mov eax, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x52c94a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x52c94a
push 4
push 2
push dword [ebp - 0x20]
call fcn.00461780
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00478e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret