joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a598
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44a5af
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004192cc
mov eax, dword [0x44ef30]
cmp word [eax + 2], 0
jne 0x44a5d7
mov eax, dword [0x44ef30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044bbf0
mov eax, dword [0x44efdc]
cmp word [eax + 2], 0
jne 0x44a5f1
mov eax, dword [0x44efdc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044bde8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115c4]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115c4]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b4a0]
call fcn.004210e8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44a778
mov eax, dword [0x44ee54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004214b8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44c388
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44ee54]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c19c
test eax, eax
je 0x44a6e6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408554
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1c4
test eax, eax
je 0x44a6fa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov eax, dword [0x44ed58]
cmp byte [eax], 0
jne 0x44a72e
mov eax, ebx
call fcn.0044a8a0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044c564
mov eax, ebx
call fcn.0044cf28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a76e
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ab20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44abca
cmp dword [ebx + 0x94], 0
jne 0x44abc4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44aab0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44abc4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44ab8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44abc4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041392c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ab99
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b72c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b761
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x44b76e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c740
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c781
mov eax, esi
call fcn.0043318c
test al, al
je 0x44c781
mov eax, dword [ebx + 0x84]
call fcn.00432f2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c781
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432f2c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44d11c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x44d19e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403f5c
mov eax, 0x200
call fcn.004079b8
mov ebx, eax
push 0x200
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x44d188
lea eax, [ebp - 0x104]
mov edx, ebx
call fcn.00402d34
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.004041c0
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0x44d1b4
call fcn.00404268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1a5
lea eax, [ebp - 4]
call fcn.00403f5c
ret
Function at 0x44d5ac
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x44d635
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x200
call fcn.004079b8
mov esi, eax
push 0x200
push esi
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404154
lea eax, [ebp - 4]
mov edx, 0x44d64c
call fcn.00404224
mov eax, dword [ebp - 4]
call fcn.0040441c
push eax
call sub.kernel32.dll_WinExec
push 0x44d65c
push 0
call sub.user32.dll_FindWindowA
test eax, eax
je 0x44d61f
push 0
push 0
push 0x10
push eax
call sub.user32.dll_SendMessageA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d63c
lea eax, [ebp - 4]
call fcn.00403f5c
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x9f50af5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1481433c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100591b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x1019f18], 1
push ebx
push esi
push edi
jne 0x1005940
or dword [0x1019f18], 1
call fcn.010058c5
mov dword [0x1019f14], eax
push 4
pop eax
call fcn.010083d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10059d5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x1019f10]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x10059d5
cmp eax, 1
je 0x10059f6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10059d5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10059a2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10059d1
xor eax, eax
inc eax
jmp 0x1005a15
cmp edi, eax
jae 0x10059d9
xor eax, eax
jmp 0x1005a15
cmp eax, esi
jae 0x10059e0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1019f10]
jmp 0x10059f9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100603a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x10060c5
cmp word [eax], 0
push ebx
push esi
push edi
je 0x10060c0
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x10060a6
mov ax, word [edi]
test ax, ax
je 0x10060c9
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x10060ac
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x10060ac
jmp 0x10060a1
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x10060a6
cmp esi, dword [ebp - 4]
jb 0x1006093
cmp word [esi], 0
jne 0x1006066
cmp word [edi], 0
je 0x10060c9
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x100605e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x10060c2
Function at 0x10067d1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1017064]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01005c54
cmp eax, esi
jne 0x1006872
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1006829
lea eax, [ebp - 0x204]
push eax
call fcn.010067d1
cmp eax, esi
jne 0x1006871
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x1006819
call fcn.01005be1
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01005be1
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.010080ca
leave
ret 4
Function at 0x1007a41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
jne 0x1007a96
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007a81
call esi
mov esi, eax
jmp 0x1007bad
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007bad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x1007ab7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x1007adf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007aca
call esi
jmp 0x1007ba2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007ba4
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x1007b4d
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x1007b1a
push edi
call fcn.01005a22
test al, al
je 0x1007b1a
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.010083d0
mov dword [ebp + 8], esp
jmp 0x1007b26
push edi
lea ecx, [ebp - 4]
call fcn.01006b64
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1007b34
mov esi, 0x8007000e
jmp 0x1007ba4
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x1007b55
xor eax, eax
jmp 0x1007b96
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1007b85
push ebx
call fcn.01005a22
test al, al
je 0x1007b85
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.010083d0
mov eax, esp
jmp 0x1007b8e
push ebx
lea ecx, [ebp - 4]
call fcn.01006b64
push esi
push edi
push eax
call fcn.01005af0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.0100780e
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 4]
call fcn.0100672b
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10080ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1017064]
jne 0x10080db
test ecx, 0xffff0000
jne 0x10080db
ret
jmp fcn.010080e5
Function at 0x10081ca
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10016d0
call fcn.01008420
lea eax, [ebp - 0x80]
push eax
call sym.imp.KERNEL32.dll_GetStartupInfoW
nop
cmp word [0x1000000], 0x5a4d
jne 0x1008213
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1008213
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100822c
cmp ecx, 0x20b
je 0x1008219
and dword [ebp - 0x1c], 0
jmp 0x1008243
cmp dword [eax + 0x1000084], 0xe
jbe 0x1008213
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x100823d
cmp dword [eax + 0x1000074], 0xe
jbe 0x1008213
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x101ae80], edi
mov dword [0x101ae84], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101a298]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101a294]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101ae88], eax
call fcn.010084d0
cmp dword [0x1017070], 0
jne 0x10082a3
push fcn.010084d0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010084b9
push 0x100125c
push 0x1001258
call sub.msvcrt.dll__initterm
mov eax, dword [0x101a290]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101a28c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1001254
push 0x1001234
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x1008308
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x10083b7
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x1008349
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1008324
cmp cx, 0x22
jne 0x1008311
cmp word [eax], 0x22
jne 0x100832f
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x100833d
cmp cx, 0x20
jbe 0x100832a
test byte [ebp - 0x54], 1
je 0x1008356
movzx ecx, word [ebp - 0x50]
jmp 0x1008359
cmp word [eax], 0x20
jbe 0x100832f
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x1008349
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01006a8d
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1008379
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10083b5
mov eax, esi
call fcn.0100845b
ret
Function at 0x1008724
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1017064]
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
cmp dword [0x101a2a0], eax
jne 0x10087ab
push edi
push 0x44
pop ecx
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x118]
inc edi
push eax
mov dword [0x101a2a0], edi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10087aa
cmp dword [ebp - 0x114], 5
jb 0x100878e
cmp dword [ebp - 0x110], edi
jae 0x1008797
cmp dword [ebp - 0x114], 6
jb 0x10087aa
cmp dword [ebp - 0x108], 2
jne 0x10087aa
mov dword [0x1017074], 0x7f
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.010080ca
leave
ret

Function at 0x1008fe3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.01008bb1
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x1009005
mov eax, 0x80070057
jmp 0x10090cd
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x10090c9
cmp dword [ebp - 8], 1
je 0x1009049
cmp dword [ebp - 8], 2
je 0x1009049
cmp dword [ebp - 8], 7
jne 0x10090c9
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x1009085
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x100905d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov word [edx + ecx*2 - 2], bx
jne 0x10090c9
jmp 0x10090c6
push dword [ebp - 4]
mov ecx, esi
call fcn.01008a49
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10090c9
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
mov ecx, esi
je 0x10090be
lea eax, [ebp - 0x10]
push eax
call fcn.01008a6d
jmp 0x10090c9
push dword [ebp - 0x10]
call fcn.01008c82
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100951d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1017064]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x1001e28]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001e2c]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_towupper]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call esi
cmp eax, 5
jne 0x1009587
and dword [ebp - 0x10], 0
push 0x41
pop edi
cmp bx, di
jbe 0x100958b
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], di
call esi
cmp eax, 5
jne 0x100957f
inc dword [ebp - 0x10]
inc edi
cmp di, bx
jb 0x100956d
jmp 0x100958b
or dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
call fcn.010080ca
leave
ret 4
Function at 0x100990a
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1017064]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.01008724
xor ebx, ebx
cmp esi, ebx
je 0x1009ac5
mov si, word [esi]
cmp si, 0x41
jb 0x100994c
cmp si, 0x5a
ja 0x100994c
movzx edi, si
sub edi, 0x40
jmp 0x1009952
movzx edi, si
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x10099e8
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1001e74
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1009a90
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.0x10099ca
test byte [ebp - 0x44], 1
jne case.default.0x10099ca
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x10099ca
jmp dword [eax*4 + 0x1009ae5]
mov esi, 0x320
jmp case.0x10099ca.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009a90
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1001e64
push eax
call fcn.01008fc8
add esp, 0xc
test eax, eax
jl 0x1009a8e
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1009a94
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.0x10099ca
cmp dword [ebp - 0x34], ebx
jbe case.default.0x10099ca
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x10099ca.0
jle case.default.0x10099ca
cmp eax, 5
jle case.0x10099ca.2
cmp eax, 0xa
jle case.0x10099ca.0
cmp eax, 0xb
je case.0x10099ca.6
cmp eax, 0xc
jne case.default.0x10099ca
jmp case.0x10099ca.5
push 2
pop esi
jmp case.0x10099ca.5
mov esi, 0x15e
jmp case.0x10099ca.5
mov esi, 0x20d
jmp case.0x10099ca.5
xor esi, esi
cmp esi, ebx
jne 0x1009ac7
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1001e58
push eax
call fcn.01008fc8
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1009ac7
cmp eax, 3
je 0x1009ae0
jbe 0x1009ac5
cmp eax, 6
jbe 0x1009ac7
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.01008cba
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010080ca
leave
ret 4
xor esi, esi
inc esi
jmp 0x1009ac7
Function at 0x1009c61
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.01008724
push 0x100178c
mov ecx, esi
call fcn.01009447
test al, al
je 0x1009d2f
push dword [esi + 0x28]
call fcn.0100e514
test al, al
je 0x1009ca5
mov dword [ebp - 4], 4
jmp 0x1009d46
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x1009cb6
cmp word [eax], cx
setne cl
test cl, cl
je 0x1009cdf
mov eax, dword [esi + 0x28]
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x1009cdf
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x101a2e8]
test al, al
jbe 0x1009cdf
movzx eax, al
test eax, eax
mov dword [ebp - 4], eax
jne 0x1009d46
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.01008d0e
test eax, eax
jl 0x1009d46
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 4], eax
jne 0x1009d21
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0100990a
cmp eax, 0x15e
je 0x1009d1a
cmp eax, 0x20d
jne 0x1009d21
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x101a2e8], cl
jmp 0x1009d46
push 0x10017b8
mov ecx, esi
call fcn.01009447
test al, al
je 0x1009d46
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.01008cba
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret