Function at 0x10058230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b5d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x2c], 0
lea eax, [ebx*2 + 1]
push eax
call fcn.1007ace7
mov dword [ebp - 0x28], eax
mov esi, eax
mov dword [ebp - 0x24], 0x36
add esp, 4
mov eax, dword [ebp - 0x24]
xor al, 0x30
mov edi, dword [ebp + 8]
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x24]
inc al
xor al, 0x31
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x24]
add al, 2
xor al, 0x32
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x24]
add al, 3
xor al, 0x33
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x24]
add al, 4
xor al, 0x34
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x24]
add al, 5
xor al, 0x35
mov byte [ebp - 0x1b], al
mov eax, dword [ebp - 0x24]
add al, 6
xor al, 0x36
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x24]
add al, 7
xor al, 0x37
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x24]
add al, 8
xor al, 0x38
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x24]
add al, 9
xor al, 0x39
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x24]
add al, 0xa
xor al, 0x41
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x24]
add al, 0xb
xor al, 0x42
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x24]
add al, 0xc
xor al, 0x43
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x24]
add al, 0xd
xor al, 0x44
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x24]
add al, 0xe
xor al, 0x45
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x24]
add al, 0xf
mov byte [ebp - 0x10], 0
xor al, 0x46
xor edx, edx
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x20]
mov al, byte [ebp + edx - 0x20]
mov ecx, dword [ebp - 0x24]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x20], cl
inc edx
cmp edx, 0x10
jb 0x10058321
mov byte [ebp - 0x10], 0
test ebx, ebx
je 0x10058365
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
shr eax, 4
mov al, byte [ebp + eax - 0x20]
mov byte [esi], al
movzx eax, byte [edi - 1]
and eax, 0xf
mov al, byte [ebp + eax - 0x20]
mov byte [esi + 1], al
add esi, 2
sub ebx, 1
jne 0x10058340
lea eax, [ebp - 0xc0]
mov byte [esi], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp + 0xc], eax
push 1
mov dword [ebp - 4], 0
call fcn.10079b3a
add esp, 4
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 1
call fcn.100592d0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 2
mov edi, dword [sym.imp.msvcrt.dll_strlen]
push esi
call edi
add esp, 4
lea ecx, [ebp - 0xc4]
add eax, esi
push 0x700
push eax
push esi
call fcn.100594f0
mov dword [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0xf8], 0
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 0xc8], 0
mov ebx, dword [ebp - 0x28]
push ebx
mov byte [ebp - 4], 4
call edi
mov edx, dword [ebp - 0xc4]
add esp, 4
lea edi, [eax + ebx]
test edx, edx
je 0x10058925
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x1c]
mov byte [ebp + 0xf], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 7
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x48], ecx
mov al, byte [edx + 8]
shr al, 3
and al, 1
mov byte [ebp - 0x44], al
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x18]
test eax, eax
je 0x10058537
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.1005c770
push ecx
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
test al, al
jne 0x100585ce
cmp ebx, edi
je 0x100585ef
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0xb0]
or eax, 0x100
and eax, 0xffffdfff
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebx + 1]
push edi
push eax
call fcn.1005b250
mov esi, eax
cmp esi, edi
je 0x100585b4
push ecx
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x5c], esi
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
test al, al
jne 0x100585ce
push 0
push edi
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b250
mov esi, eax
cmp esi, edi
jne 0x10058582
push ecx
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x5c], edi
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
test al, al
je 0x100585ef
cmp ebx, dword [ebp - 0xe4]
mov edi, ebx
mov byte [ebp + 0xf], 1
mov dword [ebp - 0xfc], edi
setne byte [ebp - 0xe0]
mov dword [ebp - 0xe8], ebx
jmp 0x100585f5
mov edi, dword [ebp - 0xfc]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x1005864c
mov eax, dword [ebp - 0x68]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005862d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a7
push edx
push ecx
call fcn.1007abfc
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x7c]
call fcn.1005aca0
lea ecx, [ebp - 0x8c]
call fcn.10058be0
lea ecx, [ebp - 0x9c]
call fcn.1005aca0
lea ecx, [ebp - 0xac]
call fcn.10058be0
cmp byte [ebp + 0xf], 0
je 0x10058925
mov ecx, dword [ebp - 0xf0]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xf4]
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x100586ba
mov eax, dword [ebp - 0xd0]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xd0]
jmp 0x100586cb
mov eax, dword [esi]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, esi
mov ebx, dword [eax]
sub ebx, edi
add ebx, ecx
add ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.msvcrt.dll_strlen]
mov edx, dword [ebp - 0xc4]
add esp, 4
lea edi, [eax + ebx]
test edx, edx
je 0x100588d7
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x48], ecx
mov al, byte [edx + 8]
shr al, 3
and al, 1
mov byte [ebp - 0x44], al
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x18]
test eax, eax
je 0x100587cd
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.1005c770
push ecx
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
test al, al
jne 0x1005885c
cmp ebx, edi
je 0x1005885c
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0xb0]
or eax, 0x100
and eax, 0xffffdfff
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebx + 1]
push edi
push eax
call fcn.1005b250
mov esi, eax
cmp esi, edi
je 0x10058846
push ecx
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x5c], esi
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
test al, al
jne 0x1005885c
push 0
push edi
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b250
mov esi, eax
cmp esi, edi
jne 0x10058814
push ecx
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x5c], edi
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005b4e0
mov edx, dword [ebp - 0x70]
test edx, edx
je 0x100588a8
mov ecx, dword [ebp - 0x68]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10058889
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589ac
push ecx
push edx
call fcn.1007abfc
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x7c]
call fcn.1005aca0
lea ecx, [ebp - 0x8c]
call fcn.10058be0
lea ecx, [ebp - 0x9c]
call fcn.1005aca0
lea ecx, [ebp - 0xac]
call fcn.10058be0
mov esi, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0x28]
push ebx
call fcn.1007ac2d
add esp, 4
test esi, esi
je 0x10058937
mov ecx, dword [ebp - 0xec]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x1005892d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589b1
jmp 0x1005892d
mov esi, dword [ebp - 0xf4]
jmp 0x100588da
push ecx
push esi
call fcn.1007abfc
add esp, 8
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x1005896c
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x1005896c
mov esi, dword [ebp - 0xc4]
test esi, esi
je 0x1005896c
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x10058955
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], 0
test ecx, ecx
je 0x10058991
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10058991
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.1007bbe0
call fcn.1007bbe0
call fcn.1007bbe0
int3