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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1b8
mov eax, dword [ebp + 8]
mov byte [esp + 0x23], 0
mov al, byte [esp + 0x60]
mov byte [esp + 0x64], al
mov byte [esp + 0x140], 0x2d
mov byte [esp + 0x141], 0x2a
mov byte [esp + 0x142], 0x66
mov byte [esp + 0x143], 0x2e
mov byte [esp + 0x144], 0x1c
mov byte [esp + 0x145], 0x18
mov byte [esp + 0x146], 0x1c
mov byte [esp + 0x147], 0x12
mov byte [esp + 0x148], 0xf4
mov dword [esp + 0x151], 0
mov dword [esp + 0x14d], 0
mov dword [esp + 0x149], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
cmp eax, 0x15
jae 0xafb91e
jmp 0xafb8bb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [esp + ecx + 0x140]
mov edx, eax
and edx, 0x31c4eb1e
xor eax, 0xb1c4eb1e
lea edx, [eax + edx*2]
mov eax, edx
add eax, ecx
and edx, ecx
add edx, edx
mov ecx, edx
xor ecx, eax
not edx
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x178]
add al, 0x2e
mov ecx, dword [esp + 0x24]
mov byte [esp + ecx + 0x140], al
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x15
jb 0xafb8bb
jmp 0xafb91e
lea eax, [esp + 0x197]
lea edx, [esp + 0x140]
mov ecx, 2
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 8
lea edx, [esp + 0x140]
add edx, 8
mov edi, eax
xor ecx, ecx
mov esi, edx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, 1
mov esi, edx
mov edi, eax
add ecx, 0xffffffff
add esi, 1
mov dl, byte [edx]
add edi, 1
mov byte [eax], dl
cmp ecx, 0
mov edx, esi
mov eax, edi
jne 0xafb95c
lea eax, [esp + 0x197]
mov cl, byte [esp + 0x5c]
mov byte [esp + 0x68], cl
mov byte [esp + 0x80], 0xa3
mov byte [esp + 0x81], 0x79
mov byte [esp + 0x82], 0xc9
mov byte [esp + 0x83], 0x7b
mov byte [esp + 0x84], 0xc4
mov byte [esp + 0x85], 0x7d
mov byte [esp + 0x86], 0xc8
mov byte [esp + 0x87], 0x7f
mov byte [esp + 0x88], 0xd9
mov byte [esp + 0x89], 0x71
mov byte [esp + 0x8a], 0xce
mov byte [esp + 0x8b], 0x73
mov byte [esp + 0x8c], 0xc6
mov byte [esp + 0x8d], 0x75
mov byte [esp + 0x8e], 0x8b
mov byte [esp + 0x8f], 0x77
mov byte [esp + 0x90], 0xa2
mov byte [esp + 0x91], 0x49
mov byte [esp + 0x92], 0xc3
mov byte [esp + 0x93], 0x4b
mov byte [esp + 0x94], 0xfa
mov byte [esp + 0x95], 0x4d
mov byte [esp + 0x96], 0xeb
mov byte [esp + 0x97], 0x4f
mov byte [esp + 0x98], 0x84
mov byte [esp + 0x99], 0x41
mov byte [esp + 0x9a], 0xa0
mov byte [esp + 0x9b], 0x43
mov byte [esp + 0x9c], 0xe1
mov byte [esp + 0x9d], 0x45
mov byte [esp + 0x9e], 0xf4
mov byte [esp + 0x9f], 0x47
mov byte [esp + 0xa0], 0xf6
mov byte [esp + 0xa1], 0x59
mov byte [esp + 0xa2], 0xe4
mov byte [esp + 0xa3], 0x5b
mov byte [esp + 0xa4], 0xe1
mov byte [esp + 0xa5], 0x5d
mov byte [esp + 0xa6], 0xf9
mov byte [esp + 0xa7], 0x5f
mov byte [esp + 0xa8], 0xfd
mov byte [esp + 0xa9], 0x51
mov byte [esp + 0xaa], 0xe4
mov byte [esp + 0xab], 0x53
mov byte [esp + 0xac], 0xe9
mov byte [esp + 0xad], 0x55
mov byte [esp + 0xae], 0xe5
mov byte [esp + 0xaf], 0x57
mov byte [esp + 0xb0], 0xe8
mov byte [esp + 0xb1], 0x29
mov byte [esp + 0xb2], 0xd9
mov byte [esp + 0xb3], 0x2b
mov byte [esp + 0xb4], 0xa2
mov byte [esp + 0xb5], 0x2d
mov byte [esp + 0xb6], 0xd3
mov byte [esp + 0xb7], 0x2f
mov byte [esp + 0xb8], 0xa7
mov byte [esp + 0xb9], 0x21
mov byte [esp + 0xba], 0xa9
mov byte [esp + 0xbb], 0x23
mov byte [esp + 0xbc], 0xab
mov byte [esp + 0xbd], 0x25
mov byte [esp + 0xbe], 0xdb
mov byte [esp + 0xbf], 0x27
mov byte [esp + 0xc0], 0x80
mov byte [esp + 0xc1], 0x39
mov byte [esp + 0xc2], 0x89
mov byte [esp + 0xc3], 0x3b
mov byte [esp + 0xc4], 0x88
mov byte [esp + 0xc5], 0x3d
mov byte [esp + 0xc6], 0x83
mov byte [esp + 0xc7], 0x3f
mov byte [esp + 0xc8], 0xc1
mov byte [esp + 0xc9], 0x31
mov byte [esp + 0xca], 0x87
mov byte [esp + 0xcb], 0x33
mov byte [esp + 0xcc], 0x80
mov byte [esp + 0xcd], 0x35
mov byte [esp + 0xce], 0x88
mov byte [esp + 0xcf], 0x37
mov byte [esp + 0xd0], 0x91
mov byte [esp + 0xd1], 9
mov byte [esp + 0xd2], 0xb6
mov byte [esp + 0xd3], 0xb
mov byte [esp + 0xd4], 0xaf
mov byte [esp + 0xd5], 0xd
mov byte [esp + 0xd6], 0xbd
mov byte [esp + 0xd7], 0xf
mov byte [esp + 0xd8], 0xaa
mov byte [esp + 0xd9], 1
mov byte [esp + 0xda], 0xa7
mov byte [esp + 0xdb], 3
mov byte [esp + 0xdc], 0xa6
mov byte [esp + 0xdd], 5
mov byte [esp + 0xde], 0x1b
mov byte [esp + 0xdf], 7
mov byte [esp + 0xe0], 0x1c
mov byte [esp + 0xe1], 0x19
mov byte [esp + 0xe2], 0x18
mov byte [esp + 0xe3], 0x1b
mov word [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
cmp ecx, 0x6a
jae 0xafbd1f
jmp 0xafbcc9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
movzx edx, byte [esp + edx + 0x80]
mov esi, ecx
add esi, 0x8f
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
add ecx, 0xd379d68f
mov dword [esp + 0x17c], ecx
mov ecx, dword [esp + 0x17c]
add cl, 0x17
mov edx, dword [esp + 0x28]
mov byte [esp + edx + 0x80], cl
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, 0x6a
jb 0xafbcc9
jmp 0xafbd1f
mov cl, byte [esp + 0x58]
mov byte [esp + 0x6c], cl
mov byte [esp + 0x128], 0xbf
mov byte [esp + 0x129], 0xcd
mov byte [esp + 0x12a], 0x6b
mov byte [esp + 0x12b], 0xcb
mov byte [esp + 0x12c], pe_nt_image_headers32
mov byte [esp + 0x12d], 0xc9
mov byte [esp + 0x12e], 0x7f
mov byte [esp + 0x12f], 0xc7
mov byte [esp + 0x130], 0xc4
mov byte [esp + 0x131], 0xc5
mov word [esp + 0x13e], 0
mov dword [esp + 0x13a], 0
mov dword [esp + 0x136], 0
mov dword [esp + 0x132], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x18
jae 0xafbe15
jmp 0xafbdb5
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
movzx edx, byte [esp + ecx + 0x128]
mov ecx, esi
add ecx, 0x62
and ecx, edx
mov edi, 0xcd8b979d
sub edi, esi
or edi, edx
not edi
add edi, edx
sub edi, ecx
mov dword [esp + 0x180], edi
mov ecx, dword [esp + 0x180]
add cl, 0x52
mov edx, dword [esp + 0x2c]
mov byte [esp + edx + 0x128], cl
mov ecx, dword [esp + 0x2c]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x18
jb 0xafbdb5
jmp 0xafbe15
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x128]
lea esi, [esp + 0x80]
lea edi, [esp + 0x44]
xor ebx, ebx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.00afcb50
test al, 1
jne 0xafbe5d
jmp 0xafc35e
mov al, byte [esp + 0x54]
mov byte [esp + 0x70], al
mov byte [esp + 0x158], 0xff
mov byte [esp + 0x159], 0xfa
mov byte [esp + 0x15a], 0x6a
mov word [esp + 0x163], 0
mov dword [esp + 0x15f], 0
mov dword [esp + 0x15b], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xd
jae 0xafbf16
jmp 0xafbeb0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movzx esi, byte [esp + eax + 0x158]
mov ecx, edx
add ecx, 0x12b9fb2
and ecx, esi
lea eax, [edx + esi + 0x12b9fb2]
add edx, 0xb2
and edx, esi
add ecx, edx
mov edx, ecx
xor edx, eax
not ecx
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x184]
add al, 0x22
mov ecx, dword [esp + 0x30]
mov byte [esp + ecx + 0x158], al
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xd
jb 0xafbeb0
jmp 0xafbf16
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x158]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00afe590
jmp 0xafbf2f
cmp eax, 0
jne 0xafbf3e
mov byte [esp + 0x23], 1
jmp 0xafc350
mov al, byte [esp + 0x50]
mov byte [esp + 0x74], al
mov byte [esp + 0x110], 0x93
mov byte [esp + 0x111], 0x8e
mov byte [esp + 0x112], 0x81
mov byte [esp + 0x113], 0x9f
mov byte [esp + 0x114], 0x85
mov byte [esp + 0x115], 0x98
mov byte [esp + 0x116], 0x9a
mov byte [esp + 0x117], 0x2f
mov word [esp + 0x11c], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
cmp eax, 0xe
jae 0xafc00d
jmp 0xafbfae
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
movzx ecx, byte [esp + ecx + 0x110]
add eax, 0xa26ad585
mov edx, eax
and edx, ecx
mov esi, edx
add esi, esi
xor eax, ecx
lea eax, [eax + edx*2]
mov ecx, eax
not ecx
mov edx, esi
and edx, ecx
not esi
and eax, esi
sub eax, edx
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x188]
add al, 0x5d
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0x110], al
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 0xe
jb 0xafbfae
jmp 0xafc00d
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x110]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00afcac0
cmp eax, 0
je 0xafc34e
mov al, byte [esp + 0x4c]
mov byte [esp + 0x78], al
mov byte [esp + 0xf0], 0x54
mov byte [esp + 0xf1], 0x42
mov byte [esp + 0xf2], 0x57
mov byte [esp + 0xf3], 0x40
mov byte [esp + 0xf4], 0x69
mov byte [esp + 0xf5], 0x8f
mov byte [esp + 0xf6], 0x4f
mov byte [esp + 0xf7], 0x5b
mov byte [esp + 0xf8], 0x5f
mov byte [esp + 0xf9], 0x40
mov byte [esp + 0xfa], 0x8a
mov byte [esp + 0xfb], 0x93
mov byte [esp + 0xfc], 0x48
mov byte [esp + 0xfd], 0x56
mov byte [esp + 0xfe], 0x5c
mov byte [esp + 0xff], 0x4c
mov byte [esp + 0x100], 0x5d
mov byte [esp + 0x101], 0x76
mov byte [esp + 0x102], 0x92
mov byte [esp + 0x103], 0xbb
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jae 0xafc14f
jmp 0xafc109
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx ecx, byte [esp + ecx + 0xf0]
add eax, 0xc8912fe5
xor eax, ecx
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x18c]
add al, 0xbd
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0xf0], al
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jb 0xafc109
jmp 0xafc14f
lea eax, [esp + 0x1a0]
lea edx, [esp + 0xf0]
mov edi, eax
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x14
lea edx, [esp + 0xf0]
add edx, 0x14
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea eax, [esp + 0x1a0]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00afcac0
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0xafc34e
call fcn.00af9c40
mov eax, dword [esp + 0x40]
add eax, 0x13
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x48]
mov byte [esp + 0x7c], al
mov byte [esp + 0x168], 0xf0
mov byte [esp + 0x169], 0xd7
mov byte [esp + 0x16a], 0x94
mov word [esp + 0x16f], 0
mov dword [esp + 0x16b], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
cmp eax, 9
jae 0xafc267
jmp 0xafc200
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
movzx edx, byte [esp + ecx + 0x168]
mov ecx, eax
add ecx, 0xf5d1b2bd
mov esi, ecx
and esi, edx
xor ecx, edx
lea ecx, [ecx + esi*2]
add eax, 0xbd
and eax, edx
add eax, esi
mov edx, ecx
not edx
mov esi, eax
and esi, edx
not eax
and ecx, eax
sub ecx, esi
mov dword [esp + 0x190], ecx
mov eax, dword [esp + 0x190]
add al, 0xd5
mov ecx, dword [esp + 0x3c]
mov byte [esp + ecx + 0x168], al
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 9
jb 0xafc200
jmp 0xafc267
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x168]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00afcac0
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x120]
jmp 0xafc28e
cmp eax, 0
setne al
jmp 0xafc296
test al, 1
jne 0xafc29f
jmp 0xafc34e
mov byte [0xcc799c], 1
mov edi, dword [esp + 0x120]
mov esi, dword [esp + 0x40]
cmp edi, 0
jne 0xafc2da
mov ecx, esi
jmp 0xafc2ba
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0xafc2ba
mov ecx, eax
xor ecx, 0xffffffff
and ecx, esi
mov edx, esi
xor edx, 0xffffffff
and eax, edx
sub eax, ecx
mov edi, esi
add edi, eax
mov dword [esp + 0x124], 0
lea eax, [0xcc799e]
cmp edi, esi
jbe 0xafc344
lea ebx, [0xcc799e]
jmp 0xafc2f7
cmp byte [esi], 0
jne 0xafc300
mov eax, ebx
jmp 0xafc344
lea eax, [esp + 0x124]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00aff670
add esi, eax
mov cx, word [esp + 0x124]
mov eax, ebx
add eax, 2
mov word [ebx], cx
mov ecx, eax
sub ecx, 0xcc7b9c
setb cl
mov edx, esi
sub edx, edi
setb dl
and cl, dl
test cl, 1
mov ebx, eax
jne 0xafc2f7
mov word [eax], 0
mov byte [esp + 0x23], 1
jmp 0xafc350
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00b28b70
jmp 0xafc35e
mov al, byte [esp + 0x23]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret