joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015a58
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 1
push 0x18be
push 0x1002f50
lea ecx, [ebp - 0x28]
call fcn.0101a2a6
xor edi, edi
mov eax, 0x18c3
cmp dword [ebp + 0xc], edi
jne 0x1015a92
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x1015b9d
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
mov ebx, dword [ebp + 8]
push 0x429
push ebx
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call esi
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x1015ac4
call fcn.0101df05
mov dword [ebp - 0x28], eax
mov eax, 0x18c6
jmp 0x1015b92
push 0x42b
mov eax, 0x18c6
push ebx
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call esi
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1015af1
call fcn.0101df05
mov dword [ebp - 0x28], eax
mov eax, 0x18c9
jmp 0x1015b92
mov eax, 0x18c9
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
cmp dword [eax + 0x14], edi
je 0x1015b28
push 1
push 5
mov edi, 0x43e
push edi
push ebx
call fcn.0101fba8
push 5
push edi
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 5
jmp 0x1015b3c
push edi
push 0x43e
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x43f
push ebx
call esi
push eax
call edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0101194e
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x18d7
jl 0x1015b92
push dword [ebp + 0xc]
mov word [ebp - 0x24], ax
push dword [ebp - 4]
call fcn.0101194e
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x18d8
jl 0x1015b92
push dword [ebp + 0xc]
mov word [ebp - 0x24], ax
push ebx
call fcn.0101541c
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x18da
jge 0x1015b98
mov word [ebp - 0x22], ax
jmp 0x1015b9c
mov word [ebp - 0x24], ax
pop ebx
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x10178e2
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
push 0x1380
push 0x100307c
lea ecx, [ebp - 0x40]
call fcn.0101a2a6
mov esi, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1c], 0x1004590
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov eax, 0x1389
cmp esi, edi
jne 0x1017934
mov dword [ebp - 0x40], 0x80070057
mov word [ebp - 0x3a], ax
jmp 0x1017a9c
mov word [ebp - 0x3c], ax
cmp dword [esi + 0xa0], edi
jne 0x101794e
mov dword [ebp - 0x40], 0x81000203
mov eax, 0x138c
jmp 0x101792b
mov eax, 0x138e
mov word [ebp - 0x3c], ax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
cmp ecx, eax
jb 0x10179a0
mov edx, dword [ebp - 8]
ja 0x1017984
cmp edx, dword [ebp - 0x10]
jb 0x101799e
sub edx, dword [ebp - 0x10]
sbb ecx, eax
cmp ecx, 0x2f25
jb 0x101799e
ja 0x101799b
cmp edx, 0xf0c90000
jbe 0x101799e
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [esi + 0x14], edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x10179e3
push 0x446
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10179d1
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x139b
jmp 0x101792b
and dword [ebp - 0x40], 0
push 0
mov ecx, 0x139b
push eax
mov word [ebp - 0x3c], cx
call esi
push 0x405
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1017a03
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x13a0
jmp 0x101792b
and dword [ebp - 0x40], 0
neg ebx
sbb ebx, ebx
and ebx, 5
push ebx
mov ecx, 0x13a0
push eax
mov word [ebp - 0x3c], cx
call esi
push 0x8f
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1017a3b
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x13a4
jmp 0x101792b
and dword [ebp - 0x40], 0
push ebx
mov ecx, 0x13a4
push eax
mov word [ebp - 0x3c], cx
call esi
push 0x404
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1017a6c
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x13a8
jmp 0x101792b
and dword [ebp - 0x40], 0
push ebx
mov ecx, 0x13a8
push eax
mov word [ebp - 0x3c], cx
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0101112a
mov dword [ebp - 0x40], eax
test eax, eax
mov eax, 0x13ab
jl 0x101792b
mov word [ebp - 0x3c], ax
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.0102172b
lea ecx, [ebp - 0x40]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10191a8
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 1
push 0xf4a
push 0x1003148
lea ecx, [ebp - 0x2c]
call fcn.0101a2a6
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x10191d8
mov dword [eax], esi
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x10191e1
mov dword [ebx], esi
mov edi, dword [ebp + 0xc]
cmp edi, esi
jne 0x10191fd
mov eax, 0xf53
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x1019353
mov ecx, 0xf53
cmp eax, esi
mov word [ebp - 0x28], cx
lea eax, [ecx + 1]
je 0x10191ed
mov word [ebp - 0x28], ax
inc eax
cmp ebx, esi
je 0x10191ed
push 0x3ec
push dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x28], ax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, esi
jne 0x101923e
call fcn.0101df05
mov dword [ebp - 0x2c], eax
mov eax, 0xf58
jmp 0x10191f4
mov ecx, 0xf58
mov word [ebp - 0x28], cx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x2c], esi
call fcn.010105a0
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov eax, 0xf5a
jl 0x10191f4
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x101929e
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
mov dword [edi + 0x90], esi
call fcn.0100eef7
cmp eax, esi
mov dword [ebp - 0x2c], eax
jge 0x101928d
mov eax, 0xf5f
jmp 0x10191f4
mov eax, 0xf60
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x28], ax
jmp 0x1019353
mov dword [edi + 0x90], eax
cmp dword [eax + 0x3c], 2
jne 0x10192d5
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call fcn.01018f00
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov eax, 0xf67
jl 0x10191f4
mov word [ebp - 0x28], ax
cmp dword [ebx], esi
je 0x10192f8
add eax, 4
jmp 0x1019292
lea ecx, [ebp - 4]
push ecx
push esi
add eax, 0x20
push eax
push edi
call fcn.010184ad
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov eax, 0xf70
jl 0x10191f4
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 4]
and eax, 0x3fc
neg eax
sbb eax, eax
neg eax
push 0x11
mov dword [edi + 0xac], eax
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
mov ecx, 0x8000
inc ebx
test cx, ax
je 0x1019327
mov dword [edi + 0xac], ebx
cmp dword [edi + 0xac], esi
je 0x1019367
push 0x7a
push esi
push dword [ebp + 8]
call fcn.0100eef7
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov eax, 0xf7c
jl 0x10191f4
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push 0x67
push esi
push dword [ebp + 8]
call fcn.0100eef7
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov eax, 0xf81
jmp 0x1019344
Function at 0x1019aed
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1023280
call fcn.01019c5c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x102588c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10198a4
cmp eax, esi
jne 0x1019897
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10198a7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101987e
xor esi, esi
inc esi
mov eax, dword [0x1025888]
cmp eax, esi
jne 0x10198ba
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10198e9
mov eax, dword [0x1025888]
test eax, eax
jne 0x10198e3
mov dword [0x1025888], esi
push 0x1001430
push 0x1001424
call fcn.010197e3
pop ecx
pop ecx
test eax, eax
je 0x10198e9
jmp 0x1019a11
mov dword [0x10254ec], esi
mov eax, dword [0x1025888]
cmp eax, esi
jne 0x101990d
push 0x1001420
push 0x1001408
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1025888], 2
test ebx, ebx
jne 0x1019919
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1025898], 0
je 0x101993d
push 0x1025898
call fcn.01019dd9
pop ecx
test eax, eax
je 0x101993d
push 0
push 2
push 0
call dword [0x1025898]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1019999
test al, al
je 0x1019957
cmp dword [ebp - 0x1c], 0
jne 0x1019999
mov al, byte [esi]
test al, al
je 0x1019967
cmp al, 0x20
ja 0x1019967
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1019957
test byte [ebp - 0x3c], 1
je 0x1019973
movzx eax, word [ebp - 0x38]
jmp 0x1019976
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10254e8], eax
cmp dword [0x10254dc], 0
jne 0x10199ed
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10199a8
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10199bb
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1019944
cmp dword [0x10254ec], 0
jne 0x10199fc
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10254e8]
jmp 0x1019a1d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01019ca1
ret
call fcn.01019f26
jmp 0x1019844
Function at 0x101a57c
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jge 0x101a656
push eax
call sub.SPP.dll_SxTracerShouldTrackFailure
mov dword [ebp - 4], eax
mov ecx, 0x1003958
cmp eax, edi
jne 0x101a5b0
mov ecx, 0x1003950
cmp dword [esi + 8], edi
jne 0x101a5ec
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a5ec
test dword [eax + 0x1c], 0x2000000
je 0x101a5ec
push dword [esi]
movzx edx, word [esi + 6]
push edx
push ecx
movzx ecx, word [esi + 4]
push ecx
push dword [esi + 0x10]
push 0x1003940
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a1bb
cmp dword [esi + 0x1c], edi
je 0x101a628
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
cmp ecx, dword [eax + 0x10]
je 0x101a628
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x101a60b
push eax
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov dword [esi + 0x1c], edi
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x101a63a
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
je 0x101a6d1
cmp dword [esi + 8], edi
jne 0x101a646
mov ecx, esi
call fcn.0101a422
cmp dword [ebp - 4], edi
je 0x101a6d1
call sub.SPP.dll_SxTracerDebuggerBreak
jmp 0x101a6d1
movzx eax, word [esi + 0xc]
cmp ax, di
jne 0x101a680
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6d1
test dword [eax + 0x1c], 0x8000000
je 0x101a6d1
push dword [esi + 0x10]
push 0x1003940
push 0x10
jmp 0x101a6c6
cmp ax, 1
jne 0x101a6a7
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6d1
test dword [eax + 0x1c], 0x20000000
je 0x101a6d1
push dword [esi + 0x10]
push 0x1003940
push 0x11
jmp 0x101a6c6
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6d1
test dword [eax + 0x1c], 0x20000
je 0x101a6d1
push dword [esi + 0x10]
push 0x1003940
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a10f
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x101a704
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], edi
jne 0x101a6ff
mov dword [eax + 8], edi
mov eax, dword [esi + 0x18]
push dword [eax + 0xc]
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov dword [eax + 0x10], edi
jmp 0x101a704
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x101a711
push eax
call ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b292
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101b2c1
test dword [eax + 0x1c], 0x20000000
je 0x101b2c1
push 0x1003968
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
push esi
push 1
push 0x1bb
push 0x1003a88
lea ecx, [ebp - 0x3c]
call fcn.0101a2a6
xor esi, esi
mov eax, 0x1004590
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov eax, 0x1c3
cmp dword [ebp + 8], esi
jne 0x101b309
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x101b472
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x38], ax
mov eax, 0x1c4
cmp ebx, 2
jae 0x101b32b
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x101b471
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.0101b03c
mov edi, 0x1003988
push edi
push esi
push dword [ebp + 8]
mov esi, 0x1003a60
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01021bbd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1cb
jl 0x101b46c
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101b39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101b38a
cmp eax, 3
jne 0x101b39c
and dword [ebp - 0x3c], 0
mov eax, 0x1d3
mov word [ebp - 0x38], ax
jmp 0x101b470
push edi
dec ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01021bbd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1d8
jl 0x101b46c
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101b44a
push edi
lea ebx, [eax - 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.01021bbd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1df
jl 0x101b46c
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x101b427
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101b41a
cmp eax, 0x20
je 0x101b41a
cmp eax, 5
jne 0x101b456
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.0101af48
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.010223b2
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1f3
jl 0x101b46c
mov word [ebp - 0x38], ax
mov eax, ebx
test eax, eax
ja 0x101b3ce
jmp 0x101b470
test eax, eax
jle 0x101b464
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3c], eax
mov eax, 0x1ec
mov word [ebp - 0x36], ax
pop edi
pop ebx
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.0102172b
lea ecx, [ebp - 0x18]
call fcn.0102172b
lea ecx, [ebp - 0x3c]
call fcn.0101a57c
mov eax, esi
pop esi
leave
ret 8
Function at 0x101baec
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101bb2e
test dword [eax + 0x1c], 0x20000000
je 0x101bb2e
push 0x1003ad4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
xor ebx, ebx
inc ebx
push ebx
push 0x621
push 0x1003aec
lea ecx, [ebp - 0xf0]
call fcn.0101a2a6
xor eax, eax
push 0xc6
mov word [ebp - 0xcc], ax
xor esi, esi
lea eax, [ebp - 0xca]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x625
cmp edi, esi
jne 0x101bb86
mov dword [ebp - 0xf0], 0x80070057
mov word [ebp - 0xea], ax
jmp 0x101bc09
push edi
mov dword [ebp - 0xf0], esi
mov word [ebp - 0xec], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x101bbac
mov dword [ebp - 0xf0], ebx
mov eax, 0x62e
jmp 0x101bc02
push 0x64
lea eax, [ebp - 0xcc]
push eax
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x101bbd2
mov dword [ebp - 0xf0], ebx
mov eax, 0x633
jmp 0x101bc02
lea eax, [ebp - 0xcc]
push 0x1003ae4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x101bbf7
mov dword [ebp - 0xf0], ebx
mov eax, 0x638
jmp 0x101bc02
mov dword [ebp - 0xf0], esi
mov eax, 0x63b
mov word [ebp - 0xec], ax
mov esi, dword [ebp - 0xf0]
lea ecx, [ebp - 0xf0]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b13
leave
ret 4

Function at 0x101bd11
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101bd51
test dword [eax + 0x1c], 0x20000000
je 0x101bd51
push 0x1003ad4
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
push 1
push 0x351
push 0x1003b04
lea ecx, [ebp - 0x234]
call fcn.0101a2a6
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x101bdcc
mov ecx, esi
call fcn.0102174f
and dword [ebp - 0x234], 0
mov eax, 0x357
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x101bde4
call fcn.0101df05
mov dword [ebp - 0x234], eax
mov eax, 0x360
jmp 0x101bddb
mov dword [ebp - 0x234], 0x80070057
mov eax, 0x357
mov word [ebp - 0x22e], ax
jmp 0x101be37
mov ecx, 0x360
cmp eax, 0x105
mov word [ebp - 0x230], cx
lea eax, [ecx + 1]
jb 0x101be06
mov dword [ebp - 0x234], 0x8007007a
jmp 0x101bddb
and dword [ebp - 0x234], 0
lea edx, [ebp - 0x210]
mov ecx, esi
mov word [ebp - 0x230], ax
call fcn.010223b2
mov dword [ebp - 0x234], eax
test eax, eax
mov eax, 0x363
jl 0x101bddb
mov word [ebp - 0x230], ax
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01019b13
leave
ret 4
Function at 0x101c2ae
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101c2f9
test dword [eax + 0x1c], 0x20000000
je 0x101c2f9
push 0x1003ad4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
push 1
push 0x4e7
push 0x1003b9c
lea ecx, [ebp - 0x238]
call fcn.0101a2a6
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x240], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x244], ebx
cmp esi, ebx
je 0x101c34e
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, 0x4f2
cmp dword [ebp - 0x214], ebx
jne 0x101c371
mov dword [ebp - 0x238], 0x80070057
mov word [ebp - 0x232], ax
jmp 0x101c4d1
mov word [ebp - 0x234], ax
mov eax, 0x4f3
cmp esi, ebx
je 0x101c35b
push dword [ebp - 0x214]
mov word [ebp - 0x234], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0101a493
mov dword [ebp - 0x238], eax
cmp eax, ebx
mov eax, 0x4f8
jl 0x101c365
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101c3be
sub eax, edx
sar eax, 1
jne 0x101c3d5
mov eax, 0x4fb
jmp 0x101c35b
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
mov ecx, 0x4fb
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], cx
jne 0x101c3f9
xor ecx, ecx
mov word [eax], cx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101c42e
call fcn.0101df05
mov dword [ebp - 0x238], eax
mov eax, 0x50c
jmp 0x101c365
push ebx
mov eax, 0x50c
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x244]
push eax
push 8
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push 0x7405c
push edi
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101c47c
call fcn.0101df05
mov dword [ebp - 0x238], eax
mov eax, 0x512
mov word [ebp - 0x232], ax
jmp 0x101c4c6
mov ecx, dword [ebp - 0x23c]
cmp ecx, ebx
mov eax, 0x512
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x240]
jg 0x101c4af
jl 0x101c49e
cmp eax, ebx
jae 0x101c4af
mov dword [ebp - 0x238], 0x8000ffff
mov eax, 0x518
jmp 0x101c473
mov edx, 0x518
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], dx
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp edi, ebx
je 0x101c4d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b13
leave
ret 8