Function at 0x43c300
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x16b7c]
mov eax, 0x16b7c
call fcn.004df4b0
push 0xffffffffffffffff
push 0x5128ab
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x56fcd4]
xor eax, ebp
mov dword [ebp + 0x16b78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x16b84]
xor edi, edi
mov eax, dword [ebp + 0x16b94]
mov ebx, dword [ebp + 0x16b88]
mov dword [ebp - 0x70], eax
movzx eax, word [edx + 4]
movzx esi, byte [edx]
imul esi, eax
movzx eax, word [edx + 2]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x4c], edi
imul esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
test esi, esi
je 0x43c3a5
push esi
lea ecx, [ebp - 0x50]
call fcn.00432250
push esi
push edi
mov edi, dword [ebp - 0x50]
push edi
mov dword [ebp - 0x1c], edi
call fcn.004e1450
mov eax, dword [ebp - 0x48]
add esp, 0xc
add edi, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], edi
imul esi, dword [ebp + 0x16b90]
mov ebx, dword [ebx]
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x1c]
mov eax, esi
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp ecx, dword [ebx]
je 0x43c968
lea esi, [ebx + 0x20]
push esi
mov dword [ebp - 0x28], esi
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43c9b7
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x43c9be
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov edx, dword [ebp - 0x20]
and eax, edx
mov byte [ebp - 4], 3
cmp eax, 0xffffffff
je 0x43c44b
push 0
lea eax, [ebp - 0x6c]
push eax
push edx
push ecx
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43c44b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x16a98]
push eax
call fcn.00444f10
push eax
lea eax, [ebp + 0x16ab0]
mov byte [ebp - 4], 4
push str.Failed_to_seek_file:
push eax
call fcn.00403560
add esp, 0x14
mov byte [ebp - 4], 5
jmp 0x43c9a0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push 0
push ecx
sub edi, eax
mov dword [ebp - 0x10], 0
push edi
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x10]
push esi
mov byte [ebp - 4], 0
call fcn.004dd29d
add esp, 4
test edi, edi
jne 0x43c48a
push edi
push str.read:_zd._n
call fcn.00452bc0
add esp, 8
push 0x7080
lea eax, [ebp + 0xfa00]
push 0
push eax
call fcn.004e1450
push 0x7d00
lea eax, [ebp]
push 0
push eax
call fcn.004e1450
push 0x7d00
lea eax, [ebp + 0x7d00]
push 0
push eax
call fcn.004e1450
mov ebx, dword [ebp - 0x18]
add esp, 0x24
mov dword [ebp + 0x7d02], 0xfb2a14d1
mov byte [ebp + 0x7d06], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebx + 8]
mov dl, byte [ebx]
movzx esi, word [ebx + 4]
movzx ecx, word [ebx + 2]
mov dword [ebp + 0x7d10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x7d18], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0x7d14], eax
mov eax, esi
movzx edi, dl
mov ebx, edi
mov word [ebp + 0x7d0e], si
mov esi, dword [ebp - 0x18]
imul edi, eax
imul ebx, ecx
mov byte [ebp + 0x7d0b], dl
mov word [ebp + 0x7d0c], cx
imul edi, dword [ebp + 0x16b90]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], edi
movzx edi, byte [esi + 0x14]
imul edi, eax
lea eax, [ecx + 0x20]
mov dword [ebp - 0x10], eax
imul edi, dword [ebp + 0x16b90]
cmp dword [ebp + 0x16b8c], 0
mov dword [ebp - 0x14], edi
jbe 0x43c90f
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
nop
push ebx
push ecx
lea eax, [ebp + 0xfa00]
push eax
call fcn.004e0ed0
mov al, byte [esi]
add esp, 0xc
movzx ecx, al
mov dword [ebp - 0x28], ecx
test al, al
je 0x43c6e9
mov eax, dword [esi + 8]
movzx ebx, word [esi + 2]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0x8c]
mov esi, dword [eax + 0x90]
mov edi, dword [eax + 0x94]
lea eax, [ebp + 0xfa00]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x2c], eax
nop
mov ecx, dword [ebp - 0x30]
mov ebx, 4
mov dword [ebp + 0x16acc], esi
xor esi, esi
mov dword [ebp + 0x16ad0], edi
lea edi, [ebp + 0x16ad8]
mov dword [ebp + 0x16ac8], edx
mov eax, dword [ecx + 0x98]
mov dword [ebp + 0x16ad4], eax
nop
lea eax, [esi + 3]
cdq
idiv ebx
lea ecx, [edx + eax*4]
lea eax, [esi + 4]
mov ecx, dword [ebp + ecx*4 + 0x16ac8]
cdq
idiv ebx
test edx, edx
jne 0x43c64e
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x567100]
xor edx, dword [eax*4 + 0x569900]
mov eax, ecx
shr eax, 8
shl edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x567100]
movzx eax, cl
shl edx, 8
shr ecx, 0x18
xor edx, dword [eax*4 + 0x567100]
shl edx, 8
xor edx, dword [ecx*4 + 0x567100]
mov ecx, edx
mov eax, esi
inc esi
cdq
idiv ebx
lea eax, [edx + eax*4]
mov eax, dword [ebp + eax*4 + 0x16ac8]
xor eax, ecx
mov dword [edi], eax
lea eax, [esi + 4]
add edi, ebx
cmp eax, 0x2c
jl 0x43c5f0
mov eax, dword [ebp - 0x54]
xor esi, esi
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x34]
mov dword [ebp + 0x16abc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x16ab8], edi
mov dword [ebp + 0x16ac0], eax
mov dword [ebp + 0x16ac4], ebx
test ebx, ebx
je 0x43c6c1
push 0xa
lea eax, [ebp + 0x16ac8]
push eax
lea eax, [ebp + 0x16ab8]
push eax
call fcn.0042fe00
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov al, byte [ebp + 0x16ab8]
xor byte [ecx + esi], al
inc esi
cmp esi, ebx
jb 0x43c696
jmp 0x43c6c4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x60]
inc edi
mov esi, dword [ebp - 0x64]
add ecx, ebx
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x2c], ecx
jne 0x43c5c0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
movzx eax, word [esi + 2]
push ecx
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0xfa00]
push eax
call fcn.00447e80
xor bl, bl
add esp, 0x10
cmp byte [esi + 0x14], bl
jbe 0x43c7f7
nop dword [eax]
movzx esi, word [esi + 2]
lea ecx, [ebp]
movzx eax, bl
imul eax, esi
push esi
add eax, ecx
push eax
lea eax, [ebp + 0x7d20]
push eax
call fcn.004e0ed0
lea eax, [esi + 0x15]
mov dword [ebp + 0x7d1c], edi
push eax
lea eax, [ebp + 0x7d0b]
push eax
push 0
call fcn.00452c60
mov dword [ebp + 0x7d07], eax
add esp, 0x18
mov eax, dword [ebp - 0x70]
mov edi, dword [eax]
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi]
je 0x43c8bb
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x68], esi
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43c9b7
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x43c9be
push 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xa
push eax
push 0
push dword [ebp - 0x28]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43c86f
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x7d00]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x3c]
jne 0x43c81b
push esi
mov byte [ebp - 4], 0
call fcn.004dd29d
mov esi, dword [ebp - 0x18]
inc bl
mov edi, dword [ebp - 0x14]
add esp, 4
inc edi
mov dword [ebp - 0x14], edi
cmp bl, byte [esi + 0x14]
jb 0x43c710
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
inc ebx
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ecx
cmp ebx, dword [ebp + 0x16b8c]
jae 0x43c90f
mov ebx, dword [ebp - 0x24]
jmp 0x43c560
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0x16a98]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0x16a80]
mov byte [ebp - 4], 0xd
push str.Failed_to_write_to_file.
push eax
call fcn.00403560
add esp, 0xc
push eax
lea ecx, [ebp + 0x16abc]
mov byte [ebp - 4], 0xe
call fcn.00424bb0
push 0x552298
lea eax, [ebp + 0x16abc]
jmp 0x43c9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x16a80]
push eax
call fcn.00444f10
push eax
lea eax, [ebp + 0x16a98]
mov byte [ebp - 4], 0xb
push str.Failed_to_seek_file:
push eax
call fcn.00403560
add esp, 0x14
push eax
lea ecx, [ebp + 0x16abc]
mov byte [ebp - 4], 0xc
call fcn.00424bb0
push 0x552298
lea eax, [ebp + 0x16abc]
jmp 0x43c9b1
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0x16a80]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0x16a98]
mov byte [ebp - 4], 8
push str.File_not_opened.
push eax
call fcn.00403560
add esp, 0xc
push eax
lea ecx, [ebp + 0x16abc]
mov byte [ebp - 4], 9
call fcn.00424bb0
push 0x552298
lea eax, [ebp + 0x16abc]
jmp 0x43c9b1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43c943
mov edx, dword [ebp - 0x44]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x43c939
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43c9c9
push edx
push ecx
call fcn.004dee43
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x16b78]
xor ecx, ebp
call fcn.004df28f
lea esp, [ebp + 0x16b7c]
pop ebp
ret 0x14
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0x16ab0]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0x16a98]
mov byte [ebp - 4], 1
push str.File_not_opened.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x7c]
call fcn.00424bb0
push 0x552298
lea eax, [ebp - 0x7c]
push eax
call fcn.004e084f
push 5
call fcn.004dd640
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.004dd640
call fcn.004eaaef
int3