Function at 0x40b530
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, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [ebp + 8]
mov byte [esp + 0x1f], 0
mov al, byte [esp + 0xd0]
mov byte [esp + 0xd4], al
mov byte [esp + 0x110], 0x55
mov byte [esp + 0x111], 0x5c
mov byte [esp + 0x112], 0xac
mov byte [esp + 0x113], 0x64
mov byte [esp + 0x114], 0x56
mov byte [esp + 0x115], 0x56
mov byte [esp + 0x116], 0x5a
mov byte [esp + 0x117], 0x58
mov byte [esp + 0x118], 0x3e
mov word [esp + 0x125], 0
mov dword [esp + 0x121], 0
mov dword [esp + 0x11d], 0
mov dword [esp + 0x119], 0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
cmp eax, 0x17
jae 0x40b62f
jmp 0x40b5db
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
movzx ecx, byte [esp + ecx + 0x110]
mov edx, eax
add edx, 0xe16f3a7
lea eax, [eax + ecx + 0xe16f3a7]
and edx, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x15c]
add al, 0x6f
mov ecx, dword [esp + 0x20]
mov byte [esp + ecx + 0x110], al
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x17
jb 0x40b5db
jmp 0x40b62f
lea eax, [esp + 0x18f]
lea edx, [esp + 0x110]
mov edi, eax
mov ecx, 2
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x197]
lea edx, [esp + 0x118]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov cl, byte [esp + 0x118]
mov byte [esp + 0x197], cl
mov cl, byte [esp + 0xcc]
mov byte [esp + 0xd8], cl
mov byte [esp + 0x50], 0x23
mov byte [esp + 0x51], 0x61
mov byte [esp + 0x52], 0xcd
mov byte [esp + 0x53], 0x63
mov byte [esp + 0x54], 0xca
mov byte [esp + 0x55], 0x65
mov byte [esp + 0x56], 0xf2
mov byte [esp + 0x57], 0x67
mov byte [esp + 0x58], 0xcd
mov byte [esp + 0x59], 0x69
mov byte [esp + 0x5a], 0xc4
mov byte [esp + 0x5b], 0x6b
mov byte [esp + 0x5c], 0xf8
mov byte [esp + 0x5d], 0x6d
mov byte [esp + 0x5e], 3
mov byte [esp + 0x5f], 0x6f
mov byte [esp + 0x60], 0xe4
mov byte [esp + 0x61], 0x51
mov byte [esp + 0x62], 0xcb
mov byte [esp + 0x63], 0x53
mov byte [esp + 0x64], 0xc4
mov byte [esp + 0x65], 0x55
mov byte [esp + 0x66], 0xf3
mov byte [esp + 0x67], 0x57
mov byte [esp + 0x68], 2
mov byte [esp + 0x69], 0x59
mov byte [esp + 0x6a], 0x3a
mov byte [esp + 0x6b], 0x5b
mov byte [esp + 0x6c], 0xfd
mov byte [esp + 0x6d], 0x5d
mov byte [esp + 0x6e], 0xce
mov byte [esp + 0x6f], 0x5f
mov byte [esp + 0x70], 0xd0
mov byte [esp + 0x71], 0x41
mov byte [esp + 0x72], 0xee
mov byte [esp + 0x73], 0x43
mov byte [esp + 0x74], 0xed
mov byte [esp + 0x75], 0x45
mov byte [esp + 0x76], 0xe5
mov byte [esp + 0x77], 0x47
mov byte [esp + 0x78], 0xe9
mov byte [esp + 0x79], 0x49
mov byte [esp + 0x7a], 0xde
mov byte [esp + 0x7b], 0x4b
mov byte [esp + 0x7c], 0xe5
mov byte [esp + 0x7d], 0x4d
mov byte [esp + 0x7e], 0xe1
mov byte [esp + 0x7f], 0x4f
mov byte [esp + 0x80], 0x1e
mov byte [esp + 0x81], 0xb1
mov byte [esp + 0x82], 0xdd
mov byte [esp + 0x83], 0xb3
mov byte [esp + 0x84], 0x2c
mov byte [esp + 0x85], 0xb5
mov byte [esp + 0x86], 0xdb
mov byte [esp + 0x87], 0xb7
mov byte [esp + 0x88], 0x2f
mov byte [esp + 0x89], 0xb9
mov byte [esp + 0x8a], 0x2d
mov byte [esp + 0x8b], 0xbb
mov byte [esp + 0x8c], 0x2b
mov byte [esp + 0x8d], 0xbd
mov byte [esp + 0x8e], 0xd3
mov byte [esp + 0x8f], 0xbf
mov byte [esp + 0x90], 6
mov byte [esp + 0x91], 0xa1
mov byte [esp + 0x92], 0xd
mov byte [esp + 0x93], 0xa3
mov byte [esp + 0x94], 0x36
mov byte [esp + 0x95], 0xa5
mov byte [esp + 0x96], 0xb
mov byte [esp + 0x97], 0xa7
mov byte [esp + 0x98], 0xc5
mov byte [esp + 0x99], 0xa9
mov byte [esp + 0x9a], 0x3f
mov byte [esp + 0x9b], 0xab
mov byte [esp + 0x9c], 0x3e
mov byte [esp + 0x9d], 0xad
mov byte [esp + 0x9e], 2
mov byte [esp + 0x9f], 0xaf
mov byte [esp + 0xa0], 0x35
mov byte [esp + 0xa1], 0x91
mov byte [esp + 0xa2], 0x3c
mov byte [esp + 0xa3], 0x93
mov byte [esp + 0xa4], 0x37
mov byte [esp + 0xa5], 0x95
mov byte [esp + 0xa6], 0x39
mov byte [esp + 0xa7], 0x97
mov byte [esp + 0xa8], 0x3c
mov byte [esp + 0xa9], 0x99
mov byte [esp + 0xaa], 0x3f
mov byte [esp + 0xab], 0x9b
mov byte [esp + 0xac], 0x38
mov byte [esp + 0xad], 0x9d
mov byte [esp + 0xae], 0x93
mov byte [esp + 0xaf], 0x9f
mov byte [esp + 0xb0], 0x8a
mov byte [esp + 0xb1], 0x81
mov byte [esp + 0xb2], 0x82
mov byte [esp + 0xb3], 0x83
mov dword [esp + 0xb4], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x68
jae 0x40b984
jmp 0x40b92b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
movzx edx, byte [esp + edx + 0x50]
mov esi, ecx
add esi, 0xf87cbd50
and esi, edx
lea ecx, [ecx + edx - 0x78342b0]
add esi, esi
sub ecx, esi
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x160]
add cl, 0xd0
mov edx, dword [esp + 0x24]
mov byte [esp + edx + 0x50], cl
mov ecx, dword [esp + 0x24]
mov edx, ecx
xor edx, 1
and ecx, 1
lea ecx, [edx + ecx*2]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 0x68
jb 0x40b92b
jmp 0x40b984
mov cl, byte [esp + 0xc8]
mov byte [esp + 0xdc], cl
mov byte [esp + 0x130], 0x4f
mov byte [esp + 0x131], 0x19
mov byte [esp + 0x132], 0x7b
mov byte [esp + 0x133], 0x1b
mov byte [esp + 0x134], 0x84
mov byte [esp + 0x135], 0x15
mov byte [esp + 0x136], 0x8f
mov byte [esp + 0x137], 0x17
mov byte [esp + 0x138], 0x10
mov byte [esp + 0x139], 0x11
mov dword [esp + 0x141], 0
mov dword [esp + 0x13e], 0
mov dword [esp + 0x13a], 0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
cmp ecx, 0x15
jae 0x40ba6b
jmp 0x40ba16
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
movzx edx, byte [esp + edx + 0x130]
mov esi, ecx
add esi, 0x6132e684
lea ecx, [ecx + edx + 0x6132e684]
and esi, edx
add esi, esi
sub ecx, esi
mov dword [esp + 0x164], ecx
mov ecx, dword [esp + 0x164]
add cl, 0x64
mov edx, dword [esp + 0x28]
mov byte [esp + edx + 0x130], cl
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, 0x15
jb 0x40ba16
jmp 0x40ba6b
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x130]
lea esi, [esp + 0x50]
lea edi, [esp + 0x4c]
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.0040c6c0
test al, 1
jne 0x40bab0
jmp 0x40bf88
mov al, byte [esp + 0xc4]
mov byte [esp + 0xe0], al
mov byte [esp + 0x148], 0x1f
mov byte [esp + 0x149], 0x22
mov byte [esp + 0x14a], 0xf2
mov word [esp + 0x153], 0
mov dword [esp + 0x14f], 0
mov dword [esp + 0x14b], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0xd
jae 0x40bb6f
jmp 0x40bb09
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
movzx ecx, byte [esp + ecx + 0x148]
mov edx, eax
add edx, 0xfcbe563e
mov esi, ecx
not esi
mov edi, edx
or edi, esi
and edx, ecx
add edx, edi
neg edx
lea eax, [eax + edx - 0x341a9c3]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x168]
add al, 0x4e
mov ecx, dword [esp + 0x2c]
mov byte [esp + ecx + 0x148], al
mov eax, dword [esp + 0x2c]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0xd
jb 0x40bb09
jmp 0x40bb6f
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x148]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040df90
cmp eax, 0
jne 0x40bb95
mov byte [esp + 0x1f], 1
jmp 0x40bf7a
mov al, byte [esp + 0xc0]
mov byte [esp + 0xe4], al
mov byte [esp + 0x40], 0x93
mov byte [esp + 0x41], 0xee
mov byte [esp + 0x42], 0xe1
mov byte [esp + 0x43], 0x9f
mov byte [esp + 0x44], 0xe5
mov byte [esp + 0x45], 0x98
mov byte [esp + 0x46], 0x9a
mov byte [esp + 0x47], 0xf
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
cmp eax, 8
jae 0x40bc2c
jmp 0x40bbde
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
movzx ecx, byte [esp + ecx + 0x40]
mov edx, eax
add edx, 0x377dced5
lea eax, [eax + ecx + 0x377dced5]
and edx, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x16c]
add al, 0x2d
mov ecx, dword [esp + 0x30]
mov byte [esp + ecx + 0x40], al
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, 8
jb 0x40bbde
jmp 0x40bc2c
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c670
cmp eax, 0
je 0x40bf78
mov al, byte [esp + 0xbc]
mov byte [esp + 0xe8], al
mov byte [esp + 0xf0], 0x58
mov byte [esp + 0xf1], 0x9a
mov byte [esp + 0xf2], 0x67
mov byte [esp + 0xf3], 0x9c
mov byte [esp + 0xf4], 0xb5
mov byte [esp + 0xf5], 0xdf
mov byte [esp + 0xf6], 0x9f
mov byte [esp + 0xf7], 0x6b
mov byte [esp + 0xf8], 0x6f
mov byte [esp + 0xf9], 0x6c
mov byte [esp + 0xfa], 0xd2
mov byte [esp + 0xfb], 0xd3
mov byte [esp + 0xfc], 0x64
mov byte [esp + 0xfd], 0x96
mov byte [esp + 0xfe], 0x68
mov byte [esp + 0xff], 0x60
mov byte [esp + 0x100], 0x91
mov byte [esp + 0x101], 0xa6
mov byte [esp + 0x102], 0xca
mov byte [esp + 0x103], 0xeb
mov dword [esp + 0x107], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
jae 0x40bd7b
jmp 0x40bd20
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
movzx edx, byte [esp + ecx + 0xf0]
lea ecx, [eax + edx - 0x75ca1ea1]
add eax, 0x5f
and eax, edx
add eax, eax
mov edx, ecx
not edx
mov esi, eax
and esi, edx
not eax
and ecx, eax
sub ecx, esi
mov dword [esp + 0x170], ecx
mov eax, dword [esp + 0x170]
add al, 0x67
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0xf0], al
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
jb 0x40bd20
jmp 0x40bd7b
lea eax, [esp + 0x198]
lea edx, [esp + 0xf0]
mov ecx, 5
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x14
lea edx, [esp + 0xf0]
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 + 0x198]
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c670
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x40bf74
mov eax, dword [esp + 0x3c]
add eax, 0x13
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0xb8]
mov byte [esp + 0xec], al
mov byte [esp + 0x178], 0x34
mov byte [esp + 0x179], 0x57
mov byte [esp + 0x17a], 0x10
lea eax, [esp + 0x178]
add eax, 3
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0xd
call fcn.00409180
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cmp eax, 0x10
jae 0x40bea3
jmp 0x40be3c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx edx, byte [esp + ecx + 0x178]
mov esi, eax
add esi, 0xc714d583
and esi, edx
lea ecx, [eax + edx - 0x38eb2a7d]
add eax, 0x83
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 + 0x174], ecx
mov eax, dword [esp + 0x174]
add al, 0x6b
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0x178], al
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x10
jb 0x40be3c
jmp 0x40bea3
jmp 0x40bea5
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x178]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c670
mov dword [esp + 0x128], eax
cmp dword [esp + 0x128], 0
je 0x40bf74
mov byte [0x447658], 1
mov edi, dword [esp + 0x128]
mov esi, dword [esp + 0x3c]
cmp edi, 0
jne 0x40befe
mov ecx, esi
jmp 0x40beec
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40beec
sub eax, esi
mov edi, esi
add edi, eax
mov dword [esp + 0x12c], 0
lea eax, [0x44765a]
cmp edi, esi
jbe 0x40bf68
lea ebx, [0x44765a]
jmp 0x40bf1b
cmp byte [esi], 0
jne 0x40bf24
mov eax, ebx
jmp 0x40bf68
lea eax, [esp + 0x12c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040ed80
add esi, eax
mov cx, word [esp + 0x12c]
mov eax, ebx
add eax, 2
mov word [ebx], cx
mov ecx, eax
sub ecx, 0x447858
setb cl
mov edx, esi
sub edx, edi
setb dl
and cl, dl
test cl, 1
mov ebx, eax
jne 0x40bf1b
mov word [eax], 0
mov byte [esp + 0x1f], 1
jmp 0x40bf74
jmp 0x40bf76
jmp 0x40bf78
jmp 0x40bf7a
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00437dc0
jmp 0x40bf88
mov al, byte [esp + 0x1f]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret