joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085ec0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0x210], rax
movzx esi, dl
mov rdi, rcx
mov ebx, 1
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140085f27
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
xor ecx, ecx
cmp eax, ebx
setbe cl
mov eax, ecx
jmp 0x140086011
lea rax, vtable.std::_Func_impl_no_alloc_class__int___cdecl_XMLUpdater::v2::NUtils::DeleteReparsePoint_wchar_t_const____ptr64__bool_::_2::_lambda_1___void___.0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
mov rax, qword [vtable.std::_Func_impl_no_alloc_class__int___cdecl_XMLUpdater::v2::NUtils::DeleteReparsePoint_wchar_t_const____ptr64__bool_::_2::_lambda_1___void___.0]
call qword [case.0x14000cca5.0]
mov rcx, rax
mov qword [rbp - 0x48], rax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140085fa6
mov rax, qword [r8]
lea rcx, [rsp + 0x28]
cmp r8, rcx
setne dl
mov rcx, r8
mov rax, qword [rax + 0x20]
call qword [case.0x14000cca5.0]
mov rcx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x140085fdc
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x140085fc0
cmp eax, 0xa000000c
jne 0x140085fdc
mov rcx, rdi
test sil, sil
je 0x140085fd0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140085fd6
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x14008600f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000cca5.0]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14008600f
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000cca5.0]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400fb890
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14008d930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x14008dac4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x14008dac4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14008d9cb
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14008daeb
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14008d9e2
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x14008d9e2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14008d9f5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x14008da42
mov r8d, eax
cmp eax, 0x800
jae 0x14008da0f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x14008da42
cmp eax, 0x10000
jae 0x14008da29
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x14008da42
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x14008dac4
add qword [r14], 2
test sil, sil
jne 0x14008da63
cmp r10d, 3
jae 0x14008da6f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x14008daa1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x14008da80
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14008d97f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14008dad2
Function at 0x140097f80
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rdx
mov qword [rsp + 0x20], rdx
cmp qword [r8 + 0x18], 8
jb 0x140097fa2
mov r8, qword [r8]
mov rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rbp, qword [str.FALSE]
test eax, eax
cmovne rbp, qword [str.TRUE]
xor r15d, r15d
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov r8, 0xffffffffffffffff
mov rbx, r8
nop dword [rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140097fe0
cmp rbx, 7
ja 0x14009800d
mov qword [rsi + 0x10], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.1400fe220
mov word [rbx + rsi], r15w
jmp 0x14009806e
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140098082
mov rax, rbx
or rax, 7
cmp rax, r14
ja 0x140098037
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
mov rdx, r14
add rdx, 1
cmovb rdx, r8
mov rcx, rsi
call fcn.14000ce60
mov rdi, rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r14
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.1400fe220
mov word [rbx + rdi], r15w
mov qword [rsi], rdi
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001790
int3
Function at 0x1400a60c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
xor ebp, ebp
test rbx, rbx
je 0x1400a6167
cmp qword [rbx], rbp
je 0x1400a6159
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a6196
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a615e
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov rdx, qword [rbx]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 1
mov r8d, edx
mov rcx, rsi
call qword [case.0x14000cca5.0]
jmp 0x1400a6190
cmp dword [rbx + 8], ebp
jne 0x1400a6167
mov rax, 0xffffffffffffffff
jmp 0x1400a6190
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400a619d
call fcn.1400a53d0
jmp 0x1400a61a2
mov qword [rdi], rax
mov eax, ebp
test eax, eax
jns 0x1400a61e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.Failed_to_open_the_file:__d_n
mov qword [rsp + 0x20], rax
mov r9d, 0x32
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x31]
call fcn.14007d3e0
xor al, al
jmp 0x1400a62aa
mov rbx, qword [rdi]
lea rdx, [rsp + 0x64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov r9, qword [rsp + 0x60]
shr r9, 0x20
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x1400a622b
call fcn.1400a53d0
mov ebx, eax
jmp 0x1400a6277
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x30], 4
mov qword [rdi + 0x28], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400a62a8
call fcn.1400a53d0
mov ebx, eax
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
test ebx, ebx
jns 0x1400a62a8
lea rax, str.Failed_to_map_file_to_memory
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, str.XMLUpdater::v2::CFileMemMap::Init
lea rdx, str.E:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterFileMemMap.h
lea ecx, [r9 - 0x37]
call fcn.14007d3e0
xor al, al
jmp 0x1400a62aa
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fb890
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a63b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x60]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a6426
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov r9d, 0x5e
lea r8, str.XMLUpdater::v2::CCabParser::Write
lea rax, str.WriteFile_failed:__d
lea rdx, str.E:BT5141214d_e130_48fa_889d_d54b39cac869xmlupdater_srcXmlUpdaterCabParser.h
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x5d]
call fcn.14007d3e0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0x48
ret
Function at 0x1400a97b0
Capabilities:
Hash data with md5

Disassembly:
lea rax, vtable.XMLUpdater::v2::CMD5Checksum.0
xorps xmm0, xmm0
mov qword [rcx], rax
xor eax, eax
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rax
mov rax, rcx
mov dword [rcx + 0x50], 0x67452301
mov dword [rcx + 0x54], 0xefcdab89
mov dword [rcx + 0x58], 0x98badcfe
mov dword [rcx + 0x5c], 0x10325476
ret

