joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57edf5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x490c1e
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
jne 0x490c1e
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x58bee0]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0x58bebc
movups xmmword [ebp - 0x24], xmm0
call fcn.00457020
add esp, 8
call fcn.0055eb76
mov dword [eax], 0x16
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
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00480ad0
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x10], cx
push ecx
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0042ab60
mov ecx, dword [ebp + 8]
or edi, 0xffffffff
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x490c6d
cmp ecx, edi
je 0x490c7c
mov eax, dword [ebp + 8]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x490c7c
push 4
push 2
push dword [ebp + 8]
call fcn.00425140
add esp, 0xc
cmp ebx, 0xffffffff
je 0x490c8b
push str.Broken_filename_passed_to_function
jmp 0x490be1
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00480ad0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
test esi, esi
setne bl
mov eax, dword [ecx]
test eax, eax
je 0x490ccf
cmp eax, 0xffffffff
je 0x490cde
mov eax, dword [ebp + 8]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x490cde
push 4
push 2
push dword [ebp + 8]
call fcn.00425140
add esp, 0xc
test esi, esi
jne 0x490cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
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 0x491170
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578d7d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00489a40
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x10]
setne bl
mov eax, dword [eax]
test eax, eax
je 0x4911df
cmp eax, 0xffffffff
je 0x4911ee
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x4911ee
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4913c0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57eedd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x732480]
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 - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ebx
sub eax, ebx
je 0x491433
sub eax, 1
je 0x49142b
sub eax, 2
je 0x491426
mov dword [esi], 0x57
mov dword [esi + 4], 2
xor al, al
jmp 0x4915b9
lea edi, [ebp - 0x54]
jmp 0x491436
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], eax
jmp 0x491436
lea ebx, [ebp - 0x54]
call fcn.00487070
mov ecx, dword [ebp - 0x38]
test eax, eax
jne 0x4914e2
lea eax, [ebp - 0x44]
push eax
call fcn.00482b20
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
call fcn.00487010
lea ecx, [ebp - 0x44]
call fcn.00488cf0
lea ecx, [ebp - 0x44]
mov word [ebp - 0x30], ax
call fcn.004856c0
lea ecx, [ebp - 0x44]
mov word [ebp - 0x2e], ax
call fcn.00482c00
lea ecx, [ebp - 0x34]
mov word [ebp - 0x2a], ax
call fcn.00484ff0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x28], ax
call fcn.00485620
lea ecx, [ebp - 0x34]
mov word [ebp - 0x26], ax
call fcn.00486790
lea ecx, [ebp - 0x34]
mov word [ebp - 0x24], ax
call fcn.00485720
lea ecx, [ebp - 0x44]
mov word [ebp - 0x22], ax
call fcn.00482c60
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 0x49157c
xor al, al
jmp 0x4915b9
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.00488b70
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00482b20
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
call fcn.00487010
lea ecx, [ebp - 0x3c]
call fcn.00488cf0
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x20], ax
call fcn.004856c0
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x1e], ax
call fcn.00482c00
lea ecx, [ebp - 0x34]
mov word [ebp - 0x1a], ax
call fcn.00484ff0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], ax
call fcn.00485620
lea ecx, [ebp - 0x34]
mov word [ebp - 0x16], ax
call fcn.00486790
lea ecx, [ebp - 0x34]
mov word [ebp - 0x14], ax
call fcn.00485720
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x12], ax
call fcn.00482c60
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x40]
mov word [ebp - 0x1c], dx
call fcn.004811e0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x49141f
push edi
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4915b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
mov dword [esi + 4], 2
jmp 0x4915b9
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.00553392
mov esp, ebp
pop ebp
ret
Function at 0x491a10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57efcd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, esi
mov byte [ebp - 0xd], 0
call fcn.00480840
test al, al
je 0x491ad1
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00480600
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
movzx ecx, word [eax + ecx]
call fcn.0042edd0
mov ebx, 1
lea ecx, [eax - 0x41]
mov eax, dword [ebp - 0x14]
shl ebx, cl
mov eax, dword [eax]
test eax, eax
je 0x491ab0
cmp eax, 0xffffffff
je 0x491abf
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x491abf
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
and ebx, dword [ebp - 0x18]
setne al
neg ebx
sbb ebx, ebx
and ebx, 0x14
jmp 0x491b96
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00480ad0
push 1
push str._UNC
push 7
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042e460
test al, al
je 0x491b64
mov eax, dword [ebp - 0x14]
push 1
push 7
mov ecx, dword [eax + 0xc]
mov ax, word [eax + ecx]
lea ecx, [ebp - 0x14]
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.0042ab60
mov edx, eax
test edx, edx
jle 0x491b4b
mov eax, dword [ebp - 0x14]
push 1
mov ecx, dword [eax + 0xc]
mov ax, word [eax + ecx]
lea ecx, [ebp - 0x14]
mov word [ebp - 0x18], ax
lea eax, [edx + 1]
push eax
push dword [ebp - 0x18]
call fcn.0042ab60
mov ecx, eax
test ecx, ecx
jle 0x491b4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
dec eax
cmp ecx, eax
jne 0x491b64
lea eax, [ebp - 0x14]
push eax
call fcn.00491da0
add esp, 4
test al, al
je 0x491b64
mov ebx, 0x10
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x491b84
cmp eax, 0xffffffff
je 0x491b93
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x491b93
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov al, byte [ebp - 0xd]
test al, al
je 0x491bc2
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 esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491be0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f016
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x732480]
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.0042f930
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x30], eax
test eax, eax
je 0x491c54
cmp eax, 0xea
jne 0x491d71
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jb 0x491d71
nop dword [eax + eax]
cmp dword [ebp + 0xc], 0
je 0x491d61
cmp dword [edi + 4], 0
jne 0x491d61
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call fcn.0042aa50
add esp, 0xc
mov ecx, dword [eax]
or ebx, 5
mov dword [ebp - 0x18], ecx
mov dword [eax], 0x71f078
mov dword [ebp - 0x10], ebx
test bl, 2
je 0x491cda
mov eax, dword [esi]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x491cca
cmp eax, 0xffffffff
je 0x491cd7
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x491cd7
push 4
push 2
push esi
call fcn.00425140
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x491d14
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x491d05
cmp eax, 0xffffffff
je 0x491d14
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x491d14
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.00402cb0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x491d4e
cmp ecx, 0xffffffff
je 0x491d5b
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x491d5b
push 4
push 2
push eax
call fcn.00425140
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 0x491c70
push dword [ebp - 0x24]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x30]
cmp eax, 0xea
je 0x491c20
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 0x4a9530
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580618
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0x72fd04
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 0x4a95b2
lea eax, [edx + edx]
push eax
call fcn.005591ab
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4a95a4
call fcn.00469f00
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
jmp 0x4a95c8
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 0x4a969b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x50
jne 0x4a961e
test eax, eax
jne 0x4a961e
mov esi, dword [ebp + 8]
mov dword [esi], 0x72fd04
mov eax, dword [0x72fd04]
test eax, eax
je 0x4a96bf
cmp eax, 0xffffffff
je 0x4a96bf
lock inc dword [0x72fd04]
jmp 0x4a96bf
cmp eax, 0x7a
je 0x4a9631
mov esi, dword [ebp + 8]
mov dword [esi], 0x71f078
jmp 0x4a96bf
push 0
push 0
push esi
push dword [ebx]
call edi
mov edx, eax
test edx, edx
je 0x4a966f
cmp edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
cmovl eax, dword [ebp - 0xa4]
push eax
push edx
call fcn.00490710
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push esi
push dword [ebx]
call edi
test eax, eax
jne 0x4a969b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
mov dword [esi], 0x71f078
cmp eax, ecx
je 0x4a9691
push eax
call fcn.00558b70
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00406190
jmp 0x4a970a
mov eax, dword [ebp - 0x9c]
cmp esi, 0x50
jne 0x4a96b0
cmp word [eax], 0
je 0x4a95f3
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
push esi
call fcn.00435080
add esp, 0xc
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x4a96d8
push eax
call fcn.00558b70
add esp, 4
mov eax, dword [0x72fd04]
test eax, eax
je 0x4a96f9
cmp eax, 0xffffffff
je 0x4a970a
or eax, 0xffffffff
lock xadd dword [0x72fd04], eax
dec eax
setne al
test al, al
jne 0x4a970a
push 4
push 2
push 0x72fd04
call fcn.00425140
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 0x4a99a0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xffffffffffffffff
push 0x5806a8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x732480]
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 0x4a9b7a
sub eax, 1
je 0x4a9b47
sub eax, 1
jne 0x4a9a57
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 0x4a9ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4a9a92
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x4a9a57
push eax
call fcn.00558b70
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.00553392
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.00490710
push dword [ebp - 0x98]
push dword [ebp - 0x94]
push 0x1008
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a9a3e
push 0xffffffffffffffff
push dword [ebp - 0x94]
lea eax, [ebp + 4]
push eax
call fcn.00435080
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004a3fb0
mov eax, dword [ebp + 4]
mov eax, dword [eax]
test eax, eax
je 0x4a9b16
cmp eax, 0xffffffff
je 0x4a9b25
mov eax, dword [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4a9b25
push 4
push 2
push dword [ebp + 4]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x4a9a72
push eax
call fcn.00558b70
add esp, 4
jmp 0x4a9a72
push 0xd
lea eax, [ebp + 0xc]
push eax
push 0x14
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a9a57
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00435080
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4a9bab
push 9
lea eax, [ebp + 0xc]
push eax
push 0x15
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a9a57
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00435080
add esp, 0xc
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004a3fb0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4a9bdb
cmp eax, 0xffffffff
je 0x4a9a72
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4a9a72
push 4
push 2
push dword [ebp + 8]
call fcn.00425140
add esp, 0xc
jmp 0x4a9a72
Function at 0x4ab4f0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x732480]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4ab5a1
push 8
lea eax, [esp + 8]
push eax
push 0x1014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ab599
mov ax, word [esp + 4]
cmp ax, 0x31
je 0x4ab599
cmp ax, 0x30
jne 0x4ab551
mov dword [esi + 4], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00553392
add esp, 0x2c
ret
cmp ax, 0x32
je 0x4ab57d
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ab599
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 4]
add ecx, 2
cmp eax, ecx
jne 0x4ab599
mov dword [esi + 4], 2
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00553392
add esp, 0x2c
ret
mov eax, 3
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00553392
add esp, 0x2c
ret

Function at 0x4ac600
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x580b9e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x732480]
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], 0x71f078
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 0x4ac6c1
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00435080
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 0x4ac6b2
cmp eax, 0xffffffff
je 0x4ac6c1
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x4ac6c1
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
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.00553392
lea esp, [ebp + 0x204]
pop ebp
ret
Function at 0x4acd00
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x732480]
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 0x4acd88
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4acd88
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00435080
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 0x4acd78
cmp eax, 0xffffffff
je 0x4acd88
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4acd88
push 4
push 2
push dword [esp + 0x10]
call fcn.00425140
add esp, 0xc
push edi
mov ecx, esi
call fcn.004a3fb0
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00553392
add esp, 0x28
ret 4
Function at 0x4c0f10
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 0x4c0f7c
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 0x4c0f7c
cmp dword [esp + 0xc], 4
jne 0x4c0f7c
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 0x4c0fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582602
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x732480]
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], 0x71f078
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4c1134
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 0x4c1134
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4c1025
cmp eax, 2
jne 0x4c1134
mov eax, dword [ebp - 0x10]
cmp eax, 2
jbe 0x4c1134
add eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x128], eax
cmp eax, 0x100
jle 0x4c1075
push eax
call fcn.005591ab
mov ecx, eax
add esp, 4
mov dword [ebp - 0x124], ecx
test ecx, ecx
jne 0x4c1064
call fcn.00469f00
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x10]
jmp 0x4c108b
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.005555a0
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 0x4c111b
push 0xffffffffffffffff
push dword [ebp - 0x124]
lea eax, [ebp - 0x14]
push eax
call fcn.0042aa50
add esp, 0xc
mov ecx, dword [eax]
mov dword [eax], 0x71f078
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], ecx
mov eax, dword [eax]
test eax, eax
je 0x4c10fa
cmp eax, 0xffffffff
je 0x4c1109
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4c1109
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
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.00406190
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4c1134
push eax
call fcn.00558b70
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