joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a58
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407a97
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407a97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407a97
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407a97
cmp dword [ecx + 0x74], 0xe
jbe 0x407a97
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x6b081b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x6b081be0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x6b081bd8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6b0860a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x6b081b9d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x6b0822b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x6b082488
mov edx, dword [0x6b0860a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x6b082478
test byte [0x6b083030], 8
jne 0x6b082420
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x6b083040], 8
jne 0x6b0823e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6b08233b
cmp dword [ebp + 8], 3
jbe 0x6b0823a0
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x6b08234a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + str.jQ_bkpQ_bktQ_bkyQ_bkGCC:__GNU__9.3_win32_20200320]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x6b08233b
mov dword [esp], 0x6b083040
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x6b082310
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x6b082310
mov dword [esp], 0x6b083030
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x6b0822fd
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x6b082303
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x6b082398
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402776
pop dword [ebp - 0x40]
mov eax, 0x473befed
add eax, 0xb9043789
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3934a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x458c
xor esi, esi
add esi, eax
mov edi, 0x804d4f33
sub edi, 0x800c136f
add edi, dword [ebp - 0x40]
mov ebx, 0xe5201ff4
xor dword [ebp - 0x28], edi
mov edx, dword [edi]
add dword [ebp - 0x1c], edx
add edx, ebx
xor dword [ebp - 0x18], esi
mov dword [esi], edx
xor dword [ebp - 0x24], eax
add esi, 4
add edi, 0x1db6456c
add edi, 0xe249ba98
loop 0x4027c6
add eax, 0x9eb0c146
add eax, 0x615047bd
mov ebx, eax
add eax, 0xbaecd4fa
sub eax, 0xbaecd4f5
mov ecx, 0x87891796
sub ecx, 0x87491796
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x43bf5d
push 0x14
push 0x45acd0
call fcn.0043bf80
push 1
call fcn.0043bb48
pop ecx
test al, al
jne 0x43be14
push 7
call fcn.0043c26f
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0043bb13
mov byte [ebp - 0x24], al
mov eax, dword [0x78f4dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43be0d
test eax, eax
jne 0x43be7e
mov dword [0x78f4dc], ecx
push 0x44d37c
push 0x44d364
call fcn.004428a4
pop ecx
pop ecx
test eax, eax
je 0x43be61
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43bf57
push 0x44d360
push 0x44d30c
call fcn.00442848
pop ecx
pop ecx
mov dword [0x78f4dc], 2
jmp 0x43be83
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043bca2
pop ecx
call fcn.0043c516
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x43beb3
push esi
call fcn.0043bc18
pop ecx
test al, al
je 0x43beb3
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0043bf6c
call esi
call fcn.0043c51c
mov esi, eax
cmp dword [esi], edi
je 0x43bed1
push esi
call fcn.0043bc18
pop ecx
test al, al
je 0x43bed1
push dword [esi]
call fcn.00441cb5
pop ecx
call fcn.0043c38a
movzx eax, ax
push eax
call fcn.004427f5
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00441bc4
test al, al
jne 0x43befc
push esi
call fcn.00441ced
test bl, bl
jne 0x43bf05
call fcn.00441c90
push edi
push 1
call fcn.0043bcbf
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43bf57
call fcn.0043bfc6
ret
call fcn.0043c412
jmp 0x43bdf5
Function at 0x401c67
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 0x401c9e
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401c91
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 0x401d0c
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0x451f60]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0x451f60]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0x451f60]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x451f60]
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 0x401d59
cmp ebx, 4
jne 0x401d5c
cmp edi, 6
jbe 0x401d5c
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x451f60]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x451f60]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x451f60]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x451f60]
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 0x401cad
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402b94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402ba8
xor eax, eax
jmp 0x402bb7
lea ecx, [ebp - 0x10]
call fcn.00402b77
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402bbb
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x45d008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402c04
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 0x402c04
push 0xc00
call eax
test eax, eax
jne 0x402c9f
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c9f
cmp eax, 0x104
ja 0x402c9f
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402c3b
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c9e
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402c65
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402c5c
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402c58
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b6d2
mov esp, ebp
pop ebp
ret
Function at 0x406c51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x406d01
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x406ce0
mov ecx, edi
call fcn.00405d53
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x406cd2
cmp dword [esi + 0x5c], ebx
je 0x406cfc
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00405d36
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x20]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x1c]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
push ebx
call fcn.00406a04
mov edi, eax
test edi, edi
je 0x406d93
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00405d77
add ebx, 0x28
sub esi, 1
jne 0x406d81
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406da7
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x406dbb
cmp dword [esi + 0x40], edx
jne 0x406dbb
cmp dword [esi + 0x3c], edx
jne 0x406dbb
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4080a6
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4080e7
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x78e1a8]
mov dword [ecx], eax
jmp fcn.004080a6
Function at 0x408579
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop eax
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, eax
jbe 0x4085bc
push 0x40
pop ecx
cmp esi, ecx
je 0x4085ad
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.0043cbb0
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
push 0x38
xor esi, esi
pop eax
sub eax, esi
push eax
lea eax, [edi + 0x40]
add eax, esi
push 0
push eax
call fcn.0043cbb0
mov ecx, dword [edi + 8]
lea esi, [edi + 0x20]
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x40]
shld eax, ecx, 3
add esp, 0xc
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x7c], ecx
mov ecx, esi
push 1
mov dword [edi + 0x78], eax
call dword [edi]
push 4
pop edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x4085f5
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004080a6

Function at 0x40a61a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a678
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a669
push dword [ebp + 8]
push edi
push eax
call fcn.0043c630
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 0x40a669
xor esi, esi
mov bl, 1
jmp 0x40a66b
xor bl, bl
test esi, esi
je 0x40a67a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a67a
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x40a683
Capabilities:
Open clipboard

Disassembly:
push 0x20
mov eax, 0x449bae
call fcn.00448e99
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp - 0xd], bl
test bl, bl
je 0x40a74a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a74a
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a61a
push 0
mov edx, esi
lea ecx, [ebp - 0x20]
mov bh, al
call fcn.00409d3e
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a61a
push 1
test al, al
movzx ecx, bh
pop edi
cmovne ecx, edi
mov edx, esi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x2c]
push edi
call fcn.00409d3e
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00409179
push dword [ebp - 0x2c]
call fcn.0043b6e3
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a61a
mov ecx, dword [ebp - 0x14]
test al, al
push dword [ebp - 0x20]
movzx ecx, cl
cmovne ecx, edi
mov dword [ebp - 0x14], ecx
call fcn.0043b6e3
pop ecx
jmp 0x40a74e
mov byte [ebp - 0x14], 0
test bl, bl
je 0x40a758
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp - 0x14]
call fcn.00448e62
ret
Function at 0x40b139
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78fbd1], 0
push esi
mov esi, edx
jne 0x40b171
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004099e8
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043b6e3
pop ecx
test esi, esi
je 0x40b17d
mov al, 1
jmp 0x40b17f
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40b16b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b184
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78fbd1], 0
jne 0x40b1ba
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043b6e3
pop ecx
test esi, esi
pop esi
je 0x40b1c5
mov al, 1
jmp 0x40b1c7
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40b1b4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b234
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78fbd1], 0
jne 0x40b26c
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043b6e3
pop ecx
test esi, esi
pop esi
je 0x40b279
mov al, 1
jmp 0x40b27b
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b266
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b27f
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x449cb3
call fcn.00448e99
mov edi, ecx
cmp byte [0x78fbd1], 0
jne 0x40b2be
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004099e8
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043b6e3
pop ecx
test esi, esi
je 0x40b2cc
mov al, 1
jmp 0x40b312
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b2dd
xor al, al
jmp 0x40b312
lea ecx, [ebp - 0x50]
call fcn.0040b712
lea ecx, [ebp - 0x28]
call fcn.004093d0
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040bad8
test al, al
je 0x40b307
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0043b6e3
pop ecx
mov al, bl
call fcn.00448e62
ret
Function at 0x40b467
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040ba91
cmp eax, 0xffffffff
je 0x40b494
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b494
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040b139
test al, al
je 0x40b4cd
cmp byte [0x78fbd1], 0
jne 0x40b4c2
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043b6e3
pop ecx
test esi, esi
je 0x40b4cd
mov al, 1
jmp 0x40b4cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40b4bc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba91
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78fbd1], 0
jne 0x40bac3
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043b6e3
pop ecx
mov eax, esi
pop esi
jmp 0x40bad4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c0f6
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x449e25
call fcn.00448e99
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.00408bfc
cmp byte [0x78fbd1], 0
jne 0x40c1e2
mov ecx, ebx
call fcn.00408bfc
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40c13a
xor al, al
jmp 0x40c2ab
push edi
call fcn.0043b7eb
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x1c]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.00409105
mov byte [ebp - 4], 1
test edi, edi
je 0x40c1db
xor eax, eax
mov dword [ebp - 0x18], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp byte [esi + eax - 1], 0
jne 0x40c1cc
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409127
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.00409a60
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408c68
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0043b6e3
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x40c182
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jmp 0x40c296
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c133
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b7eb
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x20]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.004093d0
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x40c294
push 2
pop eax
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], bx
jne 0x40c283
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004094ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.00408c68
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ecx, edi
jb 0x40c24d
mov edx, dword [ebp - 0x1c]
cmp edx, edi
push dword [ebp - 0x30]
sete bl
call fcn.0043b6e3
pop ecx
push esi
call fcn.0043b6e3
mov al, bl
pop ecx
call fcn.00448e62
ret