joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c21a8f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 3
push esi
push esi
push esi
push str.SOFTWARE1stBrowserBLBeacon
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1c21ac7
xor al, al
jmp 0x1c21b4a
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
mov ebx, str.state
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1c21b3d
cmp dword [ebp - 8], esi
je 0x1c21b3d
cmp dword [ebp - 0xc], edi
jne 0x1c21b3d
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.01c21958
pop ecx
pop ecx
test al, al
je 0x1c21b3d
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push edi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x1c21b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1c21d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 3
push edi
push str.SOFTWARE1stBrowserBLFinchList
push 0x80000001
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1c21df1
mov eax, 0x104
lea ecx, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 4], eax
call fcn.01c21918
mov esi, edi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x104
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
push dword [ebp - 0x24]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1c21ddf
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
inc dword [ebp - 4]
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.01c21918
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x24]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1c21dd7
mov eax, dword [ebp - 8]
xor ecx, ecx
push edi
mov word [edi + eax*2 - 2], cx
call sym.chrome_elf.dll_AddDllToBlacklist
pop ecx
lea ecx, [ebp - 0x18]
call fcn.01c21c68
inc esi
xor edi, edi
jmp 0x1c21d5f
lea ecx, [ebp - 0x18]
call fcn.01c21c68
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.01c21c68
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1c23055
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x418]
push 0x208
push esi
mov ebx, esi
push eax
mov dword [ebp - 0x44c], ebx
call fcn.01c273b0
add esp, 0xc
lea eax, [ebp - 0x418]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1c23199
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.01c273b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1c23199
mov dword [ebp - 0x420], esi
xor eax, eax
mov esi, str..pipeSieniumCrashServices_
mov dword [ebp - 0x41c], 7
push esi
mov word [ebp - 0x430], ax
call fcn.01c231aa
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.01c22940
push 0xc8
call fcn.01c25c0d
mov edi, eax
pop ecx
test edi, edi
je 0x1c2315e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x448]
call fcn.01c22dc0
inc ebx
lea esi, [ebp - 0x430]
cmp dword [ebp - 0x41c], 8
cmovae esi, dword [ebp - 0x430]
call fcn.01c22e1d
push eax
push esi
push 0x160
push 7
xor esi, esi
lea eax, [ebp - 0x448]
push esi
push esi
push esi
push eax
mov ecx, edi
call fcn.01c241c9
jmp 0x1c23162
xor esi, esi
mov eax, esi
mov dword [0x1c3e4d0], eax
test bl, 1
je 0x1c2317f
push esi
push 1
lea ecx, [ebp - 0x448]
call fcn.01c22804
mov eax, dword [0x1c3e4d0]
cmp dword [eax + 0xc], esi
je 0x1c2318b
mov byte [eax + 0xbd], 1
push esi
push 1
lea ecx, [ebp - 0x430]
call fcn.01c22804
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c27393
mov esp, ebp
pop ebp
ret

Function at 0x1c23727
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x1c357ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov dword [ebp - 0x10], 0x1c356a8
push edi
push 0x1c236d5
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.01c21220
push edi
call fcn.01c23fbf
mov esi, eax
pop ecx
test esi, esi
je 0x1c237d1
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40
push 0x40
push 0x1c41040
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c237c9
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [esi]
push eax
push 0x40
push 0x1c41040
push str.NtCreateFile
push 0x1c357d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
jns 0x1c237b6
push 0x40
push 0
push 0x1c41040
call fcn.01c273b0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20
push 0x40
push 0x1c41040
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1c23ce7
Capabilities:
Accept command line arguments

Disassembly:
push str.IsSandboxedProcess
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1c23d10
call eax
test al, al
je 0x1c23d10
mov dword [0x1c3eeec], 1
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x1c23d35
push str.__type
push eax
call fcn.01c2749c
mov dword [0x1c3eeec], 1
pop ecx
pop ecx
test eax, eax
jne 0x1c23d3f
mov dword [0x1c3eeec], 2
ret

Function at 0x1c23eb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
mov esi, ecx
push ebx
push eax
call fcn.01c273b0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov di, word [ebp - 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x1c23f56
test ecx, ecx
jle 0x1c23f34
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
cmp eax, 1
jne 0x1c23f36
cmp di, 2
jae 0x1c23f36
mov dword [esi], ebx
movzx ecx, di
mov eax, esi
mov dword [esi + 0x10], ecx
movzx ecx, word [ebp - 0xa]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c27393
mov esp, ebp
pop ebp
ret
push 6
pop eax
cmp edx, eax
jne 0x1c23f83
sub ecx, ebx
je 0x1c23f7b
dec ecx
je 0x1c23f73
dec ecx
je 0x1c23f6b
mov dword [esi], eax
jmp 0x1c23f36
mov dword [esi], 5
jmp 0x1c23f36
mov dword [esi], 4
jmp 0x1c23f36
mov dword [esi], 3
jmp 0x1c23f36
cmp edx, 0xa
jne 0x1c23f90
mov dword [esi], 7
jmp 0x1c23f36
cmp edx, eax
jle 0x1c23f34
mov dword [esi], 8
jmp 0x1c23f36
Function at 0x1c2f89d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.01c2be8f
mov dword [ebp - 0x14], eax
cmp dword [0x1c3fca8], esi
jne 0x1c2f990
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1c2f91d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1c2fa70
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1c2fa70
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1c2fa70
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1c3fca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1c3fcac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x1c3fcb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1c3fcb8], eax
test eax, eax
je 0x1c2f98d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1c3fcb4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1c2f9b5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1c2f9a8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1c2f9ca
push 4
pop eax
jmp 0x1c2fa72
cmp dword [ebp - 0x14], esi
je 0x1c2f9ca
push dword [0x1c3fca8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1c2f9af
mov eax, dword [0x1c3fcb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1c2fa28
cmp dword [0x1c3fcb8], edi
je 0x1c2fa28
push eax
call ebx
push dword [0x1c3fcb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1c2fa28
test eax, eax
je 0x1c2fa28
call ecx
test eax, eax
je 0x1c2fa1d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1c2fa1d
test byte [ebp - 8], 1
jne 0x1c2fa28
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1c2fa58
mov eax, dword [0x1c3fcac]
cmp eax, edi
je 0x1c2fa55
push eax
call ebx
test eax, eax
je 0x1c2fa55
call eax
mov esi, eax
test esi, esi
je 0x1c2fa55
mov eax, dword [0x1c3fcb0]
cmp eax, edi
je 0x1c2fa55
push eax
call ebx
test eax, eax
je 0x1c2fa55
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1c3fca8]
call ebx
test eax, eax
je 0x1c2fa70
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1c2fa72
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c27393
mov esp, ebp
pop ebp
ret
Function at 0x401590
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4015c7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4015ba
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401635
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xaa90c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xaa90c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xaa90c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xaa90c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401682
cmp ebx, 4
jne 0x401685
cmp edi, 6
jbe 0x401685
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xaa90c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xaa90c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xaa90c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xaa90c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4015d6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402765
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402786
lea ecx, [ebp - 0x10]
call fcn.00402748
test eax, eax
je 0x402786
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x4027b9
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xadb008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402802
push str.SetDefaultDllDirectories
push 0xaab368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402802
push 0xc00
call eax
test eax, eax
jne 0x40289e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40289e
cmp eax, 0x104
ja 0x40289e
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402839
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [0xaab2f8]
push esi
mov esi, 0xaab2f8
test cl, cl
je 0x40289d
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40285a
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402857
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a733e3
leave
ret
Function at 0x408418
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x40845f
push 0x40
pop edx
cmp ecx, edx
je 0x40844c
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.00a75a40
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x408462
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.00a75a40
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x408498
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00407f6e

Function at 0x40a43e
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa98ffd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0xadb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push dword [ebp + 8]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a4b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a4aa
push dword [ebp + 8]
push edi
push eax
call fcn.00a754c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a4aa
mov al, 1
jmp 0x40a4b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a4ca
Capabilities:
Open clipboard

Disassembly:
push 0x1c
mov eax, 0xa99037
call fcn.00a9835b
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x40a58b
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a588
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a43e
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00409ba2
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a43e
push 1
pop edi
test al, al
movzx ebx, bl
push edi
mov edx, esi
lea ecx, [ebp - 0x28]
cmovne ebx, edi
call fcn.00409ba2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00409071
push dword [ebp - 0x28]
call fcn.00a733f1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a43e
push dword [ebp - 0x1c]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00a733f1
pop ecx
jmp 0x40a591
mov al, byte [ebp - 0xd]
xor bl, bl
test al, al
je 0x40a597
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.00a98329
ret

Function at 0x40af2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadddb9], 0
push esi
mov esi, edx
jne 0x40af60
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409881
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a733f1
pop ecx
test esi, esi
jmp 0x40af6a
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40af70
mov al, 1
jmp 0x40af72
xor al, al
pop esi
leave
ret

Function at 0x40af75
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadddb9], 0
jne 0x40afa7
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a733f1
pop ecx
test esi, esi
pop esi
jmp 0x40afb0
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40afb6
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b022
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadddb9], 0
jne 0x40b056
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a733f1
pop ecx
test esi, esi
pop esi
jmp 0x40b061
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b067
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40b06b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa99159
call fcn.00a9835b
mov edi, ecx
cmp byte [0xadddb9], 0
jne 0x40b0a6
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409881
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00a733f1
pop ecx
test esi, esi
jmp 0x40b0b2
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b0b8
mov al, 1
jmp 0x40b0fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b0c9
xor al, al
jmp 0x40b0fe
lea ecx, [ebp - 0x50]
call fcn.0040b4fc
lea ecx, [ebp - 0x28]
call fcn.004092bf
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b834
test al, al
je 0x40b0f3
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00a733f1
pop ecx
mov al, bl
call fcn.00a98329
ret

Function at 0x40b253
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040b7ef
cmp eax, 0xffffffff
je 0x40b280
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b280
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040af2c
test al, al
je 0x40b2b9
cmp byte [0xadddb9], 0
jne 0x40b2aa
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a733f1
pop ecx
test esi, esi
jmp 0x40b2b3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b2b9
mov al, 1
jmp 0x40b2bb
xor al, al
pop esi
leave
ret

Function at 0x40b7ef
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadddb9], 0
jne 0x40b821
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a733f1
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret
Function at 0x40beb2
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0xa992fc
call fcn.00a9835b
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00408aab
cmp byte [0xadddb9], 0
jne 0x40bfae
mov ecx, ebx
call fcn.00408aab
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40bfc0
push edi
call fcn.00a73527
pop ecx
mov dword [ebp - 0x14], eax
push eax
push edi
mov dword [ebp - 4], ebx
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40bfa6
cmp esi, edi
ja 0x40bfa6
lea ecx, [ebp - 0x30]
call fcn.00408ffa
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
test esi, esi
je 0x40bf9f
xor eax, eax
mov ecx, esi
mov esi, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
cmp byte [edi + eax - 1], 0
jne 0x40bf90
lea eax, [edi + ebx]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040901c
mov ebx, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
lea edx, [ebp - 0x30]
test eax, eax
sete cl
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409b07
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00408b56
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00408b17
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.00a733f1
pop ecx
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
jne 0x40bf39
mov esi, dword [ebp - 0x20]
cmp ebx, esi
jmp 0x40c060
mov edi, dword [ebp - 0x14]
jmp 0x40c071
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40bfc7
xor al, al
jmp 0x40c07a
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a73527
pop ecx
mov dword [ebp - 0x1c], eax
push eax
push edi
mov dword [ebp - 4], 3
call esi
mov esi, eax
test esi, esi
je 0x40c06e
cmp esi, edi
ja 0x40c06e
lea ecx, [ebp - 0x30]
call fcn.004092bf
mov byte [ebp - 4], 4
mov edx, ebx
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x40c05e
push 2
pop eax
mov dword [ebp - 0x10], eax
cmp word [edi + eax - 2], bx
jne 0x40c04d
lea eax, [edx + edi]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040939b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
call fcn.00408b56
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00408b17
mov eax, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp ecx, esi
jb 0x40c017
mov edx, dword [ebp - 0x20]
cmp edx, esi
push dword [ebp - 0x30]
sete bl
call fcn.00a733f1
pop ecx
jmp 0x40c071
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00a733f1
mov al, bl
pop ecx
call fcn.00a98329
ret