joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012035
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x220]
push eax
push 0x1011816
push 0x1011f78
xor edi, edi
push ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], ecx
call fcn.01011b28
push esi
push ebx
mov dword [ebp - 0x224], eax
call fcn.010117dc
test eax, eax
jne 0x10120bb
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x220], edi
jne 0x10120bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x21c], edi
jbe 0x1012168
push 0x204
lea eax, [ebp - 0x208]
push edi
push eax
mov dword [ebp - 0x20c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10120ff
mov word [ebp - 0x20c], ax
xor eax, eax
lea ecx, [ebp - 0x20c]
cmp ax, word [ebp - 0x20c]
jne 0x1012115
mov ecx, 0x1002960
cmp dword [ebp - 0x21c], 1
mov eax, 0x100295c
jne 0x1012128
mov eax, 0x1001dd8
push ecx
push dword [ebp - 0x220]
push ebx
push eax
push dword [ebp - 0x21c]
push 0x1002898
push 0x4000000
push 0x102373c
call fcn.0100a7e5
add esp, 0x20
cmp dword [ebp - 0x220], edi
je 0x1012162
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x224], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop edi
call fcn.0100b8d5
leave
ret
Function at 0x1012906
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
jne 0x101291a
xor eax, eax
jmp 0x1012941
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x101293f
push 0x43
pop ecx
shr eax, 2
test edi, edi
jne 0x101293f
test al, 1
jne 0x1012936
inc edi
mov word [esi], cx
inc ecx
shr eax, 1
cmp cx, 0x5a
jbe 0x101292a
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1012dbb
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x1012de3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1012e64
lea eax, [ebp - 8]
push eax
call fcn.01013550
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1012e59
push ebx
push eax
call fcn.010125ff
mov esi, eax
cmp esi, edi
je 0x1012e6a
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], edi
jne 0x1012e32
cmp dword [esi], ebx
je 0x1012e32
push dword [ebp + 8]
call fcn.010126c0
test eax, eax
je 0x1012e35
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 4], edi
jne 0x1012e59
cmp esi, edi
je 0x1012e59
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
push dword [ebp - 8]
call fcn.010135ec
mov eax, esi
pop edi
pop esi
leave
ret 0xc
push 0x38
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x1012e35
push edi
lea eax, [ebp + 0x10]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x2d1080
push dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x10], edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1012e35
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
cmp dword [ebp + 0xc], edi
je 0x1012e32
cmp dword [ebp - 0xc], edi
jbe 0x1012e35
push edi
push eax
call fcn.01012ce3
cmp eax, edi
je 0x1012e35
xor edx, edx
cmp dword [eax + 4], edi
jbe 0x1012f10
lea ecx, [eax + 0x38]
cmp dword [ebp - 4], edi
jne 0x1012f10
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ecx + 0x10]
jne 0x1012f04
mov ebx, dword [ecx]
mov dword [esi + 0x10], ebx
mov ebx, dword [ecx + 4]
mov dword [esi + 0x14], ebx
mov ebx, dword [ecx + 8]
mov dword [esi + 0x18], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 4], 1
mov dword [esi + 0x1c], ebx
inc edx
add ecx, 0x90
cmp edx, dword [eax + 4]
jb 0x1012ed9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1012e35
Function at 0x1012fa1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x41
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
pop esi
jl 0x1013077
cmp ebx, eax
je 0x1013077
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1013062
push 0x3a
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
test byte [ebp - 0x20], 1
mov word [ebp - 0xc], si
mov word [ebp - 6], ax
je 0x1013050
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1013050
push 0x5c
pop eax
push 0x2e
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
pop eax
push 0x5c
mov word [ebp - 0x18], ax
pop eax
push 0x3a
mov word [ebp - 0x16], ax
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x12], ax
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x14], si
call fcn.01012f29
test eax, eax
jne 0x1013056
shr dword [ebp - 0x20], 1
inc esi
jmp 0x1012fdd
mov word [ebx], si
mov dword [ebp - 0x24], 1
jmp 0x1013069
mov dword [ebp - 0x28], 0x490
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x24]
jmp 0x1013081
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret 0x10

