joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408270]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405dba
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405db5
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405db5
mov esi, edx
add edx, 0x10
jmp 0x405d9e
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405ece
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405ece
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405ecc
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405ecc
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405e02
jmp 0x405ecc
sub cl, 3
jne 0x405e1c
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405ec7
inc cl
jne 0x405e30
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405ec7
inc cl
jne 0x405e44
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405e57
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405e61
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405ebe
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405e74
cmp byte [ebp - 0x25], 0
jne 0x405ebc
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405eaa
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405e85
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405ece
jmp 0x405ecc
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405df4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4063a4
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406380
call fcn.004034c8
mov dword [0x408270], eax
lea edx, [eax + 0x18]
mov dword [0x4082d0], edx
pop edx
call fcn.00406200
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x40829c], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082b0], eax
mov dword [0x4082d8], eax
call fcn.004030f8
cmp eax, 3
setb byte [0x408279]
call fcn.00404118
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406630
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x4050b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
and ecx, 0x530e7a5
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x7c]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
sub ecx, 0x5884675c
test ecx, ecx
je 0x405100
cmp dword [ebp + 0x10], 0
je 0x405100
mov dword [ebp - 0x30], 1
jmp 0x405107
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
and ecx, 0x7eef087f
and ecx, dword [0x4140d0]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea edx, [eax + edx - 0x2bd1a3cc]
and ecx, edx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
add eax, dword [0x4140d8]
test eax, eax
jne 0x40515a
mov ecx, dword [ebp + 0x10]
and ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40515a
mov dword [ebp - 0x34], 0
jmp 0x405161
mov dword [ebp - 0x34], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
cmp dword [str.41_av], 0
jne 0x405183
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0xc]
test eax, eax
jne 0x405183
mov dword [ebp - 0x38], 0
jmp 0x40518a
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004036cf
add esp, 8
test eax, eax
je 0x4051b5
jmp 0x4051f7
mov dword [ebp - 0x18], 0
jmp 0x4051c7
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
jae 0x405222
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + eax*4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004036cf
add esp, 8
test eax, eax
jne 0x4051f7
jmp 0x4051be
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [ecx + edx*2]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + eax*4]
mov eax, ecx
jmp 0x405224
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1026466
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x1034b8c], 1
push ebx
push esi
push edi
jne 0x1026495
or dword [0x1034b8c], 1
call fcn.01026405
mov dword [0x1034b88], eax
push 4
pop eax
call fcn.010290a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10264b7
xor eax, eax
jmp 0x1026574
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1034b70]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x10264b0
cmp eax, 1
je 0x1026555
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10264b0
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x10264fe
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1026530
xor eax, eax
inc eax
jmp 0x1026574
cmp edi, eax
jb 0x10264b0
cmp eax, esi
jae 0x102653f
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1034b70]
jmp 0x1026558
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102907f
leave
ret

Function at 0x1026c1c
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 0x1026ca7
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1026ca2
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x1026c88
movzx eax, word [edi]
test ax, ax
je 0x1026cab
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1026c8e
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 0x1026c8e
jmp 0x1026c83
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x1026c88
cmp esi, dword [ebp - 4]
jb 0x1026c75
cmp word [esi], 0
jne 0x1026c48
cmp word [edi], 0
je 0x1026cab
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1026c40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1026ca4
Function at 0x10274e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x2001f
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01026849
mov edi, eax
cmp edi, esi
je 0x1027553
lea ecx, [ebp - 0x214]
call fcn.010267d6
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0102907f
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1027571
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010274e0
cmp eax, esi
jne 0x10275bc
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x102755b
lea ecx, [ebp - 0x214]
call fcn.010267d6
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01026750
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010267d6
mov eax, esi
jmp 0x1027543
Function at 0x102877a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jne 0x10287cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x10287c0
mov esi, eax
jmp 0x10288c0
and eax, 0xffff
or eax, 0x80070000
jmp 0x10287b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x10287fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10288b5
and eax, 0xffff
or eax, 0x80070000
jmp 0x10288b5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x10287df
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1028866
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x102883e
push edi
call fcn.0102658b
test al, al
je 0x102883e
mov eax, edi
call fcn.01029160
mov edi, esp
jmp 0x1028849
push edi
lea ecx, [ebp - 8]
call fcn.010278d8
mov edi, eax
test edi, edi
jne 0x1028854
mov esi, 0x8007000e
jmp 0x10288b7
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x102886e
xor eax, eax
jmp 0x10288a9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1028898
push ebx
call fcn.0102658b
test al, al
je 0x1028898
mov eax, ebx
call fcn.01029160
mov eax, esp
jmp 0x10288a1
push ebx
lea ecx, [ebp - 8]
call fcn.010278d8
push esi
push edi
push eax
call fcn.0102665e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push eax
call fcn.01028551
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.0102731e
mov eax, esi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102907f
leave
ret 0x10

Function at 0x102995e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1034060]
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 [0x1034f00], eax
jne 0x10299f3
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 [0x1034f00], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10299f3
cmp dword [ebp - 0x114], 5
jb 0x10299d7
cmp dword [ebp - 0x110], 1
jae 0x10299e0
cmp dword [ebp - 0x114], 6
jb 0x10299f3
cmp dword [ebp - 0x108], 2
jne 0x10299f3
mov dword [0x103407c], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102907f
leave
ret
Function at 0x102a584
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.01029f7d
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x102a5a6
mov eax, 0x80070057
jmp 0x102a686
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 0x102a682
cmp dword [ebp - 8], 1
je 0x102a5ea
cmp dword [ebp - 8], 2
je 0x102a5ea
cmp dword [ebp - 8], 7
jne 0x102a682
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x102a62c
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x102a5fe
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
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x102a626
mov edx, dword [esi]
xor edi, edi
mov word [edx + ecx*2 - 2], di
cmp eax, ebx
jne 0x102a682
jmp 0x102a66d
push dword [ebp - 4]
mov ecx, esi
call fcn.01029d22
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x102a682
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
mov ecx, esi
test eax, eax
je 0x102a665
lea eax, [ebp - 0x10]
push eax
call fcn.01029d4e
jmp 0x102a682
push dword [ebp - 0x10]
call fcn.0102a0d7
cmp dword [ebp - 8], 2
je 0x102a678
mov dword [ebp - 0xc], ebx
jmp 0x102a682
mov ecx, esi
call fcn.0102a3eb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x102a947
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001cc0]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001cc4]
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 0x102a9b6
and dword [ebp - 0x10], 0
push 0x41
pop ebx
mov eax, ebx
cmp ax, si
jae 0x102a9ba
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call edi
cmp eax, 5
jne 0x102a9ae
inc dword [ebp - 0x10]
inc ebx
cmp bx, si
jb 0x102a99c
jmp 0x102a9ba
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.0102907f
leave
ret 4
Function at 0x102aa90
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 0x102aab6
call edi
sub eax, dword [esi + 0x64]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1388
jbe 0x102aac7
push dword [ebp + 8]
push esi
call fcn.0102f109
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 0x102bac0
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1034060]
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.0102995e
xor ebx, ebx
cmp esi, ebx
je 0x102bc77
movzx eax, word [esi]
cmp ax, 0x41
jb 0x102bb04
cmp ax, 0x5a
ja 0x102bb04
movzx edi, ax
sub edi, 0x40
jmp 0x102bb0a
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x102bb9f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1001df4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x102bc42
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.0x102bb8e
test byte [ebp - 0x44], 1
jne case.default.0x102bb8e
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x102bb8e
jmp dword [eax*4 + 0x102bc9c]
mov esi, 0x320
jmp case.0x102bb8e.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1001de4
push eax
call fcn.0102a3d0
add esp, 0xc
test eax, eax
jl 0x102bc40
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 0x102bc46
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.0x102bb8e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x102bb8e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x102bb8e.0
jle case.default.0x102bb8e
cmp eax, 5
jle case.0x102bb8e.2
cmp eax, 0xa
jle case.0x102bb8e.0
cmp eax, 0xb
je case.0x102bb8e.6
cmp eax, 0xc
je case.0x102bb8e.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102bc42
push 2
pop esi
jmp case.0x102bb8e.5
mov esi, 0x15e
jmp case.0x102bb8e.5
mov esi, 0x20d
jmp case.0x102bb8e.5
xor esi, esi
cmp esi, ebx
jne 0x102bc79
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1001dd8
push eax
call fcn.0102a3d0
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x102bc79
cmp eax, 3
je 0x102bc94
jbe 0x102bc77
cmp eax, 6
jbe 0x102bc79
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0102a10f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102907f
leave
ret 4
xor esi, esi
inc esi
jmp 0x102bc79
Function at 0x102bedf
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.0102995e
push 0x1001a3c
mov ecx, esi
call fcn.0102b0a6
test al, al
je 0x102bfaa
push dword [esi + 0x28]
call fcn.01031ab0
test al, al
je 0x102bf23
mov dword [ebp - 4], 4
jmp 0x102bfc1
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x102bf34
cmp word [eax], cx
setne cl
test cl, cl
je 0x102bf5a
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x102bf5a
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x1034f08]
test al, al
jbe 0x102bf5a
movzx eax, al
mov dword [ebp - 4], eax
test eax, eax
jne 0x102bfc1
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.0102a161
test eax, eax
jl 0x102bfc1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp eax, 2
jne 0x102bf9c
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0102bac0
cmp eax, 0x15e
je 0x102bf95
cmp eax, 0x20d
jne 0x102bf9c
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x1034f08], cl
jmp 0x102bfc1
push 0x1001a74
mov ecx, esi
call fcn.0102b0a6
test al, al
je 0x102bfc1
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0102a10f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x102ed47
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.0102be2b
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push 2
call fcn.0102d36e
xor ebx, ebx
mov edi, 0x1035010
mov esi, 0x80072af9
test eax, eax
jl 0x102edc5
lea ecx, [ebp - 0x6c]
call fcn.0102bedf
cmp eax, 4
jne 0x102edc5
push 0x3e8
lea eax, [ebp - 0x6c]
push eax
call fcn.0102e5cd
mov dword [ebp - 4], eax
cmp byte [0x1035008], bl
je 0x102edc5
cmp eax, ebx
jl 0x102edb5
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ec5a
jmp 0x102edc5
cmp eax, esi
jne 0x102edc5
push esi
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ebe4
cmp dword [ebp - 4], ebx
jge 0x102ee7f
cmp dword [ebp - 4], esi
je 0x102ee7f
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x102ddd5
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x102ee7f
mov ecx, 0x1035588
call fcn.0102d895
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102ee78
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x102ee78
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102ee4b
test byte [eax + 0x3c], 1
je 0x102ee4b
cmp byte [eax + 0x39], 3
jb 0x102ee4b
push dword [ebp - 4]
push 0x1002558
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d925
cmp dword [ebp - 4], ebx
je 0x102ee59
mov dword [ebp - 4], 0x80070005
jmp 0x102ee78
cmp byte [0x1035008], bl
je 0x102ee78
lea ecx, [ebp - 0x6c]
call fcn.0102be0f
test al, al
jne 0x102ee78
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0102ec5a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x6c]
call fcn.01028c08
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4