joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1067f88
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
test eax, eax
push esi
mov dword [ebp - 0x21c], eax
mov esi, 0x80004005
jne 0x1067fbf
lea eax, [esi - 2]
jmp 0x10680d2
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1009a38
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10680d0
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
cmp ebx, esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 1
jbe 0x1068005
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100e7f8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106806d
cmp dword [ebp - 0x214], 1
jne 0x106806d
lea eax, [ebp - 0x20c]
push eax
call fcn.0105970f
test eax, eax
je 0x106804e
xor esi, esi
jmp 0x1068080
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0105970f
test eax, eax
jne 0x106804a
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01067cfe
mov esi, eax
test esi, esi
jne 0x10680c3
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1068089
sub eax, edx
sar eax, 1
mov ecx, ebx
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x10680b5
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x21c]
call fcn.01034c79
jmp 0x10680c3
mov eax, 0x8007007a
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 8
Function at 0x10680e6
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
push ebx
push esi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push 0x23
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
jl 0x106817a
and dword [ebp - 0x210], esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1068143
inc esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1068176
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1068176
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x10681ac
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10681a7
push 0x100e818
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
test eax, eax
jge 0x10681ac
mov ebx, 0x80070057
test ebx, ebx
jl 0x1068224
lea eax, [ebp - 0x20c]
push eax
call fcn.0105970f
test eax, eax
je 0x10681c4
xor ebx, ebx
jmp 0x10681e9
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0105970f
test eax, eax
je 0x10681e5
xor ebx, ebx
test ebx, ebx
jne 0x1068224
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10681f2
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x106821f
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call fcn.01034c79
jmp 0x1068224
mov ebx, 0x8007007a
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 8
Function at 0x1068c05
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1068c2f
cmp dword [ebp + 0xc], 0
je 0x1068c2f
push dword [ebp + 8]
call fcn.010688da
test eax, eax
je 0x1068c29
mov eax, 0x80004001
jmp 0x1068c34
pop ebp
jmp fcn.0106891d
mov eax, 0x80004003
pop ebp
ret 8

