joyce8/EMBER2024-capa huggingface dataset:
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
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8
Function at 0x10652b8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10652e2
cmp dword [ebp + 0xc], 0
je 0x10652e2
push dword [ebp + 8]
call fcn.01064f8c
test eax, eax
je 0x10652dc
mov eax, 0x80004001
jmp 0x10652e7
pop ebp
jmp fcn.01064fcf
mov eax, 0x80004003
pop ebp
ret 8
Function at 0x1065997
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 1
cmp eax, esi
je 0x1065a9d
cmp ecx, esi
je 0x1065a9d
push ecx
push eax
push 0x100dde8
lea eax, [ebp - 0x248]
push 0x121
push eax
call fcn.0103592d
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x248]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1065aba
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 0x1065aae
cmp dword [ebp - 0x250], 1
je 0x1065a60
cmp dword [ebp - 0x250], 2
jne 0x1065aae
lea eax, [ebp - 0x248]
push eax
call fcn.010653f3
test eax, eax
je 0x1065aae
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.01065416
test eax, eax
jne 0x1065aae
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.01047480
leave
ret 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1065a9f
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 0x1065d9f
Capabilities:
Reference http user-agent string

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.01047500
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 - 0xfe8]
mov dword [ebp - 0xfdc], esi
mov dword [ebp - 0xff8], 0xfd0
call fcn.0106d6aa
lea ecx, [ebp - 0x1004]
call fcn.0106d6aa
push 0x64
lea ecx, [ebp - 0x1004]
call fcn.0106de34
mov dword [ebp - 0xfd8], eax
test eax, eax
jl 0x1065e0e
push 0x64
push dword [ebp - 0x1004]
call fcn.01065d33
mov dword [ebp - 0xfd8], eax
lea eax, [ebp - 0xff8]
push eax
lea eax, [ebp - 0xfd4]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jl 0x1065fc7
mov eax, dword [ebp - 0xff8]
mov byte [ebp + eax - 0xfd5], 0
or ebx, 0xffffffff
push ebx
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xfe8]
call fcn.0106df03
mov edi, eax
test edi, edi
jl 0x1065f07
cmp dword [ebp - 0xfd8], 0
jl 0x1065f07
push 0x29
lea ecx, [ebp - 0xfe8]
call fcn.0106d8a7
mov esi, eax
test esi, esi
jl 0x1065f07
lea ecx, [ebp - 0xff4]
mov edi, 0x8007000e
call fcn.0106d6aa
mov eax, dword [ebp - 0xfe8]
add esi, esi
push ebx
add eax, esi
push eax
lea ecx, [ebp - 0xff4]
call fcn.0106de7c
cmp dword [ebp - 0xff4], 0
je 0x1065efc
mov ecx, dword [ebp - 0xfe8]
xor eax, eax
push ebx
mov word [esi + ecx], ax
push 0x100df74
lea ecx, [ebp - 0xfe8]
call fcn.0106e051
mov edi, eax
test edi, edi
jl 0x1065efc
push ebx
push dword [ebp - 0x1004]
lea ecx, [ebp - 0xfe8]
call fcn.0106e051
mov edi, eax
test edi, edi
jl 0x1065efc
push ebx
push dword [ebp - 0xff4]
lea ecx, [ebp - 0xfe8]
call fcn.0106e051
mov edi, eax
lea ecx, [ebp - 0xff4]
call fcn.0106de2a
xor eax, eax
test edi, edi
setge al
xor ecx, ecx
cmp dword [ebp - 0xfd8], ecx
setge cl
test ecx, eax
je 0x1065f61
mov edi, dword [ebp + 0xc]
test edi, edi
jbe 0x1065fef
lea ecx, [ebp - 0xfe8]
call fcn.0106d775
cmp eax, edi
jae 0x1065fef
push edi
push dword [ebp - 0xfdc]
lea ecx, [ebp - 0xfe8]
call fcn.0106dcf3
mov ecx, dword [ebp - 0xfdc]
mov esi, eax
xor eax, eax
mov word [ecx + edi*2 - 2], ax
jmp 0x1065ffc
lea ecx, [ebp - 0xff4]
call fcn.0106d6aa
push ebx
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xff4]
call fcn.0106df03
mov esi, eax
test esi, esi
jl 0x1065fba
lea ecx, [ebp - 0xff4]
call fcn.0106d775
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1065fb5
mov ebx, dword [ebp - 0xfdc]
push edi
push ebx
lea ecx, [ebp - 0xff4]
call fcn.0106dcf3
mov esi, eax
xor eax, eax
mov word [ebx + edi*2 - 2], ax
jmp 0x1065fba
mov esi, 0xc00d107f
lea ecx, [ebp - 0xff4]
call fcn.0106de2a
jmp 0x1065ffc
cmp dword [ebp - 0xfd8], 0
jl 0x1065ff6
lea ecx, [ebp - 0x1004]
call fcn.0106d775
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1065fef
push edi
push esi
lea ecx, [ebp - 0x1004]
jmp 0x1065f48
mov esi, 0xc00d107f
jmp 0x1065ffc
mov esi, dword [ebp - 0xfd8]
lea ecx, [ebp - 0x1004]
call fcn.0106de2a
lea ecx, [ebp - 0xfe8]
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 8
Function at 0x10660b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1072ca8]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ecx
cmp eax, 0xffffffff
je 0x10660fc
cmp eax, ebx
je 0x106627a
cmp ecx, ebx
je 0x106627a
mov dx, word [0x1074c50]
mov word [ecx], dx
jmp 0x106627a
push esi
push edi
mov dword [0x1072ca8], ebx
call fcn.01066067
xor esi, esi
inc esi
mov word [0x1074c50], ax
cmp ax, bx
je 0x1066143
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 0x106620e
test dword [ebp - 0x22], 0x800
je 0x106620e
jmp 0x1066208
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x106620e
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 0x100e02c
push 0x80000001
mov dword [ebp - 0x3c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x106620e
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 0x10661f0
shl eax, 4
cmp cl, 0x30
jl 0x10661c9
cmp cl, 0x39
jg 0x10661c9
movsx ecx, cl
lea eax, [eax + ecx - 0x30]
jmp 0x10661ed
cmp cl, 0x41
jl 0x10661dc
cmp cl, 0x46
jg 0x10661dc
movsx ecx, cl
lea eax, [eax + ecx - 0x37]
jmp 0x10661ed
cmp cl, 0x61
jl 0x10661ed
cmp cl, 0x66
jg 0x10661ed
movsx ecx, cl
lea eax, [eax + ecx - 0x57]
inc edx
mov cl, byte [edx]
cmp cl, bl
jne 0x10661b3
and eax, 0x3ff
cmp eax, esi
je 0x1066202
cmp eax, 0xd
jne 0x106620e
mov word [0x1074c50], ax
mov dword [0x1072ca8], esi
mov eax, dword [0x1072ca8]
cmp eax, ebx
jne 0x1066267
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 0x100e01c
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 0x106625e
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x1066257
mov dword [0x1072ca8], esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x1072ca8]
cmp eax, ebx
je 0x1066278
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x1066278
mov dx, word [0x1074c50]
mov word [ecx], dx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
Function at 0x106628e
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 0x100e1e0
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x10662d5
push 0x1004b3c
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 0x100e170
push edi
call esi
test eax, eax
jne 0x10662ff
push 0x1004b3c
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 0x100e0f8
push edi
call esi
pop edi
pop esi
pop ebx
test eax, eax
jne 0x106632c
push 0x1004b3c
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 0x10663d5
Capabilities:
Enumerate devices by category

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x1066406
test byte [eax + 0x3c], 2
je 0x1066406
cmp byte [eax + 0x39], 7
jb 0x1066406
push 0x100e0e4
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ce
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 8]
push eax
push 0x102ed4c
push 1
push 0
push 0x1010438
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov eax, dword [ebp - 8]
test esi, esi
jl 0x10664a4
and dword [ebp - 4], 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0x1010448
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x1066494
mov eax, dword [ebp - 4]
cmp esi, 1
jne 0x106646d
test eax, eax
je 0x1066459
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1066466
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x10664b0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
jl 0x1066494
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01066333
mov esi, eax
test esi, esi
jl 0x106648f
cmp esi, 1
jne 0x1066494
mov esi, 0x80004002
mov eax, dword [ebp - 4]
test eax, eax
je 0x10664a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10664ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
leave
ret 4
Function at 0x106673a
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 0x1066774
cmp ecx, edi
jne 0x1066774
push 2
pop eax
cmp eax, edi
jne 0x10667ac
shr ecx, 1
push ecx
call fcn.0106d527
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp eax, edi
je 0x10667ac
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 0x10667a6
mov al, 1
jmp 0x10667ae
push ebx
call fcn.0106d551
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10668db
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 0x106692d
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 0x106692f
xor al, al
pop esi
leave
ret 0xc

Function at 0x1066eb4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1010c88]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1010c8c]
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 0x1066f23
and dword [ebp - 0x10], 0
push 0x41
pop ebx
mov eax, ebx
cmp ax, si
jae 0x1066f27
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call edi
cmp eax, 5
jne 0x1066f1b
inc dword [ebp - 0x10]
inc ebx
cmp bx, si
jb 0x1066f09
jmp 0x1066f27
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.01047480
leave
ret 4

Function at 0x1066ffd
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1067023
call edi
sub eax, dword [esi + 0x64]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1388
jbe 0x1067034
push dword [ebp + 8]
push esi
call fcn.0106b45a
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x60]
pop edi
pop esi
pop ebp
ret 4
Function at 0x1068080
Capabilities:
Check os version
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 0x10684f7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0106d6aa
push 0x1010a98
mov ecx, esi
call fcn.01067664
test al, al
je 0x10685c2
push dword [esi + 0x28]
call fcn.0106e700
test al, al
je 0x106853b
mov dword [ebp - 4], 4
jmp 0x10685d9
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x106854c
cmp word [eax], cx
setne cl
test cl, cl
je 0x1068572
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x1068572
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x1074cf0]
test al, al
jbe 0x1068572
movzx eax, al
mov dword [ebp - 4], eax
test eax, eax
jne 0x10685d9
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.0106de7c
test eax, eax
jl 0x10685d9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp eax, 2
jne 0x10685b4
push dword [ebp - 0x10]
mov ecx, esi
call fcn.01068080
cmp eax, 0x15e
je 0x10685ad
cmp eax, 0x20d
jne 0x10685b4
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x1074cf0], cl
jmp 0x10685d9
push 0x1010ad0
mov ecx, esi
call fcn.01067664
test al, al
je 0x10685d9
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0106de2a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x106b098
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0x80070005
call fcn.01068443
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push 2
call fcn.0106983e
xor ebx, ebx
mov edi, 0x1074e18
mov esi, 0x80072af9
test eax, eax
jl 0x106b116
lea ecx, [ebp - 0x6c]
call fcn.010684f7
cmp eax, 4
jne 0x106b116
push 0x3e8
lea eax, [ebp - 0x6c]
push eax
call fcn.0106a9e1
mov dword [ebp - 4], eax
cmp byte [0x1074e10], bl
je 0x106b116
cmp eax, ebx
jl 0x106b106
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0106afab
jmp 0x106b116
cmp eax, esi
jne 0x106b116
push esi
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0106af35
cmp dword [ebp - 4], ebx
jge 0x106b1d0
cmp dword [ebp - 4], esi
je 0x106b1d0
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x106a1e9
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x106b1d0
mov ecx, 0x1074c98
call fcn.01069d9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x106b1c9
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x106b1c9
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b19c
test byte [eax + 0x3c], 1
je 0x106b19c
cmp byte [eax + 0x39], 3
jb 0x106b19c
push dword [ebp - 4]
push 0x1011500
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069e09
cmp dword [ebp - 4], ebx
je 0x106b1aa
mov dword [ebp - 4], 0x80070005
jmp 0x106b1c9
cmp byte [0x1074e10], bl
je 0x106b1c9
lea ecx, [ebp - 0x6c]
call fcn.01068427
test al, al
jne 0x106b1c9
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0106afab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x6c]
call fcn.0106aeb0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4