joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4777ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477884
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x589974], 0
jne 0x477868
lea eax, [ebp - 4]
mov edx, 0x47789c
call fcn.00403ca4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040404c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x477868
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x477861
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47784b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4778ac
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47784b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x589974], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477868
mov eax, dword [ebp - 0xc]
call fcn.0040272c
ret
mov ebx, dword [0x589974]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47788b
lea eax, [ebp - 4]
call fcn.00403c0c
ret

Function at 0x48be70
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x589998], 0
jne 0x48be96
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48bdf4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x589998], eax
pop ebp
ret

Function at 0x48f200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0044755c
test al, al
je 0x48f25d
cmp bl, 7
jne 0x48f239
push 2
lea eax, [ebp - 2]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [ebp - 2]
sub edi, 0x30
jmp 0x48f23e
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc0]
test eax, eax
je 0x48f25d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc0]
mov edx, edi
call fcn.00423b40
mov byte [esi + 0x204], bl
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4921f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4923d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49223e
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00491cac
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c400
cmp al, 1
jne 0x49223e
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00491fc8
test al, al
je 0x492376
test edi, edi
jge 0x492255
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00491cac
mov eax, dword [ebp - 0x204]
call fcn.00403e88
cmp ebx, eax
jge 0x49229c
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00491cac
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x586138]
and eax, 0xff
bt dword [edx], eax
jae 0x49229c
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x4922aa
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.004921cc
cmp ebx, edi
je 0x49236e
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4922d4
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00403184
and eax, 0x7f
movzx eax, word [eax*2 + 0x5823a4]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403184
and eax, 0x7f
movzx eax, word [eax*2 + 0x5823a4]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.00447134
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403184
and eax, 0x7f
movzx eax, word [eax*2 + 0x5823a4]
push eax
push 0x101
mov eax, esi
call fcn.00447134
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x4923bd
test edi, edi
jge 0x49237c
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00491cac
mov eax, dword [ebp - 0x204]
call fcn.00403e88
cmp edi, eax
jl 0x4923b2
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00491cac
mov eax, dword [ebp - 0x204]
call fcn.00403e88
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.004921cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4923dd
lea eax, [ebp - 0x204]
call fcn.00403c0c
ret
Function at 0x495604
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4957a7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041b9f0
cmp byte [ebp + 8], 0
je 0x49565d
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041b8c0
jmp 0x49566b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041b8c0
mov eax, dword [ebx + 0x10]
call fcn.0041b9e8
dec eax
jle 0x4956b1
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041b8b8
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041b9e8
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041b980
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.00403184
test al, al
je 0x4956fa
test esi, esi
jne 0x4956fa
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x495730
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041c59c
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49e930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49e9e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040404c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x49e972
call fcn.00403720
jmp 0x49e9ee
mov eax, ebx
call fcn.00402714
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.0040404c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x49e99b
call fcn.00403720
jmp 0x49e9ee
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49e9f8
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x49e9bc
call fcn.00403720
jmp 0x49e9ee
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e9ee
mov eax, dword [ebp - 8]
call fcn.0040272c
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49ecb4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor ecx, ecx
push ebp
push 0x49ecf9
push dword fs:[ecx]
mov dword fs:[ecx], esp
or edx, 0x4008
push edx
push 0x160
lea edx, [ebp - 0x160]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x15c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed05
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49ed10
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49ed60
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0x4010
push esi
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x15c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed6c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0108
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a015b
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0x4000
push esi
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0x90
mov eax, ebx
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x15c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0167
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0170
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a01c0
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0x4010
push esi
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.0040404c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x15c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a01cc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2fcc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402c18
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
pop ebp
ret

Function at 0x4a3b5c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00402c18
pop ebp
ret
Function at 0x4adae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4adb97
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x1bc]
call fcn.00403ca4
movsx esi, word [ebx + 0x17c]
call sub.kernel32.dll_GetTickCount
mov edi, eax
cmp byte [ebx + 0x200], 0
je 0x4adb7c
push 0
push 1
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004aab5c
movsx eax, word [ebx + 0x17c]
cmp esi, eax
jne 0x4adb5b
mov eax, dword [ebx + 0x1bc]
mov edx, dword [ebp - 0xc]
call fcn.00403f98
je 0x4adb61
mov byte [ebp - 5], 1
jmp 0x4adb7c
mov dl, 1
mov eax, ebx
call fcn.0057c8b4
call sub.kernel32.dll_GetTickCount
sub eax, edi
imul edx, dword [ebp - 4], 0x3e8
cmp eax, edx
jbe 0x4adb24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adb9e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403c30
ret
Function at 0x4adba8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4adde9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17f], 0
jne 0x4addcb
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c3], 1
xor edx, edx
push ebp
push 0x4addc4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 5], 0
jne 0x4adc1c
lea edx, [ebp - 0x14]
mov eax, 0x4a4b24
call fcn.00405c64
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00579b38
mov eax, dword [ebp - 4]
inc dword [eax + 0x2c8]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2c4]
xor al, 1
and al, byte [ebp - 5]
je 0x4adc33
mov esi, 0x2710
jmp 0x4adc51
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c4], 0
jne 0x4adc4c
cmp byte [ebp - 5], 0
jne 0x4adc4c
mov esi, 0x3e8
jmp 0x4adc51
mov esi, 0x1388
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x4add84
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c8], 0
je 0x4add84
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1bc]
call fcn.00403ca4
mov eax, dword [ebp - 4]
movsx ebx, word [eax + 0x17c]
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004aab5c
mov eax, dword [ebp - 4]
movsx edi, word [eax + 0x17c]
mov edx, dword [ebp - 4]
movsx edx, word [edx + 0x17c]
cmp ebx, edx
je 0x4add74
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x17c]
cmp ax, 0xc8
je 0x4adcde
cmp ax, 0x1f4
jne 0x4add74
mov eax, dword [ebp - 4]
dec dword [eax + 0x2c8]
mov eax, dword [ebp - 4]
cmp word [eax + 0x17c], 0x1f4
jne 0x4add28
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1bc]
mov eax, 0x4ade00
call fcn.00404170
test eax, eax
jg 0x4add1d
mov edx, dword [ebp - 0xc]
mov eax, 0x4ade00
call fcn.00404170
test eax, eax
jle 0x4add28
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c8], edx
mov eax, dword [ebp - 4]
add eax, 0x1bc
mov edx, dword [ebp - 0xc]
call fcn.00403c60
mov eax, dword [ebp - 4]
mov word [eax + 0x17c], bx
cmp edi, 0xc8
jne 0x4add62
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c4], 0
jne 0x4add62
mov dx, 0x64
mov eax, dword [ebp - 4]
call fcn.0057c848
cmp byte [ebp - 5], 0
je 0x4add84
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c8], 0
je 0x4add84
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp esi, eax
jae 0x4adc59
cmp byte [ebp - 5], 0
jne 0x4addac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c4], 0
je 0x4addac
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp esi, eax
jae 0x4addac
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c4], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4addcb
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c3], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4addf0
lea eax, [ebp - 0x14]
call fcn.00403c0c
lea eax, [ebp - 0xc]
call fcn.00403c0c
ret
Function at 0x4c1400
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4c1468
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov ebx, 0x589d08
lea eax, [ebp - 4]
mov edx, esi
add dl, 0x40
call fcn.00403db0
lea eax, [ebp - 4]
mov edx, 0x4c147c
call fcn.00403e90
mov eax, dword [ebp - 4]
call fcn.0040404c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x1b
jne 0x4c141f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c146f
lea eax, [ebp - 4]
call fcn.00403c0c
ret

