joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017570
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rcx, qword [0x180036838]
mov r14, qword [0x180036a20]
and dword [rsp + 0x68], 0
mov r12, r8
mov r13, rdx
mov esi, 0x1000
mov r8, rsi
xor edx, edx
mov edi, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180017649
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
mov ebp, eax
je 0x180017613
mov eax, dword [rsp + 0x68]
cmp esi, eax
ja 0x180017617
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180036838]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x1800175c0
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x180017649
test ebp, ebp
je 0x18001762f
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x180017649
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x180017764
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor r15d, r15d
xor edx, edx
mov rsi, r9
mov r13d, r8d
mov r12, rcx
mov rbx, r15
mov edi, 8
call fcn.1800188d4
cmp rax, r15
mov rbp, rax
je 0x180017834
cmp rsi, r15
je 0x1800177c1
xor edx, edx
mov rcx, rsi
call fcn.1800188d4
cmp rax, r15
mov rbx, rax
je 0x180017822
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call fcn.1800153a0
cmp eax, r15d
mov edi, eax
jne 0x18001780b
mov ecx, dword [rsp + 0x80]
lea rdx, [0x180039690]
mov r9, rbx
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov r8, rbp
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
cmp eax, 0x20
cmovg edi, r15d
cmp rbx, r15
je 0x180017822
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180036838]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180017a28
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov dword [rsp + 0x40], 0x10000
test rbx, rbx
je 0x180017a53
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180017a92
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
mov edi, eax
jne 0x180017a97
jmp 0x180017a3c
mov edi, 0xc000009a
test edi, edi
js 0x180017ac1
lea rdx, [0x180036b00]
mov rcx, rbx
call fcn.180008a34
cmp dword [rbx], 0
je 0x180017ab6
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x180017ab8
xor ebx, ebx
test rbx, rbx
je 0x180017ac1
test eax, eax
jne 0x180017a9b
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180018350
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 [0x180036838]
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 0x18001843e
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 0x1800183de
cmp r12d, ebx
je 0x1800183fd
mov rdi, rsi
jmp 0x1800183e3
mov byte [rax], bl
add rdi, r13
cmp rdi, rbx
je 0x1800183fd
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 0x180018421
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
cmp rax, rbx
je 0x18001842c
mov rax, qword [rax + 0x18]
mov ebx, r13d
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
jmp 0x18001842c
cmp word [rbp + 2], bx
mov dword [rbp + 4], ebx
cmovne ebx, r13d
mov rcx, qword [0x180036838]
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 0x180018460
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 0x180018527
mov rcx, qword [0x180036838]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180018522
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 0x18001850e
mov rcx, qword [rsp + 0x80]
mov qword [rbp], rbx
test rcx, rcx
je 0x180018527
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x180018527
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180018527
mov edi, 8
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x180018537
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 0x18001854c
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 0x180018638
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 0x18001862d
mov rcx, qword [0x180036838]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180018628
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 0x180018614
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x18001862d
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x18001862d
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001862d
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 0x1800186dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x18003a32f]
xor r8d, r8d
xor edx, edx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov edi, eax
je 0x180018745
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180018745
lea rcx, [0x18003a32f]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x180018745
mov rcx, qword [0x180036838]
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 0x180018db8
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 0x180018efa
cmp dword [rcx + 4], r15d
je 0x180018efa
cmp dword [rdi + 0x1c], r15d
je 0x180018efa
mov r14d, dword [rdi + 0x14]
test r14d, r14d
je 0x180018efa
mov r12d, dword [rdi + 0x1c]
mov rbx, rdx
add r12, r13
test rdx, rdx
je 0x180018e42
cmp rdx, 0xffff
jbe 0x180018e48
mov r14d, dword [rdi + 0x18]
xor ebx, ebx
cmp dword [rdi + 0x24], r15d
je 0x180018ef0
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 0x180018efa
test rbx, rbx
je 0x180018e9f
mov ecx, dword [rdi + 0x10]
movzx eax, word [rbp]
add rcx, rax
cmp rbx, rcx
jne 0x180018ed3
movzx eax, word [rbp]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
lea r15, [r12 + rax*4]
je 0x180018efa
mov eax, dword [rsi]
add rax, r13
mov qword [rcx], rax
jmp 0x180018efa
mov ecx, dword [rsi]
add rcx, r13
test rdx, rdx
je 0x180018eb3
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x180018ecc
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [rsi]
add rcx, r13
mov edx, eax
call fcn.180028900
cmp dword [rsp + 0x80], eax
je 0x180018e80
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 0x180018efa
jmp 0x180018e6c
test rbx, rbx
je 0x180018efa
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 0x18001936c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rcx, [0x1800398be]
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 0x1800193b1
bt dword [r8 + 0x24], 0x1f
jb 0x1800193b4
add r8, 0x28
add ecx, 0xffffffff
jne 0x1800193a0
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x18001947c
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, [0x180019364]
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 0x18001947c
mov rax, qword [rbx]
cmp rax, rbx
jne 0x180019474
cmp rax, qword [rbx + 8]
jne 0x180019474
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, [0x180039bf2]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180019459
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 0x180019410
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x180019490
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 0x1800194f1
lea rcx, [0x1800398be]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003a07a]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001955f
lea rdx, [0x180016b0c]
mov r9, rdi
mov r8, rsi
xor ecx, ecx
call rax
test eax, eax
jne 0x18001955f
jmp 0x180019556
cmp qword [0x180036ac0], 0
jne 0x18001950c
call fcn.18001936c
test rax, rax
mov qword [0x180036ac0], rax
je 0x18001955f
mov rcx, qword [0x180036838]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18001955a
mov rdx, qword [0x180036ac0]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rsi
lea rcx, [0x180016b0c]
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 0x18001955f
mov ebx, 8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001a554
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180036a34]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.180017bd0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x18001a5e0
mov rcx, qword [0x180036838]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001a5e0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18001a5ce
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180028900
xor dword [rdi], eax
mov rcx, qword [0x180036838]
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 0x18001a64c
mov rcx, qword [0x180036838]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001a64c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18001a63a
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.180028900
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180036838]
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 0x18001ac78
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.1800188d4
xor ebx, ebx
cmp rax, rbx
mov rsi, rax
je 0x18001ae62
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea r12d, [rbx + 4]
cmp al, 6
ja 0x18001acd0
jne 0x18001acc8
shr ax, 8
cmp al, 1
ja 0x18001acd0
mov edx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x18001acd7
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 [0x180036838]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], rbx
je 0x18001ae62
mov rcx, qword [rdi]
xor edx, edx
call fcn.1800188d4
cmp rax, rbx
mov rsi, rax
je 0x18001ae62
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 [0x180036838]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], rbx
je 0x18001ae62
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.1800188d4
cmp rax, rbx
mov rsi, rax
je 0x18001ae62
mov ecx, dword [rsp + 0x40]
lea rax, [0x1800394f0]
lea rdx, [0x180039508]
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 [0x180036838]
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 0x18001ae62
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 0x18001ae26
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 0x18001ae62
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 0x18001ae6a
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 0x18001af4c
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.18001a6bc
test eax, eax
je 0x18001b0dc
mov rax, qword [rsp + 0xa8]
lea rbp, [0x1800394d9]
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180036838]
xor edx, edx
lea r8d, [rax + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov r12, rax
je 0x18001b0dc
lea r9, [0x1800395d8]
lea rdx, [0x180039596]
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.18001a7c4
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001b0d4
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.18001ac78
test eax, eax
mov ebx, eax
jne 0x18001b0d4
mov rdi, qword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.1800188d4
test rax, rax
mov rbp, rax
jne 0x18001b084
lea ebx, [rax + 8]
jmp 0x18001b0dc
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 0x18001b0a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180036838]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001b0dc
mov r9d, dword [r13]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x30]
xor edx, edx
call fcn.18001ae80
mov ebx, eax
jmp 0x18001b0dc
mov rdi, qword [rsp + 0x80]
test rdi, rdi
mov dword [rsi + 0x50], ebx
je 0x18001b0f6
mov rcx, qword [0x180036838]
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 0x18001b1dc
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 0x18001b337
cmp dword [rsp + 0x40], ebx
je 0x18001b332
lea r8, [rsp + 0x50]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18001b32b
mov rcx, qword [0x180036838]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001b319
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 0x18001b294
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 0x18001b29c
jmp 0x18001b24b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180036a48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001b2ed
mov rcx, qword [rdi + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18001b2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f78
mov ebx, eax
jne 0x18001b2f2
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x18001b2f2
xor ebx, ebx
jmp 0x18001b2e4
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x18001b2f2
jmp 0x18001b24b
mov ebx, 0x102
mov rcx, qword [0x180036838]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001b31e
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.18001aba0
mov ebx, eax
jmp 0x18001b31e
mov ebx, 8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18001b34c
mov ebx, 8
jmp 0x18001b34c
and dword [rdi + 0x58], ebx
jmp 0x18001b34c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2efe
mov ebx, eax
jne 0x18001b34c
and dword [rdi + 0x58], 0
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret