Function at 0x41710e
Capabilities:
Authenticate hmac
Encode data using base64
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
jmp 0x4132a0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x413582
cmp byte [esp + 0x74], 0
je 0x413582
cmp edx, 0xffffffff
je 0x413582
cmp edx, esi
jg 0x413582
push dword [esp + 0x88]
mov eax, dword [esp + 0x94]
push dword [esp + 0x88]
or eax, dword [esp + 0xa0]
push eax
push edx
mov edx, dword [esp + 0x8c]
push esi
push dword [esp + 0x78]
call fcn.00414140
add esp, 0x18
mov dword [esp + 0x8c], eax
test eax, eax
jle 0x413574
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov dword [esp + 0x90], 0
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
je 0x447230
mov dword [esp + 0x10], edx
mov ecx, eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x413582
cmp ecx, 2
jge 0x41356a
xor edi, edi
cmp edi, ecx
jae 0x4132a0
mov esi, dword [esp + 0x24]
lea ecx, [edi*8]
mov dword [esp + 0x4c], ecx
cmp edi, eax
jge 0x44728d
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
test edi, edi
js 0x41360a
mov eax, dword [esp + 0x84]
add eax, ecx
mov ecx, dword [0x4a574c]
mov dword [esp + 0x9c], eax
mov esi, dword [eax + 4]
sub esi, dword [eax]
lea eax, [esi*2 + 2]
push eax
cmp ecx, 0x416495
jne 0x4472a3
call fcn.0042594c
mov ecx, eax
mov dword [esp + 0x4c], ecx
add esp, 4
test ecx, ecx
je 0x413600
mov edx, dword [esp + 0x40]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.00421080
mov eax, dword [esp + 0x54]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov word [eax + esi*2], cx
test esi, esi
je 0x4472b9
cmp esi, 0xffffffff
je 0x4472b9
test eax, eax
je 0x4472b9
mov eax, dword [ebx]
cmp eax, 1
jle 0x4135ca
dec eax
push 4
mov dword [ebx], eax
call fcn.00420ff6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x413614
mov dword [ebx], 1
lea eax, [esi + 1]
mov dword [esp + 0x38], ebx
test eax, eax
je 0x41361b
add eax, 7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
add esp, 4
add al, 0x89
inc esp
and al, 0x2c
mov dword [esp + 0x30], esi
add esi, esi
push esi
push dword [esp + 0x18]
push eax
call fcn.00421080
mov eax, dword [esp + 0x38]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [0x4a5748]
push dword [esp + 0x14]
cmp eax, 0x41614f
jne 0x413625
call fcn.00422f95
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [esp + 0x3c]
cmp esi, eax
je 0x413503
push 0x10
call fcn.00420ff6
add esp, 4
test eax, eax
je 0x41362c
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
inc dword [ebx]
mov ecx, dword [esp + 0x20]
inc edi
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x4c]
add ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], ecx
cmp edi, dword [esp + 0x44]
jae 0x41328a
mov eax, dword [esp + 0x8c]
jmp 0x413364
add eax, eax
mov dword [esp + 0x3c], eax
cmp eax, 8
jb 0x4135e1
xor ecx, ecx
mov dword [esp + 0x28], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x40], eax
test edx, edx
je 0x413561
test esi, esi
je 0x413561
lea ecx, [esi*4]
push ecx
push edx
push eax
call fcn.00421080
add esp, 0xc
push dword [esp + 0x20]
call fcn.0042106c
mov eax, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x4134aa
mov edi, 1
jmp 0x41334d
cmp dword [esp + 0x90], 0
jne 0x44724c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4472cf
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.00409890
lea ecx, [esp + 0x1c]
call fcn.00404024
lea ecx, [esp + 0x2c]
call fcn.00405a64
lea ecx, [esp + 0x64]
call fcn.00415c2e
lea ecx, [esp + 0x64]
call fcn.00405a64
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x30]
call fcn.00408087
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
jmp 0x413464
mov eax, 8
mov dword [esp + 0x3c], eax
jmp 0x413512
mov esi, 0xfffffffa
jmp 0x4472b0
mov esi, 0xfffffff9
jmp 0x4472b0
xor ebx, ebx
jmp 0x41342e
mov eax, 8
jmp 0x413443
call eax
jmp 0x41349b
xor eax, eax
jmp 0x4134d5
inc ebp
xchg esp, eax
add byte [eax], al
add dword [eax], eax
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, edx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x140], eax
push ebx
mov edx, dword [eax]
mov eax, ecx
shr eax, 0xb
and eax, 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x3c], eax
mov eax, ecx
shr eax, 9
push esi
mov esi, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0xdc], eax
xor eax, 1
push edi
xor edi, edi
mov dword [ebp - 0xe8], eax
mov esi, dword [esi]
mov ebx, edi
push 0xfffffffffffffffe
pop eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], eax
movsx eax, cl
and eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], 0xff
mov dword [ebp - 0x12c], 0xfc00
mov dword [ebp - 0x148], 0xdc00
mov dword [ebp - 0x158], 0x2b
mov dword [ebp - 0x128], 0x7b
mov dword [ebp - 0xe4], 0x30
mov dword [ebp - 0x118], 0x29
mov dword [ebp - 0x90], 0x39
mov dword [ebp - 0x110], 0x3c
mov dword [ebp - 0x144], 0x52
mov dword [ebp - 0xe0], 0x27
mov dword [ebp - 0x154], 0x2d
mov dword [ebp - 0x100], 0x10
mov dword [ebp - 0x114], 0x17
mov dword [ebp - 0x14c], 0x20
mov dword [ebp - 0x104], 0x1d
mov dword [ebp - 0x134], 0x1e
mov dword [ebp - 0x10c], 0x1f
mov dword [ebp - 0x13c], 0x6e
mov dword [ebp - 0x11c], 0x6f
mov dword [ebp - 0x150], 0x70
mov dword [ebp - 0x124], 0x71
mov dword [ebp - 0xfc], 0x73
mov dword [ebp - 0x108], 0xf
pop ebp
invalid