joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011f0a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x100
mov dword [ebp - 0x208], ebx
mov esi, ecx
mov byte [ebp - 0x104], 0x1b
test edi, edi
jle 0x10011f4e
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x103]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + edi - 0x103], 0xa0d
add edi, 3
cmp edi, ebx
jae 0x1001205e
mov byte [ebp + edi - 0x104], 0
call fcn.10003e04
test al, al
je 0x10011f8f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d1a5
leave
ret 0x14
push dword [ebp + 0x18]
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
lea eax, [ebp - 0x204]
push eax
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.1000408a
test al, al
je 0x1001204f
cmp dword [ebp - 0x208], ebx
je 0x10011fc9
mov dword [esi + 0x20e4], ebx
xor al, al
jmp 0x10011f7e
mov cl, byte [ebp - 0x203]
push 2
pop eax
xor cl, byte [ebp + eax - 0x204]
inc eax
cmp eax, 0xa
jl 0x10011fd2
cmp cl, byte [ebp - 0x1fa]
je 0x10011ff3
mov dword [esi + 0x20e4], 0xd
jmp 0x10011fc5
movzx ecx, byte [ebp - 0x201]
lea eax, [ecx - 0x31]
cmp eax, 8
ja case.default.0x10012009
movzx eax, byte [eax + 0x1001206a]
jmp dword [eax*4 + 0x10012066]
mov dword [esi + 0x20e4], ecx
jmp 0x10011fc5
cmp dword [ebp + 0x10], 0
je 0x10012043
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10012043
cmp dword [eax], ebx
jl 0x10012043
push ebx
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.10011e19
test al, al
je 0x10012043
mov ecx, esi
call fcn.100120bc
and dword [esi + 0x20e4], 0
jmp 0x10011f7c
mov dword [esi + 0x20e4], 0xb
jmp 0x10011fc5
call fcn.1001da3d
nop dword [eax]
adc byte [eax], ah
add dword [eax], edx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp - 117], dl
push ebp
mov ebp, esp
Function at 0x100128c6
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x10020bf7
call fcn.1001d1e5
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
test eax, eax
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
push 4
lea esi, [eax - 0x94]
pop ecx
lea eax, [ebp - 0x10]
cmove esi, ecx
push eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.1000e69a
test eax, eax
je 0x1001290a
mov eax, dword [ebp - 0x10]
jmp 0x10012989
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x100251ac
mov ecx, esi
call fcn.10017ddc
mov ecx, eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
js 0x10012972
test eax, eax
je 0x1001296f
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x11
shr esi, 0xf
call edi
test ax, ax
lea ebx, [esi + 2]
push 0x12
cmovns ebx, esi
call edi
mov dx, ax
mov eax, dword [ebp + 0xc]
test dx, dx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
lea ecx, [ebx + 4]
cmovns ecx, ebx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call esi
mov ecx, eax
mov eax, dword [ebp + 0xc]
jmp 0x10012972
xor ecx, ecx
inc ecx
xor ebx, ebx
test ecx, ecx
setne bl
and dword [ebp - 4], 0
test eax, eax
je 0x10012987
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
call fcn.1001d1b3
ret 8
Function at 0x10015e76
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, 0xa0
test esi, esi
lea edx, [esi + 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x50
test esi, esi
lea eax, [esi - 0x44]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x10015ea7
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8

Function at 0x1001891c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10020b88
call fcn.1001d284
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10018999
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10018999
call fcn.10009c62
mov esi, eax
jmp 0x10018a7e
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100189bc
call fcn.10009c62
jmp 0x10018a71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100189b2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100189ef
mov esi, 0x8007000e
jmp 0x10018a73
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001563c
jmp 0x10018a20
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x100189e5
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100189b2
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100187d5
mov esi, eax
test edi, edi
je 0x10018a7e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10018a97
lea ecx, [ebp - 0x418]
call fcn.10016258
mov eax, esi
call fcn.1001d1d6
ret 0x10
Function at 0x1001b1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020f27
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 1
cmp dword [0x10035254], 0
jl 0x1001b26b
mov eax, dword [0x10035254]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x68]
jmp 0x1001b399
mov dword [0x10035254], 0
lea ecx, [ebp - 0x60]
push ecx
push 1
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b370
mov dword [ebp - 0x58], 0
mov edx, 1
test edx, edx
je 0x1001b366
mov dword [ebp - 0x70], 0x14
mov dword [ebp - 0x6c], 0x14
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1001b2e4
jmp 0x1001b366
cmp dword [ebp - 0x74], 1
je 0x1001b2ec
jmp 0x1001b366
mov dword [ebp - 0x54], 0xffffffff
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_Ordinal_5884]
cmp eax, 3
jle 0x1001b334
push 3
push 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
sub eax, 1
mov dword [ebp - 0x54], eax
mov edx, dword [0x10035254]
cmp edx, dword [ebp - 0x54]
jle 0x1001b349
mov eax, dword [0x10035254]
mov dword [ebp - 0x5c], eax
jmp 0x1001b34f
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x10035254], edx
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
jmp 0x1001b29c
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x10035254]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d1a5
mov esp, ebp
pop ebp
ret
Function at 0x1001be00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001be24
xor eax, eax
jmp 0x1001bea4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001be3b
xor eax, eax
jmp 0x1001bea4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x1001be87
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x1001be87
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x1001be5e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x1001be93
xor eax, eax
jmp 0x1001bea4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x1001bea1
xor eax, eax
jmp 0x1001bea4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40633c
pop dword [ebp - 0x1c]
mov eax, 0xda24832
add eax, 0xf29e1b0a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xe0fe4263
add dword [ebp - 0x2c], 0x6d5402e8
mov dword [ebp - 0x28], 0xb7c48338
sub dword [ebp - 0x28], 0x859136f3
mov dword [ebp - 0x24], 0xb42cc3ab
add dword [ebp - 0x24], 0x981f8083
mov dword [ebp - 0x20], 0x1165419a
sub dword [ebp - 0x20], 0x1165419a
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x2953230e
sub dword [ebp - 0x2c], 0xb4e0b9b8
mov dword [ebp - 0x28], 0x13eef721
add dword [ebp - 0x28], 0x2d7d6a54
mov dword [ebp - 0x24], 0x6c3a09d3
sub dword [ebp - 0x24], 0x8ca9d67
mov dword [ebp - 0x20], 0x1a062437
sub dword [ebp - 0x20], 0x1a062437
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x1510b19d
add eax, 0xeb2fbf63
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38145
push 0
call eax
mov ecx, 0x83557967
sub ecx, 0x83552b8f
mov esi, eax
mov edi, 0x3e3f5da4
add edi, 0xc201a25c
add edi, dword [ebp - 0x1c]
mov ebx, 0xb8062d08
add dword [ebp - 0x10], edi
mov edx, dword [edi]
sub dword [ebp - 0xc], edx
xor edx, ebx
add dword [ebp - 4], ecx
mov dword [esi], edx
xor dword [ebp - 8], 0x22bcfcd9
add esi, 0x976cb39b
sub esi, 0x976cb397
add edi, 0x98c46a4c
sub edi, 0x98c46a48
loop 0x406453
add eax, 0x90e66754
add eax, 0x6f1ac2df
xor ebx, ebx
add ebx, eax
add eax, 0x9dab2ccd
sub eax, 0x9dab2cc8
mov ecx, 0x569a5424
add ecx, 0xa9a5abdc
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4018bf
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 0x4018f6
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4018e9
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 0x401964
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0x4f2400]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0x4f2400]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0x4f2400]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x4f2400]
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 0x4019b1
cmp ebx, 4
jne 0x4019b4
cmp edi, 6
jbe 0x4019b4
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x4f2400]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x4f2400]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4f2400]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x4f2400]
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 0x401905
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402b17
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402b57
cmp dword [ebp - 0x364], 6
jne 0x402b57
cmp dword [ebp - 0x360], 0
je 0x402b81
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b81
push 0xc00
call eax
test eax, eax
jne 0x402c16
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c16
cmp eax, 0x104
ja 0x402c16
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402bc1
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x402c15
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402bdc
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bda
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d88c2
leave
ret
Function at 0x408e03
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004ddf16
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x408e2f
call fcn.00408d15
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40aef0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], ebx
call fcn.0040d986
test al, al
je 0x40af49
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40af48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004da880
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40af48
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.0040d9a9
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x40af58
Capabilities:
Open clipboard

Disassembly:
push 0x18
mov eax, 0x4ee4df
call fcn.004d8b5a
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40b019
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40b016
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040aef0
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040a460
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], al
push eax
call fcn.0040aef0
push 1
pop edi
push edi
test al, al
movzx ebx, bl
push esi
lea eax, [ebp - 0x24]
cmovne ebx, edi
push eax
call fcn.0040a460
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409502
push dword [ebp - 0x24]
call fcn.004d8b15
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040aef0
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.004d8b15
pop ecx
jmp 0x40b01f
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40b025
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.004d8b28
ret 8
Function at 0x40bbed
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4ee5d7
call fcn.004d8b5a
cmp byte [0xb5b154], 0
mov edi, dword [ebp + 8]
jne 0x40bc29
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040a230
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
jmp 0x40bc35
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bc3b
mov al, 1
jmp 0x40bc81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bc4c
xor al, al
jmp 0x40bc81
lea ecx, [ebp - 0x50]
call fcn.0040c086
lea ecx, [ebp - 0x28]
call fcn.004094de
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040c2f0
test al, al
je 0x40bc76
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004d8b15
pop ecx
mov al, bl
call fcn.004d8b28
ret 4

Function at 0x40bc89
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5b154], 0
jne 0x40bcbf
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a230
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
pop esi
jmp 0x40bccc
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bcd2
mov al, 1
jmp 0x40bcd4
xor al, al
leave
ret 4

