joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4fb
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x40c699
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa0
mov dword [ebp - 0x220], eax
mov esi, edx
lea eax, [ebp - 0xcc]
mov edi, ecx
push 0
push eax
call fcn.0041fa80
lea eax, [ebp - 0xcc]
mov edx, esi
push eax
mov ecx, edi
call fcn.0040c1a4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xcc]
push 0x28
pop ecx
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040c20f
mov eax, dword [ebp + 0x18]
add esp, 0x14
dec eax
xor edx, edx
push 0x14
pop ecx
div ecx
add eax, 1
mov dword [ebp - 0x228], eax
je 0x40c82b
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
inc ebx
mov dword [ebp - 0x210], ebx
xor eax, eax
mov dword [ebp - 0x224], ebx
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x15], bl
stosd dword es:[edi], eax
lea esi, [ebp - 0x20c]
push 0x28
pop ecx
push 4
stosd dword es:[edi], eax
pop edx
mov dword [ebp - 0x218], 0x3e8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ebx
shr eax, 0x18
lea edi, [ebp - 0x16c]
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c20f
lea eax, [ebp - 0x16c]
push eax
push 0x14
pop ebx
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.0040c2af
pop ecx
pop ecx
xor edx, edx
mov al, byte [ebp + edx - 0x18]
xor byte [ebp + edx - 0x2c], al
inc edx
cmp edx, ebx
jb 0x40c7aa
sub dword [ebp - 0x218], 1
lea esi, [ebp - 0xcc]
push 0x28
pop ecx
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
jne 0x40c783
mov ecx, dword [ebp - 0x214]
xor edx, edx
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x220]
push 0x14
pop eax
cmp ecx, esi
jae 0x40c7fe
mov al, byte [edi + ecx]
inc edx
mov byte [ecx + ebx], al
inc ecx
push 0x14
pop eax
cmp edx, eax
jb 0x40c7eb
mov ebx, dword [ebp - 0x210]
sub edi, eax
add dword [ebp - 0x214], eax
inc ebx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], edi
cmp eax, dword [ebp - 0x228]
jb 0x40c73a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d487
leave
ret
Function at 0x40c8d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40c905
test dl, 7
je 0x40c902
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub esi, 1
jne 0x40c8e9
mov dword [ebp - 4], edx
cmp esi, 8
jb 0x40c991
mov eax, esi
shr eax, 3
mov dword [ebp + 8], eax
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x1800]
xor ecx, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x1000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x1c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
mov ebx, ecx
add edx, 8
sub dword [ebp + 8], 1
mov dword [ebp - 4], edx
jne 0x40c916
test esi, esi
je 0x40c9a9
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub esi, 1
jne 0x40c995
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x40ec13
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40ec1b
mov dword [ecx*4 + 0x448d50], edx
inc ecx
cmp ecx, 0x100
jb 0x40ec16
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x448950]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x448d50]
mov dword [edx + 0x448d50], ecx
add edx, 4
cmp edx, 0x2000
jb 0x40ec46
mov dword [0x443d04], 0x40c83a
call fcn.0040f1d2
mov ecx, dword [0x443d04]
test eax, eax
mov edx, fcn.0040c8d3
cmove ecx, edx
mov dword [0x443d04], ecx
ret
Function at 0x40eed6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x40eef9
xor eax, eax
jmp 0x40f024
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x40ef1d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40ef1a
inc edi
cmp edi, edx
jb 0x40ef0d
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x40f012
cmp ecx, 2
jbe 0x40efa6
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x40f000
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 8]
shl ecx, 8
add edx, ebx
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, edx
sub eax, edx
cmp dword [ebp + 0x10], 0
cmove ecx, eax
mov dword [ebp - 8], ecx
mov edx, ecx
test esi, esi
je 0x40efda
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x40efd8
mov eax, dword [ebp + 8]
mov edx, 0x100
shl edx, cl
add eax, ebx
dec edx
xor edx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x40efd6
add edx, eax
jmp 0x40efd8
shr esi, cl
test esi, esi
je 0x40ef36
cmp esi, 4
ja 0x40efcb
cmp esi, 3
je 0x40efcb
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x40ef36
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x40ef06
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
pop eax
jmp 0x40f008
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x40ef06
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40f87d
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x411b92
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
mov edx, ecx
push ebx
push esi
push edi
mov eax, dword [edx + 0xc]
mov ebx, dword [edx]
mov edi, dword [edx + 4]
mov esi, dword [edx + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
je 0x411c0c
mov edx, dword [ebp - 4]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp + 0xc]
shr ecx, 8
xor cl, byte [eax]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edx + eax*4]
movzx eax, bl
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
mov byte [eax], cl
inc eax
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x411bb3
mov edx, dword [ebp - 8]
mov dword [edx + 4], edi
pop edi
mov dword [edx + 8], esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 8]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x411c64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 2
movsd dword es:[edi], dword [esi]
pop ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
xor edi, edi
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00411c1b
mov byte [ebp + edi - 0x10], bl
inc edi
push 2
pop ecx
cmp edi, 0xb
jl 0x411c8b
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.00411c1b
cmp bl, byte [ebp + 0x10]
pop ebx
jne 0x411d00
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp dl, byte [ebp + 0xc]
setne cl
xor eax, eax
mov dword [esi + 0x10], ecx
inc eax
jmp 0x411d02
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041d487
leave
ret 0xc
Function at 0x41297f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4129c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4129a1
cmp eax, 2
jne 0x4129c8
mov ecx, esi
call fcn.00412fef
mov esi, eax
test esi, esi
je 0x4129c8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.004243e2
pop ecx
cmp ebx, 0xffffffff
je 0x4129c8
test bl, 0x10
je 0x4129cc
xor eax, eax
jmp 0x4129cf
xor eax, eax
inc eax
pop esi
pop ebx
ret
Function at 0x412f71
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x412fe8
cmp word [esi], 0
je 0x412fe8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424d9f
mov edi, eax
pop ecx
test edi, edi
je 0x412fe8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, edi
call fcn.00412f42
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00412b21
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x412fdc
test bl, 7
je 0x412fdc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.004243e2
mov eax, dword [ebp - 4]
pop ecx
jmp 0x412fea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413b21
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x413bf5
cmp dword [ebp + 8], edi
je 0x413bf5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x10]
and eax, 0x10
mov dword [ebp + 0x10], eax
je 0x413b68
mov edx, dword [ebp + 0x18]
mov ecx, esi
push ebx
call fcn.00412b21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 2
jne 0x413bba
xor ecx, ecx
test eax, eax
setne cl
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
movzx edi, al
test al, al
jne 0x413bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x413bd9
mov ecx, esi
call fcn.00412fef
mov esi, eax
test esi, esi
je 0x413bd9
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
push esi
movzx edi, al
call fcn.004243e2
jmp 0x413bcf
cmp dword [ebp + 0x14], 1
jne 0x413bd9
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, esi
call fcn.00413a37
mov edi, eax
pop ecx
test edi, edi
je 0x413bd9
and dword [ebx], 0
jmp 0x413bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x522
setne cl
add ecx, 0xa0000076
mov dword [ebx], ecx
mov eax, edi
jmp 0x413bf7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416f68
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], eax
lea ebx, [edi + 0x44]
and dword [ebx], 0
cmp dword [edi + 0xc], 0xffffffff
je 0x416f97
mov eax, dword [edi]
call dword [eax + 0x2c]
mov eax, dword [edi + 0x48]
mov ecx, esi
push dword [eax + 0x60]
push dword [ebp + 0x14]
push ebx
push dword [ebp - 8]
call fcn.00416d0d
add esp, 0x10
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x416fba
xor eax, eax
jmp 0x417010
mov ecx, edi
call fcn.004175f1
push esi
mov ecx, edi
call fcn.004175b2
test esi, esi
je 0x41700d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x41700d
push 0x3a
pop ecx
cmp word [esi + 2], cx
jne 0x41700d
push 0x5c
pop edx
cmp word [esi + 4], dx
jne 0x41700d
mov ax, word [esi]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], cx
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d487
leave
ret 0x10
Function at 0x4170bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
je 0x4170f0
mov ebx, dword [esi + 0x1c]
sub ebx, dword [esi + 0x20]
jns 0x417103
mov dword [esi + 0x44], 0xa0000047
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d487
leave
ret 0xc
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x417127
cmp dword [esi + 0x18], ecx
je 0x417127
push dword [esi + 0x18]
call fcn.00424d9f
pop ecx
mov ecx, eax
mov dword [esi + 0x14], ecx
test ecx, ecx
je 0x4170f0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
ja 0x417156
test ecx, ecx
je 0x417156
mov eax, dword [esi + 0x20]
push edi
add eax, ecx
push eax
push edx
call fcn.00421130
add dword [esi + 0x20], edi
add esp, 0xc
add dword [esi + 0x28], edi
mov ecx, dword [ebp - 0xc]
adc dword [esi + 0x2c], 0
mov dword [ecx], edi
xor eax, eax
inc eax
jmp 0x4170f2
and dword [eax], 0
test ebx, ebx
jle 0x417196
cmp dword [esi + 0x14], 0
je 0x417196
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x14]
push ebx
push eax
push edx
call fcn.00421130
mov eax, dword [ebp - 0xc]
add esp, 0xc
and dword [esi + 0x1c], 0
sub edi, ebx
and dword [esi + 0x20], 0
mov ecx, dword [ebp - 8]
add dword [eax], ebx
add ecx, ebx
mov eax, ebx
mov dword [ebp - 8], ecx
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
jmp 0x417199
mov ecx, dword [ebp - 8]
mov ebx, dword [esi + 0x18]
cmp edi, ebx
jb 0x4171da
xor ebx, ebx
lea eax, [ebp - 8]
push ebx
push eax
push edi
push ecx
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4171c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x44], eax
jmp 0x4170f0
mov eax, dword [ebp - 8]
add dword [esi + 0x28], eax
mov ecx, dword [ebp - 0xc]
adc dword [esi + 0x2c], ebx
add dword [ecx], eax
jmp 0x417151
mov ecx, ebx
lea edx, [edi + 0x1000]
shr ecx, 1
cmp edx, ecx
ja 0x4171f4
mov eax, ebx
mov ebx, ecx
shr eax, 2
cmp edx, eax
cmovbe ebx, eax
push 0
push 0x1000
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.00433500
mov ecx, eax
mov dword [ebp - 0x10], eax
or ecx, edx
je 0x417221
mov eax, ebx
cmp ebx, 0x1000
jbe 0x41721c
sub eax, dword [ebp - 0x10]
cmp eax, edi
cmovae ebx, eax
xor ecx, ecx
lea eax, [esi + 0x1c]
push ecx
push eax
push ebx
push dword [esi + 0x14]
mov dword [eax], ecx
push dword [esi + 0xc]
mov dword [esi + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4171b9
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x417151
cmp edi, ebx
jae 0x41725b
mov ebx, edi
test edi, edi
je 0x417151
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x20]
push ebx
push eax
push dword [ebp - 8]
call fcn.00421130
add dword [esi + 0x20], ebx
add esp, 0xc
add dword [esi + 0x28], ebx
mov eax, dword [ebp - 0xc]
adc dword [esi + 0x2c], 0
add dword [eax], ebx
jmp 0x417151
Function at 0x4175f1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
xor edx, edx
add edx, eax
mov dword [esi + 0x30], edx
adc ecx, 0
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d487
leave
ret

Function at 0x41763b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x41765b
xor eax, eax
jmp 0x417692
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x417687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x44], eax
jmp 0x41768e
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], 0
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d487
leave
ret 8

Function at 0x4176de
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor eax, eax
mov dword [ebp - 4], edx
push eax
push eax
push 2
push eax
push 5
mov edi, ecx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4177ba
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
je 0x417769
cmp esi, 0x7b
je 0x417769
cmp esi, 3
jne 0x4177ab
cmp dword [ebp + 0x10], 0
je 0x4177b4
mov ecx, edi
call fcn.00412fef
mov edi, eax
test edi, edi
je 0x4177b4
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004243e2
pop ecx
cmp ebx, 0xffffffff
jne 0x4177b9
jmp 0x4177ab
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4177ab
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4177b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4177b4
mov esi, 0xa0000031
mov eax, dword [ebp - 4]
mov dword [eax], esi
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41790b
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x435820
call fcn.0043328e
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call fcn.00412a21
mov esi, eax
test esi, esi
je 0x4179f3
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0xc], 0xffffffff
je 0x41794d
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0x20]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x417963
push 0xffffffffffffffff
push esi
push dword [ebp + 0x14]
push eax
call fcn.004264a5
add esp, 0x10
push ecx
push ecx
push dword [ebp - 0x1c]
mov ecx, edi
push esi
call fcn.004179fb
test eax, eax
jne 0x41799d
mov edx, dword [edi + 0x140]
mov ecx, esi
push dword [ebp - 0x1c]
mov edx, dword [edx + 0x1c]
call fcn.00412b21
pop ecx
test eax, eax
je 0x4179ea
push ecx
push ecx
push dword [ebp - 0x1c]
mov ecx, edi
push esi
call fcn.004179fb
test eax, eax
je 0x4179ea
push esi
call fcn.004254bd
pop ecx
push esi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x4179e7
push 0x3a
pop ecx
cmp word [esi + 2], cx
jne 0x4179e7
push 0x5c
pop edx
cmp word [esi + 4], dx
jne 0x4179e7
mov ax, word [esi]
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x16], cx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0x38], eax
xor ebx, ebx
inc ebx
push esi
call fcn.004243e2
pop ecx
mov eax, ebx
call fcn.00433238
ret 0x1c

Function at 0x417a2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x417a4b
inc eax
jmp 0x417a81
push 0
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
cmp ecx, dword [esi + 0x13c]
je 0x417a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
xor eax, eax
jmp 0x417a81
and dword [esi + 0x13c], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d487
leave
ret