Function at 0x10138a9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1013940
cmp dword [ebp + 0x18], esi
je 0x1013940
push edi
cmp dword [ebp + 0xc], esi
je 0x1013917
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1002ff4
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x101392f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101392f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x101394a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0x18
Function at 0x1013954
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x1013976
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x10139a7
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013999
cmp dword [ebp - 4], edi
jne 0x10139aa
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1013971
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x10139c8
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x10139cb
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x101399b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101399b

Function at 0x1013a77
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x1013aa4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
cmp dword [ebp + 0xc], ebx
je 0x1013ad6
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1013ac9
cmp dword [ebp - 4], ebx
jne 0x1013ad9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x1013a9f
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1013b74
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jne 0x1013b6d
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1013b62
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1013b50
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jne 0x1013b49
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x1013b74
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x1013b74
mov dword [ebp + 8], 0xd
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 8], ebx
jmp 0x1013b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1013b74
mov dword [ebp + 8], 0xd
pop edi
pop esi
cmp dword [ebp + 0xc], ebx
je 0x1013b84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 8]
jmp 0x1013ac9
Function at 0x1013dcf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x1013df4
mov eax, 0x80070057
jmp 0x1013f0d
push esi
push 0x1003428
mov dword [eax], edi
call fcn.0101328b
mov esi, eax
cmp esi, edi
je 0x1013e11
push esi
call fcn.0101073d
test eax, eax
je 0x1013e14
xor edi, edi
inc edi
test esi, esi
je 0x1013e28
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
cmp edi, eax
je 0x1013e38
mov eax, 0x80070032
jmp 0x1013f0c
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
xor edi, edi
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x1013eb4
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1013c34
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1013e78
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1013ea9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013e94
and eax, edi
or eax, esi
test eax, eax
jge 0x1013ea4
call ebx
test eax, eax
jle 0x1013ea0
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013ea9
mov ebx, 0x80004005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013ee5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013ed0
and eax, edi
or eax, esi
test eax, eax
jge 0x1013ee0
call ebx
test eax, eax
jle 0x1013edc
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013ee5
mov ebx, 0x80004005
test ebx, ebx
jl 0x1013ef3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1013f01
cmp dword [ebp - 4], 0
je 0x1013f0a
push dword [ebp - 8]
call fcn.01013d10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x1014415
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 7
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp + 8]
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014458
lea eax, [ebp - 0x20]
test eax, eax
je 0x1014476
test dword [ebp - 0x14], 0x8000000
je 0x1014476
inc esi
jmp 0x1014476
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003848
push 0x3000000
push 0x102373c
call fcn.0100a7e5
add esp, 0x10
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1014b9a
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
xor esi, esi
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1014c19
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1014c06
mov edi, dword [ebp - 0x14]
jmp 0x1014c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1014c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret
Function at 0x101603f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
xor edi, edi
push edi
push 1
mov esi, ecx
mov dword [ebp - 0xac], edi
call ebx
push eax
push edi
call ebx
push eax
push edi
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0xac]
push eax
push edi
mov ecx, esi
call fcn.010153ee
mov ecx, dword [esi + 0x10]
cmp ecx, edi
je 0x10160a0
call fcn.0101678a
mov ecx, dword [esi + 0x10]
call fcn.01016859
push dword [esi + 0x18]
mov ecx, esi
call fcn.01015d3b
push dword [esi + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0xc]
mov ecx, esi
mov dword [esi + 0x2c], edi
call fcn.01015813
cmp dword [ebp - 0xac], edi
je 0x10160d2
push edi
push 1
mov ecx, esi
call fcn.010153ee
push edi
mov ecx, esi
call fcn.01015425
push 0x51
lea eax, [ebp - 0xa8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1016103
push 0x1001dd8
push 0x51
lea eax, [ebp - 0xa8]
push eax
call fcn.0100a9c9
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.01015aba
push 1
mov ecx, esi
call fcn.01015425
mov esi, dword [esi + 0x10]
cmp esi, edi
je 0x1016128
mov ecx, esi
call fcn.01016797
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100b8d5
leave
ret
Function at 0x101644b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, dword [ebp + 8]
mov word [esi + 0x24], ax
cmp edi, ebx
je 0x10164fd
mov eax, dword [edi + 4]
mov dword [esi + 0x20], eax
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x10164a3
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.01014328
test eax, eax
jl 0x10164a3
mov ax, word [ebp + 8]
mov word [esi + 0x24], ax
cmp dword [edi + 0xc], ebx
je 0x10164d0
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x10164c5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10164c5
mov dword [esi + 0x28], ebx
push dword [edi + 0xc]
call fcn.0101492d
mov dword [esi + 0x28], eax
cmp dword [edi + 0x10], ebx
je 0x10164fd
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10164f2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10164f2
mov dword [esi + 0x14], ebx
push dword [edi + 0x10]
call fcn.0101492d
mov dword [esi + 0x14], eax
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1016562
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x10163ae
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1016562
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
cmp dword [esi], ebx
jne 0x1016557
push 0x3e8
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1016579
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1016576
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1016b8a
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1016cc2
xor ecx, ecx
cmp cx, word [eax]
je 0x1016cc2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push edi
call esi
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x1016c95
lea eax, [ebx + ebx]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x1016c95
push ebx
push eax
call esi
test eax, eax
je 0x1016c95
push 0x1003f44
push dword [ebp - 4]
call fcn.0101421f
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x1016ca0
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 8], esi
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
dec eax
jne 0x1016c88
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x1003f28
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1016c88
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x1003f10
push dword [ebp - 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 4
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1016c7f
cmp dword [ebp + 8], 4
jne 0x1016c7f
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1016ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1016cb2
push dword [ebp - 4]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
jmp 0x1016ccc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 4
Function at 0x10197e7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10239bc], edi
jne 0x1019903
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 0x101984e
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10239bc], edi
pop esi
je 0x10198d6
dec eax
jne 0x1019903
cmp dword [ebp - 0x11c], 5
jne 0x10198c3
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10198b7
dec eax
je 0x10198a4
dec eax
je 0x101988a
mov dword [0x10239bc], 0x14
jmp 0x1019903
cmp word [ebp - 0xc], 1
jb 0x101989b
mov dword [0x10239bc], 0x10
or dword [0x10239bc], 4
jmp 0x1019903
cmp word [ebp - 0xc], 2
jb 0x101989b
mov dword [0x10239bc], 8
jmp 0x101989b
mov dword [0x10239bc], 4
jmp 0x1019903
cmp dword [ebp - 0x11c], 4
ja 0x1019915
mov dword [0x10239bc], 2
cmp dword [ebp - 0x11c], 4
jne 0x1019903
cmp dword [ebp - 0x118], edi
je 0x10198f9
cmp dword [ebp - 0x118], 0xa
je 0x10198f9
cmp dword [ebp - 0x118], 0x5a
jne 0x1019903
mov dword [0x10239bc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10239bc]
xor ecx, ebp
pop edi
call fcn.0100b8d5
leave
ret
mov dword [0x10239bc], 0x20
jmp 0x1019903

Function at 0x1019926
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1023018]
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 0x101997a
push 3
lea eax, [ebp - 0x44]
push 0x1007f50
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.0100b8d5
leave
ret

Function at 0x101998f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10239c0]
jne 0x1019a2a
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1007e80
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019a29
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1007f38
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 0x1019a29
push 3
push dword [esi*8 + 0x1007cd0]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1019a1b
inc esi
cmp esi, 0x1c
jb 0x10199fa
jmp 0x1019a29
mov ax, word [esi*8 + 0x1007cd4]
mov word [0x10239c0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10239c0]
xor ecx, ebp
call fcn.0100b8d5
leave
ret