Function at 0x40a4e0
Capabilities:
Authenticate hmac
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, 0xfffffff0
sub esp, 0x210
mov eax, dword [ebp + 8]
mov byte [esp + 0x23], 0
mov al, byte [esp + 0x60]
mov byte [esp + 0x64], al
mov byte [esp + 0x130], 0x75
mov byte [esp + 0x131], 0x7c
mov byte [esp + 0x132], 0xc
mov byte [esp + 0x133], 0x54
mov byte [esp + 0x134], 6
mov byte [esp + 0x135], 0x76
mov byte [esp + 0x136], 0x72
mov byte [esp + 0x137], 0x70
mov byte [esp + 0x138], 0x9e
mov byte [esp + 0x14d], 0
mov dword [esp + 0x149], 0
mov dword [esp + 0x145], 0
mov dword [esp + 0x141], 0
mov dword [esp + 0x13d], 0
mov dword [esp + 0x139], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
cmp eax, 0x1e
jae 0x40a5df
jmp 0x40a599
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [esp + ecx + 0x130]
mov edx, eax
add edx, 0x2c183243
lea eax, [eax + ecx + 0x2c183243]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x2b
mov ecx, dword [esp + 0x24]
mov byte [esp + ecx + 0x130], al
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x1e
jb 0x40a599
jmp 0x40a5df
lea esi, [esp + 0x1d3]
lea eax, [esp + 0x130]
mov ecx, 2
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0x1db]
lea eax, [esp + 0x138]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov al, byte [esp + 0x138]
mov byte [esp + 0x1db], al
mov al, byte [esp + 0x5c]
mov byte [esp + 0x68], al
mov byte [esp + 0x80], 0x63
mov byte [esp + 0x81], 0xa5
mov byte [esp + 0x82], 0x15
mov byte [esp + 0x83], 0xab
mov byte [esp + 0x84], 0x18
mov byte [esp + 0x85], 0xa9
mov byte [esp + 0x86], 0x1c
mov byte [esp + 0x87], 0xaf
mov byte [esp + 0x88], 5
mov byte [esp + 0x89], 0xad
mov byte [esp + 0x8a], 0x1e
mov byte [esp + 0x8b], 0xb3
mov byte [esp + 0x8c], 6
mov byte [esp + 0x8d], 0xb1
mov byte [esp + 0x8e], 0x43
mov byte [esp + 0x8f], 0xb7
mov byte [esp + 0x90], 0x62
mov byte [esp + 0x91], 0xb5
mov byte [esp + 0x92], 0xb
mov byte [esp + 0x93], 0xbb
mov byte [esp + 0x94], 0xa
mov byte [esp + 0x95], 0xb9
mov byte [esp + 0x96], 0x13
mov byte [esp + 0x97], 0xbf
mov byte [esp + 0x98], 0x40
mov byte [esp + 0x99], 0xbd
mov byte [esp + 0x9a], 0x5c
mov byte [esp + 0x9b], 0x83
mov byte [esp + 0x9c], 0x25
mov byte [esp + 0x9d], 0x81
mov byte [esp + 0x9e], 0x30
mov byte [esp + 0x9f], 0x87
mov byte [esp + 0xa0], 0x36
mov byte [esp + 0xa1], 0x85
mov byte [esp + 0xa2], 0x28
mov byte [esp + 0xa3], 0x8b
mov byte [esp + 0xa4], 0x25
mov byte [esp + 0xa5], 0x89
mov byte [esp + 0xa6], 0x2d
mov byte [esp + 0xa7], 0x8f
mov byte [esp + 0xa8], 0x29
mov byte [esp + 0xa9], 0x8d
mov byte [esp + 0xaa], 0x38
mov byte [esp + 0xab], 0x93
mov byte [esp + 0xac], 0x3d
mov byte [esp + 0xad], 0x91
mov byte [esp + 0xae], 0x21
mov byte [esp + 0xaf], 0x97
mov byte [esp + 0xb0], 0x24
mov byte [esp + 0xb1], 0x95
mov byte [esp + 0xb2], 0x65
mov byte [esp + 0xb3], 0x9b
mov byte [esp + 0xb4], 0x22
mov byte [esp + 0xb5], 0x99
mov byte [esp + 0xb6], 0x6b
mov byte [esp + 0xb7], 0x9f
mov byte [esp + 0xb8], 0x27
mov byte [esp + 0xb9], 0x9d
mov byte [esp + 0xba], 0x25
mov byte [esp + 0xbb], 0x63
mov byte [esp + 0xbc], 0xdb
mov byte [esp + 0xbd], 0x61
mov byte [esp + 0xbe], 0x93
mov byte [esp + 0xbf], 0x67
mov byte [esp + 0xc0], 0xcc
mov byte [esp + 0xc1], 0x65
mov byte [esp + 0xc2], 0xd5
mov byte [esp + 0xc3], 0x6b
mov byte [esp + 0xc4], 0xdc
mov byte [esp + 0xc5], 0x69
mov byte [esp + 0xc6], 0xdb
mov byte [esp + 0xc7], 0x6f
mov byte [esp + 0xc8], 0x9d
mov byte [esp + 0xc9], 0x6d
mov byte [esp + 0xca], 0xd7
mov byte [esp + 0xcb], 0x73
mov byte [esp + 0xcc], 0xc4
mov byte [esp + 0xcd], 0x71
mov byte [esp + 0xce], 0xdc
mov byte [esp + 0xcf], 0x77
mov byte [esp + 0xd0], 0xdd
mov byte [esp + 0xd1], 0x75
mov byte [esp + 0xd2], 0xc6
mov byte [esp + 0xd3], 0x7b
mov byte [esp + 0xd4], 0xdf
mov byte [esp + 0xd5], 0x79
mov byte [esp + 0xd6], 0xc9
mov byte [esp + 0xd7], 0x7f
mov byte [esp + 0xd8], 0xda
mov byte [esp + 0xd9], 0x7d
mov byte [esp + 0xda], 0xd7
mov byte [esp + 0xdb], 0x43
mov byte [esp + 0xdc], 0xe6
mov byte [esp + 0xdd], 0x41
mov byte [esp + 0xde], 0x53
mov byte [esp + 0xdf], 0x47
mov byte [esp + 0xe0], 0x48
mov byte [esp + 0xe1], 0x45
mov byte [esp + 0xe2], 0x44
mov byte [esp + 0xe3], 0x4b
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
cmp eax, 0x7c
jae 0x40a9de
jmp 0x40a998
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
movzx ecx, byte [esp + ecx + 0x80]
mov edx, eax
add edx, 0xc5
lea eax, [eax + ecx + 0xc5]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x9d
mov ecx, dword [esp + 0x28]
mov byte [esp + ecx + 0x80], al
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x7c
jb 0x40a998
jmp 0x40a9de
mov al, byte [esp + 0x58]
mov byte [esp + 0x6c], al
mov byte [esp + 0x1b0], 0xc7
mov byte [esp + 0x1b1], 0x39
mov byte [esp + 0x1b2], 0x9b
mov byte [esp + 0x1b3], 0x3b
mov byte [esp + 0x1b4], 0x8a
mov byte [esp + 0x1b5], 0x3d
mov byte [esp + 0x1b6], 0x97
mov byte [esp + 0x1b7], 0x3f
mov byte [esp + 0x1b8], 0x3e
mov byte [esp + 0x1b9], 1
lea eax, [esp + 0x1b0]
add eax, 0xa
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
call fcn.00408770
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0x16
jae 0x40aaa1
jmp 0x40aa6d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov cl, byte [esp + ecx + 0x1b0]
add al, 0xd7
xor al, cl
add al, 0x1f
mov ecx, dword [esp + 0x2c]
mov byte [esp + ecx + 0x1b0], al
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x16
jb 0x40aa6d
jmp 0x40aaa1
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0x80]
lea edi, [esp + 0x44]
xor ebx, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.0040b070
test al, 1
jne 0x40aae9
jmp 0x40b01b
mov al, byte [esp + 0x54]
mov byte [esp + 0x70], al
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x19c], 0
mov dword [esp + 0x198], 0
mov dword [esp + 0x194], 0
mov dword [esp + 0x190], 0
mov byte [esp + 0x190], 0xcf
mov byte [esp + 0x191], 0x32
mov byte [esp + 0x192], 0x5a
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
cmp eax, 0x20
jae 0x40abc4
jmp 0x40ab74
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
movzx ecx, byte [esp + ecx + 0x190]
mov edx, eax
add edx, 0x2c6804c
lea eax, [eax + ecx + 0x2c6804c]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xec
mov ecx, dword [esp + 0x30]
mov byte [esp + ecx + 0x190], al
mov eax, dword [esp + 0x30]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, 0x20
jb 0x40ab74
jmp 0x40abc4
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x190]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d140
cmp eax, 0
sete al
jmp 0x40abe3
jmp 0x40abe5
jmp 0x40abe7
test al, 1
jne 0x40abed
jmp 0x40abf9
mov byte [esp + 0x23], 1
jmp 0x40abf4
jmp 0x40b00d
mov al, byte [esp + 0x50]
mov byte [esp + 0x74], al
mov byte [esp + 0x150], 0x7b
mov byte [esp + 0x151], 0x6e
mov byte [esp + 0x152], 0x69
mov byte [esp + 0x153], 0x7f
mov byte [esp + 0x154], 0x75
mov byte [esp + 0x155], 0x70
mov byte [esp + 0x156], 0x72
mov byte [esp + 0x157], 0x8f
mov dword [esp + 0x163], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
cmp eax, 0x17
jae 0x40acc6
jmp 0x40ac80
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
movzx ecx, byte [esp + ecx + 0x150]
mov edx, eax
add edx, 0xb12ff3c1
lea eax, [eax + ecx - 0x4ed00c3f]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xb9
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0x150], al
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x17
jb 0x40ac80
jmp 0x40acc6
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x150]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d170
cmp eax, 0
je 0x40b00b
mov al, byte [esp + 0x4c]
mov byte [esp + 0x78], al
mov byte [esp + 0x100], 0xe
mov byte [esp + 0x101], 0x38
mov byte [esp + 0x102], 0xf
mov byte [esp + 0x103], 0x36
mov byte [esp + 0x104], 0x41
mov byte [esp + 0x105], 0x67
mov byte [esp + 0x106], 0x27
mov byte [esp + 0x107], 0x1b
mov byte [esp + 0x108], 0x17
mov byte [esp + 0x109], 0x2a
mov byte [esp + 0x10a], 0x60
mov byte [esp + 0x10b], 0x63
mov byte [esp + 0x10c], 0x12
mov byte [esp + 0x10d], 0x2c
mov byte [esp + 0x10e], 0x1a
mov byte [esp + 0x10f], 0x12
mov byte [esp + 0x110], 0x25
mov byte [esp + 0x111], 0x4c
mov byte [esp + 0x112], 0x68
mov byte [esp + 0x113], 0x8b
mov dword [esp + 0x11c], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jae 0x40ae00
jmp 0x40adc2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx ecx, byte [esp + ecx + 0x100]
mov edx, eax
add edx, 0x6c
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0x78
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0x100], al
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jb 0x40adc2
jmp 0x40ae00
lea eax, [esp + 0x1dc]
lea edx, [esp + 0x100]
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 + 0x100]
add edx, 0x14
mov edi, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea eax, [esp + 0x1dc]
jmp 0x40ae3c
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d170
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
jmp 0x40ae56
jmp 0x40ae58
cmp eax, 0
je 0x40b00b
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 + 0x18c], 0
mov dword [esp + 0x188], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x170], 0
mov byte [esp + 0x170], 0x64
mov byte [esp + 0x171], 7
mov byte [esp + 0x172], 0x40
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
cmp eax, 0x1d
jae 0x40af3a
jmp 0x40aef4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
movzx ecx, byte [esp + ecx + 0x170]
mov edx, eax
add edx, 0x4941204b
lea eax, [eax + ecx + 0x4941204b]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xf3
mov ecx, dword [esp + 0x3c]
mov byte [esp + ecx + 0x170], al
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x1d
jb 0x40aef4
jmp 0x40af3a
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x170]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d170
jmp 0x40af53
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x128]
cmp eax, 0
je 0x40b00b
mov byte [0x4472e4], 1
mov edi, dword [esp + 0x128]
mov esi, dword [esp + 0x40]
cmp edi, 0
jne 0x40af97
mov ecx, esi
jmp 0x40af85
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40af85
sub eax, esi
mov edi, esi
add edi, eax
mov dword [esp + 0x12c], 0
lea eax, [0x4472e6]
cmp edi, esi
jbe 0x40b001
lea ebx, [0x4472e6]
jmp 0x40afb4
cmp byte [esi], 0
jne 0x40afbd
mov eax, ebx
jmp 0x40b001
lea eax, [esp + 0x12c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040f690
add esi, eax
mov cx, word [esp + 0x12c]
mov eax, ebx
add eax, 2
mov word [ebx], cx
mov ecx, eax
sub ecx, 0x4474e4
setb cl
mov edx, esi
sub edx, edi
setb dl
and cl, dl
test cl, 1
mov ebx, eax
jne 0x40afb4
mov word [eax], 0
mov byte [esp + 0x23], 1
jmp 0x40b00d
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00433c00
jmp 0x40b01b
mov al, byte [esp + 0x23]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret