Function at 0x4370b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48184d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49d140]
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 eax, ecx
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], edx
test edx, edx
jne 0x437153
call fcn.00406f90
mov dword [edi], 6
mov dword [edi + 4], eax
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x437130
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x437130
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x437130
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp - 0x38]
mov eax, ebx
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.00458460
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0xc], 8
jge 0x437166
call fcn.00406f90
mov dword [edi], 7
jmp 0x437105
mov ecx, dword [ebx + 0x10]
cmp ecx, 0x7d
jbe 0x43717b
call fcn.00406f90
mov dword [edi], 8
jmp 0x437105
mov al, byte [eax + 5]
lea edi, [edx + 0x38]
mov byte [ebp - 0x39], al
xor ah, ah
mov al, byte [ebp + 0xc]
mov esi, 0x80
and al, 0xf
or al, 0x80
cmp byte [ebp - 0x39], 0
mov byte [ebp - 0x40], al
movzx eax, ah
cmove eax, esi
mov esi, dword [edi + 0x10]
or al, cl
mov byte [ebp - 0x3f], al
cmp ecx, esi
ja 0x4371be
mov dword [edi + 0x10], ecx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x4371b8
mov eax, dword [edi]
mov byte [eax + ecx], 0
jmp 0x437204
mov eax, dword [edi + 0x14]
mov edx, ecx
sub edx, esi
sub eax, esi
mov dword [ebp - 0x44], edx
cmp edx, eax
ja 0x4371f2
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], ecx
jbe 0x4371db
mov eax, dword [edi]
push edx
add esi, eax
push 0
push esi
call fcn.0045a5d0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x437204
push 0
push edx
mov byte [ebp - 0x44], 0
mov ecx, edi
push dword [ebp - 0x44]
push edx
call fcn.00422140
cmp byte [ebp - 0x39], 0
jne 0x4372d7
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x58]
call fcn.00437800
mov esi, eax
lea ecx, [ebp - 0x1c]
push esi
push 0
push dword [ebx + 0x10]
call fcn.00404510
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x34]
call fcn.00404620
add esp, 4
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
cmp ecx, eax
je 0x43725b
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x437254
mov eax, dword [eax]
push edx
push eax
call fcn.0041ae80
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x43728f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x437285
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4373c9
push ecx
push edx
call fcn.00458ac3
add esp, 8
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x4c]
add esi, 0x38
cmp dword [esi + 0x14], 0xf
jbe 0x4372a0
mov esi, dword [esi]
cmp dword [ebx + 0x14], 0xf
mov eax, dword [ebx + 0x10]
jbe 0x4372af
add eax, dword [ebx]
mov ebx, dword [ebx]
jmp 0x4372b1
add eax, ebx
xor edx, edx
cmp ebx, eax
je 0x437370
sub esi, ebx
nop dword [eax]
mov cl, byte [ebp + edx - 0x48]
inc edx
xor cl, byte [ebx]
and edx, 3
mov byte [ebx + esi], cl
inc ebx
cmp ebx, eax
jne 0x4372c0
jmp 0x437370
push 0
push dword [ebx + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004044e0
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x34]
call fcn.00404620
add esp, 4
lea ecx, [esi + 8]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x437316
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x43730f
mov eax, dword [eax]
push edx
push eax
call fcn.0041ae80
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x43734a
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x437340
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4373ce
push ecx
push edx
call fcn.00458ac3
add esp, 8
cmp dword [edi + 0x14], 0xf
jbe 0x437352
mov edi, dword [edi]
cmp dword [ebx + 0x14], 0xf
mov eax, dword [ebx + 0x10]
jbe 0x437361
add eax, dword [ebx]
mov ebx, dword [ebx]
jmp 0x437363
add eax, ebx
sub eax, ebx
push eax
push ebx
push edi
call fcn.0045a050
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x38]
mov dword [eax + 0x50], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax + 0x54], 1
mov edi, dword [ebp + 0x18]
mov dword [ebx], 0
mov dword [ebx + 4], 0x49dbf8
test edi, edi
je 0x437133
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x437133
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x437133
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
jmp 0x437133
call fcn.0046546a
call fcn.0046546a
int3