joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b550
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x4550d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
mov ebx, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41b5a9
push 1
lea ecx, [ebx + 0x40]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41b59a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x41b6ff
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41b664
cmp eax, 0x104
je 0x41b664
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x41b715
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41b677
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.00419fe0
add esp, 0xc
test eax, eax
jne 0x41b64f
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.004284d4
push eax
call fcn.00410590
add esp, 0x10
push 0
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004202ef
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x41b6f1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.00419fe0
add esp, 0xc
test eax, eax
jne 0x41b6e9
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.004284d4
push eax
call fcn.00410590
add esp, 0x10
push 0
push edi
jmp 0x41b655
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004202ef
mov esp, ebp
pop ebp
ret
call fcn.0042059b
int3
Function at 0x41c1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c216
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x41c1e2
cmp eax, 2
jne 0x41c1fe
mov ecx, dword [ebp - 4]
test esi, esi
je 0x41c210
test ecx, ecx
je 0x41c20b
test cl, 1
jne 0x41c1fe
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41c210
pop edi
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41cce0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df93
mov eax, dword fs:[0]
push eax
sub esp, 0x174
push ebx
push esi
push edi
mov eax, dword [0x4550d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1__A__CCDCSW___S_1_15_3_1024_1502825166_1963708345_2616377461_2562897074_4192028372_3968301570_1997628692_1435953622_S:_ML___NX___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41cdf6
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0
push 0
push 0
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x41cde5
push ebx
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41cde5
push 1
lea ecx, [ebp - 0xc8]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 2
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00407680
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406f10
mov ecx, esi
call fcn.00406780
lea ecx, [ebp - 0x58]
call fcn.0040c690
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0041f324
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41ce6d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41ce6d
push 1
lea ecx, [ebp - 0xc8]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], 0
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00407680
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406f10
mov ecx, esi
call fcn.00406780
lea ecx, [ebp - 0x58]
call fcn.0040c690
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0041f324
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x180]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 4
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00407680
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406f10
mov ecx, esi
call fcn.00406780
lea ecx, [ebp - 0x110]
call fcn.0040c690
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x110], vtable.std::ios_base.0
call fcn.0041f324
add esp, 4
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 0x41d500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x41d521
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x41b740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41d54a
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41da50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.0041d790
test eax, eax
jne 0x41da68
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41da9f
push eax
call fcn.00410650
add esp, 4
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push 0x20006
push 0x441dc8
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00411c80
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x41dade
push eax
call fcn.00410650
add esp, 4
jmp 0x41daf1
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.0041e040
mov ebx, eax
test esi, esi
je 0x41dafe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41db09
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ee89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eb4c

Function at 0x42ee94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eccd
Function at 0x10017b5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
push 0x1002a20
call fcn.01001edc
xor ebx, ebx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 4
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push 0x1001324
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100181c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x10
push 0x10012f8
push 0x10012ec
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, ebx
jne 0x100181c
cmp dword [ebp - 0x24], ebx
je 0x100181c
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.01001833
mov al, byte [ebp - 0x19]
call fcn.01001f21
ret

