joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481b18
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.004077a8
cmp ax, 0xffff
jne 0x481b42
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 0x481c12
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 0x481c12
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 0x481bc8
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 0x481baf
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 0x481c12
cmp dword [ebp + 8], 0
jle 0x481c12
mov eax, dword [ebp + 8]
dec eax
mov edx, dword [ebp - 0x10]
call fcn.0042ed68
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x481c06
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004077bc
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 0x48218c
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 0x4821aa
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.00480cac
jmp 0x4821d9
call sub.kernel32.dll_GetCommandLineW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00481ff8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4821d9
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404e04
je 0x4821d9
dec dword [ebp - 4]
jmp 0x4821b2
mov esp, ebp
pop ebp
ret

Function at 0x482d00
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 0x482d6a
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.00404618
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409620
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482d71
lea eax, [ebp - 0x14]
call fcn.00404398
ret
Function at 0x482e44
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 0x482ea3
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 0x482e77
call fcn.0040f6cc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 6
call fcn.004029a4
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 0x482ea3
call fcn.0040f6cc
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4874a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x94], 6
setae byte [ebp - 1]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4874d4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00404a88
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48752d
push 0x200
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x487534
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4876ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
and eax, 0x1ff
shl eax, 0x10
push eax
call sub.user32.dll_GetKeyNameTextW
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00404b7c
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408f88
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
dec ecx
mov edx, 2
call fcn.00404e88
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, 1
mov edx, 1
call fcn.00404e88
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00404d58
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4876bc
call fcn.00405000
test eax, eax
jle 0x487691
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4876bc
call fcn.00405000
mov ecx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 1
call fcn.00404e88
push dword [ebp - 0x5c]
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4876bc
call fcn.00405000
mov edx, eax
inc edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, 1
call fcn.00404e88
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00408f40
push dword [ebp - 0x60]
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4876bc
call fcn.00405000
mov edx, dword [ebp - 0xc]
sub edx, eax
dec edx
push edx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4876bc
call fcn.00405000
mov edx, eax
add edx, 2
mov eax, dword [ebp - 8]
mov eax, dword [eax]
pop ecx
call fcn.00404e88
push dword [ebp - 0x68]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4876b3
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00404aa0
ret
Function at 0x4876c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x48783c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 2]
and ax, 0xff
movzx eax, ax
cmp eax, 0x20
jge 0x487705
add eax, 0xfffffff8
sub eax, 2
jb 0x48774e
sub eax, 3
je 0x48774e
sub eax, 0xe
je 0x48774e
jmp 0x487778
add eax, 0xffffffe0
sub eax, 9
jb 0x48771f
add eax, 0xfffffffc
sub eax, 2
jb 0x48771f
add eax, 0xffffffbf
sub eax, 0x18
jb 0x48774e
jmp 0x487778
push ebp
push 0
mov ax, word [ebp - 2]
and ax, 0xff
movzx eax, ax
push eax
call sub.user32.dll_MapVirtualKeyW
add eax, 0x100
lea edx, [ebp - 0xc]
call fcn.00487534
pop ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00404ac4
jmp 0x487788
push ebp
push 0
mov ax, word [ebp - 2]
and ax, 0xff
movzx eax, ax
push eax
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0x10]
call fcn.00487534
pop ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00404ac4
jmp 0x487788
mov edx, dword [ebp - 8]
mov ax, word [ebp - 2]
and ax, 0xff
call fcn.004874d4
test byte [ebp - 1], 0x20
je 0x4877bb
push ebp
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0x14]
call fcn.00487534
pop ecx
push dword [ebp - 0x14]
push 0x48784c
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404dbc
test byte [ebp - 1], 0x80
je 0x4877ee
push ebp
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0x18]
call fcn.00487534
pop ecx
push dword [ebp - 0x18]
push 0x48784c
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404dbc
test byte [ebp - 1], 0x40
je 0x487821
push ebp
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0x1c]
call fcn.00487534
pop ecx
push dword [ebp - 0x1c]
push 0x48784c
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487843
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404aa0
ret
Function at 0x488328
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4884eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 8]
mov dword [edx + 0xbc], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
jne 0x48836d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x48839a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x6c], 0
je 0x48838c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x6c]
call fcn.00469894
mov dword [ebp - 4], eax
jmp 0x48839a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
call fcn.00469894
mov dword [ebp - 4], eax
mov eax, dword [0x4ae294]
cmp byte [eax], 0
je 0x4884d0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x4884d0
cmp dword [ebp - 0xc], 0
je 0x4884d0
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x1c]
and ax, word [0x4884f8]
mov dx, word [0x4884fc]
cmp dx, ax
jne 0x4884d0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3e], 0
je 0x4884d0
push ebp
call fcn.004881b4
pop ecx
test al, al
je 0x4884d0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00487f40
mov eax, dword [ebp - 8]
call fcn.0046b300
test eax, eax
jne 0x48846e
mov eax, dword [ebp - 8]
cmp word [eax + 0x60], 0
je 0x48846e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x488447
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x64], 0
jne 0x488447
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 4]
mov edx, dword [0x468278]
call fcn.004036d4
test al, al
jne 0x48846e
push dword [ebp - 0x10]
push 0x488504
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x60]
call fcn.004876c0
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404dbc
push ebp
lea eax, [ebp - 0x18]
call fcn.00488218
pop ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404e04
je 0x4884d0
push ebp
mov eax, dword [ebp - 0x10]
call fcn.00488298
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x34]
je 0x4884a9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x6c], 0
je 0x4884d0
mov eax, dword [ebp - 0xc]
mov edx, dword [0x468278]
call fcn.004036d4
test al, al
je 0x4884d0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4884d0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_DrawMenuBar
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4884f2
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404aa0
ret
Function at 0x48975c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4898e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ae294]
cmp byte [eax], 0
je 0x4897b7
mov eax, dword [ebp - 4]
mov edx, dword [0x450650]
call fcn.004036d4
test al, al
je 0x4897d2
mov eax, dword [ebp - 4]
call fcn.0045e4dc
test al, al
je 0x4897d2
mov eax, dword [ebp - 4]
call fcn.0045dfe4
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x4897d2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00455780
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00404c60
jmp 0x4898b7
mov eax, dword [ebp - 4]
mov edx, dword [0x450650]
call fcn.004036d4
test al, al
jne 0x489833
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00489634
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x489812
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00455780
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00404c60
jmp 0x4898b7
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00455780
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 0x38
call fcn.0048003c
jmp 0x4898b7
mov eax, dword [ebp - 4]
call fcn.0045e4dc
test al, al
jne 0x489865
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00455780
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00404c60
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004896ac
jmp 0x4898b7
mov eax, dword [ebp - 4]
call fcn.0045dfe4
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, dword [ebp - 8]
call fcn.00405050
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404cec
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404cdc
push eax
mov eax, dword [ebp - 4]
call fcn.0045dfe4
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404cec
mov edx, eax
dec edx
mov eax, dword [ebp - 8]
call fcn.00405050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4898e9
lea eax, [ebp - 0x20]
call fcn.00404398
lea eax, [ebp - 0x1c]
call fcn.00404a88
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004043bc
ret

Function at 0x48c0e4
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x48c07c
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b0030], eax
cmp dword [0x4b0030], 0
jne 0x48c10e
call fcn.0040f6cc
pop ebp
ret

Function at 0x48fa8c
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 0x48fb34
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 0x48fb70
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 0x495508
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 8], edx
mov edi, eax
lea eax, [ebp - 0x164]
mov edx, dword [0x407e60]
call fcn.004050b4
xor eax, eax
push ebp
push 0x495666
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 0xa], ax
xor eax, eax
push ebp
push 0x495628
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404668
cmp eax, 3
jne 0x4955b2
cmp byte [edi + 1], 0x3a
jne 0x4955b2
cmp byte [edi + 2], 0x5c
jne 0x4955b2
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
lea eax, [ebp - 0x168]
mov dl, byte [edi]
call fcn.00404580
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 8]
call fcn.00408c1c
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
sub eax, 0x41
cmp eax, 0x1f
ja 0x4955aa
bt esi, eax
setb al
mov byte [ebp - 1], al
jmp 0x495610
lea edx, [ebp - 0x16c]
mov eax, edi
call fcn.004954d0
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x164]
mov edx, 0x10
call fcn.00409c68
test eax, eax
sete bl
test bl, bl
je 0x4955e2
test edi, edi
jne 0x4955e6
xor eax, eax
jmp 0x4955e8
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x495601
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
sete byte [ebp - 1]
test bl, bl
je 0x495610
lea eax, [ebp - 0x164]
call fcn.00409cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49562f
movzx eax, word [ebp - 0xa]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x49574c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x495990
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
call fcn.00404398
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.004049f4
test ebx, ebx
je 0x49579a
mov eax, ebx
call fcn.0045dfe4
mov ebx, eax
jmp 0x49579c
xor ebx, ebx
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 0x49597a
xor eax, eax
push ebp
push 0x495973
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov al, byte [ebp + 0x18]
call fcn.0049507c
push eax
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
xor eax, eax
push ebp
push 0x495951
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
call fcn.00404868
mov dword [ebp - 0x34], eax
mov al, byte [ebp + 0x14]
call fcn.004950bc
mov dword [ebp - 0x30], eax
test byte [ebp + 0x14], 0x40
je 0x495815
or dword [ebp - 0x30], 0x20
cmp byte [ebp + 0x10], 0
je 0x49581f
or dword [ebp - 0x30], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 0x1e], ax
xor eax, eax
push ebp
push 0x495868
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
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 0x49586f
movzx eax, word [ebp - 0x1e]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495997
lea eax, [ebp - 0x44]
call fcn.00404398
ret
Function at 0x495c58
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jne 0x495d32
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0
je 0x495d32
push 0x104
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x495d0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x495ce3
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, dword [ebp - 0x18]
call fcn.004045a0
jmp 0x495cee
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d13
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov ecx, 2
mov edx, 1
call fcn.004048c8
mov eax, dword [ebp - 0x228]
mov edx, 0x495ed4
call fcn.004047b4
jne 0x495df6
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetDesktopFolder
test eax, eax
jne 0x495e99
xor eax, eax
push ebp
push 0x495def
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x222]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov ecx, 0x104
call fcn.00405520
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x495de1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00496228
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
push eax
push 0
push 0x466
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495e99
ret
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetDesktopFolder
test eax, eax
jne 0x495e99
xor eax, eax
push ebp
push 0x495e67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x222]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov ecx, 0x104
call fcn.00405520
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x495e59
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00496228
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495e6e
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495ec6
lea eax, [ebp - 0x22c]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 0xc]
call fcn.00406160
ret