Function at 0x4c2eb8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov ebx, ecx
test ebx, ebx
js 0x4c2edf
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4c2ed8
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040403c
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010c4]
call fcn.004046b4
xor eax, eax
push ebp
push 0x4c306d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4c3035
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4c3094
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403f48
mov eax, dword [ebp - 0x158]
call fcn.0040404c
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c3029
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4c300e
test al, 2
jne 0x4c300e
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4c3094
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403e38
push dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403f48
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x10]
call fcn.0049eab0
call fcn.00467bb0
test al, al
je 0x4c2fcc
or edi, 0xffffffff
jmp 0x4c2fdb
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0049ecb4
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0049ea10
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403e38
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x38]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4c2f61
push ebx
call sub.kernel32.dll_FindClose
add esi, 4
dec dword [ebp - 0x14]
jne 0x4c2f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3074
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00403c30
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010c4]
call fcn.0040459c
lea eax, [ebp - 4]
call fcn.00403c0c
ret
Function at 0x4c4180
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c4280
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x14]
mov edx, dword [0x585ebc]
mov edx, dword [edx]
call fcn.00403f98
je 0x4c41c6
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403ca4
jmp 0x4c4267
lea edx, [ebp - 0x164]
mov eax, ebx
call fcn.004c4290
mov edx, dword [ebp - 0x164]
lea eax, [ebx + 0x14]
call fcn.00403c60
cmp dword [ebx + 0x14], 0
jne 0x4c4238
lea eax, [ebp - 0x160]
xor ecx, ecx
mov edx, 0x160
call fcn.00402c18
push 0x208
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.004c411c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4c4238
lea eax, [ebp - 0x154]
call fcn.00409878
mov ecx, eax
lea edx, [ebp - 0x154]
lea eax, [ebx + 0x14]
call fcn.00403cf0
mov eax, ebx
call fcn.004c40a0
test al, al
je 0x4c425d
mov eax, dword [ebx + 0x14]
call fcn.00403e88
mov edx, eax
sub edx, 3
lea eax, [ebx + 0x14]
mov ecx, 4
call fcn.004040cc
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00403ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4287
lea eax, [ebp - 0x164]
call fcn.00403c0c
ret
Function at 0x4c8414
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.0040403c
xor eax, eax
push ebp
push 0x4c8499
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040404c
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4c8471
dec eax
je 0x4c844f
sub eax, 2
je 0x4c8471
jmp 0x4c8483
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0049ffec
test al, al
je 0x4c8483
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov bx, 0xffa3
call fcn.00403184
jmp 0x4c8483
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov bx, 0xffa3
call fcn.00403184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c84a0
lea eax, [ebp - 4]
call fcn.00403c0c
ret

Function at 0x4c84a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c8553
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x360], 0
jne 0x4c84f2
push 0x465
mov eax, dword [ebp - 4]
call fcn.00447134
mov ecx, eax
mov dl, 1
mov eax, dword [0x4c4ba8]
call fcn.004c4c14
mov edx, dword [ebp - 4]
mov dword [edx + 0x360], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.004c50e0
lea eax, [ebp - 8]
mov edx, 0x4c8568
call fcn.00403ca4
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4c853d
test bl, 1
je 0x4c8536
lea eax, [ebp - 8]
call fcn.00404058
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004c8414
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4c851a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c855a
lea eax, [ebp - 8]
call fcn.00403c0c
ret
Function at 0x4c90f4
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040403c
xor eax, eax
push ebp
push 0x4c9206
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c91d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040404c
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c91b6
test byte [ebp - 0x14c], 0x10
jne 0x4c9199
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00403e38
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408a68
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4c915c
push ebx
call sub.kernel32.dll_FindClose
mov byte [ebp - 5], 1
jmp 0x4c91c2
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c91e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret