joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46577a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4657bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.0040492c
mov eax, dword [ebp - 0x1c]
call fcn.00465078
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x46569b
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.00404d84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00465d44
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46577a
xor eax, eax
push ebp
push 0x465773
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00465318
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.004657fc
test al, al
je 0x465751
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.0040497c
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x465751
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404d00
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x465748
mov eax, dword [ebp - 0x20]
call fcn.00404d00
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00404a74
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00465648
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4656fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46577a
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00465318
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x1c]
call fcn.00404d00
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.004652e0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4657c4
lea eax, [ebp - 0x48]
call fcn.00404894
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004048b8
ret

Function at 0x4657cc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404d00
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x4657fc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x1c
call fcn.004035bc
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [0x5679b8]
cmp byte [eax + 8], 0
je 0x465887
mov eax, dword [0x5679a8]
cmp dword [eax], 2
jne 0x465887
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
add dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
add dword [edx + 0xc], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x465890
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465959
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004657fc
test al, al
je 0x46593b
mov ecx, dword [ebp - 0x30]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040497c
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x46593b
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d00
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0x14]
call fcn.00404d00
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00404a74
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4658ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465960
lea eax, [ebp - 0x38]
call fcn.00404894
lea eax, [ebp - 0x14]
call fcn.00404894
ret
Function at 0x465964
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465a2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004657fc
test al, al
je 0x465a0f
mov ecx, dword [ebp - 0x28]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040497c
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x465a0f
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d00
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x14]
call fcn.00404d00
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00404a74
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4659be
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465a34
lea eax, [ebp - 0x38]
call fcn.00404894
lea eax, [ebp - 0x14]
call fcn.00404894
ret

Function at 0x465a38
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.004035bc
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.00404d00
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.004650f0
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x465c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.004650a0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404d00
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x465c98
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x567710]
mov dl, 1
mov eax, dword [0x464f10]
call fcn.0040e4d0
call fcn.004041fc
mov esp, ebp
pop ebp
ret 8
Function at 0x465ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
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.00404d00
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x465d02
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x5679c4]
mov dl, 1
mov eax, dword [0x464f10]
call fcn.0040e4d0
call fcn.004041fc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004650f0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x47714c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x477231
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5688a8], 0
jne 0x477213
lea eax, [ebp - 8]
mov edx, 0x477248
call fcn.0040492c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x477213
mov eax, dword [ebp - 0xc]
call fcn.00402f14
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47720c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4771f6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x477258
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4771f6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [0x5688a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477213
mov eax, dword [ebp - 0x14]
call fcn.00402f2c
ret
mov eax, dword [0x5688a8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477238
lea eax, [ebp - 8]
call fcn.00404894
ret

Function at 0x486d8c
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5688cc], 0
jne 0x486db2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x486cec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5688cc], eax
pop ebp
ret
Function at 0x491cf0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
test dl, dl
je 0x491d14
add esp, 0xfffffff0
call fcn.00403da4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491e30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48dfe0]
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00415bb8
mov dl, 1
mov eax, dword [0x464f70]
call fcn.00465134
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x491e0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00465264
mov edx, 0x491e60
mov eax, dword [ebp - 0xc]
call fcn.00465550
lea ecx, [ebp - 0x114]
mov edx, 0x491e94
mov eax, dword [ebp - 0xc]
call fcn.00465afc
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.004048e8
lea ecx, [ebp - 0x118]
mov edx, 0x491eac
mov eax, dword [ebp - 0xc]
call fcn.00465afc
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.004048e8
mov eax, dword [ebp - 0xc]
call fcn.00465218
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x491df5
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 4]
add eax, 0x1c
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404aec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491e12
mov eax, dword [ebp - 0xc]
call fcn.00403a08
ret
Function at 0x4a2c54
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4a2c67
add esp, 0xfffffff0
call fcn.00403da4
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004039ac
mov ecx, edi
mov dl, 1
mov eax, dword [0x4a2b4c]
call fcn.0043a800
mov esi, eax
mov dword [ebx + 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4a2ae8
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x568940], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
test eax, eax
je 0x4a2cba
mov eax, dword [eax + 0x1c]
mov dword [ebx + 4], eax
jmp 0x4a2cc0
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a2cd7
call fcn.00403dfc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4a2d14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4a2e9b
mov eax, ebx
mov edx, dword [0x49a8e8]
call fcn.00403ba8
test al, al
je 0x4a2e9b
cmp byte [esi + 0x14], 0
jne 0x4a2e94
mov edi, ebx
cmp dword [edi + 0x220], 0
jne 0x4a2d63
mov eax, dword [edi + 0x224]
call fcn.0049d894
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x220]
mov eax, dword [eax + 0xc]
call fcn.00415770
test eax, eax
jne 0x4a2d81
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x4a2d9f
call fcn.004152fc
mov dword [ebp - 4], eax
cmp byte [edi + 0x2c0], 0
je 0x4a2d9f
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jle 0x4a2e18
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4a2dd2
mov edi, dword [esi + 8]
test edi, edi
je 0x4a2dd2
mov eax, dword [ebx + 0x220]
mov edx, dword [edi + 4]
cmp eax, dword [edx + 0x18]
jne 0x4a2dd2
mov eax, edi
call fcn.004152fc
cmp eax, dword [ebp - 4]
je 0x4a2e18
mov eax, dword [ebx + 0x220]
mov eax, dword [eax + 0xc]
call fcn.0049d448
mov dword [ebp - 8], eax
mov eax, dword [0x568938]
mov edi, dword [eax + 8]
test edi, edi
je 0x4a2dfb
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4a2e0b
mov eax, dword [0x568938]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0049d368
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
jmp 0x4a2e1f
mov dword [ebp - 4], 0xffffffff
xor edx, edx
mov eax, ebx
call fcn.004a1ce8
mov byte [ebx + 0x2c0], 1
cmp word [ebx + 0x302], 0
je 0x4a2e5c
mov eax, dword [ebp - 8]
push eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl al
push eax
mov ecx, dword [esi + 8]
mov edx, esi
mov eax, dword [ebx + 0x304]
call dword [ebx + 0x300]
cmp dword [ebp - 8], 0
je 0x4a2e6c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a1734
cmp dword [esi + 8], 0
je 0x4a2e8c
cmp dword [ebp - 4], 0xffffffff
jle 0x4a2e8c
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4a2e8c
mov eax, dword [esi + 8]
call fcn.00403a08
xor eax, eax
mov dword [ebx + 0x2a8], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x74]
mov eax, dword [0x568940]
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov ebx, dword [ebp - 8]
mov eax, esi
call fcn.00403a08
xor eax, eax
mov dword [0x568938], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4afcc4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4afe45
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4afe20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x119], 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x105
lea eax, [ebp - 0x119]
push eax
lea eax, [ebp - 0x120]
mov dl, byte [ebp - 1]
call fcn.00404a64
lea eax, [ebp - 0x120]
mov edx, 0x4afe58
call fcn.00404b44
mov eax, dword [ebp - 0x120]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4afd84
lea eax, [ebp - 0x119]
call fcn.0040b184
mov ecx, eax
lea edx, [ebp - 0x119]
mov eax, dword [ebp - 8]
call fcn.0040497c
jmp 0x4afd8c
mov eax, dword [ebp - 8]
call fcn.00404894
cmp byte [ebp - 1], 0x61
jae 0x4afdb2
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040f3c0
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 8]
call fcn.004048e8
jmp 0x4afdd0
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040f2ec
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 8]
call fcn.004048e8
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x134]
xor ecx, ecx
mov eax, 0x4afe64
call fcn.0040ba14
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 8]
call fcn.004048e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afe27
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b395c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b3982
test byte [ebp - 0xc], 0x10
jne 0x4b3986
xor eax, eax
jmp 0x4b3988
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x4b41a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b436f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x34], 0
je 0x4b41df
cmp byte [ebx + 0x35], 0
jne 0x4b41df
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4b420b
cmp byte [ebx + 0x35], 1
jne 0x4b41f9
lea eax, [ebp - 0x24]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00487b64
jmp 0x4b420b
lea eax, [ebp - 0x24]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00487b64
xor edx, edx
push ebp
push 0x4b434a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x3c]
mov edx, 0x104
call fcn.00404e70
mov eax, dword [ebx + 0x3c]
call fcn.00404d00
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x38], 0
je 0x4b4244
mov eax, dword [ebx + 0x38]
call fcn.00404d00
mov dword [ebp - 0x1c], eax
jmp 0x4b4249
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x35], 1
jne 0x4b4258
mov dword [ebp - 0x18], 0x1000
jmp 0x4b425f
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 0x4b3dcc
mov dword [ebp - 0x10], ebx
mov eax, dword [0x567794]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004b4380
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4b432f
xor eax, eax
push ebp
push 0x4b4328
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x35], 0
jne 0x4b42f5
lea eax, [ebp - 0x12d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
call fcn.0040fb44
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x12d]
call fcn.0040b424
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004b44d8
mov edx, dword [ebp - 0x134]
lea eax, [ebx + 0x44]
call fcn.004048e8
jmp 0x4b4300
lea eax, [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
call fcn.004048e8
lea eax, [ebx + 0x40]
mov edx, dword [ebx + 0x44]
call fcn.004048e8
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x48], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b432f
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4351
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b4349
push eax
call sub.ole32.dll_CoTaskMemFree
ret

Function at 0x4b4538
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4b4589
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b456d
test al, 0x10
jne 0x4b4571
xor ebx, ebx
jmp 0x4b4573
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4590
lea eax, [ebp - 4]
call fcn.00404894
ret
Function at 0x4b64a4
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
lea edx, [eax + 0x2b4]
mov eax, ebx
call fcn.004b5d64
test al, al
je 0x4b65d4
mov eax, dword [ebp - 4]
call fcn.004b6238
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x68]
mov word [ebp - 8], ax
mov dx, 0xfff5
mov eax, dword [ebp - 4]
call fcn.0043dec0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
call fcn.00404d00
push eax
mov eax, ebx
call fcn.00404d00
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
call fcn.00404d00
push eax
call sub.kernel32.dll_SetFileAttributesA
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2cc]
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.0041779c
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a4], esi
xor eax, eax
push ebp
push 0x4b65cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00417418
mov eax, dword [ebp - 4]
add eax, 0x2c8
mov edx, ebx
call fcn.004048e8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b65d4
mov dx, word [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043dec0
mov eax, dword [ebp - 4]
call fcn.004b8aa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.00414e24
mov eax, dword [ebp - 4]
call fcn.004b662c
mov eax, dword [ebp - 4]
mov byte [eax + 0x321], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x308], 0
push 1
push 1
xor ecx, ecx
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004a626c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret