joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003fd5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101901c]
test eax, eax
jne 0x1004032
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
mov ecx, esi
and ecx, 0x3ff
xor edx, edx
movzx eax, cx
inc edx
cmp dx, ax
je 0x1007d3a
push 0xd
pop edx
cmp dx, ax
je 0x1007d3a
cmp byte [section..data], 0
je 0x1007d59
mov eax, dword [0x1019018]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret
cmp dword [0x1019024], 0x7d0
je 0x100402c
mov dword [0x10194c8], 0x180000
jmp 0x100401f
push 9
pop eax
cmp ax, cx
je 0x100402c
push ebx
push edi
push esi
push dword [0x1019018]
call fcn.0101550b
cmp eax, dword [0x1019018]
jne 0x1007d83
push eax
call fcn.010166e6
jmp 0x1007d8b
test eax, eax
jne 0x1007f40
push 5
lea eax, [ebp - 0xc]
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1007da8
mov eax, dword [0x101901c]
jmp 0x1007f37
mov esi, 0x104
push esi
lea eax, [ebp - 0x318]
push eax
push 0x3e9
push dword [0x1019018]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x1007d9e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
mov ebx, 0x1007f48
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0100d132
add esp, 0x14
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [0x1019018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155dd
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f40
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f40
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x1007ebc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
mov byte [ebp - 0xa], 0
call fcn.0100de92
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155dd
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f40
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f40
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 5
lea ecx, [ebp - 0xc]
push ecx
and eax, 0x3ff
or eax, 0x400
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1007d9e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0100de92
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155dd
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f40
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f40
mov eax, dword [0x1019018]
pop edi
pop ebx
jmp 0x1004031
Function at 0x1004369
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [ebp - 0xc04]
cmp dword [ebp - 0xc08], ebx
jbe 0x1004349
cmp dword [ebp - 0xc08], 2
ja 0x10083b8
push 0xffffffffffffffff
push 0x1004360
lea eax, [ebp - 0xc04]
push eax
mov byte [esi], 1
call fcn.01001b8c
test eax, eax
je 0x1004345
push 0xffffffffffffffff
push 0x1003d68
lea eax, [ebp - 0xc04]
push eax
call fcn.01001b8c
test eax, eax
je 0x1004345
push 0xffffffffffffffff
push 0x1004354
lea eax, [ebp - 0xc04]
push eax
call fcn.01001b8c
test eax, eax
je 0x1004345
mov byte [esi], 1
xor eax, eax
jmp 0x10043e0
mov byte [esi], bl
jmp 0x100433e
mov eax, 0x80040153
jmp 0x10043e0
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc1c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], esi
cmp byte [0x1019001], bl
je 0x10082b7
lea ecx, [ebp - 0xc0c]
push ecx
lea ecx, [ebp - 0xc04]
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0xc0c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10042d8
jle 0x10043e0
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0xc28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
cmp edi, ebx
je 0x1008360
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
mov dword [ebp - 0xc18], eax
cmp eax, ebx
jne 0x10082e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x10043d4
call fcn.010043f7
mov dword [ebp - 0xc10], esp
push ebx
push ebx
push dword [ebp - 0xc18]
push dword [ebp - 0xc10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x10082da
mov esi, dword [ebp - 0xc1c]
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc08]
push eax
push ebx
push dword [ebp - 0xc10]
mov edi, 0x400
push dword [ebp - 0xc14]
mov dword [ebp - 0xc0c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10043d4
mov eax, dword [ebp - 0xc0c]
cmp eax, ebx
jne 0x1008368
mov eax, 0x80004005
jmp 0x10043e0
mov dword [ebp - 0xc10], ebx
jmp 0x1008311
cmp dword [ebp - 0xc08], 1
mov byte [ebp + eax - 0x405], bl
je 0x100838c
cmp dword [ebp - 0xc08], 2
je 0x100838c
lea eax, [ebp - 0x404]
jmp 0x10042de
push edi
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10082da
mov eax, dword [ebp - 0xc14]
jmp 0x10042de
cmp dword [ebp - 0xc08], 4
jne 0x1004349
cmp dword [ebp - 0xc0c], 4
jne 0x1004349
cmp dword [eax], ebx
setne al
mov byte [esi], al
jmp 0x100433e
Function at 0x1004951
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], 4
cmp byte [0x1019001], bl
je 0x1008232
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100829a
jle 0x10049a7
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
cmp dword [ebp + 0xc], ebx
je 0x100827a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x100825d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x100499b
call fcn.010043f7
mov dword [ebp - 0xc], esp
push ebx
push ebx
push edi
push dword [ebp - 0xc]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1008250
jmp 0x100827d
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x1004993
cmp dword [ebp - 0x10], 4
jne 0x10082ad
cmp dword [ebp - 8], 4
jne 0x10082ad
xor eax, eax
jmp 0x10049a7
mov eax, 0x80040153
jmp 0x10049a7
Function at 0x1004b39
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], ebx
push edi
cmp byte [0x1019001], bl
je 0x100642d
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1004bd0
call fcn.010043f7
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1004bdc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1004bd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006416
cmp eax, ebx
jle 0x1004bbc
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004bbc
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1004bd0
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
jne 0x1006460
mov eax, 0x8007000e
jmp 0x1004bbc
push ebx
push ebx
push edi
push dword [ebp - 8]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x1004bd0
call fcn.010043f7
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1002020
push edi
call sub.VERSION.dll_VerQueryValueA
jmp 0x1004ba3
Function at 0x1005350
Capabilities:
Check os version

Disassembly:
push 0xa0
push 0x1005420
call fcn.0100413d
mov esi, dword [ebp + 0xc]
mov dword [0x1019024], esi
mov eax, dword [ebp + 8]
mov dword [0x1019018], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x101902c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1005418
cmp dword [ebp - 0xac], 6
sbb al, al
inc al
mov byte [section..data], al
call fcn.01003fd5
mov dword [0x101901c], eax
cmp dword [ebp - 0xa0], 2
jne 0x10053fa
mov byte [0x1019001], 1
cmp dword [ebp - 0xac], 5
jb 0x10053de
mov byte [0x1019002], 1
je 0x100540d
cmp dword [ebp - 0xac], 6
jb 0x10053fa
cmp esi, 0x7d0
je 0x1007f51
mov byte [0x1019020], 1
xor eax, eax
cmp dword [0x1019018], edi
setne al
call fcn.0100543c
ret 8
cmp dword [ebp - 0xa8], 1
jb 0x10053de
jmp 0x10053e7
xor eax, eax
jmp 0x1005405
push edi
call 0x1015566
jmp 0x10053f3
Function at 0x100ff8b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100ffd8
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100ffe6
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x10101ea
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x43
je 0x1010221
cmp dword [ebp + 8], 0x57
je 0x1010215
mov eax, 0x80070057
jmp 0x101036d
mov dword [ebp - 0x214], 0x101037c
jmp 0x101022b
mov dword [ebp - 0x214], 0x1010384
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], ebx
mov edi, 0x104
push ebx
mov esi, 0x80000000
jmp 0x1010318
cmp eax, ebx
jne 0x101035e
cmp byte [ebp - 0x108], 0x2e
jne 0x10102fa
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x101035e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10086f4
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], ebx
jne 0x10102fa
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x10102fa
mov byte [ebp + eax - 0x109], bl
push 1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x214]
call fcn.01010134
cmp eax, ebx
jl 0x101036a
inc dword [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
push esi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1010258
mov eax, dword [ebp - 0x214]
push ebx
push 0x101038c
call fcn.01010134
cmp eax, ebx
jl 0x101036a
mov eax, dword [ebp - 0x214]
push ebx
push 0x1010394
call fcn.01010134
cmp eax, ebx
jl 0x101036a
xor eax, eax
jmp 0x101036a
jle 0x101036a
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 4
Function at 0x10119c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x39c], esi
cmp byte [0x1019001], bl
je 0x1011a1e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1011ab6
lea eax, [ebp - 0x394]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x1011a9e
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1011a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1011abb
and eax, 0xffff
or eax, 0x80070000
jmp 0x1011abb
call fcn.010043f7
mov dword [ebp - 0x398], esp
push ebx
push ebx
push edi
push dword [ebp - 0x398]
push 0xffffffffffffffff
push dword [ebp - 0x39c]
push ebx
push ebx
call esi
test eax, eax
je 0x1011a35
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1011ab6
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x1011ab6
cmp eax, 0xffffffff
je 0x1011ab6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1011abb
test al, 0x10
je 0x1011aae
mov eax, 0x80070002
lea esp, [ebp - 0x3a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 4
Function at 0x101575f
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1019001], bl
je 0x101579b
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x1015915
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10157d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015917
and eax, 0xffff
or eax, 0x80070000
jmp 0x1015917
call fcn.010043f7
mov dword [ebp - 0x18], esp
cmp esp, ebx
jne 0x10157ea
mov eax, 0x8007000e
jmp 0x1015917
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x10157b7
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157b7
call fcn.010043f7
mov dword [ebp - 0x14], esp
cmp esp, ebx
je 0x10157e0
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x14]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x10157b7
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157b7
call fcn.010043f7
mov dword [ebp - 0x10], esp
cmp esp, ebx
je 0x10157e0
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x10157b7
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jle 0x10158ba
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157b7
call fcn.010043f7
mov dword [ebp - 0xc], esp
cmp esp, ebx
je 0x10157e0
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
test eax, eax
je 0x10157b7
jmp 0x10158d1
push 4
pop eax
call fcn.0100440a
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10157e0
mov byte [eax], bl
mov esi, dword [ebp + 0x18]
lea eax, [esi + 1]
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x10157e0
push dword [ebp - 0x18]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push dword [ebp + 0x14]
push edi
push dword [ebp - 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10157b7
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0x18
Function at 0x1015930
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1019001], bl
je 0x1015966
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1015a49
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x101599f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015a50
and eax, 0xffff
or eax, 0x80070000
jmp 0x1015a50
call fcn.010043f7
mov dword [ebp - 0x10], esp
cmp esp, ebx
jne 0x10159b5
mov eax, 0x8007000e
jmp 0x1015a50
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1015982
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1015982
call fcn.010043f7
mov dword [ebp - 0xc], esp
cmp esp, ebx
je 0x10159ab
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1015982
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1015982
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x10159ab
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x1015982
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0x14
Function at 0x1016159
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10194cc], edi
jne 0x1016275
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10161c0
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10194cc], edi
pop esi
je 0x1016248
dec eax
jne 0x1016275
cmp dword [ebp - 0x11c], 5
jne 0x1016235
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x1016229
dec eax
je 0x1016216
dec eax
je 0x10161fc
mov dword [0x10194cc], 0x14
jmp 0x1016275
cmp word [ebp - 0xc], 1
jb 0x101620d
mov dword [0x10194cc], 0x10
or dword [0x10194cc], 4
jmp 0x1016275
cmp word [ebp - 0xc], 2
jb 0x101620d
mov dword [0x10194cc], 8
jmp 0x101620d
mov dword [0x10194cc], 4
jmp 0x1016275
cmp dword [ebp - 0x11c], 4
ja 0x1016287
mov dword [0x10194cc], 2
cmp dword [ebp - 0x11c], 4
jne 0x1016275
cmp dword [ebp - 0x118], edi
je 0x101626b
cmp dword [ebp - 0x118], 0xa
je 0x101626b
cmp dword [ebp - 0x118], 0x5a
jne 0x1016275
mov dword [0x10194cc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10194cc]
xor ecx, ebp
pop edi
call fcn.01001375
leave
ret
mov dword [0x10194cc], 0x20
jmp 0x1016275

Function at 0x1016298
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10162ec
push 3
lea eax, [ebp - 0x44]
push 0x10162fc
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001375
leave
ret

Function at 0x1016307
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10194d0]
jne 0x10163a2
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1016498
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10163a1
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1016550
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10163a1
push 3
push dword [esi*8 + 0x10163b8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1016393
inc esi
cmp esi, 0x1c
jae 0x10163a1
jmp 0x1016372
mov ax, word [esi*8 + 0x10163bc]
mov word [0x10194d0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10194d0]
xor ecx, ebp
call fcn.01001375
leave
ret