Function at 0x421970
Capabilities:
Encode data using xor
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5dd9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
mov edx, 0x521288
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x4219f7
test si, si
je 0x4219f3
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x4219f7
add eax, 4
add edx, 4
test si, si
jne 0x4219d1
xor eax, eax
jmp 0x4219fc
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x421ab6
mov eax, dword [0x545d90]
imul eax, eax
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xf
jne 0x421a2e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x421a81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x421aa2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 0x24], 0x14
mov esi, dword [0x545d90]
lea edx, [esi + 1]
lea eax, [esi + 2]
imul eax, edx
imul eax, esi
cdq
idiv dword [ebp - 0x24]
cmp edx, 0xd
jne 0x421b69
xor ebx, ebx
mov edx, ebx
and edx, 1
dec edx
not edx
and edx, esi
mov eax, ebx
sar eax, 1
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
inc ebx
add esi, eax
cmp ebx, 0x100
jl 0x421ae3
mov dword [0x545d90], esi
or ebx, 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x421b98
test edi, edi
js 0x421b98
cmp edi, dword [ecx - 0xc]
jg 0x421b98
push eax
lea eax, [ecx + edi*2]
push eax
call fcn.004b0345
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 8
test esi, esi
je 0x421b98
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
jne 0x421b9b
mov esi, dword [ecx - 0xc]
mov eax, esi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.0040f040
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041aa70
mov eax, dword [0x545d90]
imul eax, eax
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0xe
jne 0x421bdc
call fcn.004aff67
mov dword [0x545d90], eax
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 0xc]
jge 0x421c17
lea edi, [esi + 1]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x421c07
mov ecx, dword [ebp + 8]
jmp 0x421ac2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
jmp 0x421ac2
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421c87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x421ca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret