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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ce2d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1000d22e
cmp edi, 0x100b7b44
je 0x1000d1aa
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x1000d19e
mov ecx, dword [edi]
push eax
push ecx
mov ecx, 0x100b7b44
call fcn.10006300
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1000d1b4
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x1000d235
movaps xmm0, xmmword [0x100afcb0]
xor ecx, ecx
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x4c], 0x44445316
movaps xmm0, xmmword [0x100af580]
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x48], 0x3c4459
movaps xmm0, xmmword [0x100af7f0]
movups xmmword [ebp - 0x5c], xmm0
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0x36
jb 0x1000d206
cmp dword [edi + 0x14], 0xf
mov byte [ebp - 0x45], 0
jbe 0x1000d21f
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x7b]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x1000d45e
mov dh, 0xf
mov byte [ebp - 0x35], 0
mov cl, 0x6b
mov byte [ebp - 0x3c], dh
mov dl, 0x7c
mov byte [ebp - 0x35], 0
mov bl, 0x7b
xor cl, dh
xor bl, dh
mov byte [ebp - 0x3a], cl
mov al, 0x21
mov byte [ebp - 0x38], bl
mov ah, 0x62
mov ch, 0x7f
xor al, dh
xor dl, dh
xor ah, dh
mov byte [ebp - 0x39], dl
xor ch, dh
mov byte [ebp - 0x3b], al
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x36], ch
lea ecx, [ebp - 0x3b]
mov byte [ebp - 0x37], ah
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d275
mov eax, 0x7fffffff
sub ecx, ebx
sub eax, edx
cmp eax, ecx
jb 0x1000d47c
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1000d297
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x3b]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1000f860
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x1000d2e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
xor bl, bl
jmp 0x1000d423
push esi
call fcn.1007fa59
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x40]
mov edi, 0x816
mov eax, dword [ebp - 0x34]
xor esi, esi
nop
movzx ecx, byte [eax + esi]
mov edx, edi
add cx, di
shr edx, 8
xor dl, byte [eax + esi]
mov eax, 0x6081
movzx ecx, cx
imul ecx, eax
mov eax, 0x7105
add cx, ax
mov eax, dword [ebp - 0x34]
movzx edi, cx
mov byte [eax + esi], dl
inc esi
cmp esi, ebx
jb 0x1000d320
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov ebx, dword [ebp - 0x34]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push ebx
call fcn.1007fa54
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov ecx, 0x100b7b2c
push esi
call fcn.1000d980
push esi
mov bl, al
call edi
mov edi, dword [ebp - 0x44]
test bl, bl
jne 0x1000d418
movaps xmm0, xmmword [0x100af910]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
movaps xmm0, xmmword [str._PAAVPG]
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x1e
jb 0x1000d3f0
cmp dword [edi + 0x14], 0xf
mov byte [ebp - 0x45], 0
jbe 0x1000d409
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x63]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.10087c28
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0xf
jbe 0x1000d45c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d452
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d481
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret 4
call fcn.10002380
call fcn.10084bdf
int3