joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6341c8
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x634223
lea eax, [esp + 0xc]
push eax
push 0x634228
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop ebx
ret

Function at 0x635008
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408f58
xor eax, eax
push ebp
push 0x6350b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.00409e70
push 0
mov eax, dword [ebp - 8]
call fcn.00409cdc
push eax
mov eax, dword [ebp - 4]
call fcn.00409cdc
mov esi, eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00409e70
push ebx
mov eax, dword [ebp - 8]
call fcn.00409cdc
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x63508c
mov eax, dword [ebp - 8]
call fcn.00409cdc
mov edx, eax
mov eax, edi
call fcn.00409d44
jmp 0x635096
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6350b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ed4
ret

Function at 0x6350c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x6350df
cmp eax, 1
jae 0x6350e5
jmp 0x63518e
jl 0x63518e
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x63516f
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.0049ce2c
lea edx, [esp + 4]
mov ecx, 8
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
dec esi
test esi, esi
jl 0x63513a
inc esi
xor edi, edi
lea ebx, [esp + 4]
mov ecx, edi
mov al, 2
shl al, cl
xor byte [ebx], al
inc edi
inc ebx
dec esi
jne 0x63512d
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.0049ce2c
lea edx, [esp + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [esp + 0xc], 8
jl 0x63518e
mov eax, dword [esp + 0xc]
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, dword [esp + 0x14]
jne 0x635188
cmp eax, dword [esp + 0x10]
ja 0x6350f7
jmp 0x63518e
jg 0x6350f7
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x635240
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov dl, 2
mov ecx, 0x20
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 8]
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
push edi
push esi
push eax
push ecx
push edx
push 0x6820b4
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x6352dc
xor eax, eax
push ebp
push 0x6352d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x6352be
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6352dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x644354
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov esi, eax
xor eax, eax
push ebp
push 0x6444d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [esi + 0x1c]
call fcn.00408e74
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x7c], eax
movzx eax, byte [esi + 0x20]
sub al, 1
jb 0x6443cb
je 0x64439e
dec al
je 0x6443ad
dec al
je 0x6443bc
jmp 0x6444b0
call fcn.006408c0
call fcn.00640850
mov dword [esi + 0x7c], eax
jmp 0x6443d8
call fcn.006408dc
call fcn.00640850
mov dword [esi + 0x7c], eax
jmp 0x6443d8
call fcn.006408f8
call fcn.00640850
mov dword [esi + 0x7c], eax
jmp 0x6443d8
call fcn.00640914
call fcn.00640850
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x7c], 0
jne 0x6443ea
mov eax, esi
call fcn.00643ac8
jmp 0x6444b0
lea eax, [ebp - 4]
mov edx, dword [esi + 0x28]
mov ecx, 0
call fcn.004099f8
lea edx, [ebp - 4]
mov eax, dword [esi + 0x7c]
call fcn.0064081c
cmp byte [esi + 0x54], 0
je 0x64441c
xor ecx, ecx
mov edx, 1
mov eax, dword [esi + 0x7c]
call fcn.00640d24
jmp 0x644428
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x7c]
call fcn.00640d24
mov edx, 0x6438f0
mov eax, dword [esi + 0x7c]
call fcn.00640b10
mov edx, esi
mov eax, dword [esi + 0x7c]
call fcn.00640b38
cmp byte [ebp - 5], 0
je 0x644484
cmp dword [esi + 0x2c], 0
jne 0x644484
cmp dword [esi + 0x34], 0
jne 0x644484
cmp dword [esi + 0x40], 0
jne 0x644484
cmp dword [esi + 0x3c], 0
jne 0x644484
lea edx, [ebp - 0x10]
mov edi, dword [esi + 0x10]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, edi
call fcn.0063c620
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, esi
call fcn.00644014
test al, al
je 0x6444b0
xor eax, eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
call fcn.00640b90
mov edi, eax
mov dword [esi + 0x78], edi
test edi, edi
jne 0x6444ae
mov eax, esi
call fcn.00643ac8
jmp 0x6444b0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6444da
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00408ed4
lea eax, [ebp - 4]
call fcn.00408e98
ret

Function at 0x645618
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x20
pop ebx
ret
Function at 0x10007d88
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x10083fdc
call fcn.1006cda6
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push str..old
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10010b38
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10007dbc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x10007dd5
push esi
push eax
call fcn.10007d88
pop ecx
pop ecx
jmp 0x10007de0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10001810
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10001673
call fcn.1006ce29
ret
Function at 0x1000ad06
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10084f92
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2030
call fcn.10076990
mov eax, dword [0x100a52b4]
xor eax, esp
mov dword [esp + 0x202c], eax
push esi
push edi
mov eax, dword [0x100a52b4]
xor eax, esp
push eax
lea eax, [esp + 0x2040]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.10063468
and dword [esp + 0x2048], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea esi, [esp + 0x14]
call fcn.100150e1
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x1000ad7a
call fcn.1006a565
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
jbe 0x1000ad95
call fcn.1006a565
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000ada3
cmp eax, dword [esp + 0x14]
je 0x1000ada8
call fcn.1006a565
cmp dword [esp + 0x10], esi
je 0x1000ae44
lea esi, [esp + 0xc]
call fcn.1001081f
mov esi, dword [eax]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000ae02
push 0x2000
lea eax, [esp + 0x38]
push 0
push eax
call fcn.1006c610
add esp, 0xc
push 0x1000
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x34]
push str.SearchSettingsFE4559D7_F7D6_4905_99B3_9BB1DDA607C5
push eax
call fcn.1006aadf
pop ecx
pop ecx
test eax, eax
je 0x1000ae14
lea edi, [esp + 0x2c]
lea esi, [esp + 0xc]
call fcn.10010343
jmp 0x1000ad86
mov edi, esi
lea esi, [esp + 0x14]
call fcn.100102e8
mov eax, edi
mov ecx, dword [esp + 0x2040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x202c]
xor ecx, esp
call fcn.10069957
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x1000ae16
Function at 0x1000c25c
Capabilities:
Set registry value

Disassembly:
push 0x74
mov eax, 0x10083c72
call fcn.1006cda6
push dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
call fcn.10011903
and dword [ebp - 4], 0
cmp dword [ebp - 0x78], 0
jne 0x1000c293
mov esi, 0x642
lea ecx, [ebp - 0x7c]
call fcn.10011995
mov eax, esi
call fcn.1006ce29
ret
lea eax, [ebp - 0x7c]
push str.Entering_VC90CRTUpgradeFix...
push eax
call fcn.10011e55
pop ecx
pop ecx
lea edi, [ebp - 0x58]
call fcn.10012f25
xor edi, edi
mov ebx, 0x1008ad00
mov byte [ebp - 4], 1
inc edi
push ebx
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x80], edi
call fcn.10001236
push 0
push edi
push str.COMPONENTSWinnersx86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_none_ea33c8f0b247cd779.0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.10012f85
test eax, eax
je 0x1000c2f8
push 1
lea eax, [ebp - 0x80]
push eax
push 3
push 0
push str.9.0.30304.0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 1
push str.COMPONENTSWinnersx86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_none_02d0010672fd8219
lea esi, [ebp - 0x58]
call fcn.10012f85
test eax, eax
je 0x1000c31b
push 0x1008e340
push ebx
mov eax, esi
push eax
call fcn.100133e8
push 0
push 1
push str.COMPONENTSWinnersx86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_none_02d0010672fd82199.0
lea esi, [ebp - 0x58]
call fcn.10012f85
test eax, eax
je 0x1000c3a3
push 1
lea eax, [ebp - 0x80]
push eax
push 3
push 0
mov esi, str.9.0.30304.0
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.100132fe
push ebx
lea eax, [ebp - 0x2c]
call fcn.1001024b
test eax, eax
je 0x1000c37a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000c36f
lea eax, [ebp - 0x28]
push eax
call fcn.1001940a
pop ecx
test eax, eax
jge 0x1000c3a3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000c386
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push str.Found_msvcrt_default_version___s_
push eax
call fcn.10011e55
add esp, 0xc
push esi
push ebx
lea eax, [ebp - 0x58]
push eax
call fcn.100133e8
lea eax, [ebp - 0x7c]
push str.Leaving_VC90CRTUpgradeFix...
push eax
call fcn.10011e55
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10001673
lea ecx, [ebp - 0x58]
call fcn.10012f64
xor esi, esi
jmp 0x1000c283
Function at 0x1000cd79
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x54
mov eax, 0x1008409c
call fcn.1006cda6
push str.Approve_BHO
push dword [ebp + 8]
lea eax, [ebp - 0x50]
xor esi, esi
push eax
mov dword [ebp - 0x54], esi
call fcn.1001195b
mov dword [ebp - 4], esi
cmp dword [ebp - 0x4c], esi
jne 0x1000cdb6
lea ecx, [ebp - 0x50]
call fcn.10011995
mov eax, 0x642
call fcn.1006ce29
ret
push 0x1008ad00
lea esi, [ebp - 0x2c]
call fcn.10001236
mov eax, esi
push eax
mov ebx, str.PARTNER_GUID
lea edi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.10011fe5
test eax, eax
jne 0x1000cdf8
mov edi, 0x642
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10001673
lea ecx, [ebp - 0x50]
call fcn.10011995
mov eax, edi
jmp 0x1000cdb0
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000ced0
push dword [ebp - 0x5c]
call fcn.1000ceef
pop ecx
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push ebx
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cec9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000ce4e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push edi
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.10010111
call fcn.1000cf96
add esp, 0x20
cmp al, bl
je 0x1000cea9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000ce8e
lea eax, [ebp - 0x28]
push 0x18
push edi
push 3
push ebx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000cec0
push str.ApproveBHO___failed_to_write_to_reg_key
jmp 0x1000ceae
push str.ApproveBHO___obfuscation_failed
lea eax, [ebp - 0x50]
push eax
call fcn.10011d2c
pop ecx
mov dword [ebp - 0x54], 0x642
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000cee7
push str.ApproveBHO___cannot_open_BHO_reg_key
jmp 0x1000ced5
push str.ApproveBHO___cannot_open_reg_key
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0x642
call fcn.10011d2c
pop ecx
pop ecx
mov edi, dword [ebp - 0x54]
jmp 0x1000cde0
Function at 0x1000f819
Capabilities:
Delete directory