Function at 0x1400aa870
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400aa884
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x1400aaa90
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rax, rdx
mov rbx, rcx
je 0x1400aaaaa
xor al, al
add rsp, 0x30
pop rbx
ret
cmp byte [rsp + 0x60], 0
je 0x1400aaab8
mov edx, 1
jmp 0x1400aaad2
test r8, r8
je 0x1400aaad0
mov dword [rsp + 0x20], r9d
mov edx, 3
mov r9, qword [r8 + 8]
mov r8, qword [r8]
jmp 0x1400aaadd
xor edx, edx
mov dword [rsp + 0x20], r9d
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
mov qword [rbx], rax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x1400aab00
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400aab4e
cmp qword [rbx + 0x10], 0
jne 0x1400aab4e
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
mov qword [rbx + 0x10], rax
setne al
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x1400aab60
Capabilities:
Read http header

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
test rcx, rcx
je 0x1400aabfa
test rdx, rdx
je 0x1400aabfa
xorps xmm0, xmm0
mov qword [rsp + 0x28], 0
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
lea rax, [rsp + 0x30]
movups xmmword [rsp + 0x50], xmm0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x30], 0x7f
movups xmmword [rsp + 0x60], xmm0
lea edx, [r8 + 5]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400aabfa
lea rcx, [rsp + 0x40]
call fcn.140111f94
mov dword [rbx], eax
mov al, 1
jmp 0x1400aabfc
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0xd0
pop rbx
ret
Function at 0x1400aac20
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400aac96
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.1400fe8d0
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xff
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea edx, [r8 + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400aac96
lea rcx, [rsp + 0x40]
call fcn.140111f94
jmp 0x1400aac98
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0x150
pop rbx
ret

Function at 0x1400aacc0
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400aacd4
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x1400aacf0
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400aad04
xor al, al
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x1400afcd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400afcf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400afd73
mov rdi, r14
mov rcx, rbx
call fcn.140016050
test rax, rax
jle 0x1400afd44
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400fe220
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 0x1400afd63
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x14000cca5.0]
cmp eax, 0xffffffff
je 0x1400afd6b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400afd06
sub r14, rdi
jmp 0x1400afe68
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400afd8a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400afd8c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400afdc1
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400fe220
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400afe65
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400afdfc
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400afe40
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140118ea8
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400afe7e
cmp rbp, rax
ja 0x1400afe10
mov r8, rdi
test rdi, rdi
je 0x1400afe65
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140118ea8
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1400afe68
Function at 0x1400b6010
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx ebp, r8w
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor eax, eax
mov qword [rcx], rax
lea rdi, [rcx + 8]
mov qword [rdi], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.Simple_HttpFetcher_1.1
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea rcx, [rsp + 0x30]
cmp rbx, rcx
je 0x1400b6077
mov rcx, qword [rbx]
mov qword [rbx], rax
test rcx, rcx
je 0x1400b6085
jmp 0x1400b607f
test rax, rax
je 0x1400b6085
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400b615d
mov dword [rsp + 0x60], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400b619b
cmp qword [rsi + 0x18], 8
jb 0x1400b60c0
mov rsi, qword [rsi]
xor r9d, r9d
movzx r8d, bp
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea rcx, [rsp + 0x30]
cmp rdi, rcx
je 0x1400b60ea
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x1400b60f8
jmp 0x1400b60f2
test rax, rax
je 0x1400b60f8
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rdi], 0
je 0x1400b611e
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fb890
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, eax
call fcn.1400ae080
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_connect_to_host
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aba60
lea rdx, [0x1401acc98]
lea rcx, [rsp + 0x38]
call fcn.1400fe144
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ae080
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_create_session
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aba60
lea rdx, [0x1401acc98]
lea rcx, [rsp + 0x38]
call fcn.1400fe144
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ae080
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_set_secure_protocols
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aba60
lea rdx, [0x1401acc98]
lea rcx, [rsp + 0x38]
call fcn.1400fe144
int3
Function at 0x1400b6280
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15d, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor r12d, r12d
mov dword [rbp - 0x30], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400b645e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x1400b6320
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b647f
mov esi, dword [rbp - 0x30]
shr rsi, 1
dec rsi
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
cmp rsi, 7
ja 0x1400b6376
mov qword [rbp - 0x18], rsi
test rsi, rsi
je 0x1400b636a
movzx eax, r12w
lea rdi, [rbp - 0x28]
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rbp + rsi*2 - 0x28], r12w
mov rdx, qword [rbp - 0x28]
jmp 0x1400b63e0
movabs rdi, 0x7ffffffffffffffe
cmp rsi, rdi
ja 0x1400b64bb
mov rax, rsi
or rax, 7
cmp rax, rdi
ja 0x1400b63a4
mov rdi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rdi, rcx
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14000ce60
mov rdx, rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
movzx eax, r12w
mov rdi, rdx
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rdx + rsi*2], r12w
mov qword [rbp - 0x28], rdx
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r9, rdx
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400b6422
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400b62ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ae080
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_value
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400aba60
lea rdx, [0x1401acc98]
lea rcx, [rbp - 0x50]
call fcn.1400fe144
nop
lea rdx, str.WinHttp:_WinHttpQueryHeader_unexpectedly_returned_true
lea rcx, [rbp - 0x50]
call fcn.1400aba00
lea rdx, [0x1401ac678]
lea rcx, [rbp - 0x50]
call fcn.1400fe144
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ae080
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_length
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400aba60
lea rdx, [0x1401acc98]
lea rcx, [rbp - 0x50]
call fcn.1400fe144
int3
call fcn.140001790
int3
Function at 0x14010dc58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14010dc8f
call fcn.14010c394
mov dword [rax], 0x16
call fcn.140103210
xor eax, eax
jmp 0x14010dd1d
mov rdx, r9
mov rcx, r8
call fcn.14010dbf4
mov rbx, rax
test rax, rax
je 0x14010dd1a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14010db20]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14010dd07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010c308
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14010dcee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14010dcfd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401207ec
jmp 0x14010dd1a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14010dd17
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret