joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180012e31
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x180012eab
mov rdi, r14
mov rcx, rbx
call fcn.18000ac90
test rax, rax
jle 0x180012e83
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1800c2670
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180012e9b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180012ea3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180012e45
sub r14, rdi
jmp 0x180012f8f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180012ec2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180012ec4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180012ef6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800c2670
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180012f8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180012f31
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180012f6d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800a20a8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180012f8c
cmp rbp, rax
ja 0x180012f40
test rbp, rbp
je 0x180012f8c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800a20a8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18001a650
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [0x180107250]
cmp qword [0x180107268], 0xf
cmova rdx, qword [0x180107250]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea r8, [rbp - 9]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rbp + 0x17]
call fcn.18001a360
nop
mov rdi, qword [rbp + 0x27]
lea rbx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rbx, qword [rbp + 0x17]
call fcn.180079e1c
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 0x37]
call fcn.18000fbb0
nop
lea rcx, [rbp + 0x37]
call fcn.180010460
movzx ebx, al
mov rdx, qword [rbp + 0x4f]
cmp rdx, 7
jbe 0x18001a763
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x37]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a75e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a884
call fcn.180097258
test bl, bl
je 0x18001a832
mov rdi, qword [rbp + 0x27]
lea rbx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rbx, qword [rbp + 0x17]
call fcn.180079e1c
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 0x37]
call fcn.18000fbb0
nop
lea rcx, [rbp + 0x37]
cmp qword [rbp + 0x4f], 7
cmova rcx, qword [rbp + 0x37]
call fcn.18007a394
mov rdx, rax
shr rdx, 0x20
movzx ecx, al
mov qword [rbp + 0x67], rcx
mov dword [rbp - 0x19], edx
lea rax, [0x1801028a0]
mov qword [rbp - 0x11], rax
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
cmp edx, 0x91
jne 0x18001a7eb
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x37]
call fcn.180019510
cmp dword [rbp - 0x19], 0
jne 0x18001a88a
mov rdx, qword [rbp + 0x4f]
cmp rdx, 7
jbe 0x18001a832
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x37]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a82c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a89f
call fcn.180097258
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x18001a869
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a864
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a87e
call fcn.180097258
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18009e488
nop
call fcn.18009e488
nop
lea r8, [rbp + 0x37]
lea rdx, [rbp - 0x19]
lea rcx, str.remove_all
call fcn.180010400
nop
call fcn.18009e488
int3
Function at 0x18001eb00
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
lea r9, [rsp + 0x60]
xor edx, edx
mov r14, rcx
xor r15d, r15d
xor r8d, r8d
mov dword [rsp + 0x60], r15d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, dword [rsp + 0x60]
lea r9d, [r15 + 4]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
lea ecx, [r15 + 0xb]
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, r15d
xorps xmm0, xmm0
movups xmmword [r14], xmm0
cmp dword [rdi], ebx
jbe 0x18001ec75
nop dword [rax + rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x20], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rsi, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x30], r15
add rdx, rcx
mov qword [rsp + 0x38], r15
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r15b
jne 0x18001ebb5
lea rcx, [rsp + 0x20]
call fcn.18000bf30
cmp qword [rsp + 0x38], 0xf
lea rdx, [rsp + 0x20]
mov rcx, rbp
cmova rdx, qword [rsp + 0x20]
call fcn.1800a6e78
test eax, eax
je 0x18001ec2e
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x18001ec22
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ec1d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001eca2
call fcn.180097258
inc ebx
cmp ebx, dword [rdi]
jb 0x18001eb80
jmp 0x18001ec75
mov rax, qword [rsi + 0x18]
mov ecx, dword [rsi + 0x20]
mov qword [r14], rax
mov qword [r14 + 8], rcx
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x18001ec75
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ec70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001eca2
call fcn.180097258
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x68]
mov rax, r14
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call fcn.18009e488
int3
Function at 0x180020950
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180020b2f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18001ba90
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180020af4
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180020a6c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180020ae3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180020aa9
mov r10, qword [rdx]
cmp r10, rax
je 0x180020aa3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180020ae3
cmp r9, rdx
je 0x180020abf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180020b09
cmp r9, rdx
jne 0x180020ab0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1800209f0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180020ae3
lea rcx, str.invalid_hash_bucket_count
call fcn.180079010
int3
Function at 0x180025c40
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov byte [rcx + 0x18], r14b
mov ebp, r14d
mov rcx, qword [rbx]
test rcx, rcx
je 0x180025c82
call fcn.180097258
mov qword [rbx], r14
add ebp, 0x100
mov edi, ebp
mov ecx, ebp
call fcn.180097260
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x180025ca5
mov rcx, qword [rsi]
mov r9d, ebp
mov r8, rax
lea rdx, str.8BE4DF61_93CA_11D2_AA0D_00E098032B8C
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
mov eax, eax
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x180025cce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180025cd8
cmp qword [rbx + 0x10], r14
je 0x180025c72
mov byte [rbx + 0x18], 1
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x180025d0e
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180025d09
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180025d33
mov rcx, r8
call fcn.180097258
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
call fcn.18009e488
int3
Function at 0x1800598f0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea ecx, [rsi + 0x20]
call fcn.180097378
mov rbx, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x180059a5c
mov r13, qword [r15]
mov rdi, qword [r15 + 8]
sub rdi, r13
shr rdi, 1
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
movabs rbp, 0x7ffffffffffffffe
cmp rdi, rbp
ja 0x180059af1
mov qword [rax + 0x18], 7
cmp rdi, 7
ja 0x18005998b
mov qword [rax + 0x10], rdi
add rdi, rdi
mov r8, rdi
mov rdx, r13
mov rcx, rax
call fcn.1800c2670
mov word [rdi + rbx], si
jmp 0x180059a5f
mov r8, qword [rax + 0x18]
mov rcx, rdi
or rcx, 7
cmp rcx, rbp
jbe 0x1800599ab
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1800599fd
mov rdx, r8
shr rdx, 1
mov rax, rbp
sub rax, rdx
cmp r8, rax
jbe 0x1800599cc
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1800599fd
lea rax, [rdx + r8]
mov rbp, rcx
cmp rcx, rax
cmovb rbp, rax
lea rcx, [rbp + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x180059afd
add rcx, rcx
cmp rcx, 0x1000
jb 0x180059a29
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180059afd
mov rcx, rax
call fcn.180097378
test rax, rax
je 0x180059af7
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x180059a36
test rcx, rcx
je 0x180059a36
call fcn.180097378
mov rsi, rax
mov qword [rbx], rsi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rbp
add rdi, rdi
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.1800c2670
xor eax, eax
mov word [rdi + rsi], ax
xor esi, esi
jmp 0x180059a5f
mov rbx, rsi
mov qword [r12], rbx
mov dword [rsp + 0x20], 1
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
cmp rax, rdx
je 0x180059ad0
sub rdx, rax
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180059a87
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x180059b03
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180059aa1
mov rdx, qword [rbx]
mov rax, qword [r15 + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [r15 + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x180059aeb
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 7
jbe 0x180059acc
mov rbx, qword [rbx]
mov word [rbx + rax*2], si
mov rax, r12
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180016a00
nop
call fcn.180004f50
int3
call fcn.18009e488
int3
call fcn.180004eb0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.180059820
lea rdx, [0x1800ff100]
lea rcx, [rsp + 0x28]
call fcn.180099484
int3
Function at 0x180064270
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x180101c00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r14d, r14d
mov dword [rbp - 0x21], r14d
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x31], r14
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rbp - 0x21], 1
mov dword [rbp - 0x35], r14d
mov dword [rbp - 0x1d], r14d
lea rcx, [rbp + 0xf]
call fcn.180057310
nop
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.180057310
nop
lea r9d, [r14 + 8]
xor r8d, r8d
lea rdx, str.SHA1
lea rcx, [rbp - 0x29]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x1800643e5
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
lea r8, [rbp - 0x35]
lea rdx, str.HashDigestLength
mov rcx, qword [rbp - 0x29]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1800643e5
mov ebx, dword [rbp - 0x35]
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
cmp rbx, rcx
jae 0x180064343
lea rax, [rdx + rbx]
jmp 0x180064376
jbe 0x18006437a
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbx, rax
jbe 0x180064362
lea r8, [rbp - 0x39]
mov rdx, rbx
mov rcx, rdi
call fcn.180033340
jmp 0x18006437a
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1800c2d10
lea rax, [rsi + rbx]
mov qword [rdi + 8], rax
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
mov dword [rsp + 0x30], r14d
mov eax, dword [rbp + 0x1f]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x31]
mov rcx, qword [rbp - 0x29]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x1800643e5
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rdx, qword [rbp - 0x11]
xor r9d, r9d
mov r8d, dword [rbp - 1]
mov rcx, qword [rbp - 0x31]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x1800643e5
xor r9d, r9d
mov r8d, dword [rbp - 0x35]
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x31]
call sub.bcrypt.dll_BCryptFinishHash
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1800643f3
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180064404
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x18006443b
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180064436
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800644a6
call fcn.180097258
movdqa xmm0, xmmword [0x1800e2670]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x180064483
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006447e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800644a0
call fcn.180097258
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180097c60
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18009e488
nop
call fcn.18009e488
int3
Function at 0x180074b20
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x38], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rdi, [rcx + 0x10]
mov qword [rdi], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x38], 1
mov dword [rax + 0x18], r15d
mov qword [rax - 0x40], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x14]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rdi]
cmp r8, rcx
ja 0x180074bb2
mov qword [rdi], r8
mov rax, rbx
lea rsi, [rbx + 0x18]
cmp qword [rbx + 0x18], 7
jbe 0x180074bab
mov rax, qword [rbx]
mov word [rax + r8*2], r15w
jmp 0x180074c0c
mov rdx, r8
sub rdx, rcx
mov r10, qword [rbx + 0x18]
mov rax, r10
sub rax, rcx
cmp rdx, rax
ja 0x180074bf4
mov qword [rdi], r8
mov r9, rbx
cmp r10, 7
jbe 0x180074bd6
mov r9, qword [rbx]
lea rdi, [r9 + rcx*2]
test rdx, rdx
je 0x180074be9
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r9 + r8*2], r15w
lea rdi, [rbx + 0x10]
jmp 0x180074c08
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
mov rcx, rbx
call fcn.180017c70
lea rsi, [rbx + 0x18]
mov r9, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180074c19
mov r9, qword [rbx]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180074d4b
cmp qword [rsi], 7
jbe 0x180074c55
mov rdx, qword [rbx]
mov rax, rdx
jmp 0x180074c5b
mov rax, rbx
mov rdx, rbx
lea rax, [rax + rcx*2]
cmp word [rdx], 0
jne 0x180074cc1
add rdx, 2
cmp rdx, rax
je 0x180074c7f
nop
cmp word [rdx], 0
jne 0x180074ca0
add rdx, 2
cmp rdx, rax
jne 0x180074c70
mov qword [rbx + 0x10], r15
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180074c90
mov rax, qword [rbx]
mov word [rax], r15w
jmp 0x180074d4b
sub rax, 2
cmp word [rax], 0
je 0x180074ca0
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.18000ad40
jmp 0x180074d4b
sub rax, 2
cmp word [rax], 0
jne 0x180074d4b
nop
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x180074cd0
mov rsi, qword [rbx + 0x10]
mov rdi, rcx
lea rdx, [rsi + rsi]
mov rax, rsi
sub rdx, rcx
cmp qword [rbx + 0x18], 7
jbe 0x180074d10
sub rdi, qword [rbx]
sar rdi, 1
add rdx, qword [rbx]
sar rdx, 1
sub rax, rdi
cmp rax, rdx
cmovb rdx, rax
mov rax, qword [rbx]
jmp 0x180074d29
sub rdi, rbx
sar rdi, 1
add rdx, rbx
sar rdx, 1
sub rax, rdi
cmp rax, rdx
cmovb rdx, rax
mov rax, rbx
lea rcx, [rax + rdi*2]
sub rsi, rdx
mov r8, rsi
sub r8, rdi
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call fcn.1800c2670
mov qword [rbx + 0x10], rsi
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180074d60
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180101c00]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x40], esi
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x180074dd4
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], si
jmp 0x180074e06
cmp rdx, 7
ja 0x180074df2
mov qword [rbp - 0x20], rdx
movzx eax, si
lea rdi, [rbp - 0x30]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x30], si
jmp 0x180074e06
mov word [rsp + 0x20], si
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.180017c70
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call fcn.1800a69e4
mov rbx, rax
lea rdi, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdi, qword [rbp - 0x30]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.1800a66e0
mov esi, eax
cmp rdi, qword [rbp - 0x38]
je 0x180074ed0
cmp dword [rbx], 0x22
je 0x180074edd
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x180074ea5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180074ea0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180074eca
call fcn.180097258
movzx eax, si
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180097c60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.18009e488
nop
lea rcx, str.invalid_stoi_argument
call fcn.180078fec
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.180079034
int3