Function at 0x40d160
Capabilities:
Authenticate hmac
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 esi, esp
mov dword [esi + 0x14c], 0x440888
mov dword [esi + 0x2c], 0
mov eax, dword [0x440434]
mov dword [esi + 0x138], eax
mov al, byte [esi + 0x28]
mov byte [esi + 0x30], al
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x160], 0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x150], 0
mov byte [esi + 0x150], 0x46
mov byte [esi + 0x151], 0x8b
mov byte [esi + 0x152], 0xbf
mov byte [esi + 0x153], 0x63
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x20
jae 0x40d252
jmp 0x40d210
mov ecx, dword [esi + 8]
mov eax, dword [esi + 8]
movzx edx, byte [esi + eax + 0x150]
mov eax, ecx
add eax, 0xd3a843b0
add ecx, 0xb0
mov edi, eax
or edi, ecx
and edi, edx
or eax, edx
sub eax, edi
add al, 0x30
mov ecx, dword [esi + 8]
mov byte [esi + ecx + 0x150], al
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0x20
jb 0x40d210
jmp 0x40d252
mov edi, dword [0x440430]
mov al, byte [esi + 0x24]
mov byte [esi + 0x34], al
mov byte [esi + 0xc0], 0x79
mov byte [esi + 0xc1], 0x7a
mov byte [esi + 0xc2], 0x96
mov byte [esi + 0xc3], 0x5e
mov byte [esi + 0xc4], 0x86
mov byte [esi + 0xc5], 0x88
mov byte [esi + 0xc6], 0x75
mov byte [esi + 0xc7], 0x8e
mov byte [esi + 0xc8], 0x9e
mov byte [esi + 0xc9], 0x8c
mov byte [esi + 0xca], 0x75
mov byte [esi + 0xcb], 0x86
mov byte [esi + 0xcc], 0x91
mov byte [esi + 0xcd], 0x9e
mov byte [esi + 0xce], 0x9d
mov byte [esi + 0xcf], 0x6e
mov byte [esi + 0xd0], 0x97
mov byte [esi + 0xd1], 0x94
mov byte [esi + 0xd2], 0x54
mov byte [esi + 0xd3], 0x85
mov byte [esi + 0xd4], 0x99
mov byte [esi + 0xd5], 0x97
mov byte [esi + 0xd6], 0x43
mov byte [esi + 0xd7], 0x4b
mov byte [esi + 0xd8], 0x56
mov byte [esi + 0xd9], 0x51
mov byte [esi + 0xda], 0x5c
mov byte [esi + 0xdb], 0x97
mov byte [esi + 0xdc], 0xa5
mov byte [esi + 0xdd], 0xa1
mov byte [esi + 0xde], 0x7b
mov byte [esi + 0xdf], 0x3f
mov byte [esi + 0xe2], 0
mov word [esi + 0xe0], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
cmp eax, 0x23
jae 0x40d3c5
mov dword [esi + 0x134], edi
jmp 0x40d365
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
movzx ebx, byte [esi + ecx + 0xc0]
mov edx, eax
add edx, 0xe7492404
lea eax, [eax + ebx - 0x18b6dbfc]
mov ecx, ebx
not ecx
mov edi, edx
or edi, ecx
mov ecx, ebx
add ecx, edi
and edx, ebx
lea ecx, [edx + ecx + 1]
mov edx, eax
not edx
mov edi, ecx
and edi, edx
not ecx
and eax, ecx
sub eax, edi
add al, 0xe4
mov ecx, dword [esi + 0xc]
mov byte [esi + ecx + 0xc0], al
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x23
jb 0x40d365
mov edi, dword [esi + 0x134]
jmp 0x40d3c5
sub esp, 8
lea eax, [esi + 0xc0]
mov dword [esp + 4], eax
lea ebx, [esi + 0x17c]
mov dword [esp], ebx
call fcn.00409620
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00409620
lea ecx, [esi + 0x150]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00409620
mov ecx, dword [esi + 0x138]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00409620
add esp, 8
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
sub eax, ebx
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x140]
mov cl, byte [esi + 0x1c]
mov byte [esi + 0x38], cl
mov byte [esi + 0x40], 0x43
mov byte [esi + 0x41], 1
mov byte [esi + 0x42], 0x6d
mov byte [esi + 0x43], 3
mov byte [esi + 0x44], 0x6a
mov byte [esi + 0x45], 5
mov byte [esi + 0x46], 0x72
mov byte [esi + 0x47], 7
mov byte [esi + 0x48], 0x6d
mov byte [esi + 0x49], 9
mov byte [esi + 0x4a], 0x64
mov byte [esi + 0x4b], 0xb
mov byte [esi + 0x4c], pe_nt_image_headers32
mov byte [esi + 0x4d], 0xd
mov byte [esi + 0x4e], 0x23
mov byte [esi + 0x4f], 0xf
mov byte [esi + 0x50], 0x44
mov byte [esi + 0x51], 0x11
mov byte [esi + 0x52], 0x6b
mov byte [esi + 0x53], 0x13
mov byte [esi + 0x54], 0x64
mov byte [esi + 0x55], 0x15
mov byte [esi + 0x56], 0x73
mov byte [esi + 0x57], 0x17
mov byte [esi + 0x58], 0x22
mov byte [esi + 0x59], 0x19
mov byte [esi + 0x5a], 0x3a
mov byte [esi + 0x5b], 0x1b
mov byte [esi + 0x5c], 0x7d
mov byte [esi + 0x5d], 0x1d
mov byte [esi + 0x5e], 0x6e
mov byte [esi + 0x5f], 0x1f
mov byte [esi + 0x60], 0x50
mov byte [esi + 0x61], 0x21
mov byte [esi + 0x62], 0x4e
mov byte [esi + 0x63], 0x23
mov byte [esi + 0x64], 0x4d
mov byte [esi + 0x65], 0x25
mov byte [esi + 0x66], 0x45
mov byte [esi + 0x67], 0x27
mov byte [esi + 0x68], 0x49
mov byte [esi + 0x69], 0x29
mov byte [esi + 0x6a], 0x5e
mov byte [esi + 0x6b], 0x2b
mov byte [esi + 0x6c], 0x45
mov byte [esi + 0x6d], 0x2d
mov byte [esi + 0x6e], 0x41
mov byte [esi + 0x6f], 0x2f
mov byte [esi + 0x70], 0x5e
mov byte [esi + 0x71], 0x31
mov byte [esi + 0x72], 0x1d
mov byte [esi + 0x73], 0x33
mov byte [esi + 0x74], 0x4c
mov byte [esi + 0x75], 0x35
mov byte [esi + 0x76], 0x1b
mov byte [esi + 0x77], 0x37
mov byte [esi + 0x78], 0x4f
mov byte [esi + 0x79], 0x39
mov byte [esi + 0x7a], 0x4d
mov byte [esi + 0x7b], 0x3b
mov byte [esi + 0x7c], 0x4b
mov byte [esi + 0x7d], 0x3d
mov byte [esi + 0x7e], 0x13
mov byte [esi + 0x7f], 0x3f
mov byte [esi + 0x80], 0x26
mov byte [esi + 0x81], 0x41
mov byte [esi + 0x82], 0x2d
mov byte [esi + 0x83], 0x43
mov byte [esi + 0x84], 0x36
mov byte [esi + 0x85], 0x45
mov byte [esi + 0x86], 0x2b
mov byte [esi + 0x87], 0x47
mov byte [esi + 0x88], 0x65
mov byte [esi + 0x89], 0x49
mov byte [esi + 0x8a], 0x3f
mov byte [esi + 0x8b], 0x4b
mov byte [esi + 0x8c], 0x3e
mov byte [esi + 0x8d], 0x4d
mov byte [esi + 0x8e], 0x22
mov byte [esi + 0x8f], 0x4f
mov byte [esi + 0x90], 0x35
mov byte [esi + 0x91], 0x51
mov byte [esi + 0x92], 0x3c
mov byte [esi + 0x93], 0x53
mov byte [esi + 0x94], 0x37
mov byte [esi + 0x95], 0x55
mov byte [esi + 0x96], 0x39
mov byte [esi + 0x97], 0x57
mov byte [esi + 0x98], 0x3c
mov byte [esi + 0x99], 0x59
mov byte [esi + 0x9a], 0x3f
mov byte [esi + 0x9b], 0x5b
mov byte [esi + 0x9c], 0x38
mov byte [esi + 0x9d], 0x5d
mov byte [esi + 0x9e], 0x53
mov byte [esi + 0x9f], 0x5f
mov byte [esi + 0xa0], 0x6a
mov byte [esi + 0xa1], 0x61
mov byte [esi + 0xa2], 0x62
mov byte [esi + 0xa3], 0x63
mov word [esi + 0xb8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x7a
jae 0x40d6a8
jmp 0x40d67b
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
movzx edi, byte [esi + ecx + 0x40]
mov ecx, edx
add ecx, edi
and edx, edi
add edx, edx
sub ecx, edx
mov edx, dword [esi + 0x10]
mov byte [esi + edx + 0x40], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x7a
jb 0x40d67b
jmp 0x40d6a8
mov cl, byte [esi + 0x18]
mov byte [esi + 0x3c], cl
mov byte [esi + 0xf0], 0xf7
mov byte [esi + 0xf1], 0x21
mov byte [esi + 0xf2], 0xc3
mov byte [esi + 0xf3], 0x23
mov byte [esi + 0xf4], 0xb2
mov byte [esi + 0xf5], 0xdd
mov byte [esi + 0xf6], 0x47
mov byte [esi + 0xf7], 0xdf
mov byte [esi + 0xf8], 0xde
mov byte [esi + 0xf9], 0xd9
mov byte [esi + 0x10e], 0
mov dword [esi + 0x10a], 0
mov dword [esi + 0x106], 0
mov dword [esi + 0x102], 0
mov dword [esi + 0xfe], 0
mov dword [esi + 0xfa], 0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x1f
jae 0x40d76e
jmp 0x40d73e
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov dl, byte [esi + edx + 0xf0]
add cl, 0xfb
xor cl, dl
add cl, 0x23
mov edx, dword [esi + 0x14]
mov byte [esi + edx + 0xf0], cl
mov ecx, dword [esi + 0x14]
inc ecx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x14]
cmp ecx, 0x1f
jb 0x40d73e
jmp 0x40d76e
sub esp, 0x1c
lea ecx, [esi + 0x13c]
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
lea eax, [esi + 0x40]
mov dword [esp + 8], eax
lea eax, [esi + 0xf0]
mov dword [esp + 4], eax
mov dword [esp], 0x449058
call fcn.0040b8b0
add esp, 0x1c
movzx eax, al
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x440890]
xor ecx, 0x3893c0b0
sub eax, ecx
push eax
mov edx, esp
mov dword [edx], 0x440440
mov ecx, dword [0x440894]
mov dword [esi + 0x120], ecx
push eax
mov ecx, esp
mov dword [esi + 0x128], ecx
mov dword [ecx], 0x44089c
push eax
mov dword [esi + 0x124], esp
push eax
mov edi, esp
mov dword [edi], 0x4408a8
push eax
mov ebx, esp
push eax
mov ecx, esp
mov dword [esi + 0x130], ecx
mov dword [ecx], 0x440440
mov ecx, dword [0x4408b4]
mov dword [esi + 0x12c], ecx
jmp eax