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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov eax, dword [edi + 4]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x415860
lea edx, [eax + ecx]
add edx, 0xfffffffe
add ecx, eax
mov esi, 1
sub esi, ecx
and esi, eax
not eax
and eax, edx
sub eax, esi
mov ebx, dword [ebx + 4]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx], 0
lea ecx, [ecx + 2]
jne 0x415890
sar eax, 1
lea edx, [ebx + ecx]
add edx, 0xfffffffe
add ecx, ebx
mov esi, 1
sub esi, ecx
and esi, ebx
mov ecx, ebx
not ecx
and ecx, edx
sub ecx, esi
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x4158c8
mov eax, 0xffffffff
jmp 0x4158d1
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.00409630
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xeda0ef92
mov dword [esp + 0xc], 0x11771381
mov dword [esp + 0x10], 0x15781777
mov dword [esp + 0x14], 0x195d1b3a
mov dword [esp + 0x18], 0x1d881f86
mov dword [esp + 0x1c], 0x1920367
mov dword [esp + 0x20], 0x56d0791
mov dword [esp + 0x24], 0x99a0b99
mov dword [esp + 0x28], 0xd7b0f2e
mov dword [esp + 0x2c], 0x31a43357
mov dword [esp + 0x30], 0x355d37a2
mov dword [esp + 0x34], 0x39533ba8
mov dword [esp + 0x38], 0x3d403fa9
mov dword [esp + 0x3c], 0x2322
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x41598e
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x9613837c
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x6e
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x415960
mov ecx, dword [edi + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x4159b1
add ecx, 2
mov eax, esi
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4159a0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x4159e1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4159d0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415a11
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415a00
mov word [eax], 0
mov ebp, dword [edi]
xor eax, eax
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax], 0
lea eax, [eax + 2]
jne 0x415a20
lea edx, [eax + ebp]
add edx, 0xfffffffe
add eax, ebp
mov ebx, 1
sub ebx, eax
and ebx, ebp
mov ecx, ebp
not ecx
and ecx, edx
sub ecx, ebx
mov eax, dword [edi + 8]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx], 0
lea edx, [edx + 2]
jne 0x415a50
mov dword [esp + 0x44], esi
lea ebx, [eax + edx]
add ebx, 0xfffffffe
add edx, eax
mov edi, 1
sub edi, edx
and edi, eax
not eax
and eax, ebx
sub eax, edi
mov edx, dword [esp + 0x64]
mov ebx, dword [edx]
xor edx, edx
nop
nop
nop
cmp word [ebx + edx], 0
lea edx, [edx + 2]
jne 0x415a80
sar ecx, 1
sar eax, 1
lea edi, [ebx + edx]
add edi, 0xfffffffe
add edx, ebx
mov esi, 1
sub esi, edx
and esi, ebx
mov edx, ebx
not edx
and edx, edi
sub edx, esi
sar edx, 1
add eax, ecx
lea ecx, [edx + eax]
add ecx, 0xe
test ecx, ecx
jns 0x415abc
mov eax, 0xffffffff
jmp 0x415ac5
add eax, edx
lea eax, [eax*2 + 0x1c]
push eax
call fcn.00409630
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
mov esi, dword [esp + 0x44]
je 0x415b02
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x415af0
mov word [eax], 0x2f
mov dword [esp + 8], 0xaed0acfc
mov dword [esp + 0xc], 0xaa27a821
mov dword [esp + 0x10], 0xa631a43a
mov dword [esp + 0x14], 0xa238a02c
mov dword [esp + 0x18], 0xde49dc4c
mov dword [esp + 0x1c], 0xda8ad854
mov dword [esp + 0x20], 0xd4d5
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x415b80
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
add ecx, 0xe9407bb0
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xe3
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x415b50
add eax, 2
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x415bb1
add ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415ba0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415be1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x415bd0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415c11
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415c00
mov word [eax], 0
mov dword [esp], 0x5d52533a
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x415c61
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
add eax, 0x2844e8f5
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x5b
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x415c30
mov eax, esp
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x78]
call fcn.0041a000
add esp, 0x20
mov ebx, eax
jmp dword [0x444dc0]