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

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [0x4b570c]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ebx, [eax + 0xaa]
push esi
mov esi, dword [esp + 0x24]
add ebp, 0xfffffcd7
push edi
mov edi, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
xor edi, 0x5e4
lea ecx, [eax + 0x455]
add eax, 0x2c5
mov dword [esp + 0x20], ecx
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xa0]
xor eax, 0x1509f5
add dword [esi + 0xcc], eax
mov ecx, dword [0x4b570c]
mov eax, dword [esi]
or dword [ecx + 0x70], eax
mov eax, dword [esi + 0x94]
movzx ecx, byte [esi + 0x60]
movzx edx, byte [ebx + eax]
add ebx, 4
mov eax, dword [0x4b570c]
imul edx, ecx
mov ecx, dword [eax + 0xa8]
mov eax, dword [0x507124]
mov byte [eax + ecx], dl
inc dword [0x507124]
mov eax, dword [0x4b570c]
mov eax, dword [eax + 0xb0]
sub eax, 0x54
add dword [esi + 0xe8], eax
mov eax, dword [esi + 0x118]
sub eax, 0xb654c
xor dword [esi + 0x14], eax
mov eax, dword [0x4b570c]
mov eax, dword [eax + 0x40]
sub eax, dword [0x50718c]
add eax, 0x13
add dword [esi + 0x64], eax
mov eax, 0x188489
sub eax, dword [0x507110]
mov ecx, dword [0x4b570c]
add dword [ecx + 0x108], eax
mov eax, dword [0x4b570c]
mov eax, dword [eax + 0x1c]
sub dword [esi + 0xe4], eax
mov eax, dword [esi + 0xcc]
sub eax, dword [esi + 0xb0]
mov ecx, dword [0x4b570c]
sub eax, 0xd
imul eax, dword [ecx + 0xec]
mov dword [ecx + 0xec], eax
mov eax, 0xffff85fd
mov ecx, dword [esi + 0xe0]
xor ecx, dword [esi]
mov edx, dword [0x4b570c]
sub eax, ecx
add dword [edx + 0x78], eax
mov ecx, dword [0x4b570c]
mov eax, dword [ecx + 0x104]
add eax, dword [esi + 0xc0]
xor eax, 2
add dword [0x507110], eax
mov eax, dword [ecx + 0xa0]
xor eax, dword [esi + 0x3c]
xor eax, 0x10ebaf
sub dword [ecx + 0x88], eax
mov edx, dword [0x4b570c]
mov eax, dword [0x507180]
add eax, 0x79f1
add eax, dword [edx + 0xfc]
imul eax, dword [0x507104]
mov dword [0x507104], eax
cmp ebx, 0x5e80
jl 0x404760
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
add eax, 0x76
cmp ebp, eax
jg 0x40498f
lea eax, [ebp + 0x6bd]
cmp dword [esp + 0x18], eax
jg 0x40494e
mov dword [edx + 0x110], 0x5070a0
xor edx, edx
mov eax, dword [0x50717c]
mov ecx, dword [edx + eax]
xor ecx, dword [0x50712c]
mov eax, dword [esi + 0xdc]
mov dword [edx + eax], ecx
add edx, 4
mov eax, dword [esi + 0xf4]
add dword [esi + 0x8c], eax
mov ecx, dword [0x4b570c]
mov eax, dword [ecx + 0xc0]
dec eax
add dword [ecx + 0xe8], eax
mov eax, dword [esi + 0x7c]
sub eax, 0x59646
or dword [esi + 0x1c], eax
mov eax, dword [esi + 0xa0]
sub eax, 0x1509f5
add dword [esi + 0xe4], eax
mov eax, dword [esi + 0xc0]
dec eax
add dword [esi + 0x88], eax
mov eax, dword [0x507180]
xor eax, 0xffff85fd
sub dword [esi + 0x28], eax
cmp edx, 0x93b88
jl 0x4048ca
mov eax, dword [0x50717c]
mov dword [esi + 0x90], eax
jmp 0x40498f
or edi, 0x1fd0
mov ecx, ebx
cmp ebx, edi
jmp 0x404989
mov eax, dword [esi + 0x20]
sub eax, ebp
sub eax, dword [esi + 0x58]
cmp ebx, eax
jbe 0x404984
mov eax, dword [edx + 0x104]
add eax, ebp
and eax, dword [esp + 0x20]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4b570c]
mov ecx, dword [esp + 0x24]
add ecx, 4
cmp ecx, edi
mov dword [esp + 0x24], ecx
jge 0x40495a
pop edi
pop esi
lea eax, [ebp + 0x6bd]
pop ebp
pop ebx
pop ecx
ret