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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1021
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.10009a50
mov ecx, eax
test ecx, ecx
je 0x100884b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10088475
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10088467
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10088475
add eax, 0x10
push 0x100f3baa
push eax
mov dword [ebp - 0x20], eax
call fcn.10092889
mov esi, eax
add esp, 8
test esi, esi
je 0x10088475
push dword [ebp - 0x20]
push 0
push esi
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1008842a
push esi
call fcn.100915f6
add esp, 4
jmp 0x10088475
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10088430
sub ecx, edx
sar ecx, 1
je 0x1008845e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10088446
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1000a550
push esi
call fcn.100915f6
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10088475
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10088494
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009195e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10009840
int3
Function at 0x100884c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100884e4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10088546
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x10088546
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10088561
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009195e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10088970
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e10c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10118974]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.10007890
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
or ebx, 0xffffffff
test eax, eax
je 0x10088aa4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.100098b0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edi, dword [esi - 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [edi + edi]
mov dword [ebp - 0x1c], eax
add eax, 2
push eax
push 0x2000
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x10088a0c
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10088a87
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0
push eax
call fcn.100ac300
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
add esp, 0xc
or eax, ecx
jge 0x10088a40
push 0
lea ecx, [ebp - 0x14]
call fcn.10009fa0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push eax
push esi
push eax
push dword [ebp - 0x20]
call fcn.1002bac0
push dword [esi - 8]
push esi
call fcn.100b3c53
add esp, 0x18
test eax, eax
js 0x10088ad9
cmp eax, dword [esi - 8]
jg 0x10088ad9
xor ecx, ecx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10088aa6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10088aa6
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10088ac5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10009840
int3
Function at 0x10088af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
push edi
push ebx
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.10090210
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1009195e
mov esp, ebp
pop ebp
ret

Function at 0x10089780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
mov ecx, esp
push edi
call fcn.10007890
lea eax, [ebp - 0x20c]
push eax
call fcn.10090db0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.1009195e
mov esp, ebp
pop ebp
ret
Function at 0x10089a00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e122b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x43c], ebx
call fcn.100ac300
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100b427d
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089ab0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.1000b4c0
push 1
push 0x100e90c0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.10046b40
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100ac300
mov ebx, dword [ebp - 0x424]
xor esi, esi
mov edi, dword [ebp - 0x438]
add esp, 0xc
cmp dword [ebp - 0x428], esi
jbe 0x10089b70
nop word [eax + eax]
cmp ebx, 8
lea eax, [ebp - 0x438]
cmovae eax, edi
movzx eax, word [eax + esi*2]
mov ecx, eax
mov word [ebp + esi*2 - 0x420], ax
cmp ecx, 0x5c
je 0x10089b44
cmp ecx, 0x2f
jne 0x10089b67
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10089b67
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10089bb8
inc esi
cmp esi, dword [ebp - 0x428]
jb 0x10089b20
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
cmp ebx, 8
jb 0x10089bc6
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10089bbc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089be4
jmp 0x10089bbc
xor esi, esi
jmp 0x10089b90
push ecx
push edi
call fcn.100915df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009195e
mov esp, ebp
pop ebp
ret
call fcn.100af803
int3

