Function at 0x1003ab80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov byte [ebp - 0xc2], dl
push edi
mov byte [ebp - 0xc9], 0
mov byte [ebp - 0xc1], 1
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
mov dword [ebp - 0xd4], ebx
test edi, edi
je 0x1003b28c
mov eax, dword [esi + 0x160]
cmp byte [eax + 0x4a], 0
je 0x1003b24a
movzx ecx, word [esi + 0x14a]
movzx edx, word [esi + 0x142]
mov eax, ecx
add eax, dword [edi + 4]
mov dword [ebp - 0xe4], eax
mov ax, dx
sub ax, word [esi + 0x14c]
sub ax, cx
movzx eax, ax
mov dword [ebp - 0xc8], eax
movzx eax, byte [esi + 0x13a]
add ax, dx
movzx ecx, ax
mov al, byte [ebp - 0xc2]
mov dword [ebp - 0xd0], ecx
test al, al
jne 0x1003ac49
cmp byte [esi + 0x140], 0xff
lea edx, [esi + 0x140]
mov dword [ebp - 0xdc], edx
je 0x1003ac49
movzx eax, cx
movzx ecx, word [edi]
sub ecx, eax
cmp ecx, 0x40
jge 0x1003ac98
mov ecx, dword [ebp - 0xd0]
mov al, byte [ebp - 0xc2]
mov byte [ebp - 0xc9], 1
test al, al
jne 0x1003ac6d
mov eax, dword [0x100585b0]
mov eax, dword [eax + 0x64]
shr eax, 2
test al, 1
je 0x1003ac6d
mov ax, word [edi]
mov word [esi + 0x148], ax
movzx eax, word [esi + 0x148]
lea edx, [esi + 0x140]
mov dword [ebp - 0xdc], edx
cmp cx, ax
jae 0x1003ac98
sub eax, ecx
lea edi, [esi + 0x141]
movzx eax, ax
mov dword [ebp - 0xe0], edi
jmp 0x1003acdc
mov al, byte [esi + 0x141]
lea edi, [esi + 0x141]
movzx ecx, al
mov byte [ebp - 0xd5], al
mov eax, dword [ebp - 0xc8]
movzx eax, ax
add ecx, eax
mov dword [ebp - 0xe0], edi
cmp ecx, 4
jae 0x1003ad32
movzx eax, byte [ebp - 0xd5]
mov ecx, 4
sub cx, ax
sub cx, word [ebp - 0xc8]
movzx eax, cx
mov dword [ebp - 0xd0], eax
test ax, ax
je 0x1003ad3e
mov ecx, dword [esi + 0x10]
movzx eax, ax
push eax
movzx eax, word [esi + 0x142]
add eax, dword [ecx + 4]
push 0
push eax
call fcn.10049330
mov ecx, dword [ebp - 0xc8]
lea edx, [esi + 0x140]
mov eax, dword [ebp - 0xd0]
add esp, 0xc
add ecx, eax
mov dword [ebp - 0xdc], edx
add word [esi + 0x142], ax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xe0], edi
jmp 0x1003ad44
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xe0], edi
mov ecx, dword [ebp - 0xc8]
cmp byte [edx], 0xff
je 0x1003ad78
movzx eax, byte [edi]
movzx edx, byte [esi + 0x13a]
mov edi, dword [ebp - 0xe4]
add dx, ax
add dx, cx
mov eax, 0x4000
or dx, ax
movzx eax, word [esi + 0x14e]
mov ch, dl
mov cl, dh
mov word [eax + edi], cx
jmp 0x1003ad7e
mov edi, dword [ebp - 0xe4]
test byte [0x10059abe], 0x80
je 0x1003ade8
push dword [ebx + 0xb2c]
mov ax, word [esi + 0x14c]
xor dl, dl
add ax, word [ebp - 0xc8]
mov ecx, ebx
movzx eax, ax
push edi
push eax
mov eax, dword [esi + 0x160]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x68]
movzx eax, byte [eax + 0x19]
push eax
call fcn.1000bd00
movzx eax, word [esi + 0x14c]
xor dl, dl
push eax
add eax, dword [ebp - 0xc8]
mov ecx, ebx
push edi
push eax
mov eax, dword [esi + 0x160]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002edd0
add esp, 0x2c
cmp byte [esi + 0x13a], 0
je 0x1003b112
test byte [0x10059abf], 1
je 0x1003ae17
mov eax, dword [esi + 0x160]
mov edx, 0x1004c790
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.100049e0
add esp, 8
movzx ecx, byte [esi + 0x13a]
mov eax, dword [ebp - 0xc8]
movzx ebx, word [esi + 0x14c]
add eax, ecx
add word [esi + 0x142], cx
movzx edx, ax
movzx eax, ax
mov dword [ebp - 0xc8], eax
lea eax, [edi + ebx]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0xbc], edx
mov edx, dword [esi + 0x160]
mov dword [ebp - 0xd0], eax
add edx, 0x10
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0xc]
call fcn.1000ce50
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x34]
add esp, 4
push dword [ebp - 0xd0]
push dword [ebp - 0xc8]
push dword [ebp - 0xe4]
push ebx
call fcn.1003ee80
add esp, 0x10
test eax, eax
jns 0x1003aec3
mov ebx, dword [ebp - 0xd4]
mov ecx, ebx
push 0x12
cdq
push str.Encryption_failure
push edx
push eax
mov edx, 0x12
lfence
call fcn.10010570
mov dl, byte [ebp - 0xc2]
add esp, 0x10
cmp byte [ebp - 0xc9], 0
jmp 0x1003b2b6
test byte [0x10059abf], 1
je 0x1003aee5
mov eax, dword [esi + 0x160]
mov edx, 0x1004d158
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.100049e0
add esp, 8
mov ebx, dword [ebp - 0xd4]
test byte [ebx + 0xc1], 8
je 0x1003b02c
mov edi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd0]
movzx eax, byte [edi]
sub ecx, eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], ecx
add ecx, 4
cmp byte [eax], 0xff
jne 0x1003af7c
movzx eax, byte [esi + 0x138]
movups xmm0, xmmword [ecx]
mov ecx, dword [ebp - 0xe4]
shr eax, 2
and eax, 0xf
add eax, eax
movups xmmword [esi + eax*8 + 0x18], xmm0
movzx eax, byte [esi + 0x138]
shr eax, 2
and eax, 0xf
mov dword [esi + eax*4 + 0x118], ecx
mov al, byte [esi + 0x138]
lea ecx, [eax + 4]
xor cl, al
and cl, 0x3c
xor cl, al
mov byte [esi + 0x138], cl
and cl, 0x3c
cmp cl, 0x20
jne 0x1003b02c
mov ecx, esi
call fcn.1003aa70
jmp 0x1003b02c
lea eax, [esi + 0x98]
mov dl, 1
push eax
lfence
push ecx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 8]
call fcn.1003efe0
add esp, 8
mov dword [ebp - 0xe0], eax
test eax, eax
jns 0x1003aff5
lfence
test byte [0x10059ab8], 4
je 0x1003afca
push 0x1004bf7c
push str.C:__w1_s_srccorepacket_builder.c
push 0x362
call fcn.1003e120
mov eax, dword [ebp - 0xe0]
add esp, 0xc
push 0xa
push str.HP_failure
cdq
mov ecx, ebx
push edx
push eax
mov edx, 0x12
call fcn.10010570
mov dl, byte [ebp - 0xc2]
add esp, 0x10
cmp byte [ebp - 0xc9], 0
jmp 0x1003b2b6
mov al, byte [esi + 0x98]
xor dl, dl
mov ecx, dword [ebp - 0xe4]
and al, 0xf
xor byte [ecx], al
cmp byte [edi], dl
jbe 0x1003b02c
mov ebx, dword [ebp - 0xd0]
movzx eax, dl
inc dl
lea ecx, [eax + ebx]
mov al, byte [eax + esi + 0x99]
xor byte [ecx], al
cmp dl, byte [edi]
jb 0x1003b011
mov ebx, dword [ebp - 0xd4]
mov eax, dword [esi + 0x13c]
mov eax, dword [ebx + eax*4 + 0x868]
mov dword [ebp - 0xd0], eax
movzx eax, byte [esi + 0x13a]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [ebp - 0xbc]
movzx eax, ax
cdq
mov dword [ebp - 0xd4], edx
mov edx, eax
mov eax, dword [ebp - 0xdc]
sub edx, ecx
mov ecx, dword [ebp - 0xd4]
sbb ecx, edi
mov edi, dword [ebp - 0xd0]
add edx, dword [edi + 0x188]
mov dword [edi + 0x188], edx
adc ecx, dword [edi + 0x18c]
mov dword [edi + 0x18c], ecx
cmp byte [eax], 0xff
jne 0x1003b134
add edx, 0x5dc
adc ecx, 0
cmp ecx, dword [ebx + 0x44]
jb 0x1003b134
ja 0x1003b0b1
cmp edx, dword [ebx + 0x40]
jb 0x1003b134
test byte [edi + 0x190], 2
jne 0x1003b134
test byte [ebx + 0xc2], 2
je 0x1003b134
mov ecx, ebx
call fcn.10029d20
mov edi, eax
lfence
test edi, edi
jns 0x1003b0fe
test byte [0x10059abb], 4
je 0x1003b0f0
push str.Send_triggered_key_update
push edi
push ebx
mov edx, 0x1004ce88
call fcn.100048b0
add esp, 0xc
push 0x19
push str.Send_triggered_key_update
mov eax, edi
jmp 0x1003afd1
mov dl, 1
mov ecx, ebx
call fcn.10029ea0
mov eax, dword [ebx + 0x8e0]
mov dword [esi + 0x14], eax
jmp 0x1003b134
test byte [0x10059abf], 1
je 0x1003b134
mov eax, dword [esi + 0x160]
mov edx, 0x1004d158
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.100049e0
add esp, 8
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
call fcn.10001100
mov ecx, dword [esi + 0x160]
add esp, 8
mov dword [ecx + 0x20], eax
mov cx, word [esi + 0x14c]
mov eax, dword [esi + 0x160]
add cx, word [ebp - 0xc8]
mov word [eax + 0x24], cx
mov ecx, dword [esi + 0x160]
mov al, byte [esi + 0x138]
shr al, 6
xor al, byte [ecx + 0x49]
and al, 1
xor byte [ecx + 0x49], al
test byte [0x10059abb], 8
je 0x1003b1d5
mov ecx, dword [esi + 0x160]
mov al, byte [ecx + 0x48]
and al, 3
cmp al, 3
jne 0x1003b1ae
mov byte [ebp - 0xd4], 5
jmp 0x1003b1b6
inc al
mov byte [ebp - 0xd4], al
movzx eax, word [ecx + 0x24]
mov edx, 0x1004c780
push eax
push dword [ebp - 0xd4]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push ebx
call fcn.1000d2b0
add esp, 0x14
push dword [esi + 0x160]
mov edx, dword [esi + 4]
lea ecx, [ebx + 0x808]
call fcn.100317b0
mov eax, dword [esi + 0x160]
add esp, 4
mov byte [eax + 0x4a], 0
mov eax, dword [esi + 0x160]
test byte [eax + 0x48], 4
je 0x1003b23b
or byte [esi + 0x138], 2
movzx ecx, word [eax + 0x24]
mov eax, dword [esi + 0x150]
cmp ecx, eax
jbe 0x1003b233
mov dl, byte [ebp - 0xc2]
cmp byte [ebp - 0xc9], 0
mov dword [esi + 0x150], 0
jmp 0x1003b2b6
sub eax, ecx
mov dword [esi + 0x150], eax
mov dl, byte [ebp - 0xc2]
cmp byte [ebp - 0xc9], 0
jmp 0x1003b2b6
add dword [ebx + 0xa78], 0xffffffff
adc dword [ebx + 0xa7c], 0xffffffff
mov ax, word [esi + 0x14c]
sub word [esi + 0x142], ax
mov eax, 0
mov word [esi + 0x14c], ax
mov byte [ebp - 0xc1], al
jne 0x1003b28c
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
call fcn.10042da0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x6c], 0xffffffff
je 0x1003b2a1
mov edx, 4
mov ecx, ebx
call fcn.10024270
mov dl, byte [ebp - 0xc2]
test dl, dl
je 0x1003b497
cmp byte [esi + 0x139], 0
je 0x1003b461
cmp dword [esi + 0x10], 0
je 0x1003b30b
mov eax, dword [esi + 0x160]
test byte [eax + 0x49], 1
je 0x1003b2dc
add dword [ebx + 0xa88], 1
adc dword [ebx + 0xa8c], 0
mov eax, dword [esi + 0x10]
movzx ecx, word [esi + 0x142]
mov dword [eax], ecx
movzx eax, word [esi + 0x142]
inc byte [esi + 0x139]
add dword [esi + 0x144], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi + 0x142], ax
test dl, dl
jne 0x1003b349
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x24]
mov cl, byte [edx + 0x38]
mov eax, dword [eax]
cmp cl, byte [eax + 0x72]
jb 0x1003b401
movzx edi, word [edx + 0x34]
test di, di
je 0x1003b349
cmp dword [edx + 0x48], 0
je 0x1003b349
movzx eax, cl
mov ecx, 0xffff
sub ecx, dword [edx + eax*8 + 0x34]
sub ecx, dword [edx + 0x44]
cmp edi, ecx
jbe 0x1003b401
test byte [esi + 0x138], 0x3c
je 0x1003b359
mov ecx, esi
call fcn.1003aa70
test byte [0x10059abc], 1
je 0x1003b39b
movzx eax, byte [esi + 0x139]
push eax
push str.Sending_batch.__hu_datagrams
push 0xffffffffffffffff
lea eax, [ebp - 0xb8]
push 0x80
push eax
call fcn.100015f0
add esp, 0x14
lea eax, [ebp - 0xb8]
mov edx, 0x1004c9b0
push eax
push dword [esi]
call fcn.10001280
add esp, 8
movzx eax, byte [esi + 0x139]
mov ecx, dword [esi + 4]
push eax
push dword [esi + 0x144]
push dword [esi + 0xc]
lea edx, [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
call fcn.10007790
mov eax, dword [esi + 0x160]
add esp, 0xc
or byte [esi + 0x138], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x144], 0
mov byte [eax + 0x4a], 0
test byte [0x10059abf], 1
je 0x1003b401
push dword [esi + 0x15c]
mov edx, 0x1004ce28
push dword [esi + 0x158]
call fcn.100049e0
add esp, 8
cmp dword [ebx + 0xb2c], 0xcf43336b
mov cl, byte [esi + 0x140]
je 0x1003b42f
cmp cl, 3
je 0x1003b433
mov al, byte [ebp - 0xc1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x1003b497
push 0
push 0
push 0
push 0
mov edx, 1
mov ecx, ebx
call fcn.10010570
mov al, byte [ebp - 0xc1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
test dl, dl
je 0x1003b497
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1003b484
mov ecx, dword [esi + 0xc]
call fcn.10042da0
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi + 0x142], ax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003b497
call fcn.10042a70
mov dword [esi + 0xc], 0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xc1]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret