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

Disassembly:
mov eax, 0x338
call fcn.10033890
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x334], eax
cmp dword [esp + 0x354], 0x100000
mov eax, dword [esp + 0x340]
mov ecx, dword [esp + 0x348]
mov edx, dword [esp + 0x34c]
push ebx
mov ebx, dword [esp + 0x340]
push ebp
push esi
mov esi, dword [esp + 0x350]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x364]
mov ebp, 8
push edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], eax
mov edi, 0x40
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x28], ebp
mov byte [esp + 0x12], 1
jb 0x100d36dd
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.10038d90
add esp, 0xc
push ebx
call fcn.10097a90
push eax
call fcn.10061530
add esp, 8
cmp eax, 0x2a0
jg 0x100d37b7
je 0x100d3782
cmp eax, 4
je 0x100d3740
cmp eax, 0x40
jne 0x100d37cc
lea ecx, [esp + 0x9c]
push ecx
call fcn.10047180
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x2c], 0x100d3390
mov dword [esp + 0x14], 0x10044b90
mov dword [esp + 0x18], 0x14
jmp 0x100d3887
lea edx, [esp + 0x9c]
push edx
call fcn.1004ca50
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x2c], 0x100d32e0
mov dword [esp + 0x14], 0x1004ba80
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x3c], 0x30
mov byte [esp + 0x12], 0
jmp 0x100d3887
lea eax, [esp + 0x9c]
push eax
call fcn.10044d90
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x2c], 0x100d3460
mov dword [esp + 0x14], 0x10045fe0
mov dword [esp + 0x18], 0x20
jmp 0x100d3887
sub eax, 0x2a1
je 0x100d3846
sub eax, 1
je 0x100d3828
sub eax, 1
je 0x100d37f6
push 0x10129d40
push 0x209
push str.._ssl_s3_cbc.c
call fcn.10038d90
add esp, 0xc
test esi, esi
je 0x100d3e52
mov dword [esi], 0
jmp 0x100d3e52
lea ecx, [esp + 0x9c]
push ecx
call fcn.10044d30
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x2c], 0x100d3460
mov dword [esp + 0x14], 0x10045fe0
mov dword [esp + 0x18], 0x1c
jmp 0x100d3887
lea edx, [esp + 0x9c]
push edx
call fcn.10046400
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x18], edi
jmp 0x100d3866
lea eax, [esp + 0x9c]
push eax
call fcn.10046360
add esp, 4
test eax, eax
jle 0x100d3e52
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x28], 0x10
mov ebp, dword [esp + 0x28]
mov edi, 0x80
mov dword [esp + 0x14], 0x10047160
mov dword [esp + 0x2c], 0x100d35a0
mov bl, byte [esp + 0x370]
test bl, bl
mov dword [esp + 0x34], 0xd
je 0x100d38ad
mov ecx, dword [esp + 0x36c]
mov edx, dword [esp + 0x3c]
lea eax, [edx + ecx + 0xb]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x364]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx*4 + 2]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x18]
lea edx, [ecx + ebp]
add edx, edi
lea eax, [edx + eax - 1]
xor edx, edx
div edi
mov edx, dword [esp + 0x360]
add ecx, edx
xor edx, edx
mov esi, eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, ecx
div edi
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x5c], eax
lea eax, [ecx + ebp]
div edi
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
add edx, eax
cmp esi, edx
jbe 0x100d3929
sub esi, eax
mov eax, esi
mov dword [esp + 0x20], eax
imul eax, edi
mov dword [esp + 0x30], eax
cmp byte [esp + 0x370], 0
lea ebx, [ecx*8]
jne 0x100d39ca
push edi
lea eax, [esp + 0x1c8]
push 0
push eax
lea ebx, [ebx + edi*8]
call fcn.10027680
mov esi, dword [esp + 0x378]
add esp, 0xc
cmp esi, 0x80
jbe 0x100d397a
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.10038d90
add esp, 0xc
mov ecx, dword [esp + 0x58]
push esi
push ecx
lea edx, [esp + 0x1cc]
push edx
call fcn.10024b20
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x100d39af
jmp 0x100d39a0
xor byte [esp + eax + 0x1c4], 0x36
add eax, 1
cmp eax, edi
jb 0x100d39a0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0xa0]
push ecx
call esi
add esp, 8
jmp 0x100d39ce
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x12], 0
je 0x100d3a0f
lea edx, [ebp - 4]
push edx
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10027680
lea ebp, [esp + ebp + 0x180]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x18
shr edx, 0x10
mov eax, ebx
add esp, 0xc
shr eax, 8
mov byte [ebp - 4], cl
mov byte [ebp - 3], dl
mov byte [ebp - 2], al
mov byte [ebp - 1], bl
jmp 0x100d3a44
push ebp
lea ecx, [esp + 0x178]
push 0
push ecx
call fcn.10027680
lea ebp, [esp + ebp + 0x180]
mov edx, ebx
mov eax, ebx
shr edx, 0x18
shr eax, 0x10
mov ecx, ebx
add esp, 0xc
shr ecx, 8
mov byte [ebp - 5], dl
mov byte [ebp - 6], al
mov byte [ebp - 7], cl
mov byte [ebp - 8], bl
mov ebp, dword [esp + 0x30]
test ebp, ebp
jbe 0x100d3b75
cmp byte [esp + 0x370], 0
je 0x100d3af3
mov esi, dword [esp + 0x34]
cmp esi, edi
jbe 0x100d3e52
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x9c]
push ebx
push edx
sub esi, edi
call ebp
push esi
add ebx, edi
lea eax, [esp + 0x250]
push ebx
push eax
call fcn.10024b20
mov ebx, dword [esp + 0x54]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x25c]
push ebx
push edx
call fcn.10024b20
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0xc0]
push ecx
call ebp
mov eax, dword [esp + 0x58]
xor edx, edx
div edi
add esp, 0x28
sub eax, 1
cmp eax, 1
jbe 0x100d3b75
sub ebx, esi
add ebx, edi
lea esi, [eax - 1]
lea edx, [esp + 0x9c]
push ebx
push edx
call dword [esp + 0x1c]
add esp, 8
add ebx, edi
sub esi, 1
jne 0x100d3ad7
jmp 0x100d3b75
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x244], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x248], edx
mov dl, byte [eax + 0xc]
lea eax, [edi - 0xd]
push eax
mov dword [esp + 0x250], ecx
lea ecx, [esp + 0x255]
push ebx
push ecx
mov byte [esp + 0x25c], dl
call fcn.10024b20
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0xac]
push eax
call esi
xor edx, edx
mov eax, ebp
div edi
add esp, 0x14
cmp eax, 1
jbe 0x100d3b75
lea ebx, [ebx + edi - 0xd]
lea ebp, [eax - 1]
jmp 0x100d3b60
lea ecx, [esp + 0x9c]
push ebx
push ecx
call esi
add esp, 8
add ebx, edi
sub ebp, 1
jne 0x100d3b60
push 0x40
lea edx, [esp + 0x188]
push 0
push edx
call fcn.10027680
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov ecx, esi
add eax, ecx
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], eax
ja 0x100d3d8c
jmp 0x100d3bb4
mov esi, dword [esp + 0x48]
mov ecx, esi
xor ecx, dword [esp + 0x5c]
xor esi, dword [esp + 0x70]
lea eax, [ecx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and al, cl
mov ecx, esi
lea ebx, [esi - 1]
shr ebx, 0x1f
not ecx
shr ecx, 0x1f
and bl, cl
neg al
neg bl
xor esi, esi
test edi, edi
mov byte [esp + 0x1f], al
mov byte [esp + 0x13], bl
jbe 0x100d3d28
mov edx, dword [esp + 0x44]
movzx ebp, al
not bl
or bl, al
mov eax, edi
sub eax, dword [esp + 0x28]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x44]
lea ecx, [edx + 1]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x28]
shr ecx, 0x1f
shr edx, 0x1f
neg ebp
sub eax, edi
mov dword [esp + 0x78], ecx
lea ecx, [esp + eax + 0x174]
mov dword [esp + 0x38], edx
mov byte [esp + 0x27], bl
mov dword [esp + 0x20], ecx
jmp 0x100d3c44
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov byte [esp + 0x12], 0
jae 0x100d3c5e
mov ecx, dword [esp + 0x4c]
mov cl, byte [ecx + eax]
jmp 0x100d3c74
mov ebx, dword [esp + 0x364]
add ebx, ecx
cmp eax, ebx
jae 0x100d3c78
mov ebx, dword [esp + 0x40]
sub ebx, ecx
mov cl, byte [ebx + eax]
mov byte [esp + 0x12], cl
add eax, 1
mov dword [esp + 0x30], eax
mov ecx, esi
shr ecx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor al, dl
mov bl, cl
xor bl, dl
or al, bl
xor al, cl
sub al, 1
movzx eax, al
and eax, dword [esp + 0x68]
mov ebx, esi
mov dword [esp + 0x54], eax
not eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
and al, byte [esp + 0x12]
mov edx, dword [esp + 0x54]
and dl, 0x80
or al, dl
mov edx, dword [esp + 0x44]
add edx, 1
sub ebx, edx
mov dl, byte [esp + 0x78]
shr ebx, 0x1f
xor bl, dl
xor dl, cl
or bl, dl
xor bl, cl
sub bl, 1
and bl, byte [esp + 0x1f]
not bl
and bl, byte [esp + 0x27]
and al, bl
cmp esi, dword [esp + 0x80]
mov bl, byte [esp + 0x13]
jb 0x100d3d0e
mov edx, dword [esp + 0x20]
movzx ecx, bl
mov dword [esp + 0x54], ecx
not ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x54]
and cl, byte [edx]
mov edx, dword [esp + 0x50]
and dl, al
or cl, dl
mov al, cl
add dword [esp + 0x20], 1
mov byte [esp + esi + 0x2c4], al
add esi, 1
add ebp, 1
cmp esi, edi
jb 0x100d3c40
lea eax, [esp + 0x2c4]
push eax
lea ecx, [esp + 0xa0]
push ecx
call dword [esp + 0x1c]
lea edx, [esp + 0x2cc]
push edx
lea eax, [esp + 0xa8]
push eax
call dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x100d3d77
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x2c4]
and cl, bl
or byte [esp + eax + 0x184], cl
add eax, 1
cmp eax, esi
jb 0x100d3d60
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x48], eax
jbe 0x100d3bb0
lea edx, [esp + 0x84]
push edx
call fcn.100738b0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
push 0
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.10073900
add esp, 0x10
test eax, eax
jle 0x100d3e42
cmp byte [esp + 0x370], 0
je 0x100d3e6d
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.10027680
mov ecx, dword [esp + 0x378]
mov edx, dword [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x98]
push eax
call fcn.10073ab0
add esp, 0x18
test eax, eax
jle 0x100d3e42
push esi
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.10073ab0
add esp, 0xc
test eax, eax
jle 0x100d3e42
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x188]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.10073ab0
add esp, 0xc
test eax, eax
jg 0x100d3ec0
lea ecx, [esp + 0x84]
push ecx
call fcn.10073b40
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001d3e9
add esp, 0x338
ret
xor eax, eax
test edi, edi
jbe 0x100d3e82
xor byte [esp + eax + 0x1c4], 0x6a
add eax, 1
cmp eax, edi
jb 0x100d3e73
push edi
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.10073ab0
add esp, 0xc
test eax, eax
jle 0x100d3e42
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.10073ab0
add esp, 0xc
test eax, eax
jle 0x100d3e42
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.10073c20
mov eax, dword [esp + 0x6c]
add esp, 0xc
test eax, eax
je 0x100d3ee8
mov edx, dword [esp + 0x64]
mov dword [eax], edx
lea eax, [esp + 0x84]
push eax
call fcn.10073b40
add esp, 4
mov eax, 1
jmp 0x100d3e54