Function at 0x4b5cc0
Capabilities:
Authenticate hmac
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x130
mov eax, dword [0x4d700c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov bh, 0x30
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], edx
mov cl, 0x5b
mov ch, 0x54
mov byte [esp + 0x28], 0
mov dl, 9
mov byte [esp + 0x20], bh
xor cl, bh
mov byte [esp + 0x28], 0
xor ch, bh
mov byte [esp + 0x22], cl
mov al, 0x7a
mov byte [esp + 0x26], ch
mov bl, 0x48
mov dword [esp + 0xf8], 0
mov ah, 0x44
mov dword [esp + 0xfc], 0
mov dh, 0x67
lea ecx, [esp + 0x21]
xor dl, bh
xor al, bh
push ebp
xor bl, bh
mov byte [esp + 0x27], dl
xor ah, bh
mov byte [esp + 0x25], al
xor dh, bh
mov byte [esp + 0x28], bl
push esi
xorps xmm0, xmm0
mov byte [esp + 0x2f], dh
push edi
mov byte [esp + 0x31], ah
lea edx, [ecx + 1]
movups xmmword [esp + 0xf4], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5d50
sub ecx, edx
lea eax, [esp + 0x2d]
push ecx
push eax
lea ecx, [esp + 0xfc]
call fcn.004b4ff0
mov byte [esp + 0x20], 0xc
mov al, 0x59
xor al, byte [esp + 0x20]
mov cl, 0x34
mov ah, cl
mov byte [esp + 0x21], al
mov al, byte [esp + 0x20]
mov dl, 0x4f
xor ah, al
mov byte [esp + 0x29], 0
mov ch, 0x5e
mov byte [esp + 0x25], ah
mov dh, 0x67
mov byte [esp + 0x29], 0
xor cl, al
xor ch, al
mov bl, 0x3a
mov byte [esp + 0x22], cl
mov bh, 0x47
mov byte [esp + 0x26], ch
xor dl, al
lea ecx, [esp + 0xf4]
xor bl, al
mov byte [esp + 0x23], dl
xor dh, al
mov byte [esp + 0x24], bl
xor bh, al
mov byte [esp + 0x27], dh
lea eax, [esp + 0x21]
mov byte [esp + 0x28], bh
push eax
call fcn.004b3d50
mov byte [esp + 0x14], 9
mov al, 0x6f
xor al, byte [esp + 0x14]
mov cl, 0x63
mov byte [esp + 0x15], al
mov dl, 0x31
mov al, byte [esp + 0x14]
mov ch, 0x3c
mov dh, 0x41
mov byte [esp + 0x13], 0x43
xor cl, al
mov byte [esp + 0x1e], 0
xor dl, al
mov byte [esp + 0x16], cl
xor ch, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x1a], ch
mov bl, 0x4a
mov byte [esp + 0x1b], dh
mov ah, 0x3e
mov byte [esp + 0x1e], 0
mov bh, 0x6c
lea edx, [esp + 0x15]
xor bl, al
lea ecx, [edx + 1]
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
mov al, byte [esp + 0x13]
xor al, byte [esp + 0x14]
mov byte [esp + 0x1c], bh
mov byte [esp + 0x1d], al
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4b5e40
mov edi, dword [esp + 0x108]
lea eax, [esp + 0x15]
mov esi, dword [esp + 0xf4]
sub edx, ecx
push edx
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0xf8]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.004b5680
add esp, 8
test al, al
je 0x4b5f19
mov al, 0x7e
mov byte [esp + 0x14], 0x16
mov byte [esp + 0x13], al
mov cl, 0x22
xor al, byte [esp + 0x14]
mov dl, 0x27
mov byte [esp + 0x15], al
mov ch, 0x66
mov al, byte [esp + 0x14]
mov dh, 0x59
xor cl, al
mov byte [esp + 0x1e], 0
xor dl, al
mov byte [esp + 0x16], cl
xor ch, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x1a], ch
mov bl, 0x4e
mov byte [esp + 0x1b], dh
mov ah, 0x2f
mov byte [esp + 0x1e], 0
mov bh, 0x52
lea ecx, [esp + 0x15]
xor bl, al
lea edx, [ecx + 1]
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
mov al, byte [esp + 0x13]
xor al, byte [esp + 0x14]
mov byte [esp + 0x1c], bh
mov byte [esp + 0x1d], al
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5ef0
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0xfc]
call fcn.004b45a0
mov edi, dword [esp + 0x108]
mov esi, dword [esp + 0xf4]
cmp edi, 0x10
jb 0x4b5f4b
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4b5f41
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5f41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004c6f3d
add esp, 8
movaps xmm0, xmmword [0x4d2b30]
xor ecx, ecx
movups xmmword [esp + 0x68], xmm0
mov byte [esp + 0xe8], 0
movaps xmm0, xmmword [0x4d3d50]
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x4d2db0]
movups xmmword [esp + 0x88], xmm0
movaps xmm0, xmmword [str.mpqr]
movups xmmword [esp + 0x98], xmm0
movaps xmm0, xmmword [0x4d4080]
movups xmmword [esp + 0xa8], xmm0
movaps xmm0, xmmword [0x4d40e0]
movups xmmword [esp + 0xb8], xmm0
movaps xmm0, xmmword [0x4d4060]
movups xmmword [esp + 0xc8], xmm0
movaps xmm0, xmmword [0x4d40f0]
movups xmmword [esp + 0xd8], xmm0
mov al, byte [esp + 0x68]
xor byte [esp + ecx + 0x69], al
inc ecx
cmp ecx, 0x7f
jb 0x4b5fc7
xorps xmm0, xmm0
mov byte [esp + 0xe8], 0
lea ecx, [esp + 0x69]
mov dword [esp + 0x134], 0
movups xmmword [esp + 0x124], xmm0
mov dword [esp + 0x138], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6005
sub ecx, edx
lea eax, [esp + 0x69]
push ecx
push eax
lea ecx, [esp + 0x12c]
call fcn.004b4ff0
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
xor ebx, ebx
mov eax, dword [esp + 0x160]
mov dword [esp + 0x50], ebx
test eax, eax
je 0x4b657b
mov dword [esp + 0x60], 0
xor ebp, ebp
nop dword [eax]
mov dword [esp + 0x11c], 0
xorps xmm0, xmm0
mov dword [esp + 0x120], 0
movups xmmword [esp + 0x10c], xmm0
cmp eax, ebx
jb 0x4b665f
sub eax, ebx
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0x164], 0x10
lea eax, [esp + 0x150]
cmovae eax, dword [esp + 0x150]
push ecx
add eax, ebx
lea ecx, [esp + 0x110]
push eax
call fcn.004b4ff0
mov eax, dword [esp + 0x134]
xorps xmm0, xmm0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
movups xmmword [esp + 0xf4], xmm0
cmp eax, ebp
jb 0x4b665f
sub eax, ebp
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0x138], 0x10
lea eax, [esp + 0x124]
cmovae eax, dword [esp + 0x124]
push ecx
add eax, ebp
lea ecx, [esp + 0xf8]
push eax
call fcn.004b4ff0
mov ebx, dword [esp + 0x120]
lea eax, [esp + 0x10c]
mov edi, dword [esp + 0x10c]
lea ecx, [esp + 0xf4]
push dword [esp + 0x11c]
mov esi, dword [esp + 0xf8]
cmp ebx, 0x10
mov edx, dword [esp + 0x108]
cmovae eax, edi
cmp dword [esp + 0x10c], 0x10
push eax
cmovae ecx, esi
call fcn.004b5680
mov byte [esp + 0x1b], al
add esp, 8
mov eax, dword [esp + 0x108]
cmp eax, 0x10
jb 0x4b6195
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4b618b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6607
push ecx
push esi
call fcn.004c6f3d
add esp, 8
cmp ebx, 0x10
jb 0x4b61c5
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b61bb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6607
push ecx
push edi
call fcn.004c6f3d
add esp, 8
cmp byte [esp + 0x13], 0
jne 0x4b61ee
inc ebp
cmp ebp, 0x80
jge 0x4b61e5
mov eax, dword [esp + 0x160]
mov ebx, dword [esp + 0x50]
jmp 0x4b6050
mov ebx, dword [esp + 0x60]
jmp 0x4b64e4
mov al, 0x2a
mov byte [esp + 0x38], 0x1d
mov dh, al
mov byte [esp + 0x41], 0
xor al, byte [esp + 0x38]
mov cl, 0x52
mov bl, 0x2d
mov byte [esp + 0x39], al
mov al, byte [esp + 0x38]
mov ch, 0x5a
xor cl, al
mov byte [esp + 0x41], 0
xor ch, al
mov byte [esp + 0x3a], cl
mov dl, 0x6d
mov byte [esp + 0x3e], ch
mov ah, bl
mov dword [esp + 0x11c], 0
xor dl, al
mov dword [esp + 0x120], 0
xor dh, al
mov byte [esp + 0x3b], dl
mov bh, 0x7f
mov byte [esp + 0x3f], dh
xor bl, al
lea ecx, [esp + 0x39]
xor ah, al
mov byte [esp + 0x3c], bl
xor bh, al
mov byte [esp + 0x3d], ah
xorps xmm0, xmm0
mov byte [esp + 0x40], bh
movups xmmword [esp + 0x10c], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6270
sub ecx, edx
lea eax, [esp + 0x39]
push ecx
push eax
lea ecx, [esp + 0x114]
call fcn.004b4ff0
mov bh, 3
mov byte [esp + 0x4c], 0
mov cl, 0x66
mov byte [esp + 0x44], bh
mov ch, 0x74
mov byte [esp + 0x4c], 0
mov dl, 0x52
mov dword [esp + 0x104], 0
xor cl, bh
mov dword [esp + 0x108], 0
xor ch, bh
mov byte [esp + 0x46], cl
mov al, 0x51
mov byte [esp + 0x4a], ch
mov bl, 0x77
lea ecx, [esp + 0x45]
mov ah, 0x4b
mov dh, 0x44
xor dl, bh
xor al, bh
xor bl, bh
mov byte [esp + 0x47], dl
xor ah, bh
mov byte [esp + 0x45], al
xor dh, bh
mov byte [esp + 0x48], bl
xorps xmm0, xmm0
mov byte [esp + 0x4b], dh
mov byte [esp + 0x49], ah
lea edx, [ecx + 1]
movups xmmword [esp + 0xf4], xmm0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6300
sub ecx, edx
lea eax, [esp + 0x45]
push ecx
push eax
lea ecx, [esp + 0xfc]
call fcn.004b4ff0
mov dh, 0x3e
mov byte [esp + 0x33], 0
mov al, 0xa
mov byte [esp + 0x2c], dh
mov ah, 0x6a
mov byte [esp + 0x33], 0
xor al, dh
xor ah, dh
mov cl, 0x59
mov byte [esp + 0x2d], al
mov ch, 0x4c
mov byte [esp + 0x31], ah
xor cl, dh
lea eax, [esp + 0x2d]
xor ch, dh
mov byte [esp + 0x2e], cl
mov dl, 0x78
mov byte [esp + 0x32], ch
mov bl, 0x5c
lea ecx, [esp + 0xf4]
xor dl, dh
xor bl, dh
push eax
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], bl
call fcn.004b3d50
mov byte [esp + 0x14], 0x15
mov al, 0x46
xor al, byte [esp + 0x14]
mov cl, 0x71
mov byte [esp + 0x15], al
mov dl, 0x41
mov al, byte [esp + 0x14]
mov ch, 0x7c
mov dh, 0x42
mov byte [esp + 0x1d], 0
xor cl, al
mov byte [esp + 0x1d], 0
xor dl, al
mov byte [esp + 0x16], cl
xor ch, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x1a], ch
mov bl, 0x72
mov byte [esp + 0x1b], dh
mov ah, 0x4f
lea edx, [esp + 0xf4]
mov bh, 0x62
lea ecx, [esp + 0x15]
xor bl, al
xor ah, al
xor bh, al
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], ah
mov byte [esp + 0x1c], bh
call fcn.004b4a70
test al, al
je 0x4b644c
mov byte [esp + 0x20], 0x5e
mov al, 0x31
xor al, byte [esp + 0x20]
mov cl, 0x17
mov ch, 0x2e
mov byte [esp + 0x21], al
mov al, byte [esp + 0x20]
mov dl, 0x14
xor cl, al
mov byte [esp + 0x29], 0
xor ch, al
mov byte [esp + 0x22], cl
mov dh, 0x36
mov byte [esp + 0x26], ch
mov bl, 0x6a
mov byte [esp + 0x29], 0
mov ah, 7
lea ecx, [esp + 0x21]
xor dl, al
xor dh, al
mov bh, 0x6b
mov byte [esp + 0x23], dl
xor bl, al
mov byte [esp + 0x27], dh
xor ah, al
mov byte [esp + 0x24], bl
xor bh, al
mov byte [esp + 0x25], ah
mov byte [esp + 0x28], bh
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6431
sub ecx, edx
lea eax, [esp + 0x21]
push ecx
push eax
lea ecx, [esp + 0x114]
call fcn.004b45a0
mov ecx, dword [esp + 0x108]
cmp ecx, 0x10
jb 0x4b6488
mov edx, dword [esp + 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b647e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5f3b
push ecx
push edx
call fcn.004c6f3d
add esp, 8
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0xf
mov byte [esp + 0xf4], 0
cmp ecx, 0x10
jb 0x4b64e2
mov edx, dword [esp + 0x10c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b64d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5f3b
push ecx
push edx
call fcn.004c6f3d
add esp, 8
mov ebx, ebp
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
sub eax, edx
sar eax, 4
cmp eax, ebx
jbe 0x4b665a
mov ebp, dword [esp + 0x58]
add ebx, ebx
mov edi, dword [esp + 0x5c]
movzx eax, byte [edx + ebx*8]
movzx ecx, byte [edx + ebx*8 + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + ebx*8 + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + ebx*8 + 0xc]
mov ebx, dword [esp + 0x54]
shl ecx, 8
or ecx, eax
push ecx
push ebp
push ebx
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapSetPixel]
test eax, eax
je 0x4b6542
mov dword [edi + 8], eax
mov eax, dword [esp + 0x64]
lea edx, [ebx + 1]
mov ebx, dword [esp + 0x50]
xor esi, esi
inc ebx
mov dword [esp + 0x50], ebx
movsx ecx, byte [eax]
lea eax, [ebp + 1]
cmp edx, ecx
cmovne eax, ebp
cmovne esi, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x54], esi
cmp ebx, eax
jb 0x4b6043
jmp 0x4b657f
mov edi, dword [esp + 0x5c]
sub esp, 8
mov dword [esp + 4], 0x42c80000
mov dword [esp], 0x42c80000
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapSetResolution]
test eax, eax
je 0x4b65a1
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x138]
cmp ecx, 0x10
jb 0x4b65d9
mov edx, dword [esp + 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b65cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6607
push ecx
push edx
call fcn.004c6f3d
add esp, 8
mov ecx, dword [esp + 0x164]
cmp ecx, 0x10
jb 0x4b6617
mov edx, dword [esp + 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b660d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b660d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c6f3d
add esp, 8
lea ecx, [esp + 0x144]
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0xf
mov byte [esp + 0x150], 0
call fcn.004be350
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c6ca9
add esp, 0x130
ret
call fcn.004be340
call fcn.004b4920
int3