joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49269c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49272d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405264
lea eax, [ebp - 4]
push eax
push esi
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x492717
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4926fd
mov eax, ebx
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.004054d4
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x492717
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492734
lea eax, [ebp - 8]
call fcn.00406ef0
ret

Function at 0x4941ec
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
test ebx, ebx
je 0x494269
call sub.user32.dll_GetForegroundWindow
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x494269
xor eax, eax
push ebp
push 0x494262
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.user32.dll_SetForegroundWindow
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494269
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_AttachThreadInput
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494918
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x494936
mov al, 1
jmp 0x4949f2
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403a08
mov dword [ebp - 0x44], 0x3c
test bl, bl
je 0x494957
mov dword [ebp - 0x40], 0x40
call fcn.00494350
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.00405724
mov dword [ebp - 0x34], eax
test edi, edi
je 0x494977
mov eax, edi
call fcn.00405724
mov dword [ebp - 0x30], eax
cmp dword [ebp - 4], 0
je 0x494988
mov eax, dword [ebp - 4]
call fcn.00405724
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
test bl, al
je 0x4949f2
mov eax, dword [0x592590]
mov eax, dword [eax]
call fcn.0048958c
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4949bb
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4949c5
lea edx, [ebp - 8]
push edx
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
jne 0x4949de
mov eax, dword [0x592590]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x4949a1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4949eb
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4949fc
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x494a0b
xor eax, eax
pop esi
pop ebx
ret
push esi
mov eax, ebx
call fcn.00405724
push eax
call sub.kernel32.dll_WinExec
pop esi
pop ebx
ret

Function at 0x494a1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x494ae4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x494b00
call fcn.004052fc
test bl, bl
je 0x494a5d
lea eax, [ebp - 8]
mov ecx, 0x494b10
mov edx, dword [ebp - 4]
call fcn.00405570
jmp 0x494a68
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004052fc
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00405724
push eax
push 0x494b14
mov eax, esi
call fcn.00405724
push eax
mov eax, dword [ebp - 8]
call fcn.00405724
push eax
push 0
call sub.shell32.dll_ShellExecuteA
test bl, bl
je 0x494ac3
cmp eax, 0x1b
jne 0x494ac3
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00405724
push eax
push 0x494b14
mov eax, esi
call fcn.00405724
push eax
mov eax, dword [ebp - 4]
call fcn.00405724
push eax
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494aeb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405288
ret
Function at 0x494b18
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0x494b94
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x494b85
xor edx, edx
push ebp
push 0x494b7e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x494ba4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x494b61
push ebx
call eax
mov byte [ebp - 1], 1
jmp 0x494b67
push ebx
call sub.kernel32.dll_GetSystemInfo
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494b8b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
push ebx
call sub.kernel32.dll_GetSystemInfo
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x496664
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
cmp ebp, 0xffffffff
jne 0x49667e
mov eax, dword [esi]
call fcn.00405524
mov ebp, eax
test ebp, ebp
je 0x4966c7
mov eax, esi
call fcn.0040577c
mov edx, dword [esi]
mov dl, byte [edx]
mov ecx, dword [esp]
xor dl, byte [ecx]
mov byte [eax], dl
mov edi, ebp
sub edi, 2
jl 0x4966bc
inc edi
mov ebx, 2
mov eax, esi
call fcn.0040577c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [esi]
xor dl, byte [ecx + ebx - 2]
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x4966a1
mov eax, dword [esi]
mov al, byte [eax + ebp - 1]
mov edx, dword [esp]
mov byte [edx], al
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4966d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
cmp ecx, 0xffffffff
jne 0x4966e5
mov eax, dword [esi]
call fcn.00405524
mov ecx, eax
test ecx, ecx
je 0x49672a
mov al, byte [ebx]
mov byte [esp], al
mov eax, dword [esi]
mov al, byte [eax + ecx - 1]
mov byte [ebx], al
mov ebx, ecx
cmp ebx, 2
jl 0x49671a
mov eax, esi
call fcn.0040577c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [esi]
xor dl, byte [ecx + ebx - 2]
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x4966fd
mov eax, esi
call fcn.0040577c
mov edx, dword [esi]
mov dl, byte [edx]
xor dl, byte [esp]
mov byte [eax], dl
pop edx
pop esi
pop ebx
ret

Function at 0x496730
Capabilities:
Encode data using xor

Disassembly:
push ebx
dec edx
test edx, edx
jl 0x496754
inc edx
movzx ebx, cx
shr ebx, 8
xor byte [eax], bl
xor ebx, ebx
mov bl, byte [eax]
add cx, bx
imul cx, cx, 0x92b7
add cx, 0x39ea
inc eax
dec edx
jne 0x496737
pop ebx
ret

Function at 0x496758
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, edx
dec esi
test esi, esi
jl 0x496787
inc esi
mov dl, byte [eax]
movzx ebx, cx
shr ebx, 8
xor bl, dl
mov byte [eax], bl
and edx, 0xff
add cx, dx
imul dx, cx, 0x92b7
add dx, 0x39ea
mov ecx, edx
inc eax
dec esi
jne 0x496762
pop esi
pop ebx
ret
Function at 0x49678c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
call fcn.00405524
mov edi, eax
test ebx, ebx
je 0x4967c4
test edi, edi
je 0x4967c4
dec ebx
test ebx, ebx
jl 0x4967c4
inc ebx
xor esi, esi
mov ecx, dword [esp]
mov eax, esi
cdq
idiv edi
mov al, byte [ebp + edx]
xor byte [ecx], al
inc esi
inc ecx
dec ebx
jne 0x4967b4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x496804
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, edi
call fcn.004052b8
cmp dword [ebx], 0
je 0x496890
mov eax, ebx
call fcn.0048b034
mov edi, eax
mov eax, ebx
mov edx, edi
call fcn.0049651c
test edi, edi
jle 0x49687b
mov dword [ebp - 0xc], edi
mov edi, 1
mov eax, dword [ebx]
mov al, byte [eax + edi - 1]
mov byte [ebp - 5], al
mov eax, ebx
call fcn.0040577c
mov dl, byte [ebp - 5]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
xor eax, eax
mov al, byte [ebp - 5]
add si, ax
imul ax, si, 0x92b7
add ax, 0x39ea
mov esi, eax
inc edi
dec dword [ebp - 0xc]
jne 0x496843
cmp dword [ebp - 4], 0
jle 0x496890
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, 1
call fcn.004057c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x496e8c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov byte [esp], 0x65
mov byte [esp + 1], 0x66
mov byte [esp + 2], 0x6f
mov byte [esp + 3], 0
lea eax, [esp + 0x108]
xor ecx, ecx
mov edx, 0x104
call fcn.00403a08
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00403a08
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x496f10
lea eax, [esp + 0x108]
push eax
push 0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jbe 0x496f10
mov eax, ebx
lea edx, [esp + 0x108]
mov ecx, 0x104
call fcn.004054d4
jmp 0x496f17
mov eax, ebx
call fcn.00405264
add esp, 0x20c
pop ebx
ret
Function at 0x499e5c
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 0x499f13
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405724
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x499e9e
call fcn.00404c80
jmp 0x499f1a
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00405724
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x499ec7
call fcn.00404c80
jmp 0x499f1a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x499f24
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x499ee8
call fcn.00404c80
jmp 0x499f1a
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 0x499f1a
mov eax, dword [ebp - 8]
call fcn.00402e80
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a188
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a1f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.00403a08
cmp dword [ebp - 4], 0
jne 0x49a1cb
mov word [ebp - 6], 0
lea eax, [ebp - 6]
mov dword [ebp - 4], eax
or ebx, 0x4008
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49a205
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a4e8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x49a694
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49a68c
mov word [ebp - 6], 0
xor eax, eax
push ebp
push 0x49a685
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x49a6a0
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x49a560
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x49a6a0
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x49a5a1
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.004289a0
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.004289a0
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.004289a0
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.004289a0
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x584be0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a68c
cmp dword [ebp - 4], 0
je 0x49a684
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a6a4
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.00499e50
test al, al
je 0x49a6d1
cmp dword [0x595ee0], 0x40047
jl 0x49a6d1
cmp byte [0x584be0], 0
jne 0x49a6d1
call fcn.0049a4e8
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x584be4]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x49a734
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x49a729
mov word [esp], 0
mov eax, dword [esi*4 + 0x584be4]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x49a6ed
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.00499e50
test al, al
je 0x49a6d1
cmp dword [0x595ee0], 0x40047
jl 0x49a6d1
cmp byte [0x584be0], 0
jne 0x49a6d1
call fcn.0049a4e8
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x584be4]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x49a734
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x49a729
mov word [esp], 0
mov eax, dword [esi*4 + 0x584be4]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret

Function at 0x4a2210
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4a22aa
push dword fs:[eax]
mov dword fs:[eax], esp
test edx, 0x40000000
jne 0x4a225c
lea edx, [ebp - 0x164]
mov eax, dword [0x59262c]
call fcn.004073b4
mov eax, dword [ebp - 0x164]
mov edx, ebx
call fcn.0049e090
jmp 0x4a2291
push 0x408
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4a228a
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call fcn.004054d4
jmp 0x4a2291
mov eax, ebx
call fcn.00405264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a22b1
lea eax, [ebp - 0x164]
call fcn.00405264
ret
Function at 0x4a2c34
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4a2c67
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4a2c60
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.00405714
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010e4]
call fcn.00405eb8
xor eax, eax
push ebp
push 0x4a2df5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4a2dbd
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4a2e1c
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004055e4
mov eax, dword [ebp - 0x158]
call fcn.00405724
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a2db1
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4a2d96
test al, 2
jne 0x4a2d96
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4a2e1c
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004054d4
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.004055e4
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.00499fe0
call fcn.004119ec
test al, al
je 0x4a2d54
or edi, 0xffffffff
jmp 0x4a2d63
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0049a188
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.00499f44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004054d4
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4a2ce9
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4a2cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2dfc
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00405288
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010e4]
call fcn.00405d78
lea eax, [ebp - 4]
call fcn.00405264
ret
Function at 0x4a3eb4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3f4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x592578]
cmp dword [eax + 4], 0x60000
jl 0x4a3eec
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004a4030
mov eax, dword [ebp - 8]
call fcn.004a1db4
test al, al
je 0x4a3f1c
mov eax, dword [ebp - 8]
call fcn.00405724
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4a3f1c
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x3c0]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3f52
lea eax, [ebp - 8]
call fcn.00405264
ret

Function at 0x4a7b90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00405724
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4a7bd1
dec eax
je 0x4a7bb3
sub eax, 2
je 0x4a7bd1
jmp 0x4a7be2
mov al, byte [ebx]
call fcn.0049b920
test al, al
je 0x4a7be2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9f
call fcn.004045fc
jmp 0x4a7be2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9f
call fcn.004045fc
pop esi
pop ebx
pop ebp
ret

Function at 0x4a7be8
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 0x4a7cab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c8], 0
jne 0x4a7c36
push 0x465
mov eax, dword [ebp - 4]
call fcn.00476368
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a41cc]
call fcn.004a4238
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c8], eax
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x3d8]
je 0x4a7c95
mov eax, dword [ebp - 4]
mov dword [eax + 0x3d8], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c8]
call fcn.004a4700
lea eax, [ebp - 8]
mov edx, 0x4a7cc0
call fcn.004052fc
xor esi, esi
test ebx, ebx
je 0x4a7c95
test bl, 1
je 0x4a7c8e
lea eax, [ebp - 8]
call fcn.0040577c
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004a7b90
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4a7c72
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7cb2
lea eax, [ebp - 8]
call fcn.00405264
ret
Function at 0x4a884c
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.00405714
xor eax, eax
push ebp
push 0x4a896a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a893d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405724
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a891a
test byte [ebp - 0x14c], 0x10
jne 0x4a88fd
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004054d4
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040b238
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4a88c0
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x4a8926
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 0x4a8944
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4adbe4
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x4adbf3
je 0x4adbfb
jmp 0x4adc23
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4adc28
cmp dword [ebx + 8], 0
jne 0x4adc1b
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x592590]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4adc28
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret