Function at 0x180057030
Capabilities:
Authenticate hmac
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.18005e510
sub rsp, rax
mov rax, qword [0x180072270]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rsi, qword [rbp + 0x1020]
lea eax, [rcx - 0xe]
mov qword [rbp - 0x58], r9
mov rdi, r9
mov r9, qword [rbp + 0x1028]
mov r11, rdx
mov qword [rbp - 0x68], r9
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x80], rdx
mov dword [rsp + 0x38], ecx
mov qword [rbp - 0x60], rsi
mov dword [rsp + 0x70], eax
cmp ecx, eax
jbe case.0x1800570e9.42
mov r15d, dword [rsp + 0x70]
lea r14, [0x180000000]
mov r12, qword [rsp + 0x50]
mov r13d, ecx
nop dword [rax]
lea eax, [r13 - 0x2a]
cmp eax, 0x21
ja case.0x1800570e9.56
movzx eax, byte [r14 + rax + 0x57bb4]
movsxd r10, dword [rsp + 0x5c]
mov rbx, r10
mov ecx, dword [r14 + rax*4 + 0x57b78]
add rcx, r14
jmp rcx
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x30], 0x40
mov ecx, 0x61
call fcn.1800359d0
test eax, eax
jne 0x180057115
lea r14d, [rax + 3]
jmp 0x180057133
mov r8, rbx
mov qword [rsp + 0x30], 0x40
lea rdx, [rsp + 0x30]
mov ecx, 0x61
call fcn.1800359d0
mov r14d, eax
mov r8, rbx
mov dword [rsp + 0x48], r14d
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x40c
mov ecx, 0xd4
call fcn.18005a9b0
test eax, eax
jne 0x18005729c
mov esi, r14d
mov edi, 0xed
shl esi, 9
nop word [rax + rax]
mov eax, edi
sub eax, 0xed
je 0x180057281
sub eax, 1
je 0x1800571b6
cmp eax, 1
jne 0x180057288
mov rax, qword [rbp - 0x78]
lea rdx, [rsp + 0x30]
add rax, 0xc
mov r8, rbx
mov ecx, 0xd4
mov qword [rsp + 0x30], rax
call fcn.18005a9b0
shr eax, 9
mov dword [rsp + 0x58], eax
jmp 0x18005728c
mov r12, qword [rbp - 0x78]
lea rdx, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x30], r12
mov ecx, 0x61
call fcn.1800359d0
cmp eax, 1
jne 0x180057a7f
lea rax, [r12 + 1]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov ecx, 0x61
call fcn.1800359d0
cmp eax, 0x20
jne 0x180057a7f
lea rax, [r12 + 9]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov ecx, 0x61
call fcn.1800359d0
cmp eax, 0x20
jne 0x180057a7f
mov r8, qword [rsp + 0x50]
lea rbx, [r12 + 0xc]
inc r14d
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x48], r14d
mov ecx, 0xd4
add esi, 0x200
call fcn.18005a9b0
test eax, 0x1ff
jne 0x180057a44
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
mov ecx, 0xd4
mov r8, rbx
call fcn.18005a9b0
cmp eax, esi
jbe 0x180057a49
jmp 0x180057288
movsxd rax, esi
mov qword [rbp - 0x78], rax
mov eax, dword [rsp + 0x58]
inc edi
cmp edi, 0xf0
jb 0x180057170
jmp 0x1800572be
mov r8, rbx
mov qword [rsp + 0x30], 0x40c
lea rdx, [rsp + 0x30]
mov ecx, 0xd4
call fcn.18005a9b0
shr eax, 9
mov dword [rsp + 0x58], eax
cmp r14d, eax
jge 0x1800575c5
mov r13d, r14d
shl r13d, 9
nop
movsxd rdi, r13d
lea rdx, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x30], rdi
mov ecx, 0x61
call fcn.1800359d0
cmp eax, 1
jne 0x18005759a
mov r12, qword [rsp + 0x50]
lea rbx, [rdi + 1]
mov r8, r12
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
lea ecx, [rax + 0x60]
call fcn.1800359d0
cmp eax, 0x20
je 0x180057597
lea rax, [rdi + 0x10]
mov rdx, r12
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov ecx, 0xbe
call fcn.18005a4c0
test eax, eax
jne 0x180057597
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x50]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 8
mov rbx, r12
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 0x43
movups xmmword [rbp - 0x50], xmm0
call fcn.180009af0
mov edx, 0x20
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1800573b4
nop word [rax + rax]
mov edx, 0x20
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strrchr
mov edx, 0x20
lea rcx, [rbp - 0x50]
mov byte [rax], 0
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
jne 0x180057390
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1800573c0
mov byte [rbp + rax - 0x50], 0x2e
lea rcx, [rbp - 0x50]
lea rax, [rdi + 9]
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x40], rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1800573f0
lea rcx, [rbp - 0x50]
mov edx, 0x43
add rax, rcx
lea r9, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
call fcn.180009af0
mov edx, 0x20
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x180057454
nop
mov edx, 0x20
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strrchr
mov edx, 0x20
lea rcx, [rbp - 0x50]
mov byte [rax], 0
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
jne 0x180057430
mov edx, 0x2f
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x180057af1
lea edx, [rax + 0x5c]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x180057af1
lea rax, [rdi + 0x20]
mov rdx, rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov ecx, 0xbe
call fcn.18005a4c0
imul eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov r8, rbx
mov ecx, 0xd4
mov r14d, eax
lea rax, [rdi + 0xc]
mov qword [rsp + 0x40], rax
call fcn.18005a9b0
mov esi, eax
test r14, r14
je 0x180057acf
test eax, eax
je 0x180057acf
lea rdx, [0x180061ca8]
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
je 0x180057ab3
nop
mov edi, 0x11e
mov eax, edi
sub eax, 0x11c
je 0x18005756e
sub eax, 1
je 0x180057517
cmp eax, 1
jne 0x180057571
mov r15d, 0x1000
cmp esi, r15d
cmovb r15d, esi
jmp 0x180057571
lea rax, [rbp - 0x40]
mov dword [rsp + 0x30], r15d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov edx, 0x43
mov rcx, rbx
call fcn.180009af0
movsxd rbx, r15d
lea rcx, [rbp - 0x40]
mov rdx, rbx
mov r9, r12
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x180057a97
add r14, rbx
mov rbx, qword [rsp + 0x50]
jmp 0x180057571
sub esi, r15d
dec edi
cmp edi, 0x11b
ja 0x1800574f5
test esi, esi
jne 0x1800574f0
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14d, dword [rsp + 0x48]
jmp 0x18005759a
mov rbx, r12
inc r14d
add r13d, 0x200
mov dword [rsp + 0x48], r14d
cmp r14d, dword [rsp + 0x58]
jl 0x1800572d0
mov r12, qword [rsp + 0x50]
lea r14, [0x180000000]
jmp 0x180057a13
mov r12, qword [rsp + 0x50]
lea r14, [0x180000000]
jmp case.0x1800570e9.56
test r8, r8
je case.0x1800570e9.56
mov dword [r8], r10d
jmp case.0x1800570e9.56
mov rdi, qword [rsp + 0x78]
movzx ecx, byte [rdi]
test ecx, ecx
je 0x1800577b1
nop word [rax + rax]
mov eax, dword [rsi]
inc rdi
mov qword [rsp + 0x78], rdi
lea edx, [rax - 1]
mov dword [rsi], edx
test eax, eax
je 0x1800577b9
cmp ecx, 0x3d
jne 0x180057689
movzx ecx, byte [rdi]
cmp cl, 0x3d
je 0x1800577a6
mov eax, dword [rsp + 0x60]
and eax, 0x80000003
jge 0x18005763a
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 1
je 0x180057b0d
cmp byte [r11], 0
je 0x1800577a6
test edx, edx
je 0x1800577a6
nop word [rax + rax]
movzx ecx, byte [rdi + 1]
inc rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x180057660
cmp byte [rdi], al
jne 0x180057b0d
mov r9, qword [rbp - 0x68]
xor cl, cl
mov r10d, dword [rsp + 0x5c]
jmp 0x1800577a2
cmp byte [r11], 0
movsx edx, byte [rcx + r14 + 0x60720]
jne 0x18005769c
test dl, dl
js 0x1800576a1
cmp edx, 0xffffffff
jne 0x1800576a9
movzx ecx, byte [rdi]
jmp 0x1800577a6
cmp edx, 0xfffffffe
je 0x180057b0d
mov r11d, dword [rsp + 0x60]
mov ecx, r11d
and ecx, 0x80000003
jge 0x1800576c9
dec ecx
or ecx, 0xfffffffc
inc ecx
test ecx, ecx
je 0x180057788
sub ecx, 1
je 0x1800576e9
sub ecx, 1
je 0x18005773c
cmp ecx, 1
je 0x180057777
jmp 0x18005778f
mov ecx, 0xbd
nop
cmp ecx, 0xbd
je 0x18005771a
cmp ecx, 0x14e
je 0x18005770e
cmp ecx, 0x1df
je 0x18005778f
jmp 0x18005772e
movzx eax, dl
shl al, 4
mov byte [r9 + rbx], al
jmp 0x18005772e
inc r10d
mov eax, edx
sar eax, 4
or byte [r9 + rbx], al
inc rbx
mov dword [rsp + 0x5c], r10d
add ecx, 0x91
cmp ecx, 0x270
jb 0x1800576f0
mov ecx, 0x104
mov eax, ecx
sub eax, 0x103
je 0x18005778f
cmp eax, 1
jne 0x18005776d
inc r10d
mov eax, edx
sar eax, 2
or byte [r9 + rbx], al
inc rbx
movzx eax, dl
mov dword [rsp + 0x5c], r10d
shl al, 6
mov byte [r9 + rbx], al
dec ecx
cmp ecx, 0x102
ja 0x180057741
or byte [r9 + rbx], dl
inc r10d
mov dword [rsp + 0x5c], r10d
inc rbx
jmp 0x18005778f
shl dl, 2
mov byte [r9 + rbx], dl
movzx ecx, byte [rdi]
inc r11d
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x38], 0x3c
mov r11, qword [rbp - 0x80]
movzx ecx, cl
test ecx, ecx
jne 0x180057600
inc rdi
mov qword [rsp + 0x78], rdi
mov edx, r10d
cmp ecx, 0x3d
jne 0x180057a13
mov ecx, dword [rsp + 0x60]
and ecx, 0x80000003
jge 0x1800577d8
dec ecx
or ecx, 0xfffffffc
inc ecx
sub ecx, 1
je 0x180057b0d
sub ecx, 1
je 0x1800577f0
cmp ecx, 1
je 0x1800577f4
jmp 0x180057a13
lea edx, [r10 + 1]
movsxd rax, edx
mov byte [rax + r9], 0
jmp 0x180057a13
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x68]
shl eax, 4
add dword [0x180096774], eax
mov eax, dword [0x1800a0f84]
inc dword [0x1800a0f84]
mov dword [r14 + rax*4 + 0xa0f88], ecx
jmp case.0x1800570e9.56
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
jmp case.0x1800570e9.56
mov r13d, 0x48
jmp case.0x1800570e9.56
mov ecx, 0x36
mov eax, ecx
sub eax, 0x35
je case.0x1800570e9.42
cmp eax, 1
jne 0x18005786e
mov byte [r10 + r9], 0
mov byte [rsp + 0x64], al
dec ecx
cmp ecx, 0x34
ja 0x180057855
jmp case.0x1800570e9.55
mov r8, r12
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x61
call fcn.1800359d0
test eax, eax
jne 0x180057b46
mov r8, r12
mov qword [rsp + 0x40], 0x61
lea rdx, [rsp + 0x40]
lea ecx, [rax + 0x61]
call fcn.1800359d0
mov r8, r12
mov qword [rsp + 0x68], 0x62
lea rdx, [rsp + 0x68]
mov ecx, 0x61
mov ebx, eax
call fcn.1800359d0
mov edx, 1
lea ecx, [rbx + rax]
shl edx, cl
mov dword [rsp + 0x68], edx
jmp case.0x1800570e9.56
mov r8, r12
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x61
call fcn.1800359d0
mov r8, r12
mov qword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x30]
mov ecx, 0x61
mov ebx, eax
call fcn.1800359d0
xor eax, ebx
cmp eax, 0x44
jne 0x180057970
mov r8, r12
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
lea ecx, [rax + 0x1d]
call fcn.1800359d0
mov r8, r12
mov qword [rsp + 0x30], 0x15
lea rdx, [rsp + 0x30]
mov ecx, 0x61
mov ebx, eax
call fcn.1800359d0
xor eax, ebx
cmp eax, 0x47
je case.0x1800570e9.56
nop word [rax + rax]
lea rcx, str.uint32_t_vertexCount_
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [rdi], 2
jne 0x180057b60
mov rcx, qword [rsi + 8]
lea rdx, [0x180061d34]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x50], rax
mov r12, rax
test rax, rax
jne case.0x1800570e9.56
mov rdx, qword [rsi + 8]
lea rcx, str.ID_SHEET_TITLE
call fcn.18005dc40
lea ecx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov dword [rsp + 0x64], 0
jmp case.0x1800570e9.56
cmp dword [0x1800a0f84], 0xa
jae case.0x1800570e9.56
mov eax, dword [rsp + 0x68]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
mov eax, dword [rsp + 0x68]
mov edx, 0x10d
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x38], 0x4b
call fcn.180031a60
mov r13d, dword [rsp + 0x38]
dec r13d
mov dword [rsp + 0x38], r13d
cmp r13d, dword [rsp + 0x70]
jbe case.0x1800570e9.42
mov r9, qword [rbp - 0x68]
mov r11, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x58]
mov r8, qword [rbp - 0x70]
jmp 0x1800570c0
mov rbx, qword [rsp + 0x50]
mov rax, r12
lea rdx, [rbp - 0x70]
add rax, 0xc
mov r8, rbx
mov ecx, 0xd4
mov qword [rbp - 0x70], rax
call fcn.18005a9b0
mov edx, eax
lea rcx, str.Accessors::FunctionCallerSetter
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.samples__GetCount__metrics_util::MANUAL_WITH_PASSWORD_PENDING_
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp - 0x50]
lea rcx, str.Compiled_Code_Size
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp - 0x50]
lea rcx, str.BUFFER_ATOMIC_SUB_OFFEN_si
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9d, eax
lea rdx, [rbp - 0x50]
mov r8d, r14d
lea rcx, str.int___OVERLOADABLE___convert_int_rte_uchar__
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp - 0x50]
lea rcx, str.AddAndSetLastBypassEvent
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov byte [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.18005e580
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.NVAPI_PCLK_LIMITATION_FAILED
call fcn.18005dc40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsi]
lea rcx, str.Antigua_and_Barbuda
call fcn.18005dc40
mov eax, 1
jmp 0x180057b16