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

Disassembly:
sub esp, 0x830
mov eax, dword [0x10056b88]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
mov ebx, dword [esp + 0x838]
push ebp
push esi
xor ebp, ebp
push edi
xor eax, eax
jmp 0x1001a1e0
movzx ecx, word [eax + 0x102e5440]
mov word [esp + eax + 0x3c], cx
add eax, 2
test cx, cx
jne 0x1001a1e0
lea eax, [esp + 0x3c]
add eax, 0xfffffffe
jmp 0x1001a200
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1001a200
mov ecx, dword [0x1004d268]
mov edx, dword [0x1004d26c]
mov dword [eax], ecx
mov ecx, dword [0x1004d270]
mov dword [eax + 4], edx
mov edx, dword [0x1004d274]
mov dword [eax + 8], ecx
mov ecx, dword [0x1004d278]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a240
lea edi, [esp + 0x3c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001a254
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x3c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [0x10044044]
cmp eax, 0xffffffff
jne 0x1001a2e0
xor eax, eax
jmp 0x1001a290
movzx ecx, word [eax + 0x102e5240]
mov word [esp + eax + 0x3c], cx
add eax, 2
test cx, cx
jne 0x1001a290
mov eax, ebx
mov edx, ebx
jmp 0x1001a2b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a2b0
lea edi, [esp + 0x3c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001a2c4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10019c30
lea eax, [esp + 0x3c]
push 0x1004d260
push eax
call fcn.10027180
add esp, 8
test eax, eax
mov dword [0x100619d0], eax
jne 0x1001a308
or eax, 0xffffffff
jmp 0x1001a651
push eax
push 1
lea ecx, [esp + 0x1c]
push 3
push ecx
call fcn.10025cc8
movzx eax, byte [esp + 0x24]
add esp, 0x10
sub eax, 0x44
jne 0x1001a338
movzx eax, byte [esp + 0x15]
sub eax, 0x54
jne 0x1001a338
movzx eax, byte [esp + 0x16]
sub eax, 0x50
je 0x1001a346
test eax, eax
mov ecx, 1
jg 0x1001a348
or ecx, 0xffffffff
jmp 0x1001a348
xor ecx, ecx
test ecx, ecx
je 0x1001a35b
call fcn.10019c30
mov eax, 0xfffffffe
jmp 0x1001a651
mov edx, dword [0x100619d0]
push edx
push 1
lea eax, [esp + 0x24]
push 0x1e
push eax
call fcn.10025cc8
mov ecx, dword [0x100619d0]
push ecx
push 1
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.10025cc8
movzx eax, byte [esp + 0x34]
add esp, 0x20
xor esi, esi
test eax, eax
mov dword [0x100619d4], eax
jle 0x1001a64f
lea esp, [esp]
mov eax, dword [0x100619d0]
push eax
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
mov byte [esp + 0x23], 0
call fcn.10025cc8
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
mov al, byte [esp + 0x23]
add edx, edx
mov ecx, ebp
sub ecx, edx
xor al, byte [esp + ecx + 0x2c]
add ebp, 1
movzx edx, al
add edx, 1
push edx
mov byte [esp + 0x27], al
call fcn.10025639
mov ecx, dword [0x100619d0]
movzx edx, byte [esp + 0x27]
push ecx
push 1
push edx
push eax
mov dword [esi*4 + 0x100621d8], eax
call fcn.10025cc8
mov al, byte [esp + 0x37]
add esp, 0x24
xor ecx, ecx
test al, al
jbe 0x1001a461
lea ecx, [ecx]
mov eax, dword [esi*4 + 0x100621d8]
lea edi, [ecx + eax]
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
mov dl, byte [esp + eax + 0x1c]
xor byte [edi], dl
mov al, byte [esp + 0x13]
movzx edx, al
add ecx, 1
add ebp, 1
cmp ecx, edx
jl 0x1001a420
mov edx, dword [0x100619d0]
mov ecx, dword [esi*4 + 0x100621d8]
movzx eax, al
push edx
push 1
mov byte [eax + ecx], 0
lea eax, [esp + 0x1c]
push 8
push eax
call fcn.10025cc8
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
mov edx, ebp
sub edx, ecx
mov cl, byte [esp + 0x24]
xor cl, byte [esp + edx + 0x2c]
lea edi, [ebp + 1]
mov bl, byte [esp + 0x25]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
xor bl, byte [esp + eax + 0x2d]
lea edi, [ebp + 2]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
movzx edx, byte [esp + eax + 0x2e]
xor byte [esp + 0x26], dl
lea edi, [ebp + 3]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
movzx edx, byte [esp + eax + 0x2f]
xor byte [esp + 0x27], dl
lea edi, [ebp + 4]
mov eax, 0x88888889
imul edi
add edx, edi
add esp, 0x10
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], bl
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
movzx edx, byte [esp + eax + 0x20]
xor byte [esp + 0x18], dl
lea edi, [ebp + 5]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, ebp
sub eax, edx
movzx edx, byte [esp + eax + 0x21]
xor byte [esp + 0x19], dl
lea edi, [ebp + 6]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
lea eax, [esp + 0x22]
sub eax, edx
movzx edx, byte [eax + ebp]
xor byte [esp + 0x1a], dl
lea edi, [ebp + 7]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx ecx, cl
mov edx, eax
shl edx, 4
sub edx, eax
mov al, byte [esp + 0x1b]
add edx, edx
shl ecx, 8
lea edi, [esp + 0x23]
sub edi, edx
xor al, byte [edi + ebp]
movzx edx, bl
add ecx, edx
movzx edx, byte [esp + 0x16]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x17]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x19]
mov dword [esi*4 + 0x100619d8], ecx
movzx ecx, byte [esp + 0x18]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1a]
shl ecx, 8
add ecx, edx
mov byte [esp + 0x1b], al
add ebp, 8
shl ecx, 8
movzx eax, al
add ecx, eax
mov dword [esi*4 + 0x10061dd8], ecx
add esi, 1
cmp esi, dword [0x100619d4]
jl 0x1001a3a0
xor eax, eax
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10024c3b
add esp, 0x830
ret
jmp 0x1001a1b0