joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458ec0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4cecb8]
cmp byte [eax + 0xc], 0
je 0x45902d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459026
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4cfb70], 0
jne 0x458f14
push 0x459034
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45903c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb70], eax
cmp dword [0x4cbeec], 0
jne 0x45900f
push 0x45904c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4cbeec], eax
cmp dword [0x4cbeec], 0
je 0x45900f
push 0x459058
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb74], eax
push 0x459068
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb78], eax
push 0x45907c
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb7c], eax
push 0x459094
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb80], eax
push 0x4590ac
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb84], eax
push 0x4590c0
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb88], eax
push 0x4590d8
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb8c], eax
push 0x4590f0
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb90], eax
push 0x45910c
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb94], eax
push 0x459118
mov eax, dword [0x4cbeec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cfb98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45902d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404738
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45d443
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004049a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464b88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x464bd8]
test si, 4
je 0x464b9c
or bl, 1
test si, 8
je 0x464ba6
or bl, 4
test si, 1
je 0x464bb0
or bl, 8
test si, 2
je 0x464bba
or bl, 0x10
test si, 0x10
je 0x464bc4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464bd3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x464bdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x464c14]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464bf5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464c04
or bl, 4
test esi, 0x20000000
je 0x464c0f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46b2bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46b2ce
add esp, 0xfffffff0
call fcn.00403cec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420cf4
mov eax, dword [0x4ce860]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b660
mov eax, dword [0x4ce870]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b66c
mov eax, ebx
call fcn.0046b678
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x467a94
push eax
push 0
push 0
mov eax, dword [0x4cea38]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4227a0]
call fcn.00423f14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4227a0]
call fcn.00423f14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4227a0]
call fcn.00423f14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046ba98
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b974
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b974
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b974
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b40b
call fcn.00403d44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46b758
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46b903
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46b8e4
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403998
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404738
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b8d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00459220
test al, al
je 0x46b8c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46b914
lea eax, [ebp - 0x254]
call fcn.0040a1c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b8c6
xor eax, eax
push ebp
push 0x46b8bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46b94c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46b8a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049a8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46b8a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b8c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b7c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ce50
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b90a
lea eax, [ebp - 0x260]
call fcn.00404738
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cfbbc]
cmp byte [eax + 0xa5], 0
jne 0x46c2a9
cmp dword [0x4cfbd4], 0
jne 0x46c26a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46c1f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cfbd4], eax
cmp dword [0x4cfbd0], 0
jne 0x46c285
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cfbd0], eax
cmp dword [0x4cfbd8], 0
jne 0x46c2a9
push esp
push 0
push 0
push 0x46c198
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4cfbd8], eax
pop edx
ret
Function at 0x46c3a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46c3b7
add esp, 0xfffffff0
call fcn.00403cec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420cf4
mov eax, dword [0x4cea1c]
cmp word [eax + 2], 0
jne 0x46c3df
mov eax, dword [0x4cea1c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046db20
mov eax, dword [0x4ceafc]
cmp word [eax + 2], 0
jne 0x46c3f9
mov eax, dword [0x4ceafc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046dd18
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418ee8]
call fcn.00403998
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 [0x423280]
call fcn.0042ad5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46c580
mov eax, dword [0x4ce8f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b12c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46e2c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ce8f0]
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.0040dbcc
test eax, eax
je 0x46c4ee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ba8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbf4
test eax, eax
je 0x46c502
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.004049a8
mov eax, dword [0x4ce754]
cmp byte [eax], 0
jne 0x46c536
mov eax, ebx
call fcn.0046c6a8
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.0046e4a4
mov eax, ebx
call fcn.0046ee68
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46c576
call fcn.00403d44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c928
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4cfbbc]
cmp dword [eax + 0x30], 0
je 0x46c9d2
cmp dword [ebx + 0x94], 0
jne 0x46c9cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46c8b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46c9cc
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 0x46c992
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46c9cc
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.0041b250
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46c9a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46d534
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 0x46d569
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.00404828
jmp 0x46d576
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040478c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46e680
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46e6c1
mov eax, esi
call fcn.004547a4
test al, al
je 0x46e6c1
mov eax, dword [ebx + 0x84]
call fcn.004544a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46e6c1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004544a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x484934
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x484962
mov eax, ebx
call fcn.004853e8
cmp dword [ebx + 0x40], 0
je 0x48495b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4849d3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4849c5
cmp dword [ebx + 8], 0
je 0x484984
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x484996
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4849c5
cmp dword [ebx + 8], 0
je 0x484977
cmp eax, 3
je 0x4849a9
dec eax
jne 0x484977
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x484977
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x484977
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4849f1
cmp dword [ebx + 0x14], 0xcc
je 0x4849f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004849fc
pop ebx
ret
Function at 0x49750c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x237], 0
je 0x49753e
movzx eax, word [ebx + 0x232]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2bc]
push eax
movzx eax, word [ebx + 0x230]
push eax
call sub.kernel32.dll_MulDiv
mov esi, eax
jmp 0x497545
movzx esi, word [ebx + 0x230]
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2bc], eax
cmp byte [ebx + 0x235], 0
je 0x497583
mov al, byte [ebx + 0x234]
xor edx, edx
mov dl, al
cmp esi, edx
jge 0x497578
mov edx, esi
push edx
mov edx, eax
pop eax
sub dl, al
mov eax, ebx
call fcn.0049642c
jmp 0x4975ae
xor edx, edx
mov eax, ebx
call fcn.0049642c
jmp 0x4975ae
mov al, byte [ebx + 0x234]
xor edx, edx
mov dl, al
mov ecx, 0x64
sub ecx, esi
cmp edx, ecx
jge 0x4975a5
mov edx, esi
add dl, al
mov eax, ebx
call fcn.0049642c
jmp 0x4975ae
mov dl, 0x64
mov eax, ebx
call fcn.0049642c
cmp byte [ebx + 0x235], 0
je 0x4975c0
cmp byte [ebx + 0x234], 0
jne 0x4975d7
cmp byte [ebx + 0x235], 0
jne 0x4975d2
cmp byte [ebx + 0x234], 0x64
jne 0x4975d7
xor eax, eax
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret

Function at 0x498204
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.00403294
push 0x208
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x15c]
mov ecx, 0x104
call fcn.004049a8
mov esp, ebp
pop ebp
ret
Function at 0x498a48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
xor edx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498c08
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x498a84
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x498aba
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00418764
test al, al
jne 0x498aba
lea edx, [ebp - 0x140]
mov eax, 0x498120
call fcn.00406720
mov eax, dword [ebp - 0x140]
call fcn.00498128
xor eax, eax
push ebp
push 0x498be3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00498c34
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x13a]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404bf8
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x44], 8
je 0x498b05
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x44], 4
je 0x498b14
or dword [ebp - 0x24], 4
jmp 0x498b2c
mov eax, dword [ebp - 4]
test byte [eax + 0x44], 0x10
je 0x498b2c
or dword [ebp - 0x24], 0x40
push 0
call sub.ole32.dll_OleInitialize
mov byte [ebp - 0x11], 1
mov eax, 0x4987f8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
add eax, 0x70
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
cmp dword [ebp - 0x10], 0
je 0x498bb8
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x498bb1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x10]
call fcn.004981a4
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.0040478c
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 0x2c]
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498bbc
mov eax, dword [ebp - 0x10]
call fcn.00498148
ret
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498bea
cmp byte [ebp - 0x11], 0
je 0x498bd4
call sub.ole32.dll_OleUninitialize
cmp dword [ebp - 0xc], 0
je 0x498be2
mov eax, dword [ebp - 0xc]
call fcn.00498148
ret
Function at 0x4a3954
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [ebp - 9], 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404bf8
push eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x4a3abc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a3b4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a3fe4
test al, al
je 0x4a3afb
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004047d0
jmp 0x4a3b03
lea eax, [ebp - 0x10]
call fcn.004a3a80
lea eax, [ebp - 0x114]
push eax
mov al, byte [ebp - 5]
xor al, 1
and eax, 0x7f
push eax
push 0x4a3b5c
mov eax, dword [ebp - 0x10]
call fcn.00404bf8
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004049a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3b56
lea eax, [ebp - 0x10]
call fcn.00404738
ret

Function at 0x4a3bdc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a3c75
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004099a0
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x1c]
mov eax, 0x4a3c8c
call fcn.00404d3c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4a3c5f
mov eax, dword [ebp - 0x1c]
call fcn.004049f8
mov ecx, eax
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
inc edx
lea eax, [ebp - 0x1c]
call fcn.00404c98
mov eax, dword [ebp - 0x1c]
call fcn.004049f8
mov ecx, eax
lea eax, [ebp - 0x15]
mov edx, dword [ebp - 0x1c]
call fcn.00409c28
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3c7c
lea eax, [ebp - 0x1c]
call fcn.00404738
ret
Function at 0x4a3de4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a3fbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040988c
cmp dword [ebp - 0x20], 0
jne 0x4a3e35
lea eax, [ebp - 0x24]
call fcn.00409b44
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040988c
lea eax, [ebp - 0x20]
mov edx, 0x4a3fd4
call fcn.00404a00
mov eax, dword [ebp - 4]
call fcn.004a454c
sub al, 2
jb 0x4a3e55
je 0x4a3e68
jmp case.default.0x4a3ec8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jmp case.default.0x4a3ec8
mov edx, dword [ebp - 4]
mov eax, 0x4a3fe0
call fcn.00404d3c
dec eax
jne 0x4a3eab
push ebp
call fcn.004a3d84
pop ecx
test al, al
je 0x4a3e98
push ebp
mov eax, dword [ebp - 0x20]
call fcn.004a3c90
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp case.default.0x4a3ec8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0x7fffffff
jmp case.default.0x4a3ec8
mov eax, dword [ebp - 0x20]
call fcn.00404bf8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 6
ja case.default.0x4a3ec8
jmp dword [eax*4 + 0x4a3ecf]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jmp case.default.0x4a3ec8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jmp case.default.0x4a3ec8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jmp case.default.0x4a3ec8
push ebp
mov eax, dword [ebp - 0x20]
call fcn.004a3c90
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp case.default.0x4a3ec8
push ebp
mov eax, dword [ebp - 0x20]
call fcn.004a3d58
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp case.default.0x4a3ec8
push ebp
mov eax, dword [ebp - 0x20]
call fcn.004a3c90
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp case.default.0x4a3ec8
push ebp
mov eax, dword [ebp - 0x20]
call fcn.004a3c90
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4a3f6f
cmp dword [ebp - 0x18], 0xffffffff
jb 0x4a3f84
jmp 0x4a3f71
jl 0x4a3f84
cmp dword [ebp - 0x14], 0
jne 0x4a3f82
cmp dword [ebp - 0x18], 0x7fffffff
jbe 0x4a3f94
jmp 0x4a3f84
jle 0x4a3f94
mov dword [ebp - 0x10], 0x7fffffff
mov dword [ebp - 0xc], 0
jmp 0x4a3fa0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3fc2
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040475c
ret