Function at 0x10089c50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10089c79
mov ecx, edx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089c60
sub ecx, esi
sar ecx, 1
pop esi
lea ecx, [ecx*2 + 2]
jmp 0x10089c7e
mov ecx, 2
push ecx
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebp
ret
Function at 0x1008a850
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1346
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1008a8d1
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x1008a8c3
push str.netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10009a50
mov ecx, eax
test ecx, ecx
je 0x1008aa33
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.1002a390
test al, al
jne 0x1008a948
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008a926
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000a550
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1008a964
mov bl, 1
jmp 0x1008a972
push esi
call fcn.10085b80
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1008a991
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1008aa13
cmp dword [edi], 0
jne 0x1008a9fa
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1008aa13
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1008a9fa
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1008aa13
cmp dword [edi + 4], 0
je 0x1008aa13
cmp dword [edi + 0xc], 0
je 0x1008aa13
mov eax, 1
jmp 0x1008aa15
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009195e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10009840
int3
Function at 0x1008b7d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e154c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x248], esi
xor eax, eax
mov dword [esi], vtable.ExtractFileImp.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 7
mov dword [ebp - 4], eax
mov word [esi + 0x24], ax
push 0x208
push eax
mov dword [esi + 0x3c], eax
mov byte [esi + 0x40], al
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 1
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1008b89f
lea eax, [ebp - 0x218]
push eax
call ebx
sub edi, 1
jne 0x1008b891
push str.Utils7z.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008b9b5
lea eax, [ebp - 0x218]
push eax
call fcn.100d1c10
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.1008a640
add esp, 4
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0x1008bf00
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x234], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x244]
push eax
movups xmmword [ebp - 0x230], xmm0
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push dword [ebp - 0x234]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push SysReAllocString
push str.title
push dword [ebp - 0x21c]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x1008b997
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1008b9b5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1008b9b5
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008b9b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009195e
mov esp, ebp
pop ebp
ret 4
Function at 0x1008bd40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e15a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10118974]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ecx + 4]
test edi, edi
je 0x1008bdd2
cmp dword [edi + 4], 0
je 0x1008bde8
push 0x420
call fcn.10088930
mov esi, eax
add esp, 4
test esi, esi
je 0x1008bdb6
push 0x410
lea ecx, [esi + 8]
mov dword [esi], 0
push 0
push ecx
mov dword [esi + 4], 0
call fcn.100ac300
add esp, 0xc
mov byte [esi + 0x418], 0
jmp 0x1008bdb8
xor esi, esi
push esi
push edi
push 0x800
mov dword [esi + 0x41c], 0
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008bdf0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0xc]
call fcn.1000b4c0
mov edx, dword [ebp + 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008be11
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x24]
call fcn.1000b4c0
mov eax, dword [ebp + 0x10]
push 0x38
mov dword [edi + 8], eax
call fcn.10088930
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1008bec5
mov ecx, ebx
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008be62
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.1000b4c0
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov edx, ebx
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 1
lea eax, [edx + 2]
mov dword [ebp - 0x10], 1
mov dword [ebp + 0xc], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1008bea6
sub edx, dword [ebp + 0xc]
sar edx, 1
push edx
push ebx
call fcn.1000b4c0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
jmp 0x1008bec7
xor esi, esi
push 0
push 0
push esi
push 0x1008bb30
push 0
push 0
mov byte [edi + 0x40], 0
call fcn.100b25b6
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008fa80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10118974]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 4]
test esi, esi
je 0x1008fc07
xorps xmm0, xmm0
push 0x100f3baa
push 4
movlpd qword [ebp - 0x20], xmm0
call fcn.10092892
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1008fad7
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x1008fad9
xor eax, eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.1008bfa0
cmp dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
je 0x1008fbdf
mov eax, dword [esi + 4]
push 0x100f3baa
push 0x18
mov dword [ebp - 0x18], eax
call fcn.10092892
mov edi, eax
add esp, 8
test edi, edi
je 0x1008fbdf
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test ebx, ebx
je 0x1008fbdf
cmp dword [ebx + 0x5c], 0x10
lea eax, [ebx + 0x48]
mov dword [ebp + 0xc], eax
jb 0x1008fb68
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0x44], 0x10
lea eax, [ebx + 0x30]
mov dword [ebp - 0x10], eax
jb 0x1008fb79
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x14], ebx
jb 0x1008fb87
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
call fcn.1008c6f0
mov esi, dword [ebp + 8]
mov ecx, eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.1008c260
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
jne 0x1008fbad
test eax, eax
je 0x1008fbdf
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x20]
push 0
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
push edi
mov dword [edi], eax
mov dword [edi + 8], ecx
mov eax, dword [eax]
push 0x100900f0
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x60]
push 0
push 0
mov dword [edi + 0xc], eax
call fcn.100b25b6
add esp, 0x18
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1008fc07
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1008fc07
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1008fc07
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10090490
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x10118974]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x10090571
test eax, eax
je 0x10090571
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10090571
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x10090571
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1009055c
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ebx
call fcn.100c0147
add esp, 0xc
test eax, eax
je 0x10090584
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x10090500
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009195e
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100905d2
cmp edi, 0x7fffffff
ja 0x100905d2
mov ecx, dword [ebp - 0x4c0]
lea ebx, [ebp - 0xc]
mov esi, SysReAllocString
mov edx, edi
sub esi, edi
sub ebx, ecx
lea eax, [esi + edx]
test eax, eax
je 0x100905bf
movzx eax, word [ebx + ecx]
test ax, ax
je 0x100905bf
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100905a4
mov ebx, dword [ebp - 0x4c8]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor ecx, ecx
test edi, edi
je 0x100905e0
cmp edi, 0x7fffffff
jbe 0x100905e5
mov ecx, 0x80070057
test ecx, ecx
js 0x1009061b
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x10090603
cmp word [eax], 0
je 0x10090603
add eax, 2
sub esi, 1
jne 0x100905f5
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x1009061d
xor esi, esi
test ecx, ecx
js 0x1009066e
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10090661
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7fffffff
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x10090661
movzx eax, word [edi + ecx]
test ax, ax
je 0x10090661
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x10090648
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009195e
mov esp, ebp
pop ebp
ret