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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov dword [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [0x446b30]
test eax, eax
je 0x41844e
xor ecx, ecx
mov edx, dword [0x446b34]
nop
nop
cmp dword [edx + ecx*8], 0xa896961c
je 0x418080
inc ecx
cmp eax, ecx
jne 0x418070
jmp 0x4180ef
mov eax, dword [edx + ecx*8 + 4]
cmp eax, 0xffffffff
je 0x4180ef
mov esi, esp
push esi
push 0
push 0x28
push 0xfffffffffffffffe
push 0x10
push eax
push dword [0x446b38]
call fcn.004383c0
add esp, 0x1c
cmp eax, 0xc000007c
jne 0x4180ef
mov eax, dword [0x446b30]
test eax, eax
je 0x4180ef
xor ecx, ecx
mov edx, dword [0x446b34]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xb7c1bb11
je 0x4180d0
inc ecx
cmp eax, ecx
jne 0x4180c0
jmp 0x4180ef
mov eax, dword [edx + ecx*8 + 4]
cmp eax, 0xffffffff
je 0x4180ef
push esi
push 0x28
push 0xffffffffffffffff
push 0xc
push eax
push dword [0x446b38]
call fcn.004383c0
add esp, 0x18
mov eax, dword [esp]
test eax, eax
je 0x41844e
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x4181e8
xor edx, edx
mov esi, dword [0x446b34]
cmp dword [esi + edx*8], 0x6e83e51e
je 0x418123
inc edx
cmp ecx, edx
jne 0x418110
jmp 0x4181e8
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x4181e8
lea esi, [esp + 0x14]
push esi
push 0
push 0
push 1
push eax
push 0x14
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x20
cmp eax, 0xc0000023
jne 0x4181e8
push dword [esp + 0x14]
call fcn.00436db0
add esp, 4
mov edi, dword [0x446b30]
test edi, edi
je 0x4181df
mov edx, dword [esp + 0x14]
mov ecx, dword [esp]
xor ebx, ebx
mov ebp, dword [0x446b34]
nop
nop
nop
cmp dword [ebp + ebx*8], 0x6e83e51e
je 0x418191
inc ebx
cmp edi, ebx
jne 0x418180
jmp 0x4181df
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, 0xffffffff
je 0x4181df
push esi
push edx
push eax
push 1
push ecx
push 0x14
push edi
push dword [0x446b38]
mov esi, eax
call fcn.004383c0
add esp, 0x20
mov ecx, eax
mov eax, esi
test ecx, ecx
js 0x4181df
mov ecx, dword [eax]
test ecx, ecx
je 0x4181df
cmp byte [ecx], 1
jne 0x4181df
cmp byte [ecx + 1], 0xf
ja 0x4181df
cmp byte [ecx + 7], 5
jne 0x4181df
cmp byte [ecx + 8], 0x12
jne 0x4181df
mov ecx, dword [esp]
mov dword [esp + 0x18], ecx
push eax
call fcn.00436dd0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x418450
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [0x445808]
mov dword [esp + 0x48], 0x69cc67c7
mov dword [esp + 0x4c], 0x6dcd6bfc
mov dword [esp + 0x50], 0x51f96ffe
mov dword [esp + 0x54], 0x55065301
mov dword [esp + 0x58], 0x59fc5738
mov dword [esp + 0x5c], 0x5df05bf6
mov word [esp + 0x60], 0x5f5e
mov ecx, 0xd6
mov edx, 0x29
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x8e]
mov ebx, edx
xor ebx, ecx
and ebx, esi
xor ebx, ecx
add bl, 0x50
mov byte [esp + ecx - 0x8e], bl
inc ecx
dec edx
cmp ecx, 0xf0
jne 0x418250
lea ebp, [esp + 0x48]
push 0x800
push 0
push ebp
call eax
lea ecx, [esp + 0x40]
push eax
call fcn.00437ca0
test al, al
je 0x418383
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
push 0x10a6c058
push dword [esp + 0x44]
call fcn.00439be0
add esp, 8
mov dword [esp + 0x48], 0x802a8ede
mov dword [esp + 0x4c], 0x843e82d8
mov dword [esp + 0x50], 0x98228635
mov dword [esp + 0x54], 0x9c289a2b
mov dword [esp + 0x58], 0x90219e22
mov dword [esp + 0x5c], 0x94279230
mov dword [esp + 0x60], 0xe8c79630
mov dword [esp + 0x64], 0xec52ea5b
mov dword [esp + 0x68], 0xe056ee5b
mov dword [esp + 0x6c], 0xe446e25d
mov dword [esp + 0x70], 0xf842e642
mov word [esp + 0x74], 0xfaf9
mov ecx, 0x5a
mov edx, 0xa5
nop
nop
movzx esi, byte [esp + edx - 0x5d]
mov ebx, ecx
xor ebx, edx
and ebx, esi
xor ebx, edx
add bl, 0xd8
mov byte [esp + edx - 0x5d], bl
dec ecx
inc edx
cmp ecx, 0x2c
jne 0x418320
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0
call eax
test eax, eax
je 0x418420
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x418420
mov eax, dword [esp]
xor edx, edx
mov esi, dword [0x446b34]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x4b501129
je 0x4183b7
inc edx
cmp ecx, edx
jne 0x418370
jmp 0x418420
mov eax, dword [0x446b30]
test eax, eax
je 0x41844e
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x446b34]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xb430e561
je 0x41845b
inc edx
cmp eax, edx
jne 0x4183a0
jmp 0x41844e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x418420
lea edx, [esp + 0x30]
push 0
push 0
push 0x10
push edx
push 0
push eax
push 0x18
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x24
test eax, eax
js 0x418420
push dword [esp + 0x40]
call dword [0x44591c]
mov eax, dword [0x446b30]
test eax, eax
je 0x4189dc
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x446b34]
cmp dword [esi + edx*8], 0xb430e561
je 0x41847c
inc edx
cmp eax, edx
jne 0x418405
mov dword [esp + 0x1c], 0
jmp 0x4184ac
push dword [esp + 0x40]
call dword [0x44591c]
mov eax, dword [0x446b30]
test eax, eax
je 0x41844e
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x446b34]
nop
nop
cmp dword [esi + edx*8], 0xb430e561
je 0x41845b
inc edx
cmp eax, edx
jne 0x418440
xor eax, eax
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi + edx*8 + 4]
xor eax, eax
cmp edx, 0xffffffff
je 0x418450
push ecx
push 4
push edx
push dword [0x446b38]
call fcn.004383c0
xor eax, eax
add esp, 0x10
jmp 0x418450
mov edx, dword [esi + edx*8 + 4]
cmp edx, 0xffffffff
je 0x41849c
push ecx
push 4
push edx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x10
mov eax, dword [0x446b30]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4189dc
xor ecx, ecx
mov edx, dword [0x446b34]
cmp dword [edx + ecx*8], 0x67f3d776
je 0x4184c7
inc ecx
cmp eax, ecx
jne 0x4184b4
jmp 0x4189dc
mov eax, dword [edx + ecx*8 + 4]
cmp eax, 0xffffffff
je 0x4189dc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 5
push 0x10
push eax
push dword [0x446b38]
call fcn.004383c0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x4189dc
push dword [esp + 0x1c]
call fcn.00436db0
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x4189d0
mov eax, dword [esp + 0x1c]
xor edx, edx
mov esi, dword [0x446b34]
cmp dword [esi + edx*8], 0x67f3d776
je 0x418538
inc edx
cmp ecx, edx
jne 0x418525
jmp 0x4189d0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x4189d0
push 0
push eax
push dword [esp + 0x30]
push 5
push 0x10
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x1c
test eax, eax
js 0x4189d0
mov esi, dword [esp + 0x28]
mov ebx, dword [esi]
lea edi, [esp + 0x78]
mov eax, dword [esi + ebx + 0x44]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov ecx, edi
push 0
push eax
call fcn.00436f60
mov ecx, edi
push 0x1000
call fcn.00436f80
test eax, eax
js 0x4189b6
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x4189b2
mov eax, dword [esp + 0x78]
xor edx, edx
mov edi, dword [0x446b34]
cmp dword [edi + edx*8], 0xb7c1bb11
je 0x4185e6
inc edx
cmp ecx, edx
jne 0x4185d3
jmp 0x4189b2
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x4189b2
lea edx, [esp + 0x10]
push edx
push 0xa
push eax
push 0xc
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x18
test eax, eax
js 0x4189b2
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x4189b2
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [0x446b34]
cmp dword [edi + edx*8], 0x6e83e51e
je 0x418641
inc edx
cmp ecx, edx
jne 0x41862e
jmp 0x418971
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x418971
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 1
push eax
push 0x14
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x20
cmp eax, 0xc0000023
jne 0x418971
push dword [esp + 0x14]
call fcn.00436db0
add esp, 4
mov dword [esp + 0x24], eax
mov edx, dword [0x446b30]
test edx, edx
je 0x418965
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, dword [0x446b34]
cmp dword [edi + eax*8], 0x6e83e51e
je 0x4186bb
inc eax
cmp edx, eax
jne 0x4186a8
jmp 0x418965
mov edx, dword [edi + eax*8 + 4]
cmp edx, 0xffffffff
je 0x418965
lea eax, [esp + 0x14]
push eax
push ecx
push dword [esp + 0x2c]
push 1
push dword [esp + 0x1c]
push 0x14
push edx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x20
test eax, eax
js 0x418965
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x418965
cmp byte [eax], 1
jne 0x418965
cmp byte [eax + 1], 0xf
ja 0x418965
cmp byte [eax + 7], 5
jne 0x418965
cmp byte [eax + 8], 0x12
jne 0x418965
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x418965
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [0x446b34]
cmp dword [edi + edx*8], 0x6e83e51e
je 0x418753
inc edx
cmp ecx, edx
jne 0x418740
jmp 0x418965
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x418965
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 3
push eax
push 0x14
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x20
cmp eax, 0xc0000023
jne 0x418965
push dword [esp + 0x2c]
call fcn.00436db0
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [0x446b30]
test edx, edx
je 0x418959
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov edi, dword [0x446b34]
cmp dword [edi + eax*8], 0x6e83e51e
je 0x4187cd
inc eax
cmp edx, eax
jne 0x4187ba
jmp 0x418959
mov edx, dword [edi + eax*8 + 4]
cmp edx, 0xffffffff
je 0x418959
lea eax, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x14]
push 3
push dword [esp + 0x30]
push 0x14
push edx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x20
test eax, eax
js 0x418959
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x418959
movzx ecx, byte [esp + 0x34]
movzx edx, byte [esp + 0x35]
mov byte [esp + 0x20], dl
movzx edx, byte [esp + 0x36]
mov byte [esp + 0xb], dl
movzx edx, byte [esp + 0x37]
mov byte [esp + 0xa], dl
movzx edx, byte [esp + 0x38]
mov byte [esp + 9], dl
movzx edx, byte [esp + 0x39]
mov byte [esp + 8], dl
movzx edx, byte [esp + 0x3a]
mov byte [esp + 7], dl
movzx edx, byte [esp + 0x3b]
mov byte [esp + 6], dl
mov edx, dword [esp + 0xc]
add edx, 0xb
jmp 0x418868
add edx, 0xc
dec eax
je 0x418959
cmp byte [edx - 7], cl
jne 0x41885e
mov ch, byte [esp + 0x20]
cmp byte [edx - 6], ch
jne 0x41885e
mov ch, byte [esp + 0xb]
cmp byte [edx - 5], ch
jne 0x41885e
mov ch, byte [esp + 0xa]
cmp byte [edx - 4], ch
jne 0x41885e
mov ch, byte [esp + 9]
cmp byte [edx - 3], ch
jne 0x41885e
mov ch, byte [esp + 8]
cmp byte [edx - 2], ch
jne 0x41885e
mov ch, byte [esp + 7]
cmp byte [edx - 1], ch
jne 0x41885e
mov ch, byte [esp + 6]
cmp byte [edx], ch
jne 0x41885e
mov dword [esp + 0x88], 0xc
mov dword [esp + 0x8c], 2
mov word [esp + 0x90], 1
mov dword [esp + 0x48], 0x18
lea eax, [esp + 0x4c]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
lea eax, [esp + 0x88]
mov dword [esp + 0x5c], eax
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x418951
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [0x446b34]
cmp dword [edi + edx*8], 0x4d7e2c49
je 0x418923
inc edx
cmp ecx, edx
jne 0x418913
jmp 0x418951
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x418951
lea edx, [esp + 0x18]
push edx
push 2
push 0
push ebp
push 0x2000000
push eax
push 0x18
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x24
test eax, eax
jns 0x418959
mov dword [esp + 0x18], 0
push dword [esp + 0xc]
call fcn.00436dd0
add esp, 4
push dword [esp + 0x24]
call fcn.00436dd0
add esp, 4
mov ecx, dword [0x446b30]
test ecx, ecx
je 0x4189b2
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [0x446b34]
cmp dword [edi + edx*8], 0xb430e561
je 0x418997
inc edx
cmp ecx, edx
jne 0x418987
jmp 0x4189b2
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x4189b2
push eax
push 4
push ecx
push dword [0x446b38]
call fcn.004383c0
add esp, 0x10
lea edi, [esp + 0x78]
mov ecx, edi
call fcn.00437050
cmp dword [esp + 0x18], 0
jne 0x4189d0
add esi, ebx
mov ebx, dword [esi]
test ebx, ebx
jne 0x418571
push dword [esp + 0x28]
call fcn.00436dd0
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x418450