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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x105a1aa
xor eax, eax
jmp 0x105a2bf
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105a1b0
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jbe 0x105a1cc
mov eax, dword [ebp - 4]
push ebx
add eax, 5
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x105a1f5
xor eax, eax
jmp 0x105a2be
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x14], esi
jbe 0x105a2b2
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 0x1004eb4
push dword [ebp - 8]
push ebx
call fcn.0103592d
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push 3
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a2a3
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, esi
je 0x105a29a
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a293
cmp dword [ebp - 0x18], 1
jne 0x105a293
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105a273
sub eax, edx
sar eax, 1
je 0x105a293
push dword [ebp + 0x10]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105a2c4
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x105a205
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor ebx, ebx
pop ecx
mov eax, ebx
ret
pop edi
pop ebx
pop esi
leave
ret 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
jmp 0x105a2ba
Function at 0x105e226
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push edi
inc eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x620]
push eax
xor ecx, ecx
mov edi, 0x101
push edi
push ecx
push 0x100bcf8
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
call esi
test eax, eax
je 0x105e2ae
lea eax, [ebp - 0x620]
push eax
push edi
xor edi, edi
push edi
push 0x100bc78
push ebx
mov dword [ebp - 0x62c], 2
call esi
test eax, eax
je 0x105e2b0
xor eax, eax
jmp 0x105e456
xor edi, edi
push 0x100bc50
push 4
call fcn.01055c50
cmp dword [ebp - 0x620], edi
je 0x105e38b
ret
add byte [eax], al
invalid
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push 0x100a668
push dword [ebp - 0x620]
mov esi, 0x208
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e375
cmp dword [ebp - 0x624], 2
je 0x105e310
cmp dword [ebp - 0x624], 1
jne 0x105e375
cmp dword [ebp - 0x624], 2
mov dword [ebp - 0x628], 1
jne 0x105e375
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x105e358
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103586b
test eax, eax
jge 0x105e375
push 0x100bc18
push 4
call fcn.01055c50
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x105e2a7
push dword [ebp - 0x620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x628], edi
jne 0x105e39c
push 0x100bc18
push 4
call fcn.01055c50
jmp 0x105e2a7
push edi
lea eax, [ebp - 0x620]
push eax
push edi
push 0x20106
push edi
push edi
push edi
push 0x1001c88
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105e3e2
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push edi
push 0x100b2e4
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x62c], 2
jne 0x105e3f0
call fcn.0105dfe6
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x100bc00
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x105e450
lea eax, [ebp - 0x20c]
push 0x100bbfc
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x105e450
push eax
push 0x100bba8
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01035968
add esp, 0x10
test eax, eax
jl 0x105e450
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105983a
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
Function at 0x1064792
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
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 0x1064826
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 0x10647ef
inc esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1064822
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1064822
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 0x1064858
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1064853
push 0x100dac4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jge 0x1064858
mov ebx, 0x80070057
test ebx, ebx
jl 0x10648d0
lea eax, [ebp - 0x20c]
push eax
call fcn.010587e2
test eax, eax
je 0x1064870
xor ebx, ebx
jmp 0x1064895
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010587e2
test eax, eax
je 0x1064891
xor ebx, ebx
test ebx, ebx
jne 0x10648d0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x106489e
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x10648cb
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call fcn.01035831
jmp 0x10648d0
mov ebx, 0x8007007a
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
ret
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8
Function at 0x1065ade
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 [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], 1
cmp eax, ebx
jne 0x1065b1a
xor eax, eax
jmp 0x1065c2c
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 0x80000000
call esi
test eax, eax
jne 0x1065c24
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
push 0x100dce4
push dword [ebp - 0x110]
mov dword [ebp - 0x108], ebx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1065c1c
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 0x1065bbc
cmp dword [ebp - 0x114], edi
jne 0x1065bbc
lea eax, [ebp - 0x104]
push eax
call fcn.010653f3
test eax, eax
jne 0x1065bfc
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 0x1065bfc
push 0x100b2d8
push 0x7f
lea eax, [ebp - 0x104]
push eax
call fcn.01035831
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call fcn.01065997
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.01047480
leave
ret 4

Function at 0x1065cfb
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
xor eax, eax
cmp ecx, esp
js 0x1065d02
inc ecx
sub ebx, 0x72c540d3
sub dword [0x1075790], ecx
and ebx, esp

Function at 0x1065d1c
Capabilities:
Encode data using xor
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
sub eax, 0xbc7b9b01
mov ecx, ebx
invalid
invalid
invalid
insd dword es:[edi], dx
Function at 0x1068155
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0106d6aa
xor ebx, ebx
cmp esi, ebx
je 0x1068237
movzx eax, word [esi]
cmp ax, 0x41
jb 0x10680c4
cmp ax, 0x5a
ja 0x10680c4
movzx edi, ax
sub edi, 0x40
jmp 0x10680ca
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x106815f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1010da0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068202
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
test byte [ebp - 0x44], 1
jne case.default.0x106814e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x106814e
jmp dword [eax*4 + 0x106825c]
mov esi, 0x320
jmp case.0x106814e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1010d90
push eax
call fcn.0106e1fe
add esp, 0xc
test eax, eax
jl 0x1068200
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068206
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x106814e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x106814e.0
jle case.default.0x106814e
cmp eax, 5
jle case.0x106814e.2
cmp eax, 0xa
jle case.0x106814e.0
cmp eax, 0xb
je case.0x106814e.6
cmp eax, 0xc
je case.0x106814e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1068202
push 2
pop esi
jmp case.0x106814e.5
mov esi, 0x15e
jmp case.0x106814e.5
mov esi, 0x20d
jmp case.0x106814e.5
xor esi, esi
cmp esi, ebx
jne 0x1068239
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1010d84
push eax
call fcn.0106e1fe
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1068239
cmp eax, 3
je 0x1068254
jbe 0x1068237
cmp eax, 6
jbe 0x1068239
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0106de2a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
xor esi, esi
inc esi
jmp 0x1068239
Function at 0x10681ed
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0106d6aa
xor ebx, ebx
cmp esi, ebx
je 0x1068237
movzx eax, word [esi]
cmp ax, 0x41
jb 0x10680c4
cmp ax, 0x5a
ja 0x10680c4
movzx edi, ax
sub edi, 0x40
jmp 0x10680ca
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x106815f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1010da0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068202
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
test byte [ebp - 0x44], 1
jne case.default.0x106814e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x106814e
jmp dword [eax*4 + 0x106825c]
mov esi, 0x320
jmp case.0x106814e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1010d90
push eax
call fcn.0106e1fe
add esp, 0xc
test eax, eax
jl 0x1068200
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068206
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x106814e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x106814e.0
jle case.default.0x106814e
cmp eax, 5
jle case.0x106814e.2
cmp eax, 0xa
jle case.0x106814e.0
cmp eax, 0xb
je case.0x106814e.6
cmp eax, 0xc
je case.0x106814e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1068202
push 2
pop esi
jmp case.0x106814e.5
mov esi, 0x15e
jmp case.0x106814e.5
mov esi, 0x20d
jmp case.0x106814e.5
xor esi, esi
cmp esi, ebx
jne 0x1068239
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1010d84
push eax
call fcn.0106e1fe
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1068239
cmp eax, 3
je 0x1068254
jbe 0x1068237
cmp eax, 6
jbe 0x1068239
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0106de2a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
xor esi, esi
inc esi
jmp 0x1068239
Function at 0x10681f2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0106d6aa
xor ebx, ebx
cmp esi, ebx
je 0x1068237
movzx eax, word [esi]
cmp ax, 0x41
jb 0x10680c4
cmp ax, 0x5a
ja 0x10680c4
movzx edi, ax
sub edi, 0x40
jmp 0x10680ca
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x106815f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1010da0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068202
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
test byte [ebp - 0x44], 1
jne case.default.0x106814e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x106814e
jmp dword [eax*4 + 0x106825c]
mov esi, 0x320
jmp case.0x106814e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1010d90
push eax
call fcn.0106e1fe
add esp, 0xc
test eax, eax
jl 0x1068200
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068206
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x106814e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x106814e.0
jle case.default.0x106814e
cmp eax, 5
jle case.0x106814e.2
cmp eax, 0xa
jle case.0x106814e.0
cmp eax, 0xb
je case.0x106814e.6
cmp eax, 0xc
je case.0x106814e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1068202
push 2
pop esi
jmp case.0x106814e.5
mov esi, 0x15e
jmp case.0x106814e.5
mov esi, 0x20d
jmp case.0x106814e.5
xor esi, esi
cmp esi, ebx
jne 0x1068239
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1010d84
push eax
call fcn.0106e1fe
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1068239
cmp eax, 3
je 0x1068254
jbe 0x1068237
cmp eax, 6
jbe 0x1068239
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0106de2a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
xor esi, esi
inc esi
jmp 0x1068239
Function at 0x10681f9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0106d6aa
xor ebx, ebx
cmp esi, ebx
je 0x1068237
movzx eax, word [esi]
cmp ax, 0x41
jb 0x10680c4
cmp ax, 0x5a
ja 0x10680c4
movzx edi, ax
sub edi, 0x40
jmp 0x10680ca
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x106815f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1010da0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068202
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
test byte [ebp - 0x44], 1
jne case.default.0x106814e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x106814e
jmp dword [eax*4 + 0x106825c]
mov esi, 0x320
jmp case.0x106814e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1010d90
push eax
call fcn.0106e1fe
add esp, 0xc
test eax, eax
jl 0x1068200
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1068206
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x106814e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x106814e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x106814e.0
jle case.default.0x106814e
cmp eax, 5
jle case.0x106814e.2
cmp eax, 0xa
jle case.0x106814e.0
cmp eax, 0xb
je case.0x106814e.6
cmp eax, 0xc
je case.0x106814e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1068202
push 2
pop esi
jmp case.0x106814e.5
mov esi, 0x15e
jmp case.0x106814e.5
mov esi, 0x20d
jmp case.0x106814e.5
xor esi, esi
cmp esi, ebx
jne 0x1068239
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1010d84
push eax
call fcn.0106e1fe
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1068239
cmp eax, 3
je 0x1068254
jbe 0x1068237
cmp eax, 6
jbe 0x1068239
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0106de2a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
xor esi, esi
inc esi
jmp 0x1068239
Function at 0x106c04b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x1075298], bl
jne 0x106c091
push esi
push ebx
push ebx
push ebx
push 0x106befe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x106c088
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp byte [0x1075298], bl
je 0x106c0d7
lea ecx, [ebp - 0xc]
call fcn.0106d6aa
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0106de7c
test eax, eax
jl 0x106c0cf
lea ecx, [ebp - 0xc]
call fcn.0106d7a5
push dword [ebp - 0xc]
mov ecx, 0x10752d8
call fcn.0106cced
test al, al
je 0x106c0cf
lea ecx, [ebp - 0xc]
call fcn.0106de2a
mov al, 1
jmp 0x106c0d9
lea ecx, [ebp - 0xc]
call fcn.0106de2a
xor al, al
pop ebx
leave
ret 4

Function at 0x106d6aa
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], cx
cmp dword [0x1075538], eax
jne 0x106d73f
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x1075538], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x106d73f
cmp dword [ebp - 0x114], 5
jb 0x106d723
cmp dword [ebp - 0x110], 1
jae 0x106d72c
cmp dword [ebp - 0x114], 6
jb 0x106d73f
cmp dword [ebp - 0x108], 2
jne 0x106d73f
mov dword [0x1073934], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret

Function at 0x106e219
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
call fcn.0106dc98
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x106e241
mov eax, dword [0x1073a1c]
mov esi, dword [eax + 8]
test esi, esi
jne 0x106e241
mov eax, 0x80070057
jmp 0x106e2b3
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x106e268
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x106e282
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106e27e
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x106e2b2
jmp 0x106e28d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x106e294
mov eax, 0x8000ffff
jmp 0x106e2b2
and edi, 0xf
je 0x106e2a3
dec edi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x106e299
movzx ecx, word [eax]
push ecx
add eax, 2
push eax
mov ecx, ebx
call fcn.0106de7c
pop edi
pop esi
pop ebx
pop ebp
ret 8