Disassembly:
push 0x74
mov eax, 0x10086086
call fcn.1006cda6
push 0x1008f5e0
push dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
call fcn.1001195b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x80], vtable.CustomActionData.0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], esi
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x48]
push eax
mov ebx, str.CustomActionData
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.10011fe5
test eax, eax
je 0x1000f8ee
cmp dword [ebp - 0x34], esi
jbe 0x1000f8ee
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x80]
call fcn.100137d5
push 0x1008ad00
lea esi, [ebp - 0x2c]
call fcn.10001236
mov eax, esi
push eax
xor edi, edi
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.100139e4
cmp dword [ebp - 0x18], 0xa
jbe 0x1000f8e0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000f8b7
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1000f8e0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000f8ce
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push str.cannot_delete_folder___s_
push eax
call fcn.10011d2c
add esp, 0xc
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10001673
xor esi, esi
push esi
push 1
lea esi, [ebp - 0x48]
call fcn.10001673
lea ecx, [ebp - 0x80]
call fcn.100137b2
lea ecx, [ebp - 0x6c]
call fcn.10011995
xor eax, eax
call fcn.1006ce29
ret

Function at 0x10010e58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push edi
call fcn.100067a2
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
or dword [esp + 0xc], 0xffffffff
push 5
push 0x66
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x10010f16
push ebp
push pe_nt_image_headers32
push 0x66
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10010e9f
push eax
push esi
call edi
push eax
call ebp
and dword [esp + 0xc], 0
push ebx
push esi
call edi
test eax, eax
je 0x10010efa
push eax
call ebp
mov edi, eax
test edi, edi
je 0x10010efa
call fcn.10010d05
push 0
push 0x10010a5b
push dword [esp + 0x20]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10010edc
cmp eax, 0xffffffff
jne 0x10010ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x10010f04
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10010f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
pop ebp
je 0x10010f16
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop ecx
pop ecx
ret
Function at 0x10011128
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1001113f
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10011174
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10011170
cmp edi, eax
jae 0x10011174
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10011162
cmp edi, eax
jb 0x10011178
xor eax, eax
jmp 0x10011181
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10012399
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x100a52b4]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x34
mov eax, 0x10083bb2
call fcn.1006cd3d
mov eax, dword [ebp + 0x828]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x82c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x830]
push str.SELECT
lea esi, [ebp]
mov ebx, ecx
mov dword [ebp - 0x24], eax
call fcn.10001236
push dword [ebp - 0x20]
mov eax, esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.10010135
push str._from_SearchUrl_WHERE_CountryCode
mov eax, esi
push eax
call fcn.10010135
push dword [ebp - 0x1c]
mov eax, esi
push eax
call fcn.10010135
push 0x1008f384
mov eax, esi
push eax
call fcn.10010135
push dword [ebx + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call sub.msi.dll_MsiGetFeatureCostA
cmp eax, edi
jne 0x10012460
push edi
push 1
lea esi, [ebp]
call fcn.10001673
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.10069957
add ebp, 0x820
leave
ret 0xc
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x1001246c
lea ecx, [ebp + 4]
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
call sub.msi.dll_MsiEnumClientsA
push edi
test eax, eax
jne 0x1001242f
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x1001242e
mov eax, 0x400
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.1006c610
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1001242e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push dword [ebp - 0x14]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
je 0x100124d8
xor ebx, ebx
push edi
push 1
lea esi, [ebp]
call fcn.10001673
mov eax, ebx
jmp 0x1001243b
lea eax, [ebp + 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.100120e6
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push edi
mov byte [ebp - 4], 1
call fcn.10001810
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.10001673
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewGetErrorW
xor ebx, ebx
inc ebx
jmp 0x100124c6
Function at 0x10012fcd
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x888
mov eax, 0x10084684
call fcn.1006cda6
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
mov esi, 0x400
mov dword [ebp - 0x820], ebx
cmp esi, dword [ebp - 0x820]
je 0x1001300e
cmp dword [ebp - 0x820], ebx
jne 0x10013055
lea eax, [ebp - 0x834]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x828]
mov eax, dword [ebp - 0x82c]
push dword [eax + 0x24]
mov dword [ebp - 0x820], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x828]
mov dword [ebp - 0x824], eax
add esi, 0x400
jmp 0x10012ffe
cmp dword [ebp - 0x824], ebx
jne 0x100130fc
lea eax, [ebp - 0x81c]
push eax
lea esi, [ebp - 0x850]
call fcn.10001236
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x14]
lea eax, [ebp - 0x850]
push eax
push dword [esi + 4]
push esi
call fcn.10013590
mov ecx, dword [edi + 0x18]
mov edx, 0x9249249
sub edx, ecx
cmp edx, 1
jb 0x100130bb
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x850]
mov dword [ecx], eax
call fcn.10001673
jmp 0x10012ff3
push str.list_T__too_long
lea ecx, [ebp - 0x894]
call fcn.100100ef
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 1
call fcn.1001153b
push 0x1009d56c
lea eax, [ebp - 0x878]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.1006c90b
xor eax, eax
cmp dword [ebp - 0x824], 0x103
sete al
call fcn.1006ce29
ret 4
Function at 0x10013113
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084646
mov eax, dword fs:[0]
push eax
mov eax, 0x8264
call fcn.10076990
mov eax, dword [0x100a52b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8230], eax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.1006c610
add esp, 0xc
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 0x8250]
push ecx
lea ecx, [ebp - 0x8238]
push ecx
lea ecx, [ebp - 0x8248]
push ecx
lea ecx, [ebp - 0x823c]
push ecx
lea ecx, [ebp - 0x8220]
push ecx
lea ecx, [ebp - 0x8234]
push ecx
lea ecx, [ebp - 0x822c]
push ecx
lea ecx, [ebp - 0x8240]
push ecx
push edi
lea ecx, [ebp - 0x8244]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x8244], 0x104
mov dword [ebp - 0x8240], edi
mov dword [ebp - 0x822c], edi
mov dword [ebp - 0x8234], edi
mov dword [ebp - 0x8220], edi
mov dword [ebp - 0x823c], edi
mov dword [ebp - 0x8248], edi
mov dword [ebp - 0x8238], edi
mov dword [ebp - 0x8228], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10013207
xor eax, eax
jmp 0x10013294
cmp dword [ebp - 0x8220], edi
je 0x10013200
mov dword [ebp - 0x8224], edi
jbe 0x10013291
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x8228]
push ecx
lea ecx, [ebp - 0x821c]
xor eax, eax
push ecx
push dword [ebp - 0x8224]
mov word [ebp - 0x821c], ax
mov eax, dword [ebx + 0x24]
push eax
mov dword [ebp - 0x8228], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001327d
lea eax, [ebp - 0x821c]
push eax
lea esi, [ebp - 0x826c]
call fcn.10001236
push eax
mov eax, dword [ebp - 0x8230]
mov dword [ebp - 4], edi
call fcn.10013506
or dword [ebp - 4], 0xffffffff
push edi
push 1
call fcn.10001673
inc dword [ebp - 0x8224]
mov eax, dword [ebp - 0x8224]
cmp eax, dword [ebp - 0x8220]
jb 0x10013217
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10069957
leave
ret 4