Function at 0x10018ec
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push 0x240
push 0x1002a40
call fcn.01001f64
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x225], 0
xor esi, esi
mov dword [ebp - 0x22c], esi
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push esi
lea eax, [ebp - 0x222]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
or dword [ebp - 0x250], 0xffffffff
mov dword [ebp - 4], esi
mov dword [ebx], esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a56
push 0x10013a8
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0100184a
test eax, eax
jl 0x1001a56
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x1001a5c
push 0x1001398
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x24c], eax
test eax, eax
jne 0x10019db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10019cb
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x10012a0
call fcn.0100247d
jmp 0x1001a5c
push 0x1001388
push edi
call esi
mov dword [ebp - 0x248], eax
test eax, eax
je 0x10019b7
push 0x1001374
push edi
call esi
mov dword [ebp - 0x244], eax
test eax, eax
je 0x10019b7
push 0x1001360
push edi
call esi
mov dword [ebp - 0x240], eax
test eax, eax
je 0x10019b7
push 0x1001350
push edi
call esi
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x10019b7
push 0x1001334
push edi
call esi
mov dword [ebp - 0x234], eax
test eax, eax
je 0x10019b7
mov byte [ebp - 0x225], 1
mov dword [ebx], edi
and dword [ebp - 0x22c], 0
push 8
pop ecx
lea esi, [ebp - 0x250]
mov edi, dword [ebp - 0x230]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 4], 0xfffffffe
call fcn.01001a7c
mov al, byte [ebp - 0x225]
call fcn.01001fac
ret 8
Function at 0x1001eca
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1002a80
call fcn.01001edc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100437c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1001c81
cmp eax, esi
jne 0x1001c74
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1001c84
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001c5b
xor esi, esi
inc esi
mov eax, dword [0x1004378]
cmp eax, esi
jne 0x1001c97
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001cc6
mov eax, dword [0x1004378]
test eax, eax
jne 0x1001cc0
mov dword [0x1004378], esi
push 0x10010f0
push 0x10010e4
call fcn.01001bc0
pop ecx
pop ecx
test eax, eax
je 0x1001cc6
jmp 0x1001dee
mov dword [0x1004038], esi
mov eax, dword [0x1004378]
cmp eax, esi
jne 0x1001cea
push 0x10010e0
push 0x10010d8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004378], 2
test ebx, ebx
jne 0x1001cf6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004380], 0
je 0x1001d1a
push 0x1004380
call fcn.010020c9
pop ecx
test eax, eax
je 0x1001d1a
push 0
push 2
push 0
call dword [0x1004380]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001d76
test al, al
je 0x1001d34
cmp dword [ebp - 0x1c], 0
jne 0x1001d76
mov al, byte [esi]
test al, al
je 0x1001d44
cmp al, 0x20
ja 0x1001d44
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001d34
test byte [ebp - 0x3c], 1
je 0x1001d50
movzx eax, word [ebp - 0x38]
jmp 0x1001d53
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1004034], eax
cmp dword [0x1004028], 0
jne 0x1001dca
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1001d85
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1001d98
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1001d21
cmp dword [0x1004038], 0
jne 0x1001dd9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004034]
jmp 0x1001dfa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001f21
ret
call fcn.01002216
jmp 0x1001c21
Function at 0x10026a2
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
push 0x1002b08
call fcn.01001edc
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x10026ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10026ea
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x1002763
cmp dword [ebp - 0x24], 2
jne 0x100275c
push 0x1001650
push dword [esi + 4]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1002715
mov eax, dword [ebp + 8]
mov byte [eax], 1
push 0x1001478
jmp 0x1002755
push 0x1001664
push dword [esi + 4]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1002736
mov eax, dword [ebp + 8]
mov byte [eax + 1], 1
push 0x1001410
jmp 0x1002755
push 0x1001694
push dword [esi + 4]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x100275c
mov eax, dword [ebp + 8]
mov byte [eax + 2], 1
push 0x10013c8
call fcn.01002511
jmp 0x1002763
mov dword [ebp - 0x1c], 0x80070057
mov dword [ebp - 4], 0xfffffffe
call fcn.0100277f
mov eax, dword [ebp - 0x1c]
call fcn.01001f21
ret 4
Function at 0x100a29e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x1072af8], 1
push ebx
push esi
push edi
jne 0x100a2c1
or dword [0x1072af8], 1
call fcn.0100a249
mov dword [0x1072af4], eax
push 4
pop eax
call fcn.0104ae00
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a34d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1070924]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100a34d
cmp eax, 1
je 0x100a365
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a34d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100a322
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100a349
xor eax, eax
inc eax
jmp 0x100a381
cmp esi, ebx
jae 0x100a351
xor eax, eax
jmp 0x100a381
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1070924]
jmp 0x100a367
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a5cf
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8
Function at 0x100b3fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x111c
call fcn.0104ae00
mov eax, dword [0x106ed40]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x11c], 0x114
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100b535
cmp dword [ebp - 0x10c], 1
je 0x100b535
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 8], eax
mov edi, 0x100
push edi
lea eax, [ebp - 0x71c]
push eax
push 2
push dword [ebp - 8]
call esi
push edi
lea eax, [ebp - 0x91c]
push eax
mov eax, dword [ebp - 8]
and eax, 0x3ff
mov ebx, 0x400
push 2
or eax, ebx
push eax
call esi
push edi
lea eax, [ebp - 0x51c]
push eax
push 2
mov edi, 0x409
push edi
call esi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x100b4d2
dec eax
je 0x100b4b4
lea eax, [ebp - 0x31c]
push 0x1002864
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x100b501
lea eax, [ebp - 0x71c]
push eax
push 0x10027e8
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x100b501
cmp dword [ebp - 8], edi
lea eax, [ebp - 0x51c]
push eax
jne 0x100b4e5
push 0x1002738
jmp 0x100b4c0
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x31c]
push 0x1002678
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
lea eax, [ebp - 0x111c]
push eax
push 0x80
push dword [0x107093c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0104ab5e
leave
ret 4

Function at 0x100b689
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x106ed40]
xor eax, dword [ebp + 4]
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call fcn.0100a580
cmp eax, esi
jne 0x100b70c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100b6d5
lea eax, [ebp - 0x214]
push eax
call fcn.0100b689
cmp eax, esi
jne 0x100b70b
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
lea ecx, [ebp - 8]
je 0x100b6c5
call fcn.0100a51b
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0100a51b
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.0104ab5e
leave
ret 4
Function at 0x100c226
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100c258
mov esi, 0x8007000e
jmp 0x100c3e1
push eax
mov ecx, ebx
call fcn.0100a9be
test eax, eax
jge 0x100c26b
mov esi, eax
jmp 0x100c3d7
lea eax, [ebp - 2]
push eax
push dword [ebp - 0xc]
call fcn.0100a867
test eax, eax
jne 0x100c285
mov esi, 0x80020009
jmp 0x100c3d7
push edi
call esi
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
jne 0x100c29c
mov esi, 0x8007000e
jmp 0x100c3d7
mov ecx, ebx
call fcn.0100a99c
push edi
mov ecx, ebx
call fcn.0100a9be
test eax, eax
jge 0x100c2b6
mov esi, eax
jmp 0x100c3cf
movzx eax, word [ebp - 2]
sub eax, 8
je 0x100c3ae
sub eax, 9
je 0x100c2f2
dec eax
dec eax
jne 0x100c3ba
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0100a5b5
jmp 0x100c3ba
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 4], eax
je 0x100c30a
mov esi, 0x80004005
jmp 0x100c3cf
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x400
mov dword [ebp - 0x18], esi
ja 0x100c337
push esi
call fcn.0100a389
test al, al
je 0x100c337
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0104ae00
mov ebx, esp
jmp 0x100c342
push esi
lea ecx, [ebp - 0x10]
call fcn.0100bf66
mov ebx, eax
test ebx, ebx
je 0x100c300
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 4], edi
jle 0x100c394
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ebx]
mov eax, dword [ebp - 8]
movzx eax, word [eax + edi*2]
push eax
call fcn.0100a8e8
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 4]
jl 0x100c361
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push ebx
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebp - 8]
jmp 0x100c3ba
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
call fcn.0100a5cf
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.0100a9be
test eax, eax
jl 0x100c2af
xor esi, esi
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0100ad5a
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 0xc