Function at 0x1068d5a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push 0x1009f28
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1068dd3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x1009f08
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1068dca
cmp dword [ebp - 4], 4
je 0x1068dbf
cmp dword [ebp - 4], 3
jne 0x1068dca
xor eax, eax
cmp dword [ebp - 0xc], 1
setne al
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1069088
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, esi
je 0x1069106
cmp ecx, esi
je 0x1069106
lea edx, [ebp - 0x210]
push edx
push 1
push esi
push ecx
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1069106
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x100bd94
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10690fa
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 8
Function at 0x106a480
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 1
je 0x106a586
cmp ecx, esi
je 0x106a586
push ecx
push eax
push 0x100edcc
lea eax, [ebp - 0x248]
push 0x121
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x248]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106a5a3
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push esi
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106a597
cmp dword [ebp - 0x250], 1
je 0x106a549
cmp dword [ebp - 0x250], 2
jne 0x106a597
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106a597
lea eax, [ebp - 0x248]
xor esi, esi
push eax
inc esi
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01068e7c
test eax, eax
jne 0x106a597
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x106a588
Function at 0x106a5c7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], 1
jne 0x106a603
xor eax, eax
jmp 0x106a715
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 0x110]
push ecx
mov edi, 0x20019
push edi
push ebx
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x106a70d
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
push 0x100eb64
push dword [ebp - 0x110]
mov dword [ebp - 0x108], ebx
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x106a705
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push dword [ebp - 0x108]
xor edi, edi
inc edi
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x114], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106a6a5
cmp dword [ebp - 0x114], edi
jne 0x106a6a5
lea eax, [ebp - 0x104]
push eax
call fcn.01068ddd
test eax, eax
jne 0x106a6e5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x106a6e5
push 0x100bd78
push 0x7f
lea eax, [ebp - 0x104]
push eax
call fcn.01034c79
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call fcn.0106a480
push dword [ebp - 0x108]
mov dword [ebp - 0x118], eax
call esi
push dword [ebp - 0x110]
call esi
mov eax, dword [ebp - 0x118]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4
Function at 0x1072569
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x1a0], esi
je 0x107271f
push eax
push 0x100ee14
lea eax, [ebp - 0x194]
push 0xc7
push eax
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x107271f
lea eax, [ebp - 0x198]
push eax
push 3
push esi
lea eax, [ebp - 0x194]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x107271f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x19c]
push eax
push esi
mov esi, 0x100f1b4
push esi
push dword [ebp - 0x198]
mov dword [ebp - 0x19c], 1
mov dword [ebp - 0x1a0], 0x190
call edi
test eax, eax
jne 0x1072712
cmp dword [ebp - 0x19c], 1
jne 0x1072712
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107263b
sub eax, edx
sar eax, 1
je 0x1072712
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.01071d91
test eax, eax
je 0x1072712
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x19c]
push eax
push 0
push 0x1011b04
push dword [ebp - 0x198]
mov dword [ebp - 0x1a0], 0x190
call edi
test eax, eax
jne 0x1072705
cmp dword [ebp - 0x19c], 1
jne 0x1072705
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.01071d91
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
je 0x10726c2
push esi
push dword [ebp - 0x198]
call edi
jmp 0x10726f6
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10726cb
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push 1
push 0
push esi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1011b04
push dword [ebp - 0x198]
call edi
jmp 0x1072712
push esi
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4
Function at 0x1072cc4
Capabilities:
Reference http user-agent string

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01047540
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0xfe4]
mov dword [ebp - 0xff4], 0xfd0
call fcn.0107a032
lea ecx, [ebp - 0x1000]
call fcn.0107a032
push 0x64
lea ecx, [ebp - 0x1000]
call fcn.0107a78e
test eax, eax
mov dword [ebp - 0xfd8], eax
jl 0x1072d2d
push 0x64
push dword [ebp - 0x1000]
call fcn.01072c59
mov dword [ebp - 0xfd8], eax
lea eax, [ebp - 0xff4]
push eax
lea eax, [ebp - 0xfd4]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jl 0x1072ed5
mov eax, dword [ebp - 0xff4]
mov byte [ebp + eax - 0xfd5], 0
push 0xffffffffffffffff
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xfe4]
call fcn.0107a85d
mov edi, eax
test edi, edi
jl 0x1072e27
cmp dword [ebp - 0xfd8], 0
jl 0x1072e27
push 0x29
lea ecx, [ebp - 0xfe4]
call fcn.0107a21a
mov esi, eax
test esi, esi
jl 0x1072e27
lea ecx, [ebp - 0xff0]
mov edi, 0x8007000e
call fcn.0107a032
mov eax, dword [ebp - 0xfe4]
add esi, esi
push 0xffffffffffffffff
add eax, esi
push eax
lea ecx, [ebp - 0xff0]
call fcn.0107a7d6
cmp dword [ebp - 0xff0], 0
je 0x1072e1c
mov eax, dword [ebp - 0xfe4]
and word [esi + eax], 0
push 0xffffffffffffffff
push 0x1011c64
lea ecx, [ebp - 0xfe4]
call fcn.0107a9a4
mov edi, eax
test edi, edi
jl 0x1072e1c
push 0xffffffffffffffff
push dword [ebp - 0x1000]
lea ecx, [ebp - 0xfe4]
call fcn.0107a9a4
mov edi, eax
test edi, edi
jl 0x1072e1c
push 0xffffffffffffffff
push dword [ebp - 0xff0]
lea ecx, [ebp - 0xfe4]
call fcn.0107a9a4
mov edi, eax
lea ecx, [ebp - 0xff0]
call fcn.0107a784
xor eax, eax
test edi, edi
setge al
xor ecx, ecx
cmp dword [ebp - 0xfd8], ecx
setge cl
test ecx, eax
je 0x1072e75
mov edi, dword [ebp + 0xc]
test edi, edi
jbe 0x1072efc
lea ecx, [ebp - 0xfe4]
call fcn.0107a0fa
cmp eax, edi
jae 0x1072efc
lea ecx, [ebp - 0xfe4]
push edi
push ebx
call fcn.0107a65d
and word [ebx + edi*2 - 2], 0
mov esi, eax
jmp 0x1072f01
lea ecx, [ebp - 0xff0]
call fcn.0107a032
push 0xffffffffffffffff
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xff0]
call fcn.0107a85d
mov esi, eax
test esi, esi
jl 0x1072ec8
lea ecx, [ebp - 0xff0]
call fcn.0107a0fa
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1072ec3
push edi
push ebx
lea ecx, [ebp - 0xff0]
call fcn.0107a65d
and word [ebx + edi*2 - 2], 0
mov esi, eax
jmp 0x1072ec8
mov esi, 0xc00d107f
lea ecx, [ebp - 0xff0]
call fcn.0107a784
jmp 0x1072f01
mov esi, dword [ebp - 0xfd8]
test esi, esi
jl 0x1072f01
lea ecx, [ebp - 0x1000]
call fcn.0107a0fa
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1072efc
lea ecx, [ebp - 0x1000]
jmp 0x1072e61
mov esi, 0xc00d107f
lea ecx, [ebp - 0x1000]
call fcn.0107a784
lea ecx, [ebp - 0xfe4]
call fcn.0107a784
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 8
Function at 0x1072fe8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x107fdf0]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x38], ecx
je 0x107302c
cmp eax, ebx
je 0x10731a9
cmp ecx, ebx
je 0x10731a9
mov dx, word [0x1082aa4]
mov word [ecx], dx
jmp 0x10731a9
push esi
push edi
mov dword [0x107fdf0], ebx
call fcn.01072f97
xor esi, esi
inc esi
cmp ax, bx
mov word [0x1082aa4], ax
je 0x1073072
push 0x10
lea ecx, [ebp - 0x30]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x107313d
test word [ebp - 0x22], 0x800
je 0x107313d
jmp 0x1073137
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x107313d
xor eax, eax
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push 0x1011d0c
push SysReAllocString
mov dword [ebp - 0x3c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x107313d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x10]
lea edx, [ebp - 0x10]
xor eax, eax
jmp 0x107311f
shl eax, 4
cmp cl, 0x30
jl 0x10730f8
cmp cl, 0x39
jg 0x10730f8
movsx ecx, cl
lea eax, [eax + ecx - 0x30]
jmp 0x107311c
cmp cl, 0x41
jl 0x107310b
cmp cl, 0x46
jg 0x107310b
movsx ecx, cl
lea eax, [eax + ecx - 0x37]
jmp 0x107311c
cmp cl, 0x61
jl 0x107311c
cmp cl, 0x66
jg 0x107311c
movsx ecx, cl
lea eax, [eax + ecx - 0x57]
inc edx
mov cl, byte [edx]
cmp cl, bl
jne 0x10730e2
and eax, 0x3ff
cmp eax, esi
je 0x1073131
cmp eax, 0xd
jne 0x107313d
mov word [0x1082aa4], ax
mov dword [0x107fdf0], esi
mov eax, dword [0x107fdf0]
cmp eax, ebx
jne 0x1073196
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1011cfc
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x107318d
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x1073186
mov dword [0x107fdf0], esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x107fdf0]
cmp eax, ebx
je 0x10731a7
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x10731a7
mov dx, word [0x1082aa4]
mov word [ecx], dx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4
Function at 0x10731bd
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20006
push ebx
push 0
push 0x1011ec0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x1073204
push 0x1004e6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x1011e50
push edi
call esi
test eax, eax
jne 0x107322e
push 0x1004e6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x1011dd8
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x107325b
push 0x1004e6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1073304
Capabilities:
Enumerate devices by category

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x1073335
test byte [eax + 0x3c], 2
je 0x1073335
cmp byte [eax + 0x39], 7
jb 0x1073335
push 0x1011dc4
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01060db4
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 8]
push eax
push 0x1031d78
push 1
push 0
push 0x10145f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
mov eax, dword [ebp - 8]
jl 0x10733d3
and dword [ebp - 4], 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0x1014608
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x10733c3
cmp esi, 1
mov eax, dword [ebp - 4]
jne 0x107339c
test eax, eax
je 0x1073388
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1073395
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x10733df
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
jl 0x10733c3
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01073262
mov esi, eax
test esi, esi
jl 0x10733be
cmp esi, 1
jne 0x10733c3
mov esi, 0x80004002
mov eax, dword [ebp - 4]
test eax, eax
je 0x10733d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10733dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
leave
ret 4
Function at 0x10735d4
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
push ebx
push esi
push edi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push 0x4c
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x50]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x58], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.010735b1
test eax, eax
jl 0x1073685
mov eax, dword [esi + 4]
mov esi, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
push eax
add esi, 0x40
call ebx
mov edi, dword [ebp + 8]
push eax
push edi
push dword [ebp - 0x64]
call dword [esi]
test eax, eax
jge 0x1073668
mov eax, dword [ebp - 0x58]
mov esi, dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x58], eax
call ebx
and edi, 0x3ff
or edi, 0x400
push eax
mov eax, dword [ebp - 0x58]
push edi
push esi
call dword [eax + 0x40]
test eax, eax
jl 0x1073685
mov ecx, dword [ebp - 0x5c]
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
call fcn.0107a7d6
test eax, eax
jl 0x1073694
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
jmp 0x107368f
mov ecx, dword [ebp - 0x5c]
push 0xffffffffffffffff
push 0x1001e8c
call fcn.0107a7d6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0xc

Function at 0x107379d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
jne 0x10737d7
cmp ecx, edi
jne 0x10737d7
push 2
pop eax
cmp eax, edi
jne 0x107380f
shr ecx, 1
push ecx
call fcn.01079f2f
cmp eax, edi
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
je 0x107380f
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1073809
mov al, 1
jmp 0x1073811
push ebx
call fcn.01079f59
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1073938
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x107398a
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x107398c
xor al, al
pop esi
leave
ret 0xc
Function at 0x1073f9e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1014c88]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1014c8c]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_towupper]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx esi, ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call edi
cmp eax, 5
jne 0x107400b
and dword [ebp - 0x10], 0
push 0x41
pop ebx
cmp si, bx
jbe 0x107400f
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call edi
cmp eax, 5
jne 0x1074003
inc dword [ebp - 0x10]
inc ebx
cmp bx, si
jb 0x1073ff1
jmp 0x107400f
or dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4