joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4751f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47520f
add esp, 0xfffffff0
call fcn.00403850
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422ddc
mov eax, dword [0x4a71ac]
cmp word [eax + 2], 0
jne 0x475237
mov eax, dword [0x4a71ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476978
mov eax, dword [0x4a7284]
cmp word [eax + 2], 0
jne 0x475251
mov eax, dword [0x4a7284]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476b70
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417998]
call fcn.004034bc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417998]
call fcn.004034bc
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425338]
call fcn.0042cbe4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4753d8
mov eax, dword [0x4a7090]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042cfb4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x477110
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a7090]
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.0040e150
test eax, eax
je 0x475346
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ca8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e178
test eax, eax
je 0x47535a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045bc
mov eax, dword [0x4a6f1c]
cmp byte [eax], 0
jne 0x47538e
mov eax, ebx
call fcn.00475500
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004772ec
mov eax, ebx
call fcn.00477cd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4753ce
call fcn.004038a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475780
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a8bc8]
cmp dword [eax + 0x30], 0
je 0x47582a
cmp dword [ebx + 0x94], 0
jne 0x475824
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475710
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475824
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 0x4757ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475824
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.0041a2b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4757f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47638c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4763c1
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.0040442c
jmp 0x4763ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404390
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4774c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477509
mov eax, esi
call fcn.0045bd80
test al, al
je 0x477509
mov eax, dword [ebx + 0x84]
call fcn.0045b888
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477509
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b888
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47821c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402e68
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040480c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.00477f04
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x478338
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040480c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x478379
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00477f04
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x47e8dc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e942
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a6fac]
cmp byte [eax], 0
je 0x47e910
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 8], eax
jmp 0x47e92c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404574
mov eax, dword [ebp - 0xc]
call fcn.0040480c
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e949
lea eax, [ebp - 0xc]
call fcn.0040433c
ret

Function at 0x47ebfc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ec62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a6fac]
cmp byte [eax], 0
je 0x47ec30
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
jmp 0x47ec4c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404574
mov eax, dword [ebp - 0xc]
call fcn.0040480c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ec69
lea eax, [ebp - 0xc]
call fcn.0040433c
ret

Function at 0x47ec70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ece1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a6fac]
cmp byte [eax], 0
je 0x47ecab
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 0xc], eax
jmp 0x47eccb
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404574
mov eax, dword [ebp - 0x10]
call fcn.0040480c
push eax
call sub.kernel32.dll_CreateDirectoryA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ece8
lea eax, [ebp - 0x10]
call fcn.0040433c
ret
Function at 0x47ecf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ed56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a6fac]
cmp byte [eax], 0
je 0x47ed24
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 8], eax
jmp 0x47ed40
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404574
mov eax, dword [ebp - 0xc]
call fcn.0040480c
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ed5d
lea eax, [ebp - 0xc]
call fcn.0040433c
ret

Function at 0x47f094
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00407714
cmp ax, 0xffff
jne 0x47f0be
mov eax, dword [ebp - 8]
neg eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 4
and eax, 0xffff
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
and eax, 0xf
mov dword [ebp - 0x20], eax
push 6
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47f18e
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47f18e
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x47f144
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
add eax, eax
add eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x2c]
jne 0x47f12b
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov dword [ebp - 0x10], eax
add dword [ebp - 0x1c], 2
cmp dword [ebp - 0xc], 0
je 0x47f18e
cmp dword [ebp + 8], 0
jle 0x47f18e
mov eax, dword [ebp + 8]
dec eax
mov edx, dword [ebp - 0x10]
call fcn.0042d648
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x47f182
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407728
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov word [eax + edx*2], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x47f704
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47f722
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.0047e384
jmp 0x47f751
call sub.kernel32.dll_GetCommandLineW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0047f570
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x47f751
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404da8
je 0x47f751
dec dword [ebp - 4]
jmp 0x47f72a
mov esp, ebp
pop ebp
ret
Function at 0x480274
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4802de
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.004045bc
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409338
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4802e5
lea eax, [ebp - 0x14]
call fcn.0040433c
ret

Function at 0x4803b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x480413
lea eax, [ebp - 4]
push eax
push 0x40
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4803e7
call fcn.0040e798
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 6
call fcn.004029b4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x480413
call fcn.0040e798
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x480b5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x480c04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x480c40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SetEndOfFile
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x482d20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482f14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [0x4a8f84], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xe4], 0
cmp dword [0x4a510c], 0
jne 0x482d83
lea eax, [ebp - 0x34]
mov ecx, 0x482f2c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.00404658
mov eax, dword [ebp - 0x34]
call fcn.0040480c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a510c], eax
push 0x482f34
mov eax, dword [0x4a510c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a8f88], eax
mov eax, dword [ebp - 4]
add eax, 0xf0
push eax
mov eax, dword [0x4a6f24]
push eax
push 0x4a50fc
call dword [0x4a8f88]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0047df88
test al, al
jne 0x482dd0
mov byte [ebp - 5], 1
jmp 0x482ef1
mov eax, dword [ebp - 4]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0047ddc0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00482554
mov eax, dword [ebp - 0x38]
mov edx, 0x482f48
call fcn.00404da8
jne 0x482e40
mov edx, 0x40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0047de94
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 0x18]
call fcn.00409664
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x60]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x64]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.00404c80
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
call fcn.00481050
mov dl, 1
mov eax, dword [0x4823cc]
call fcn.004034bc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x482e8f
sub eax, 0xfffffff0
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x482ea2
sub eax, 0xffffffdc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
sete byte [ebp - 5]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov byte [eax + 0xec], 1
cmp byte [ebp - 5], 0
jne 0x482ef1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
mov eax, dword [eax + 0xc]
call fcn.00480988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482f1b
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x34]
call fcn.0040433c
ret
Function at 0x484fe8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
xor edx, edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x16c]
mov edx, dword [0x407dcc]
call fcn.00405058
xor eax, eax
push ebp
push 0x48515a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 0x14], ax
xor eax, eax
push ebp
push 0x48511c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040460c
cmp eax, 3
jne 0x48509c
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x48509c
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x48509c
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.00404524
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0xc]
call fcn.00408b3c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
sub eax, 0x41
cmp eax, 0x1f
ja 0x485094
bt dword [ebp - 0x10], eax
setb al
mov byte [ebp - 5], al
jmp 0x485104
push ebp
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.00484f98
pop ecx
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x16c]
mov edx, 0x10
call fcn.00409850
test eax, eax
sete byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x4850d4
cmp dword [ebp - 4], 0
jne 0x4850d8
xor eax, eax
jmp 0x4850da
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4850f3
mov eax, dword [ebp - 0x164]
and eax, 0x10
cmp eax, 0x10
sete byte [ebp - 5]
cmp byte [ebp - 0x11], 0
je 0x485104
lea eax, [ebp - 0x16c]
call fcn.004098a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485123
movzx eax, word [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x485210
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov dword [ebp - 4], eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040480c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x164]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x485250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48549e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
call fcn.0040433c
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.00404998
cmp dword [ebp + 0x20], 0
je 0x48529f
mov eax, dword [ebp + 0x20]
call fcn.0045b888
mov dword [ebp - 0x20], eax
jmp 0x4852a4
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x104
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x485488
xor eax, eax
push ebp
push 0x485481
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov al, byte [ebp + 0x18]
call fcn.00484ab0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
xor eax, eax
push ebp
push 0x48545f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
call fcn.0040480c
mov dword [ebp - 0x38], eax
mov al, byte [ebp + 0x14]
call fcn.00484b04
mov dword [ebp - 0x34], eax
test byte [ebp + 0x14], 0x40
je 0x485323
or dword [ebp - 0x34], 0x20
cmp byte [ebp + 0x10], 0
je 0x48532d
or dword [ebp - 0x34], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 0x22], ax
xor eax, eax
push ebp
push 0x485376
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48537d
movzx eax, word [ebp - 0x22]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4854a5
lea eax, [ebp - 0x48]
call fcn.0040433c
ret