joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017f68
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rdx
mov r12d, r8d
mov rdi, rcx
xor ebx, ebx
xor edx, edx
mov rcx, rbp
lea r8d, [rbx + 0x10]
call sub.ntdll.dll_memset
mov rcx, rdi
mov word [rbp], 2
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800307d8]
lea r13d, [rbx + 1]
lea r8d, [r13 + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rsi, rax
je 0x180018056
mov rdx, rdi
mov rcx, rax
call sub.ntdll.dll_strcpy
mov dx, 0x3a
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
cmp rax, rbx
mov rdi, rax
jne 0x180017ff6
cmp r12d, ebx
je 0x180018015
mov rdi, rsi
jmp 0x180017ffb
mov byte [rax], bl
add rdi, r13
cmp rdi, rbx
je 0x180018015
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
cmp rdi, rsi
je 0x180018039
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
cmp rax, rbx
je 0x180018044
mov rax, qword [rax + 0x18]
mov ebx, r13d
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
jmp 0x180018044
cmp word [rbp + 2], bx
mov dword [rbp + 4], ebx
cmovne ebx, r13d
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180018078
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x68], 0
mov r12, r8
lea rax, [r11 + 0x10]
mov rbp, r9
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
lea r9, [r11 - 0x28]
xor r8d, r8d
mov rdx, r12
mov rsi, rcx
mov qword [r11 - 0x20], rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18001813f
mov rcx, qword [0x1800307d8]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001813a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
jne 0x180018126
mov rcx, qword [rsp + 0x80]
mov qword [rbp], rbx
test rcx, rcx
je 0x18001813f
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x18001813f
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001813f
mov edi, 8
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x18001814f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180018164
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
mov rbp, r8
lea r8, [rax - 0x10]
mov rcx, 0xffffffff80000001
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180018250
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180018245
mov rcx, qword [0x1800307d8]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180018240
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x18001822c
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x180018245
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x180018245
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180018245
mov ebx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800182f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x1800343ae]
xor r8d, r8d
xor edx, edx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov edi, eax
je 0x18001835d
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001835d
lea rcx, [0x1800343ae]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x18001835d
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800189d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movsxd r10, dword [rcx + 0x3c]
mov r13, rcx
xor r15d, r15d
cmp word [r10 + r13 + 4], 0x14c
lea rax, [r10 + rcx + 0x78]
lea rcx, [r10 + rcx + 0x88]
cmove rcx, rax
mov eax, dword [rcx]
test eax, eax
lea rdi, [r13 + rax]
je 0x180018b12
cmp dword [rcx + 4], r15d
je 0x180018b12
cmp dword [rdi + 0x1c], r15d
je 0x180018b12
mov r14d, dword [rdi + 0x14]
test r14d, r14d
je 0x180018b12
mov r12d, dword [rdi + 0x1c]
mov rbx, rdx
add r12, r13
test rdx, rdx
je 0x180018a5a
cmp rdx, 0xffff
jbe 0x180018a60
mov r14d, dword [rdi + 0x18]
xor ebx, ebx
cmp dword [rdi + 0x24], r15d
je 0x180018b08
mov ebp, dword [rdi + 0x24]
mov esi, dword [rdi + 0x20]
and dword [rsp + 0x70], r15d
add rbp, r13
add rsi, r13
test r14d, r14d
je 0x180018b12
test rbx, rbx
je 0x180018ab7
mov ecx, dword [rdi + 0x10]
movzx eax, word [rbp]
add rcx, rax
cmp rbx, rcx
jne 0x180018aeb
movzx eax, word [rbp]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
lea r15, [r12 + rax*4]
je 0x180018b12
mov eax, dword [rsi]
add rax, r13
mov qword [rcx], rax
jmp 0x180018b12
mov ecx, dword [rsi]
add rcx, r13
test rdx, rdx
je 0x180018acb
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x180018ae4
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [rsi]
add rcx, r13
mov edx, eax
call fcn.180023f18
cmp dword [rsp + 0x80], eax
je 0x180018a98
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
add rsi, 4
add rbp, 2
add eax, 1
cmp eax, r14d
mov dword [rsp + 0x70], eax
jae 0x180018b12
jmp 0x180018a84
test rbx, rbx
je 0x180018b12
lea r15, [r12 + rbx*4 - 4]
mov rax, r15
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180018f98
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rcx, [0x1800338be]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
movzx ecx, word [rdx + 0x14]
lea r8, [rcx + rdx + 0x18]
movzx ecx, word [rdx + 6]
test ecx, ecx
je 0x180018fdd
bt dword [r8 + 0x24], 0x1f
jb 0x180018fe0
add r8, 0x28
add ecx, 0xffffffff
jne 0x180018fcc
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x1800190a8
mov ebx, dword [r8 + 0xc]
xor ecx, ecx
add rbx, rax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x50], ecx
lea rsi, [rax + rbx - 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea rax, [0x180018f90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x20], rax
cmp rbx, rsi
ja 0x1800190a8
mov rax, qword [rbx]
cmp rax, rbx
jne 0x1800190a0
cmp rax, qword [rbx + 8]
jne 0x1800190a0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x20]
lea rcx, [0x180033be0]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180019085
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov ecx, dword [rsp + 0x50]
test ecx, ecx
cmovne rdi, rbx
add rbx, 0x10
test ecx, ecx
je 0x18001903c
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1800190bc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001911d
lea rcx, [0x1800338be]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003405b]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001918b
lea rdx, [0x1800166e4]
mov r9, rdi
mov r8, rsi
xor ecx, ecx
call rax
test eax, eax
jne 0x18001918b
jmp 0x180019182
cmp qword [0x180030a68], 0
jne 0x180019138
call fcn.180018f98
test rax, rax
mov qword [0x180030a68], rax
je 0x18001918b
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180019186
mov rdx, qword [0x180030a68]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rsi
lea rcx, [0x1800166e4]
mov qword [rax + 0x10], rcx
mov qword [rdi], rax
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov qword [rax], rdx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x18001918b
mov ebx, 8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001a180
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1800309dc]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.1800177e8
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x18001a20c
mov rcx, qword [0x1800307d8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001a20c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18001a1fa
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180023f18
xor dword [rdi], eax
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x18001a278
mov rcx, qword [0x1800307d8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001a278
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18001a266
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180023f18
xor dword [rdi + 0xc], eax
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x18001a8a4
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
xor edx, edx
mov rcx, rax
mov ebp, r9d
call fcn.1800184ec
xor ebx, ebx
cmp rax, rbx
mov rsi, rax
je 0x18001aa8e
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea r12d, [rbx + 4]
cmp al, 6
ja 0x18001a8fc
jne 0x18001a8f4
shr ax, 8
cmp al, 1
ja 0x18001a8fc
mov edx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x18001a903
mov edx, r12d
mov dword [rsp + 0x40], edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], rbx
je 0x18001aa8e
mov rcx, qword [rdi]
xor edx, edx
call fcn.1800184ec
cmp rax, rbx
mov rsi, rax
je 0x18001aa8e
mov ecx, dword [rsp + 0x90]
mov rdx, rax
neg ecx
mov rcx, qword [rdi + 0x20]
sbb r8w, r8w
xor r9d, r9d
and r8w, 0x16b
add r8w, 0x50
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], rbx
je 0x18001aa8e
cmp dword [rsp + 0x90], ebx
mov eax, 0x100
mov ecx, 0x800100
cmovne eax, ecx
mov rcx, qword [rdi + 8]
xor edx, edx
mov dword [rsp + 0x40], eax
call fcn.1800184ec
cmp rax, rbx
mov rsi, rax
je 0x18001aa8e
mov ecx, dword [rsp + 0x40]
lea rax, [0x1800334c8]
lea rdx, [0x1800334e0]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rdi + 0x28]
cmp ebp, ebx
cmovne rdx, rax
mov r8, rsi
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rdi + 0x30]
cmp rcx, rbx
je 0x18001aa8e
mov esi, 0x1f
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov edx, esi
mov dword [rsp + 0x44], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
cmp eax, ebx
je 0x18001aa52
mov rcx, qword [rdi + 0x30]
bts dword [rsp + 0x40], 8
lea r8, [rsp + 0x40]
mov r9d, r12d
mov edx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 6
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
je 0x18001aa8e
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 5
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
jne 0x18001aa96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x18001ab78
Capabilities:
Set http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, rdx
mov qword [r11 - 0x48], r8
lea r8, [rcx + 8]
mov rsi, rcx
xor edi, edi
mov rdx, rcx
and qword [r11 - 0x40], rdi
mov rcx, rax
mov ebx, 8
mov qword [r11 + 8], rdi
mov dword [r11 - 0x38], r9d
call fcn.18001a2e8
test eax, eax
je 0x18001ad08
mov rax, qword [rsp + 0xa8]
lea rbp, [0x1800334ba]
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rax + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov r12, rax
je 0x18001ad08
lea r9, [0x1800335b0]
lea rdx, [0x18003356e]
mov r8, rbp
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea edi, [rbx - 7]
lea r13, [rsi + 0x58]
lea r9, [rsi + 0x10]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x30]
mov edx, edi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x20], r13
call fcn.18001a3f0
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001ad00
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
mov eax, 0xea60
test r8d, r8d
mov r9d, edi
mov rcx, rsi
cmove r8d, eax
and dword [rsp + 0x20], ebx
call fcn.18001a8a4
test eax, eax
mov ebx, eax
jne 0x18001ad00
mov rdi, qword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.1800184ec
test rax, rax
mov rbp, rax
jne 0x18001acb0
lea ebx, [rax + 8]
jmp 0x18001ad08
mov rcx, qword [rsi + 0x30]
mov r9d, 0x10000000
or r8d, 0xffffffff
mov rdx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18001acd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001ad08
mov r9d, dword [r13]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x30]
xor edx, edx
call fcn.18001aaac
mov ebx, eax
jmp 0x18001ad08
mov rdi, qword [rsp + 0x80]
test rdi, rdi
mov dword [rsi + 0x50], ebx
je 0x18001ad22
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001ae08
Capabilities:
Receive http response

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsp + 0x40]
xor ebx, ebx
and dword [rsp + 0x48], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001af63
cmp dword [rsp + 0x40], ebx
je 0x18001af5e
lea r8, [rsp + 0x50]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18001af57
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001af45
mov ecx, dword [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x48]
mov rdx, rsi
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001aec0
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x48]
mov dword [rsp + 0x40], ecx
je 0x18001aec8
jmp 0x18001ae77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800309f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001af19
mov rcx, qword [rdi + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18001af0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f78
mov ebx, eax
jne 0x18001af1e
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x18001af1e
xor ebx, ebx
jmp 0x18001af10
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x18001af1e
jmp 0x18001ae77
mov ebx, 0x102
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001af4a
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.18001a7cc
mov ebx, eax
jmp 0x18001af4a
mov ebx, 8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18001af78
mov ebx, 8
jmp 0x18001af78
and dword [rdi + 0x58], ebx
jmp 0x18001af78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2efe
mov ebx, eax
jne 0x18001af78
and dword [rdi + 0x58], 0
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001af84
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rcx + 0x50]
and dword [rsp + 0x58], 0
and dword [rcx + 0x54], 0
test ebx, ebx
mov rdi, rcx
jne 0x18001b0ec
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov dword [rsp + 0x50], 4
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001b0e4
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x18001b0e4
mov rcx, qword [rdi + 0x30]
and dword [rsp + 0x58], ebx
and dword [rsp + 0x50], ebx
lea rax, [rsp + 0x58]
lea ebp, [rbx + 0x16]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x1800307d8]
add r8d, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001b0dd
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x18001b0c1
mov eax, dword [rsp + 0x50]
mov rcx, qword [0x1800307d8]
xor edx, edx
shr eax, 1
mov dword [rsp + 0x50], eax
and word [rsi + rax*2], bx
mov r8d, dword [rsp + 0x50]
add r8d, 1
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x18001b0ba
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
add r8d, 1
call qword [sym.imp.ntdll.dll_wcstombs]
mov qword [rdi + 0x18], rbp
jmp 0x18001b0c9
mov ebx, 8
jmp 0x18001b0c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001b0ec
mov ebx, 8
jmp 0x18001b0ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001b258
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001b326
lea rcx, [0x180034890]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x18001b312
lea rdx, [0x180034898]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x18001b312
lea rdx, [0x18003489f]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 8], rax
je 0x18001b312
lea rdx, [0x1800348a7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x18001b312
lea rdx, [0x180034742]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x18], rax
je 0x18001b312
lea rdx, [0x1800347d2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x20], rax
jne 0x18001b326
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret