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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0xa4]
mov esi, dword [ecx + 0x48]
mov edi, dword [esi + 4]
mov dword [esp + 0x50], edi
test eax, eax
je 0x40fbae
cmp dword [esi + 0x34], 0
jne 0x40fbae
mov dword [ecx + 0x1c], 3
jmp 0x410210
mov dword [esp + 4], esi
mov dword [esp + 0x4c], edx
movzx edx, word [esp + 0x70]
movzx ebp, word [esp + 0x68]
movzx ebx, dx
movzx esi, word [esp + 0x78]
mov edx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
lea edx, [ebx + ebp]
add edx, esi
mov ebp, dword [esp + 0xb0]
xor ebx, ebx
add edx, ebp
setb bl
add edx, edi
adc ebx, 0
cmp edx, 0xffffffd1
sbb ebx, 0
jb 0x40fbfe
mov dword [ecx + 0x1c], 0xf
jmp 0x410210
mov dword [esp + 0x40], esi
mov dword [esp], ecx
movzx edx, word [esp + 0x90]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp + 0x20], xmm0
mov word [esp + 0x30], 0
mov dword [esp + 0xc], 0x2014b50
xor ecx, ecx
test dx, dx
mov ebx, 0x14
cmove ebx, ecx
mov byte [esp + 0x12], bl
movzx ebx, word [esp + 0x94]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
movzx ebx, word [esp + 0x9c]
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dh
movzx edx, word [esp + 0x98]
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bh
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1e], bl
mov esi, dword [esp + 0x88]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov dword [esp + 8], edi
mov edi, dword [esp + 0x84]
neg esi
mov edx, 0
sbb edx, edx
or edx, edi
mov edi, ebp
mov ebp, dword [esp + 8]
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x22], bl
mov esi, dword [esp + 0x80]
shr edx, 0x18
mov byte [esp + 0x23], dl
mov edx, dword [esp + 0x7c]
neg esi
mov ebx, 0
sbb ebx, ebx
or ebx, edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x26], dl
mov edx, dword [esp + 0xa8]
shr ebx, 0x18
mov byte [esp + 0x27], bl
movzx esi, word [esp + 0x70]
lea ebx, [edi + esi]
movzx esi, word [esp + 0x68]
mov edi, eax
mov eax, esi
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bh
movzx ebx, word [esp + 0x78]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bh
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x34], bl
shr edx, 0x18
mov byte [esp + 0x35], dl
neg edi
sbb ecx, ecx
mov eax, dword [esp + 0xa0]
or ecx, eax
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x38], al
shr ecx, 0x18
mov byte [esp + 0x39], cl
lea esi, [ebp + 0x2e]
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 8]
cmp eax, esi
jae 0x40fdae
test eax, eax
mov edi, 1
cmovne edi, eax
cmp edi, esi
jae 0x40fdb6
mov edx, dword [esp]
nop dword [eax + eax]
mov eax, edi
and eax, 0xfffffffd
mov ecx, edi
and ecx, 2
or edi, 2
imul edi, ecx
xor ecx, 2
imul ecx, eax
add edi, ecx
cmp edi, esi
jb 0x40fd90
jmp 0x40fdb9
mov eax, dword [ebx]
mov dword [esp + 0x3c], eax
jmp 0x40fde1
mov edx, dword [esp]
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebx
je 0x4101e0
mov dword [esp + 0x3c], eax
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
mov ebp, dword [esp + 8]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov esi, ecx
not esi
mov edx, ebp
and edx, esi
mov edi, ebp
not edi
and edi, ecx
imul edi, edx
mov eax, ebx
mov ebx, ecx
and ebx, ebp
mov edx, ecx
or edx, ebp
imul edx, ebx
mov ebx, eax
add edx, dword [esp + 0x3c]
add edx, edi
and esi, 0x2e
mov eax, ecx
and eax, 0xffffffd1
imul eax, esi
mov esi, ecx
and esi, 0x2e
or ecx, 0x2e
imul ecx, esi
add ecx, eax
lea eax, [esp + 0xc]
push ecx
push eax
push edx
call fcn.00417200
add esp, 0xc
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x48]
lea edi, [esi + ecx]
cmp eax, edi
jae 0x40fe7e
test eax, eax
mov ebp, 1
cmovne ebp, eax
cmp ebp, edi
jae 0x40fe84
mov edx, dword [esp]
nop word cs:[eax + eax]
mov eax, ebp
and eax, 0xfffffffd
mov ecx, ebp
and ecx, 2
or ebp, 2
imul ebp, ecx
xor ecx, 2
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x40fe60
jmp 0x40fe87
mov ecx, ebx
mov ebp, eax
jmp 0x40fea9
mov edx, dword [esp]
push ebp
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebx
add esp, 0x10
test eax, eax
je 0x4101e0
mov dword [ecx], eax
mov dword [ecx + 8], ebp
movzx eax, word [esp + 0x68]
mov dword [ecx + 4], edi
test ax, ax
je 0x40ff07
mov eax, dword [ecx + 0xc]
mov ebx, ecx
mov ecx, eax
not ecx
mov edx, esi
and edx, ecx
mov edi, esi
not edi
and edi, eax
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebx]
mov edi, dword [esp + 0x48]
and ecx, edi
mov edx, edi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x50]
push esi
call fcn.00417200
add esp, 0xc
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov eax, dword [esp + 0x44]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x40ff4e
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x40ff56
mov ebp, dword [esp + 4]
nop word cs:[eax + eax]
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x40ff30
jmp 0x40ff5a
mov ebx, ebp
mov ebp, dword [esp + 4]
jmp 0x40ff7f
mov ebp, dword [esp + 4]
push ebx
push dword [ebp + 0xc]
push dword [ebp]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x4101e0
mov dword [ecx], eax
mov dword [ecx + 8], ebx
mov ebp, ecx
movzx eax, word [esp + 0x70]
mov dword [ebp + 4], esi
test ax, ax
je 0x40ffdc
mov eax, dword [ebp + 0xc]
mov ecx, eax
not ecx
mov edx, edi
and edx, ecx
mov esi, edi
not esi
and esi, eax
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
add edi, dword [ebp]
mov esi, dword [esp + 0x44]
and ecx, esi
mov edx, esi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, esi
or eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x70]
push edi
call fcn.00417200
add esp, 0xc
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xb0]
lea edi, [esi + eax]
cmp ebx, edi
jae 0x41001e
test ebx, ebx
mov ebp, 1
cmovne ebp, ebx
cmp ebp, edi
jae 0x410026
mov edx, dword [esp]
nop dword [eax + eax]
mov eax, ebp
and eax, 0xfffffffd
mov ecx, ebp
and ecx, 2
or ebp, 2
imul ebp, ecx
xor ecx, 2
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x410000
jmp 0x410029
mov ebp, ebx
mov ecx, dword [esp + 4]
jmp 0x41004b
mov edx, dword [esp]
push ebp
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebx
add esp, 0x10
test eax, eax
je 0x4101e0
mov dword [ecx], eax
mov dword [ecx + 8], ebp
mov dword [ecx + 4], edi
mov edx, dword [esp + 0xb0]
test edx, edx
movzx ebx, word [esp + 0x78]
je 0x4100b6
mov eax, dword [ecx + 0xc]
mov ebp, ecx
mov ecx, eax
not ecx
mov ebx, edx
mov edx, esi
and edx, ecx
mov edi, esi
not edi
and edi, eax
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebp]
and ecx, ebx
mov edx, ebx
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, ebx
or eax, ebx
movzx ebx, word [esp + 0x78]
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0xb0]
push esi
call fcn.00417200
add esp, 0xc
mov edi, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov eax, dword [esp + 0x40]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x41012a
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x4100fe
mov ebp, dword [esp + 4]
nop word cs:[eax + eax]
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x4100e0
jmp 0x410102
mov ebp, dword [esp + 4]
push ebx
push dword [ebp + 0xc]
push dword [ebp]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x4101e0
mov dword [ecx], eax
mov dword [ecx + 8], ebx
movzx ebx, word [esp + 0x78]
mov ebp, dword [esp + 4]
mov dword [ebp + 4], esi
test bx, bx
je 0x410180
mov eax, dword [ebp + 0xc]
mov ecx, eax
not ecx
mov edx, edi
and edx, ecx
mov esi, edi
not esi
and esi, eax
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
add edi, dword [ebp]
mov esi, dword [esp + 0x40]
and ecx, esi
mov edx, esi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, esi
or eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x78]
push edi
call fcn.00417200
add esp, 0xc
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
lea edi, [esi + 1]
cmp eax, edi
jae 0x41021a
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, edi
jae 0x4101bc
nop
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, edi
jb 0x4101a0
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x4101e0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov ebp, ecx
jmp 0x41021d
mov ebx, dword [esp + 8]
cmp dword [ecx + 8], ebx
mov esi, ecx
mov edi, dword [esp]
jae 0x410206
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x410209
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [edi + 0x1c], 0x10
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
not edx
mov ebx, esi
and ebx, edx
mov edi, esi
not edi
and edi, ecx
imul edi, ebx
mov ebx, ecx
and ebx, esi
or esi, ecx
imul esi, ebx
add esi, eax
add esi, edi
and edx, 1
neg edx
and edx, ecx
and edx, 0xfffffffe
mov eax, ecx
or eax, 1
and ecx, 1
neg ecx
and ecx, eax
add ecx, edx
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.00417200
add esp, 0xc
mov eax, 1
jmp 0x410212