joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013dbc
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 0x1013de1
mov eax, 0x80070057
jmp 0x1013efa
push esi
push 0x1003428
mov dword [eax], edi
call fcn.01013278
mov esi, eax
cmp esi, edi
je 0x1013dfe
push esi
call fcn.0101072d
test eax, eax
je 0x1013e01
xor edi, edi
inc edi
test esi, esi
je 0x1013e15
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 0x1013e25
mov eax, 0x80070032
jmp 0x1013ef9
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 0x1013ea1
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1013c21
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1013e65
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1013e96
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013e81
and eax, edi
or eax, esi
test eax, eax
jge 0x1013e91
call ebx
test eax, eax
jle 0x1013e8d
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013e96
mov ebx, 0x80004005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013ed2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013ebd
and eax, edi
or eax, esi
test eax, eax
jge 0x1013ecd
call ebx
test eax, eax
jle 0x1013ec9
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013ed2
mov ebx, 0x80004005
test ebx, ebx
jl 0x1013ee0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1013eee
cmp dword [ebp - 4], 0
je 0x1013ef7
push dword [ebp - 8]
call fcn.01013cfd
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 0x1014402
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 0x1014445
lea eax, [ebp - 0x20]
test eax, eax
je 0x1014463
test dword [ebp - 0x14], 0x8000000
je 0x1014463
inc esi
jmp 0x1014463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003848
push 0x3000000
push 0x102373c
call fcn.0100a7d5
add esp, 0x10
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1014b87
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 0x1014c06
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 0x1014bf3
mov edi, dword [ebp - 0x14]
jmp 0x1014bfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1014c0e
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.0100b8c5
leave
ret
Function at 0x1016029
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.010153d8
mov ecx, dword [esi + 0x10]
cmp ecx, edi
je 0x101608a
call fcn.01016774
mov ecx, dword [esi + 0x10]
call fcn.01016843
push dword [esi + 0x18]
mov ecx, esi
call fcn.01015d25
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.010157fd
cmp dword [ebp - 0xac], edi
je 0x10160bc
push edi
push 1
mov ecx, esi
call fcn.010153d8
push edi
mov ecx, esi
call fcn.0101540f
push 0x51
lea eax, [ebp - 0xa8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x10160ed
push 0x1001dd8
push 0x51
lea eax, [ebp - 0xa8]
push eax
call fcn.0100a9b9
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.01015aa4
push 1
mov ecx, esi
call fcn.0101540f
mov esi, dword [esi + 0x10]
cmp esi, edi
je 0x1016112
mov ecx, esi
call fcn.01016781
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100b8c5
leave
ret
Function at 0x1016435
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 0x10164e7
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 0x101648d
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.01014315
test eax, eax
jl 0x101648d
mov ax, word [ebp + 8]
mov word [esi + 0x24], ax
cmp dword [edi + 0xc], ebx
je 0x10164ba
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x10164af
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10164af
mov dword [esi + 0x28], ebx
push dword [edi + 0xc]
call fcn.0101491a
mov dword [esi + 0x28], eax
cmp dword [edi + 0x10], ebx
je 0x10164e7
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10164dc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10164dc
mov dword [esi + 0x14], ebx
push dword [edi + 0x10]
call fcn.0101491a
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 0x101654c
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x1016398
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x101654c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
cmp dword [esi], ebx
jne 0x1016541
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 0x1016563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1016560
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 0x1016b74
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 0x1016cac
xor ecx, ecx
cmp cx, word [eax]
je 0x1016cac
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 0x1016c7f
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 0x1016c7f
push ebx
push eax
call esi
test eax, eax
je 0x1016c7f
push 0x1003f44
push dword [ebp - 4]
call fcn.0101420c
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x1016c8a
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 0x1016c72
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 0x1016c72
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 0x1016c69
cmp dword [ebp + 8], 4
jne 0x1016c69
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 0x1016c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1016c9c
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 0x1016cb6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 4
Function at 0x10197d7
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 0x10198f3
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 0x101983e
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 0x10198c6
dec eax
jne 0x10198f3
cmp dword [ebp - 0x11c], 5
jne 0x10198b3
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10198a7
dec eax
je 0x1019894
dec eax
je 0x101987a
mov dword [0x10239bc], 0x14
jmp 0x10198f3
cmp word [ebp - 0xc], 1
jb 0x101988b
mov dword [0x10239bc], 0x10
or dword [0x10239bc], 4
jmp 0x10198f3
cmp word [ebp - 0xc], 2
jb 0x101988b
mov dword [0x10239bc], 8
jmp 0x101988b
mov dword [0x10239bc], 4
jmp 0x10198f3
cmp dword [ebp - 0x11c], 4
ja 0x1019905
mov dword [0x10239bc], 2
cmp dword [ebp - 0x11c], 4
jne 0x10198f3
cmp dword [ebp - 0x118], edi
je 0x10198e9
cmp dword [ebp - 0x118], 0xa
je 0x10198e9
cmp dword [ebp - 0x118], 0x5a
jne 0x10198f3
mov dword [0x10239bc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10239bc]
xor ecx, ebp
pop edi
call fcn.0100b8c5
leave
ret
mov dword [0x10239bc], 0x20
jmp 0x10198f3

Function at 0x1019916
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 0x101996a
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.0100b8c5
leave
ret

Function at 0x101997f
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 0x1019a1a
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 0x1019a19
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 0x1019a19
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 0x1019a0b
inc esi
cmp esi, 0x1c
jb 0x10199ea
jmp 0x1019a19
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.0100b8c5
leave
ret
Function at 0x101a650
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
xor eax, eax
and dword [esi], eax
pop ecx
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
or dword [ebp - 0x238], 0xffffffff
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x101a6e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x101a6d9
mov dword [ebp - 0x210], eax
jmp 0x101a7a8
and eax, 0xffff
or eax, 0x80070000
jmp 0x101a6ce
push 0x100802c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101a57f
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x101a7a8
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101a743
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100801c
push ebx
call esi
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x101a75f
push 0x1008008
push ebx
call esi
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x101a781
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a757
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
jmp 0x101a79c
push 0x1007ff8
push ebx
call esi
mov dword [ebp - 0x230], eax
test eax, eax
je 0x101a743
push 0x1007fe8
push ebx
call esi
mov dword [ebp - 0x224], eax
jmp 0x101a73f
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
push 8
mov dword [eax], ebx
pop ecx
lea esi, [ebp - 0x238]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x101a7a7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b8c5
leave
ret 8
Function at 0x101aacb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x20e
xor ebx, ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x428], ebx
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x430], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x424], 0xffffffff
add esp, 0x18
push ebx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x4d0008
push edi
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101ab68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x101ab5c
mov edi, eax
jmp 0x101ac5a
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ab55
push 0x100211c
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100a9b9
mov edi, eax
cmp edi, ebx
jl 0x101ac5a
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
lea eax, [ebp - 0x41e]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101aa7b
mov edi, eax
cmp edi, ebx
jl 0x101ac5a
push 0x1008048
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101a57f
mov edi, eax
cmp edi, ebx
jl 0x101ac5a
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101a614
mov edi, eax
cmp edi, ebx
jl 0x101ac5a
mov esi, dword [ebp - 0x42c]
cmp esi, ebx
je 0x101ac5a
lea eax, [ebp - 0x424]
push eax
push 0x11
call fcn.0101a916
mov edi, eax
cmp edi, ebx
jl 0x101ac46
xor edi, edi
lea esi, [ebp + esi*2 - 0x212]
lea eax, [edi + 0x31]
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101ac2f
inc edi
cmp di, 3
jb 0x101ac0e
jmp 0x101ac39
mov dword [ebp - 0x428], 1
xor eax, eax
cmp dword [ebp - 0x428], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x101ac5a
push dword [ebp - 0x424]
call fcn.0101aa2e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret 4
Function at 0x101ac72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101accb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x101acbf
mov esi, eax
jmp 0x101ad6c
and eax, 0xffff
or eax, 0x80070000
jmp 0x101acb8
mov esi, dword [ebp - 0xc]
push 4
add esi, 0x1ff
push 0x3000
and esi, 0xfffffe00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x101ad05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101ad59
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ad59
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ad3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101ad2d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80310000
jne 0x101ad5b
xor esi, esi
jmp 0x101ad5b
push ebx
push dword [ebp - 4]
push edi
call fcn.0101e6f0
xor esi, esi
cmp eax, 2
je 0x101ad5b
inc esi
cmp eax, esi
jne 0x101ad5b
push dword [ebp + 8]
call fcn.0101aacb
mov esi, eax
cmp edi, ebx
je 0x101ad6c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101adb6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x328], ebx
mov byte [ebp - 0x321], bl
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x338], 4
cmp edi, ebx
je 0x101af21
lea eax, [ebp - 0x328]
push eax
push 0x20019
push ebx
push 0x10080d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101af21
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x320]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 2
push 2
push ebx
push ebx
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x101aed5
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push ebx
push eax
mov dword [ebp - 0x32c], ebx
xor esi, esi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x32c]
push eax
push ebx
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x328]
mov dword [ebp - 0x334], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
cmp eax, ebx
jne 0x101aecc
cmp dword [ebp - 0x32c], 4
je 0x101af05
cmp eax, 0x103
jne 0x101ae8f
jmp 0x101af0c
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x330]
push eax
push ebx
push edi
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101af0c
cmp dword [ebp - 0x330], 4
jne 0x101af0c
mov byte [ebp - 0x321], 1
pop esi
cmp dword [ebp - 0x328], ebx
je 0x101af21
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x321]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret 4
Function at 0x101aff7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
test edi, edi
jne 0x101b022
xor eax, eax
jmp 0x101b1a5
call fcn.0101b284
test eax, eax
je 0x101b19d
push ebx
push 0
push edi
call fcn.01019403
movzx ebx, ax
test ebx, ebx
je 0x101b19c
cmp ebx, 0x7f
je 0x101b19c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsValidLocale]
push 2
push ebx
call esi
test eax, eax
jne 0x101b087
cmp ebx, 4
jne 0x101b06a
push 1
push 0x804
jmp 0x101b07d
cmp ebx, 0x7c04
jne 0x101b19b
push 1
push 0x404
call esi
test eax, eax
je 0x101b19b
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b19b
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll__wtoi
push 2
pop ebx
push ebx
push edi
push 0x1005db0
mov dword [ebp - 0x4c], eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0x10
test eax, eax
jne 0x101b0e6
mov esi, 0x10081b0
cmp dword [ebp - 0x48], eax
je 0x101b14c
push 0x10081a0
push dword [ebp - 0x48]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x101b19b
jmp 0x101b14c
push ebx
push edi
push 0x1005f58
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101b100
mov esi, 0x1008190
jmp 0x101b14c
push ebx
push edi
push 0x1005e70
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101b11a
mov esi, 0x1008184
jmp 0x101b14c
push ebx
push edi
push 0x1005ef0
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101b134
mov esi, 0x1008174
jmp 0x101b14c
push ebx
push edi
push 0x1005e10
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101b156
mov esi, 0x100815c
push esi
call fcn.0101adb6
test al, al
je 0x101b19b
cmp dword [ebp - 0x4c], 0
je 0x101b180
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x101b19b
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101b19b
push dword [ebp - 0x70]
jmp 0x101b188
cmp dword [ebp - 0x48], 0
je 0x101b194
push 1
push dword [ebp - 0x48]
call fcn.0101af3c
test eax, eax
je 0x101b19b
mov dword [ebp - 0x50], 1
pop esi
pop ebx
call fcn.0101b28d
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100b8c5
leave
ret 8