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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100618f0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10079040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x10024d3b
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10024d3b
cmp byte [0x1007b4de], 0
jne 0x10024920
xor eax, eax
mov byte [0x1007b4de], 1
mov word [0x1007b4dc], ax
cmp dword [esi + 8], 2
je 0x10024946
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1002493c
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x800018]
call eax
mov eax, 0xfffffff3
jmp 0x10024d56
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002493c
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x24c], edx
test edx, edx
je 0x1002493c
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x10140], eax
mov eax, dword [esi + 4]
push 0xa
push 0
push esi
mov dword [eax + 0xc], 0x10024480
mov dword [esi + 8], 9
call edx
push 0x800000
lea eax, [esi + 0xc]
push 0
push eax
mov dword [ebp - 0x240], eax
call fcn.10037990
add esp, 0xc
push edi
push ebx
push 1
lea edi, [esi + 0xc]
push edi
call fcn.1003bf7f
add esp, 0x10
xor edx, edx
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dx
shr ecx, 8
xor ecx, eax
shl edx, 8
xor dx, word [ecx*2 + 0x1006fc80]
movzx edx, dx
sub ebx, 1
jne 0x100249a6
mov ebx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x230], ecx
xor edi, edi
cmp edi, 3
jge 0x10024aa4
mov eax, edi
sub eax, 0
je 0x10024a0b
sub eax, 1
je 0x100249fe
sub eax, 1
jne 0x10024a47
movzx eax, cx
push eax
push str.IBFWXCR
push str._s_d
jmp 0x10024a22
push ebx
push str.IBFWXSZ
push str._s_zu
jmp 0x10024a22
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push str.IBFWXFN
push 0x1007206c
lea eax, [ebp - 0x21c]
push eax
call fcn.10007ab0
lea eax, [ebp - 0x21c]
push eax
push str.protocol_sendFileCommandsBS
push str._s:_s
call fcn.10006b50
add esp, 0x1c
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024a50
sub ecx, edx
lea edx, [ebp - 0x21c]
push 0
push ecx
mov ecx, esi
call fcn.10022860
mov ecx, dword [esi + 0x800018]
lea eax, [ebp - 0x254]
add esp, 8
mov dword [ebp - 0x254], 0x1388
add ecx, 0x1c8
mov dword [ebp - 0x250], 0
push eax
call fcn.10014790
mov ecx, dword [ebp - 0x230]
inc edi
jmp 0x100249d4
push 0x1e
push 0
push esi
mov dword [ebp - 0x234], 0x1e
call dword [ebp - 0x24c]
cmp dword [esi + 0x80001c], 0
je 0x10024ace
mov ecx, esi
call fcn.100247e0
jmp 0x10024d56
mov edi, str.IBFD
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10024ad6
sub edi, ecx
mov dword [ebp - 0x244], 0x14
mov ecx, ebx
xor edx, edx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x22c], edx
mov edx, 0x3d0
test ecx, ecx
je 0x10024c76
cmp ecx, edx
movzx eax, cx
cmovg eax, edx
movzx eax, ax
mov dword [ebp - 0x230], eax
add eax, 8
movzx eax, ax
push eax
mov dword [ebp - 0x250], eax
call fcn.100337f8
add esp, 4
mov ebx, eax
push dword [ebp - 0x250]
push 0
push ebx
call fcn.10037990
add esp, 0xc
push edi
push str.IBFD
push ebx
call fcn.10037b50
mov ecx, dword [ebp - 0x22c]
add esp, 0xc
mov eax, ecx
mov byte [ebx + 7], cl
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 6], al
mov eax, dword [ebp - 0x230]
movzx eax, ax
push eax
push dword [ebp - 0x240]
lea eax, [ebx + 8]
push eax
call fcn.10037b50
add esp, 0xc
mov edx, ebx
mov ecx, esi
push 0
push dword [ebp - 0x250]
call fcn.10022860
mov ecx, dword [esi + 0x800018]
lea eax, [ebp - 0x23c]
add esp, 8
mov dword [ebp - 0x23c], 0x1388
add ecx, 0x1c8
mov dword [ebp - 0x238], 0
push eax
call fcn.10014790
mov ecx, dword [ebp - 0x230]
movzx eax, cx
sub dword [ebp - 0x248], eax
add dword [ebp - 0x240], eax
add dword [ebp - 0x22c], eax
push ebx
call fcn.1003349b
add esp, 4
cmp dword [esi + 0x80001c], 0
jne 0x10024ac2
mov eax, dword [ebp - 0x22c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x100726e0]
mov eax, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100726e0]
divsd xmm1, xmm0
movd xmm0, dword [ebp - 0x244]
mulsd xmm1, qword [0x100726d0]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x10024c6b
mov ebx, dword [ebp - 0x234]
add ebx, 0xa
push ebx
push 0
push esi
mov dword [ebp - 0x234], ebx
call dword [ebp - 0x24c]
add dword [ebp - 0x244], 0x14
mov ecx, dword [ebp - 0x248]
jmp 0x10024af9
push 0x50
push 0
push esi
call dword [ebp - 0x24c]
mov ecx, str.IBBU
mov dword [esi + 8], 5
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024c90
sub ecx, edi
mov edx, str.IBBU
push 0
push ecx
mov ecx, esi
call fcn.10022860
mov ecx, dword [esi + 0x800018]
lea eax, [ebp - 0x23c]
add esp, 8
mov dword [ebp - 0x23c], 0x1388
add ecx, 0x1c8
mov dword [ebp - 0x238], 0
push eax
call fcn.10014790
mov esi, dword [esi + 0x800018]
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x23c], 0x7530
mov dword [ebp - 0x238], 0
lea ecx, [esi + 0x1c8]
call fcn.10014790
mov ecx, esi
call fcn.1000a750
mov ecx, eax
test ecx, ecx
je 0x10024d37
mov edx, dword [ecx + 4]
test edx, edx
je 0x10024d37
cmp dword [ecx + 0x80001c], 0
jne 0x10024ac4
mov eax, dword [edx + 0x10140]
mov dword [edx + 0xc], eax
mov dword [ecx + 0x80000c], 0
xor eax, eax
jmp 0x10024d56
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10024d51
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x800018]
call eax
mov eax, 0xfffffff8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10033290
mov esp, ebp
pop ebp
ret