Function at 0x40bcd8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040c926
cmp eax, 0xffffffff
je 0x40bd05
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40bd05
and eax, 0xfffffffe
push eax
push esi
call fcn.0040bfa6
test al, al
je 0x40bd3d
cmp byte [0xb5b154], 0
push esi
jne 0x40bd2f
lea eax, [ebp - 0xc]
push eax
call fcn.0040a230
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
jmp 0x40bd37
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bd3d
mov al, 1
jmp 0x40bd3f
xor al, al
pop esi
leave
ret 4

Function at 0x40befb
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5b154], 0
jne 0x40bf2f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a230
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
pop esi
jmp 0x40bf3a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bf40
mov al, 1
jmp 0x40bf42
xor al, al
leave
ret 4
Function at 0x40bfa6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5b154], 0
jne 0x40bfdd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a230
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
pop esi
jmp 0x40bfeb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40bff1
mov al, 1
jmp 0x40bff3
xor al, al
leave
ret 8

Function at 0x40c926
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb5b154], 0
jne 0x40c95a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a230
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004d8b15
pop ecx
mov eax, esi
pop esi
jmp 0x40c96d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4
Function at 0x40c9f8
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4ee6f9
call fcn.004d8b5a
mov ecx, dword [ebp + 8]
call fcn.00408f34
cmp byte [0xb5b154], 0
jne 0x40cad5
mov ecx, dword [ebp + 8]
call fcn.00408f34
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40cae8
push edi
call fcn.004d8b0c
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
test edi, edi
je 0x40cb82
cmp edi, dword [ebp - 0x18]
ja 0x40cb82
lea ecx, [ebp - 0x2c]
call fcn.0040931d
mov byte [ebp - 4], 1
test edi, edi
je 0x40cacb
xor eax, eax
mov dword [ebp - 0x14], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x10], eax
cmp byte [esi + eax - 1], 0
jne 0x40cabf
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409552
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040a1ee
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00408ecc
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004d8b15
pop ecx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jne 0x40ca7d
push dword [ebp - 0x2c]
cmp ebx, edi
jmp 0x40cb79
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40caef
xor al, al
jmp 0x40cb8b
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040c01b
mov esi, dword [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40cb82
cmp edi, dword [ebp - 0x18]
ja 0x40cb82
lea ecx, [ebp - 0x38]
call fcn.004094de
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x18], edx
mov eax, ebx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40cb74
push 2
pop ecx
mov dword [ebp - 0x14], ecx
cmp word [esi + ecx - 2], bx
jne 0x40cb63
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.00409689
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00408ecc
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x10]
inc eax
add ecx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x40cb35
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x38]
cmp edx, edi
sete bl
call fcn.004d8b15
pop ecx
push esi
call fcn.004d8b15
mov al, bl
pop ecx
call fcn.004d8b28
ret 4

Function at 0x40cd6f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40cd99
xor al, al
jmp 0x40cdad
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4