joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov eax, ebx
mov esi, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
xor ecx, ecx
push edi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401875
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, ebx
jb 0x401868
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x4018f6
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
movzx ecx, byte [ecx + str.cw]
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401949
cmp edi, 4
jne 0x40194c
cmp ebx, 6
jbe 0x40194c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
add esi, 4
mov dword [esi + ebx*4 - 4], eax
dec edi
cmp esi, ecx
jne 0x401890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4027b3
call fcn.00402760
test eax, eax
je 0x4027b3
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4027c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x11
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
jne 0x4027d7
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4027fc
call fcn.00402760
test eax, eax
je 0x4027fc
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov ecx, dword [ebp - 8]
jmp 0x4027fe
xor ecx, ecx
mov eax, ecx
shr eax, 1
and eax, ecx
test eax, 0x8000000
je 0x4027d1
xor ecx, ecx
xgetbv
mov ecx, eax
shr ecx, 2
shr eax, 1
and eax, ecx
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402836
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.00402760
cmp eax, 7
jb 0x402830
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402893
call fcn.00402760
test eax, eax
je 0x402893
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402740
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402990
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xac62f0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4029d9
push str.SetDefaultDllDirectories
push 0xa887d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4029d9
push 0xc00
call eax
test eax, eax
jne 0x402a77
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402a77
cmp eax, 0x104
ja 0x402a77
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402a17
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402a76
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
inc esi
mov ecx, edi
test al, al
je 0x402a50
movzx eax, al
mov word [ecx], ax
mov al, byte [esi]
add ecx, 2
inc esi
test al, al
jne 0x402a40
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx], 0x64002e
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x402a37
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009fe024
mov esp, ebp
pop ebp
ret
Function at 0x407d00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x98
lea eax, [ebx + 0x110]
push 0
push eax
call fcn.009fe1e0
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x40], eax
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebx + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov dword [ebx + 0xc], eax
mov edi, esi
sub edi, edx
mov ecx, 0xc
add esp, 0xc
cmp eax, ecx
cmovb ecx, eax
or eax, 0xffffffff
sub eax, ecx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], eax
lea ecx, [esi - 0xc]
lea eax, [edi + 0x600]
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 8], edi
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x3c], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ecx + 4], edi
xor eax, eax
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
add edi, 2
jmp 0x407da0
mov byte [edi - 2], al
xor ecx, ecx
inc eax
mov byte [edi - 1], 1
mov dword [edi], ecx
lea edi, [edi + 6]
cmp eax, 0x100
jb 0x407da0
mov eax, dword [ebp + 8]
xor ebx, ebx
add eax, 0x9fc
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
jmp 0x407dd0
movzx eax, word [edi + 0xa88800]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
movzx ecx, cx
xor eax, eax
lea ebx, [ebx]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x407df0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x407dd0
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x407dc3
mov ebx, dword [ebp + 8]
mov edx, 0x50
lea esi, [ebx + 0x3bc]
jmp 0x407e30
mov eax, esi
mov ecx, 0x10
jmp 0x407e40
mov word [eax], dx
mov word [eax + 2], 0x403
lea eax, [eax + 4]
dec ecx
jne 0x407e40
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x407e30
pop edi
pop esi
mov dword [ebx + 0x3b8], 0x40070000
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408e90
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
inc edx
mov byte [edx + esi + 0x3f], 0x80
cmp edx, 0x38
jbe 0x408ed9
cmp edx, 0x40
je 0x408ecb
mov ecx, 0x40
sub ecx, edx
lea edi, [esi + 0x40]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.009fe1e0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shld eax, ecx, 3
shl ecx, 3
bswap eax
add esp, 0xc
mov dword [esi + 0x78], eax
bswap ecx
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
bswap ecx
mov eax, dword [edx]
mov dword [edi + 4], ecx
bswap eax
mov dword [edi], eax
lea edi, [edi + 8]
lea edx, [edx + 8]
dec ebx
jne 0x408f20
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408f80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [section..data]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov 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
pop ebp
ret 4

Function at 0x4093d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.009fe270
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4093fd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c310
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], 0
call fcn.0040fde0
test al, al
jne 0x40c343
lea ecx, [ebp - 4]
xor bl, bl
call fcn.0040fe10
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40c393
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.009fd9e0
add esp, 0xc
push edi
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 0x40c393
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.0040fe10
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.0040fe10
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c3b0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa82c28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0xac62f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp + 0xb], bl
test bl, bl
je 0x40c49e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40c49e
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040c310
push 0
mov bh, al
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0040b360
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push 1
call fcn.0040c310
mov edi, 1
push edi
movzx ecx, bh
test al, al
push esi
lea eax, [ebp - 0x24]
cmovne ecx, edi
push eax
mov dword [ebp + 0xc], ecx
call fcn.0040b360
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409da0
push dword [ebp - 0x24]
call fcn.009fe809
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040c310
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x18]
movzx ecx, cl
test al, al
cmovne ecx, edi
mov dword [ebp + 8], ecx
call fcn.009fe809
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x40c4a3
xor al, al
mov dword [ebp + 8], eax
test bl, bl
je 0x40c4b0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d580
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa82d88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0xac62f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xacb130], 0
mov edi, dword [ebp + 8]
jne 0x40d5ef
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040b030
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
je 0x40d612
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d612
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d635
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x50]
call fcn.0040dd30
lea ecx, [ebp - 0x28]
call fcn.00409d70
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040e1d0
test al, al
jne 0x40d65f
xor bl, bl
jmp 0x40d668
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.009fe809
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d690
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xacb130], 0
jne 0x40d6d0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
pop esi
je 0x40d6e7
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d6e7
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40d6f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e8e0
cmp eax, 0xffffffff
je 0x40d71b
test al, 0x10
jne 0x40d71b
test al, 1
je 0x40d71b
and eax, 0xfffffffe
push eax
push esi
call fcn.0040dbb0
test al, al
je 0x40d763
cmp byte [0xacb130], 0
push esi
jne 0x40d750
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
je 0x40d763
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d763
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa82dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0xac62f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0xacb130], cl
jne 0x40d81d
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d8e8
cmp eax, 0x114
jae 0x40d8e8
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x36c]
push eax
mov byte [ebp - 0x14], 0
call fcn.0040b000
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409e60
push dword [ebp - 0x36c]
call fcn.009fe809
add esp, 4
mov al, 1
jmp 0x40d8ea
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40d8e8
cmp esi, 0x114
jae 0x40d86a
xor eax, eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
mov ecx, edi
call fcn.00409f60
mov al, 1
jmp 0x40d8ea
lea ecx, [ebp - 0x360]
call fcn.00409d70
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40d890
push esi
lea ecx, [ebp - 0x360]
call fcn.0040a860
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40d8da
push esi
lea ecx, [ebp - 0x360]
call fcn.0040c5a0
cmp dword [ebp - 0x35c], ebx
jne 0x40d8da
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40d8da
lea eax, [ebp - 0x360]
push eax
mov ecx, edi
call fcn.00409e60
push dword [ebp - 0x360]
call fcn.009fe809
add esp, 4
mov al, 1
jmp 0x40d8ea
push dword [ebp - 0x360]
call fcn.009fe809
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.009fe024
mov esp, ebp
pop ebp
ret 4

Function at 0x40da20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa82e28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0xac62f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xacb130], 0
push dword [ebp + 0xc]
jne 0x40daa7
lea eax, [ebp - 0x24]
push eax
call fcn.0040b030
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0040b030
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.009fe809
push dword [ebp - 0x24]
call fcn.009fe809
add esp, 8
test esi, esi
je 0x40dac8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40dac8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40dae0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xacb130], 0
jne 0x40db1e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
pop esi
je 0x40db33
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40db33
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40dbb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xacb130], 0
jne 0x40dbf1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
pop esi
je 0x40dc09
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40dc09
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
test esi, 0xf0000000
je 0x40dc38
and esi, 0x3fff
cmp byte [0xacb130], 0
jne 0x40dc70
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
test esi, esi
je 0x40dc87
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40dc87
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xacb130], 0
jne 0x40e91a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b030
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009fe809
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e980
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa82f58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0xac62f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004095f0
cmp byte [0xacb130], 0
jne 0x40ea8f
mov ecx, ebx
call fcn.004095f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x40e9ee
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.009fe80e
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push esi
push edi
mov dword [ebp - 4], 0
call ebx
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40eb4e
cmp ebx, edi
ja 0x40eb4e
lea ecx, [ebp - 0x28]
call fcn.00409af0
xor eax, eax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40ea7a
mov edi, 1
cmp byte [esi + edi - 1], 0
jne 0x40ea73
add eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00409e00
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x14], edi
call fcn.0040afc0
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.004094d0
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.009fe809
add esp, 4
mov eax, edi
inc edi
dec ebx
jne 0x40ea33
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x28]
cmp eax, ebx
sete bl
call fcn.009fe809
add esp, 4
jmp 0x40eb50
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x40e9d8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.009fe80e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push esi
push ebx
mov dword [ebp - 4], 3
call edi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40eb4e
cmp edi, ebx
ja 0x40eb4e
lea ecx, [ebp - 0x34]
call fcn.00409d70
xor eax, eax
xor ebx, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40eb3c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edi, 2
lea esp, [esp]
cmp word [esi + edi - 2], 0
jne 0x40eb2e
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409f60
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x18], edi
call fcn.004094d0
mov eax, dword [ebp - 0x10]
mov ecx, edi
inc ebx
add edi, 2
cmp ebx, eax
jb 0x40eb00
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x34]
cmp eax, edi
sete bl
call fcn.009fe809
add esp, 4
jmp 0x40eb50
xor bl, bl
push esi
call fcn.009fe809
mov al, bl
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4