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

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x5a3cdc]
cmp esi, dword [eax + 0x30]
jne 0x4670c3
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4670f2
mov eax, dword [0x5a3cdc]
cmp esi, dword [eax + 0x30]
jne 0x4670ee
mov eax, dword [0x5a3cdc]
cmp byte [eax + 0x5b], 0
jne 0x4670f2
xor eax, eax
jmp 0x4670f4
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x467109
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x467120
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x46712f
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x46713e
test bl, bl
je 0x467154
test bl, bl
je 0x46714c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x467154
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4673f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x46741e
mov eax, esp
push eax
push 0x4673c0
call sub.user32.dll_EnumWindows
jmp 0x467431
mov eax, esp
push eax
push 0x4673a0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4674bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x467510]
test si, 4
je 0x4674d1
or bl, 1
test si, 8
je 0x4674db
or bl, 4
test si, 1
je 0x4674e5
or bl, 8
test si, 2
je 0x4674ef
or bl, 0x10
test si, 0x10
je 0x4674f9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x467508
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x467514
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x467550]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46752e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46753d
or bl, 4
test esi, 0x20000000
je 0x467548
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46f438
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46f44a
add esp, 0xfffffff0
call fcn.00404854
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ab4
mov eax, dword [0x59e95c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46f7dc
mov eax, dword [0x59e968]
mov dword [eax + 4], ebx
mov dword [eax], 0x46f7e8
mov eax, ebx
call fcn.0046f7f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46ae88
push eax
push 0
push 0
mov eax, dword [0x59eb20]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424d0c]
call fcn.00426600
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424d0c]
call fcn.00426600
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424d0c]
call fcn.00426600
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046fc24
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46faf4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46faf4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46faf4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f587
call fcn.004048ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46f8d8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fa83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46fa64
mov dl, 1
mov eax, dword [0x417e10]
call fcn.00404500
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405410
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46fa53
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00461bdc
test al, al
je 0x46fa46
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46fa94
lea eax, [ebp - 0x254]
call fcn.0040b28c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46fa46
xor eax, eax
push ebp
push 0x46fa3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46facc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46fa28
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405680
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46fa28
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405680
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa46
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46f949
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041c330
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa8a
lea eax, [ebp - 0x260]
call fcn.00405410
ret

Function at 0x4703fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5a3cdc]
cmp byte [eax + 0xad], 0
jne 0x47046d
cmp dword [0x5a3cf8], 0
jne 0x47042e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4703b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5a3cf8], eax
cmp dword [0x5a3cf4], 0
jne 0x470449
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5a3cf4], eax
cmp dword [0x5a3cfc], 0
jne 0x47046d
push esp
push 0
push 0
push 0x47035c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5a3cfc], eax
pop edx
ret
Function at 0x470640
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x470657
add esp, 0xfffffff0
call fcn.00404854
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ab4
mov eax, dword [0x59eb00]
cmp word [eax + 2], 0
jne 0x47067f
mov eax, dword [0x59eb00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00472240
mov eax, dword [0x59ebdc]
cmp word [eax + 2], 0
jne 0x470699
mov eax, dword [0x59ebdc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047244c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417860]
call fcn.00404500
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4258bc]
call fcn.0042db28
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x470850
mov eax, dword [0x59e9dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042defc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x472b20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x59e9dc]
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.0040edd8
test eax, eax
je 0x4707a0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040ac30
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ee0c
test eax, eax
je 0x4707b4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405680
mov byte [ebx + 0xd4], 0
push ebx
push 0x471d68
call fcn.00421c44
mov dword [ebx + 0xc8], eax
mov eax, dword [0x59e854]
cmp byte [eax], 0
jne 0x470805
mov eax, ebx
call fcn.00470994
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00472cf8
mov eax, ebx
call fcn.0047385c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x470845
call fcn.004048ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470c14
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x470cb3
cmp dword [ebx + 0x94], 0
jne 0x470cad
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x470b9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x470cad
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 0x470c73
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x470cad
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.00419dec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x470c82
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x470ecc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5a3cdc]
cmp dword [eax + 0x30], 0
je 0x471029
test bl, bl
jne 0x470f7a
cmp dword [esi + 0x9c], 0
jne 0x470f6f
mov eax, esi
call fcn.004736d8
push eax
push 0x470df8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x470f40
mov eax, dword [0x5a3cdc]
call fcn.00473db8
test al, al
je 0x470f40
mov eax, dword [0x5a3d00]
call fcn.004065b8
mov edi, eax
cmp edi, 0
jl 0x470f40
push 0
mov eax, dword [0x5a3d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x470f2a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x470f6f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419dec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x470f4f
inc dword [esi + 0x9c]
jmp 0x471029
cmp dword [esi + 0x9c], 0
jle 0x471029
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x471029
cmp dword [esi + 0x44], 0
je 0x470fd5
mov eax, dword [0x5a3cdc]
call fcn.00473db8
test al, al
je 0x470fd5
mov eax, dword [0x5a3d00]
call fcn.004065b8
mov edi, eax
cmp edi, 0
jl 0x470fd5
push 5
mov eax, dword [0x5a3d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x470fbf
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x471004
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419dec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x470fe4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5a3d00
mov ecx, 1
mov edx, dword [0x470dd8]
call fcn.0040676c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x471abc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x471b26
mov eax, ebx
call fcn.00473db8
test al, al
jne 0x471b26
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.00405500
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x471b13
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x471b33
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405464
jmp 0x471b33
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405464
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x472edc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x472f4a
mov eax, esi
call fcn.0045c858
test al, al
je 0x472f4a
mov eax, dword [ebx + 0x84]
call fcn.0045c4a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472f4a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x472f3e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045c4a8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00454350
jmp 0x472f4a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00472d18
pop esi
pop ebx
ret
Function at 0x4743b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408354]
call fcn.00405ea8
xor eax, eax
push ebp
push 0x474559
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a0a1c], 0
jne 0x474413
mov ecx, dword [0x59e86c]
mov dl, 1
mov eax, dword [0x40898c]
call fcn.0040de60
call fcn.00404da4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b24
mov eax, ebx
call fcn.00405d78
mov dword [ebp - 0x24], eax
mov esi, 0x474568
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406e84
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405d88
test eax, eax
jle 0x4744fc
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4744e8
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405680
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47448e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405698
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4744a4
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405698
mov eax, dword [ebp - 0x54]
call fcn.004058a0
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405680
mov eax, dword [ebp - 0x58]
call fcn.004058a0
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4744ea
xor eax, eax
test al, al
je 0x4744f5
mov ebx, 0x15
jmp 0x474501
mov ebx, 0x10
jmp 0x474501
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4a0a1c]
call fcn.00474238
mov eax, dword [ebp - 4]
call fcn.00474238
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406e9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474560
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405434
lea eax, [ebp - 0xc]
mov edx, dword [0x408354]
call fcn.00405f78
ret
Function at 0x47f600
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47f771
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f74c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004055f8
lea eax, [ebp - 0x118]
mov edx, 0x47f788
call fcn.004056dc
mov eax, dword [ebp - 0x118]
call fcn.004058a0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47f6be
lea eax, [ebp - 0x111]
call fcn.0040abdc
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405500
jmp 0x47f6c5
mov eax, esi
call fcn.00405410
cmp bl, 0x61
jae 0x47f6e6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040eca4
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405464
jmp 0x47f700
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ec10
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405464
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x47f794
call fcn.0040b30c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405464
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f753
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x483cf0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_PostQueuedCompletionStatus
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x42000000
push 3
push 0
push 7
push 0xc0000000
mov eax, dword [esi + 0x68]
call fcn.004058a0
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
mov eax, esi
call fcn.00483ce4
mov dword [esi + 0x44], edi
mov eax, esi
call fcn.00483e78
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x483d5f
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
jne 0x483d79
mov eax, esi
call fcn.00483ce4
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x70], eax
mov eax, esi
call fcn.00483e78
jmp 0x483dee
push 0
mov eax, dword [esi + 4]
push eax
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
mov ebx, eax
mov eax, esi
call fcn.00483ce4
mov dword [esi + 0x70], ebx
mov eax, esi
call fcn.00483e78
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
xor ecx, ecx
mov edx, 0x1000
call fcn.00403b24
push 0
lea eax, [esi + 0x74]
push eax
lea eax, [esi + 0x8c]
push eax
mov eax, dword [esi + 0x88]
push eax
cmp byte [esi + 0x6c], 1
cmc
sbb eax, eax
push eax
push 0x1000
lea eax, [esi + 0x90]
push eax
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_ReadDirectoryChangesW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x486198
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405890
xor eax, eax
push ebp
push 0x4861f6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00486274
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4861de
lea eax, [ebp - 4]
call fcn.00486274
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4861e0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4861fd
lea eax, [ebp - 4]
call fcn.00405410
ret

Function at 0x486204
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405890
xor eax, eax
push ebp
push 0x486268
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00486274
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040ae1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48626f
lea eax, [ebp - 4]
call fcn.00405410
ret
Function at 0x486828
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405890
xor eax, eax
push ebp
push 0x486921
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00485f28
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a9c0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004871f8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a880
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00487270
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486928
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405434
ret