joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406231
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d54], 0
push esi
jne 0x406268
xor ecx, ecx
push 8
push ecx
pop eax
pop esi
push eax
pop edx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406242
mov dword [ecx*4 + 0x426d50], eax
inc ecx
cmp ecx, 0x100
jl 0x40623d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
or edx, edx
not eax
jbe 0x406299
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d50]
xor eax, esi
inc ecx
dec edx
jne 0x40627b
pop edi
not eax
pop esi
ret 0xc

Function at 0x406b20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406b42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406b38
mov eax, 1
add ebx, ebx
jne 0x406b5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406b50
jne 0x406b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406b50
xor ecx, ecx
sub eax, 3
jb 0x406b80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406bf2
mov ebp, eax
add ebx, ebx
jne 0x406b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x406bbc
inc ecx
add ebx, ebx
jne 0x406ba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x406b9d
jne 0x406bb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406b9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x406bdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x406bcd
jmp 0x406b3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x406bdc
add edi, ecx
jmp 0x406b3e
pop esi
mov edi, esi
mov ecx, 6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x406bfa
cmp byte [edi], 2
jne 0x406bfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x406bff
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406c77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x68cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6908]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406c2c
mov ecx, edi
jns 0x406c5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x690c]
or eax, eax
je 0x406c71
mov dword [ebx], eax
add ebx, 4
jmp 0x406c49
call dword [esi + 0x691c]
mov ebp, dword [esi + 0x6910]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x406cab
sub esp, 0xffffff80
jmp 0x40124c
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x484d60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x474008], 0x8088405
inc edx
mov dword [ebx + 0x474008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x48a6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x48a702
test eax, edx
je 0x48a705
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x48a6c5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x48a6eb
add ecx, 4
js 0x48a6db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x48a6e8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x48a711
test edx, edx
jne 0x48a6b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4a5378
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4a5412
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x474c10]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x474c10]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x474c10]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x474c10]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4a5397
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4a5428
dec edx
je 0x4a545d
jmp 0x4a54ae
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4a54ae
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a5f6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4a5f8d
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4a5f7a
pop edi
pop esi
pop ebx
ret
Function at 0x4a8a34
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4a8a3a
ret

Function at 0x4b940c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, edx
dec eax
test eax, eax
jl 0x4b9433
inc eax
mov edx, ecx
and dl, 0xff
xor dl, byte [esi]
movzx edx, dl
mov edx, dword [edx*4 + 0x4761d8]
shr ecx, 8
xor edx, ecx
mov ecx, edx
inc esi
dec eax
jne 0x4b9417
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4b9474
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b94e4
lea eax, [ebp - 6]
call fcn.004b8d88
test al, al
je 0x4b94e4
lea eax, [ebp - 6]
or ecx, 0xffffffff
mov edx, 6
call fcn.004b940c
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea ecx, [ebp - 6]
mov eax, ebx
mov edi, 5
xor edx, edx
div edi
movzx eax, byte [edx + 0x4765d8]
xor byte [ecx], al
inc ebx
inc ecx
cmp ebx, 6
jne 0x4b94a8
lea eax, [ebp - 0xc]
mov ecx, 4
mov edx, esi
call fcn.004a079c
add esi, 8
lea eax, [ebp - 6]
mov ecx, 6
mov edx, esi
call fcn.004a079c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
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 + 0xad10c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xad10c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xad10c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad10c0]
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 + 0xad10c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xad10c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xad10c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad10c0]
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 [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402802
push str.SetDefaultDllDirectories
push 0xad3368
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 [0xad32f8]
push esi
mov esi, 0xad32f8
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.00a9b573
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.00a9dbd0
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.00a9dbd0
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 0xac116d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0xb04008]
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.00a9d650
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, 0xac11a7
call fcn.00ac04cb
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.00a9b581
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.00a9b581
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.00ac0499
ret

Function at 0x40af2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb06db9], 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.00a9b581
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 [0xb06db9], 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.00a9b581
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 [0xb06db9], 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.00a9b581
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, 0xac12c9
call fcn.00ac04cb
mov edi, ecx
cmp byte [0xb06db9], 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.00a9b581
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.00a9b581
pop ecx
mov al, bl
call fcn.00ac0499
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 [0xb06db9], 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.00a9b581
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 [0xb06db9], 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.00a9b581
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, 0xac146c
call fcn.00ac04cb
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00408aab
cmp byte [0xb06db9], 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.00a9b6b7
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.00a9b581
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.00a9b6b7
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.00a9b581
pop ecx
jmp 0x40c071
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00a9b581
mov al, bl
pop ecx
call fcn.00ac0499
ret
Function at 0x40c163
Capabilities:
Get file size

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