joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411683
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x43af10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4116c3
push 0x4316b8
push 4
push eax
call fcn.00419835
push eax
call fcn.004038e2
add esp, 0x10
jmp 0x4116d5
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411743
push edi
call fcn.00419717
mov edi, dword [eax]
call fcn.00419717
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004198b6
add esp, 0x18
mov ebx, eax
call fcn.00419717
cmp dword [eax], 0
je 0x411723
call fcn.00419717
push dword [eax]
call fcn.00404c91
pop ecx
jmp 0x41172a
call fcn.00419717
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x411743
cmp ebx, esi
jae 0x411743
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x411745
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418308
leave
ret
Function at 0x413ba5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x413bd3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413bf1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413b0f
jmp 0x413bf1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413bf1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00413b0f
test edi, edi
mov eax, edi
jne 0x413bdb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43df58]
test ecx, ecx
je 0x413cb4
jmp 0x413ba4
ret 8

Function at 0x418308
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43af10]
jne 0x418312
repz ret
jmp fcn.0041f5ac

Function at 0x42178b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43b858]
je 0x4217a6
inc edi
cmp edi, 0x17
jb 0x421797
cmp edi, 0x17
jae 0x421926
push ebp
push 3
call fcn.00426be6
cmp eax, 1
pop ecx
je 0x4218f2
push 3
call fcn.00426be6
test eax, eax
pop ecx
jne 0x4217da
cmp dword [0x43af20], 1
je 0x4218f2
cmp ebx, 0xfc
je 0x421925
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43e6f8
push ebp
call fcn.00419835
add esp, 0xc
test eax, eax
je 0x421810
push esi
push esi
push esi
push esi
push esi
call fcn.0041d348
add esp, 0x14
push 0x104
mov esi, 0x43e711
push esi
push 0
mov byte [0x43e815], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421854
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00419835
add esp, 0xc
test eax, eax
je 0x421854
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041d348
add esp, 0x14
push esi
call fcn.00417de0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421899
push esi
call fcn.00417de0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43ea0c
push 0x432514
sub ecx, eax
push ecx
push eax
call fcn.0041b084
add esp, 0x14
test eax, eax
je 0x421899
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041d348
add esp, 0x14
jmp 0x42189b
xor esi, esi
push 0x432510
push ebx
push ebp
call fcn.0041b504
add esp, 0xc
test eax, eax
je 0x4218bb
push esi
push esi
push esi
push esi
push esi
call fcn.0041d348
add esp, 0x14
push dword [edi*8 + 0x43b85c]
push ebx
push ebp
call fcn.0041b504
add esp, 0xc
test eax, eax
je 0x4218dd
push esi
push esi
push esi
push esi
push esi
call fcn.0041d348
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00426a29
add esp, 0xc
jmp 0x421925
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x421925
cmp ebp, 0xffffffff
je 0x421925
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43b85c]
push dword [esi]
call fcn.00417de0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x426a29
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041efe9
xor ebx, ebx
cmp dword [0x43ec4c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x426aff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x426bdf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4336b4
push edi
call esi
cmp eax, ebx
je 0x426bdf
push eax
call fcn.0041ef7b
mov dword [esp], 0x4336a4
push edi
mov dword [0x43ec4c], eax
call esi
push eax
call fcn.0041ef7b
mov dword [esp], 0x433690
push edi
mov dword [0x43ec50], eax
call esi
push eax
call fcn.0041ef7b
mov dword [0x43ec54], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041b20a
test eax, eax
pop ecx
pop ecx
je 0x426acd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d348
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x426aff
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ef7b
cmp eax, ebx
pop ecx
mov dword [0x43ec5c], eax
je 0x426aff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ef7b
pop ecx
mov dword [0x43ec58], eax
mov eax, dword [0x43ec58]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x426b84
cmp dword [0x43ec5c], ecx
je 0x426b84
push eax
call fcn.0041eff2
push dword [0x43ec5c]
mov esi, eax
call fcn.0041eff2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x426b84
cmp edi, ebx
je 0x426b84
call esi
cmp eax, ebx
je 0x426b51
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426b51
test byte [ebp - 0x18], 1
jne 0x426b84
lea eax, [ebp - 0x10]
push eax
call fcn.0041b241
test eax, eax
pop ecx
je 0x426b6c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d348
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x426b7b
or dword [ebp + 0x10], 0x200000
jmp 0x426bbf
or dword [ebp + 0x10], 0x40000
jmp 0x426bbf
mov eax, dword [0x43ec50]
cmp eax, dword [ebp - 8]
je 0x426bbf
push eax
call fcn.0041eff2
cmp eax, ebx
pop ecx
je 0x426bbf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x426bbf
mov eax, dword [0x43ec54]
cmp eax, dword [ebp - 8]
je 0x426bbf
push eax
call fcn.0041eff2
cmp eax, ebx
pop ecx
je 0x426bbf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ec4c]
call fcn.0041eff2
cmp eax, ebx
pop ecx
je 0x426bdf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426be1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b650
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43af10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b5e5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419760
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b69f
cmp dword [ebp - 0x1c], 5
jb 0x42b6b7
jmp 0x42b6b3
cmp dword [ebp - 0x10], 1
jne 0x42b6b7
cmp dword [ebp - 0x1c], 4
ja 0x42b6b3
jne 0x42b6b7
cmp dword [ebp - 0x18], 0
jbe 0x42b6b7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x433724
call fcn.0042b4b9
test eax, eax
jge 0x42b6d8
mov byte [0x43c3d0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418308
add ebp, 0x78
leave
ret
Function at 0x1005aeb
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x101c3d8], 1
push ebx
push esi
push edi
jne 0x1005b10
or dword [0x101c3d8], 1
call fcn.01005a95
mov dword [0x101c3d4], eax
push 4
pop eax
call fcn.010085b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005ba5
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 [0x101c3d0]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1005ba5
cmp eax, 1
je 0x1005bc6
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 0x1005ba5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1005b72
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1005ba1
xor eax, eax
inc eax
jmp 0x1005be5
cmp edi, eax
jae 0x1005ba9
xor eax, eax
jmp 0x1005be5
cmp eax, esi
jae 0x1005bb0
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 [0x101c3d0]
jmp 0x1005bc9
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 0x100620a
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 0x1006295
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1006290
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x1006276
mov ax, word [edi]
test ax, ax
je 0x1006299
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x100627c
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 0x100627c
jmp 0x1006271
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x1006276
cmp esi, dword [ebp - 4]
jb 0x1006263
cmp word [esi], 0
jne 0x1006236
cmp word [edi], 0
je 0x1006299
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x100622e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1006292
Function at 0x10069b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101a094]
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.01005e24
cmp eax, esi
jne 0x1006a59
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1006a10
lea eax, [ebp - 0x204]
push eax
call fcn.010069b8
cmp eax, esi
jne 0x1006a58
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 0x1006a00
call fcn.01005db1
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.01005db1
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0100829a
leave
ret 4
Function at 0x1007c11
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 0x1007c66
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007c51
call esi
mov esi, eax
jmp 0x1007d7d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007d7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x1007c87
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x1007caf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1007c9a
call esi
jmp 0x1007d72
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007d74
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 0x1007d1d
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x1007cea
push edi
call fcn.01005bf2
test al, al
je 0x1007cea
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.010085b0
mov dword [ebp + 8], esp
jmp 0x1007cf6
push edi
lea ecx, [ebp - 4]
call fcn.01006d4b
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1007d04
mov esi, 0x8007000e
jmp 0x1007d74
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 0x1007d25
xor eax, eax
jmp 0x1007d66
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1007d55
push ebx
call fcn.01005bf2
test al, al
je 0x1007d55
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.010085b0
mov eax, esp
jmp 0x1007d5e
push ebx
lea ecx, [ebp - 4]
call fcn.01006d4b
push esi
push edi
push eax
call fcn.01005cc0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.010079de
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 4]
call fcn.010068fb
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10083b2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10016d8
call fcn.01008600
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x10083fa
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10083fa
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1008413
cmp ecx, 0x20b
je 0x1008400
and dword [ebp - 0x1c], 0
jmp 0x1008427
cmp dword [eax + 0x84], 0xe
jbe 0x10083fa
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1008421
cmp dword [eax + 0x74], 0xe
jbe 0x10083fa
xor ecx, ecx
cmp dword [eax + 0xe8], 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 [0x101dafc], edi
mov dword [0x101db00], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101c438]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101c434]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101db04], eax
call fcn.010086b0
cmp dword [0x101a0a0], 0
jne 0x1008487
push fcn.010086b0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008699
push 0x101a024
push 0x101a020
call sub.msvcrt.dll__initterm
mov eax, dword [0x101c430]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101c42c]
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 0x101a01c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x10084ec
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x100859b
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x100852d
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1008508
cmp cx, 0x22
jne 0x10084f5
cmp word [eax], 0x22
jne 0x1008513
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1008521
cmp cx, 0x20
jbe 0x100850e
test byte [ebp - 0x54], 1
je 0x100853a
movzx ecx, word [ebp - 0x50]
jmp 0x100853d
cmp word [eax], 0x20
jbe 0x1008513
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x100852d
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01006c74
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100855d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1008599
mov eax, esi
call fcn.0100863b
ret
Function at 0x1008904
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101a094]
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 [0x101c440], eax
jne 0x100898b
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 [0x101c440], edi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100898a
cmp dword [ebp - 0x114], 5
jb 0x100896e
cmp dword [ebp - 0x110], edi
jae 0x1008977
cmp dword [ebp - 0x114], 6
jb 0x100898a
cmp dword [ebp - 0x108], 2
jne 0x100898a
mov dword [0x101a0a4], 0x7f
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0100829a
leave
ret

Function at 0x10091c3
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.01008d91
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10091e5
mov eax, 0x80070057
jmp 0x10092ad
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 0x10092a9
cmp dword [ebp - 8], 1
je 0x1009229
cmp dword [ebp - 8], 2
je 0x1009229
cmp dword [ebp - 8], 7
jne 0x10092a9
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x1009265
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x100923d
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 0x10092a9
jmp 0x10092a6
push dword [ebp - 4]
mov ecx, esi
call fcn.01008c29
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10092a9
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 0x100929e
lea eax, [ebp - 0x10]
push eax
call fcn.01008c4d
jmp 0x10092a9
push dword [ebp - 0x10]
call fcn.01008e62
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10096fd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101a094]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x1001e30]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001e34]
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 0x1009767
and dword [ebp - 0x10], 0
push 0x41
pop edi
cmp bx, di
jbe 0x100976b
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], di
call esi
cmp eax, 5
jne 0x100975f
inc dword [ebp - 0x10]
inc edi
cmp di, bx
jb 0x100974d
jmp 0x100976b
or dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
call fcn.0100829a
leave
ret 4
Function at 0x1009aea
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101a094]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.01008904
xor ebx, ebx
cmp esi, ebx
je 0x1009ca5
mov si, word [esi]
cmp si, 0x41
jb 0x1009b2c
cmp si, 0x5a
ja 0x1009b2c
movzx edi, si
sub edi, 0x40
jmp 0x1009b32
movzx edi, si
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x1009bc8
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1001e7c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1009c70
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.0x1009baa
test byte [ebp - 0x44], 1
jne case.default.0x1009baa
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x1009baa
jmp dword [eax*4 + 0x1009cc5]
mov esi, 0x320
jmp case.0x1009baa.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009c70
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1001e6c
push eax
call fcn.010091a8
add esp, 0xc
test eax, eax
jl 0x1009c6e
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 0x1009c74
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.0x1009baa
cmp dword [ebp - 0x34], ebx
jbe case.default.0x1009baa
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x1009baa.0
jle case.default.0x1009baa
cmp eax, 5
jle case.0x1009baa.2
cmp eax, 0xa
jle case.0x1009baa.0
cmp eax, 0xb
je case.0x1009baa.6
cmp eax, 0xc
jne case.default.0x1009baa
jmp case.0x1009baa.5
push 2
pop esi
jmp case.0x1009baa.5
mov esi, 0x15e
jmp case.0x1009baa.5
mov esi, 0x20d
jmp case.0x1009baa.5
xor esi, esi
cmp esi, ebx
jne 0x1009ca7
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1001e60
push eax
call fcn.010091a8
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1009ca7
cmp eax, 3
je 0x1009cc0
jbe 0x1009ca5
cmp eax, 6
jbe 0x1009ca7
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.01008e9a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0100829a
leave
ret 4
xor esi, esi
inc esi
jmp 0x1009ca7