joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400136a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
sub rsp, 0x60
mov rsi, rcx
xor ecx, ecx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x40], rax
mov rbx, r8
mov ebp, edx
mov dword [r11 + 0x20], ecx
mov qword [r11 - 0x48], rcx
xor r9d, r9d
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140013750
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x70], rdi
inc eax
mov ecx, eax
mov dword [rsp + 0x88], eax
inc rcx
lea rdi, [rcx + rcx]
mov rcx, qword [rbx]
mov rdx, rdi
call fcn.1400a83a8
mov qword [rbx], rax
test rax, rax
je 0x140013735
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov r9d, dword [rsp + 0x88]
mov r8, qword [rbx]
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x140013770
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x70
mov rbp, rcx
xor ecx, ecx
lea rax, [r11 - 0x24]
mov qword [r11 - 0x30], rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x40], rax
lea rax, [r11 - 0x28]
mov r14, r9
mov rdi, r8
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x50], rcx
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x60], rcx
mov r15d, edx
mov dword [rsp + 0x60], ecx
mov qword [r11 - 0x68], rcx
mov dword [rsp + 0x64], ecx
xor r9d, r9d
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14001389a
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
inc eax
mov ecx, eax
mov dword [rsp + 0x60], eax
inc rcx
lea rbx, [rcx + rcx]
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.1400a83a8
mov qword [rdi], rax
test rax, rax
je 0x14001381a
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov ecx, dword [rsp + 0x64]
mov rsi, qword [rsp + 0xb8]
inc ecx
shr rcx, 1
inc rcx
lea rbx, [rcx + rcx]
mov rcx, qword [rsi]
mov rdx, rbx
call fcn.1400a83a8
mov qword [rsi], rax
test rax, rax
je 0x140013852
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov rax, qword [rsi]
mov r8, qword [rdi]
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
mov edx, r15d
mov rcx, rbp
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
ret
Function at 0x1400138b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r15, r9
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], ecx
xor r9d, r9d
mov rcx, r14
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001395f
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x80]
inc ecx
mov qword [rsp + 0x68], rdi
shr rcx, 1
inc rcx
lea rdi, [rcx + rcx]
mov rcx, qword [rbx]
mov rdx, rdi
call fcn.1400a83a8
mov qword [rbx], rax
test rax, rax
je 0x140013931
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov r9, r15
mov qword [rsp + 0x28], rcx
mov r8, rsi
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret

Function at 0x140013970
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbx, r8
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x48], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1400139f3
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x30], rdi
inc eax
movsxd rcx, eax
shr rcx, 1
inc rcx
lea rdi, [rcx + rcx]
mov rcx, qword [rbx]
mov rdx, rdi
call fcn.1400a83a8
mov qword [rbx], rax
test rax, rax
je 0x1400139da
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov r8, qword [rbx]
lea r9, [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140022670
Capabilities:
Get thread local storage value

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
or ebx, 0xffffffff
lea ecx, [rbx + 3]
call fcn.1400a82f0
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov word [rax], cx
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call fcn.1400075c0
test eax, eax
jne 0x14002272b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
call fcn.1400138b0
test eax, eax
jne 0x14002271f
mov byte [rsp + 0x20], 1
mov r9d, ebx
mov rdx, qword [rsp + 0x30]
mov r8, rdx
mov rcx, rdi
call fcn.140022950
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400a82b0
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.140022770
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140022770
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov ecx, 2
call fcn.1400a82f0
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov word [rax], cx
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.1400075c0
test eax, eax
jne 0x140022920
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
call fcn.1400138b0
test eax, eax
jne 0x14002290c
movzx r14d, byte [rsp + 0x98]
test r14b, r14b
jne 0x1400228eb
mov ebp, 0x7fffffff
mov rcx, qword [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov rsi, rbx
nop dword [rax]
inc rsi
cmp word [rcx + rsi*2], 0
jne 0x140022830
mov rdi, rbp
cmp rsi, rbp
cmovb rdi, rsi
lea rdx, [rsi*2 + 6]
call fcn.1400a83a8
mov qword [rsp + 0x30], rax
sub rsi, rdi
lea r8, [rsi*2 + 2]
lea rdx, [rax + rdi*2]
lea rcx, [rax + 2]
lea rcx, [rcx + rdi*2]
call fcn.1400a7cd0
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rdi*2]
movzx eax, word [0x1400d1c90]
mov word [rcx], ax
mov rcx, qword [rsp + 0x30]
nop word [rax + rax]
invalid
invalid
Function at 0x14002f1f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
lea rcx, str.rootwmi
xor ebp, ebp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x68]
lea r9, [0x1400f0b60]
lea r8d, [rbp + 1]
lea rcx, [0x1400f0c30]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jne 0x14002f2af
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
jne 0x14002f2af
mov rcx, qword [rsi]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
lea edx, [rbp + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002f2c8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140030470
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1401263d8], 0
jne 0x1400305dd
lea rcx, str.Wintrust.dll
mov byte [0x1401263d8], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400304a5
add rsp, 0x20
pop rbx
ret
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x140126370], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x140126378], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x140126380], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x140126388], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x140126390], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x140126398], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
mov qword [0x1401263a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x1401263a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAddCatalog
mov rcx, rbx
mov qword [0x1401263b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminRemoveCatalog
mov rcx, rbx
mov qword [0x1401263c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsCatalogFile
mov rcx, rbx
mov qword [0x1401263c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.crypt32.dll
mov qword [0x1401263d0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CertNameToStrW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401263b8], rax
cmp qword [0x1401263b0], 0
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x14003b980
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rcx, qword [rdx]
xor r12d, r12d
mov r14, r9
mov r15, r8
mov rdi, rdx
test rcx, rcx
je 0x14003b9a6
mov rcx, qword [rcx]
jmp 0x14003b9a9
mov rcx, r12
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003b9fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov ebx, eax
test rcx, rcx
je 0x14003b9f6
call fcn.140009910
mov qword [rdi], r12
mov eax, ebx
jmp 0x14003babf
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbx, qword [rsp + 0x40]
cmp rbx, 0x2000000
jle 0x14003ba33
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003ba29
call fcn.140009910
mov qword [rdi], r12
mov eax, 0xdf
jmp 0x14003babf
mov ecx, ebx
mov qword [rsp + 0x90], rbp
call fcn.1400a82f0
lea r9, [rsp + 0x88]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov qword [rsp + 0x20], r12
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003ba92
mov rcx, rbp
call fcn.1400a82b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov ebx, eax
test rcx, rcx
je 0x14003ba8e
call fcn.140009910
mov qword [rdi], r12
mov eax, ebx
jmp 0x14003bab7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov qword [r15], rbp
mov dword [r14], eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003bab5
call fcn.140009910
mov qword [rdi], r12
xor eax, eax
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14003c090
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r15, r8
mov r13, rdx
mov rsi, rcx
xor edi, edi
mov r12d, edi
mov dword [rax - 0x58], edi
mov qword [rax - 0x50], rdi
lea rax, [rax - 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x13]
lea r8, str.StatusCode
call fcn.14003c300
mov rbx, qword [rsp + 0x38]
test eax, eax
js 0x14003c274
test rbx, rbx
je 0x14003c0f9
mov rdx, qword [rbx]
jmp 0x14003c0fc
mov rdx, rdi
mov rcx, rdi
lea r8, [0x1400db200]
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14003c274
cmp rcx, 4
jne 0x14003c110
nop dword [rax]
mov dword [rsp + 0xa8], edi
lea rdx, [rsp + 0xa8]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14003c26c
mov ecx, dword [rsp + 0xa8]
inc ecx
call fcn.1400a6ff4
mov r14, rax
test rax, rax
je 0x14003c263
mov r8d, dword [rsp + 0xa8]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0xa8]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14003c1aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x14003c232
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400a8e40
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14003c1d9
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, r14
call fcn.1400a6ce0
mov qword [rsi], rax
jmp 0x14003c1dc
mov rsi, rdi
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x14003c258
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400a8e40
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14003c20f
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rax
call fcn.140003e80
mov rbp, rax
jmp 0x14003c212
mov rbp, rdi
test rbp, rbp
je 0x14003c24d
mov rcx, qword [r15]
test rcx, rcx
je 0x14003c227
call fcn.140009910
mov qword [r15], rdi
mov qword [r15], rbp
mov rcx, rsi
call fcn.140009910
mov rcx, r14
call fcn.1400aac28
cmp dword [rsp + 0xa8], 0
jbe 0x14003c2cf
jmp 0x14003c130
mov ecx, 0x8007000e
call fcn.1400a6a90
nop
mov ecx, 0x8007000e
call fcn.1400a6a90
int3
mov dword [rsp + 0xa8], edi
jmp 0x14003c2cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003c2cc
test rbx, rbx
je 0x14003c27e
mov rcx, qword [rbx]
jmp 0x14003c281
mov rcx, rdi
lea rdx, [0x1400db210]
nop dword [rax + rax]
movzx eax, word [rcx + rdi*2]
inc rdi
cmp ax, word [rdx + rdi*2 - 2]
jne 0x14003c2ac
cmp rdi, 4
jne 0x14003c290
mov r12d, 0xe8
jmp 0x14003c2cf
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x14003c2bf
lock inc dword [rbx + 0x10]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14003c3f0
mov r12d, eax
test rbx, rbx
je 0x14003c2dc
mov rcx, rbx
call fcn.140009910
mov eax, r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
Function at 0x14003c300
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
mov esi, r9d
mov rbp, rdx
lea rax, [rsp + 0x30]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14003c370
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14003c370
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14003c3da
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x50], rdi
call fcn.1400a82f0
xor r8d, r8d
mov edx, esi
mov rdi, rax
lea rax, [rsp + 0x30]
mov rcx, rbp
mov r9, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14003c3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14003c3b3
mov ebx, eax
jmp 0x14003c3cb
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14003c3cb
mov rcx, qword [rsp + 0x70]
mov rdx, rdi
call fcn.140004280
mov rcx, rdi
call fcn.1400a82b0
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret

Function at 0x14003c520
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, byte [rsp + 0x68]
mov qword [rsp + 0x28], 0
mov rbx, rcx
mov byte [rcx + 0x30], al
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x20], al
call fcn.140038720
test al, al
jne 0x14003c555
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
lea rcx, [0x1400db1c0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
je 0x14003c5ac
lea rdx, str.www.virustotal.com
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14003c5b8
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx], 0
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14003c5c0
Capabilities:
Prepare http request
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, r9
mov r14, r8
mov r15, rdx
mov r13, rcx
mov rax, qword [rdx]
xor edi, edi
test rax, rax
je 0x14003c608
mov r8, qword [rax]
jmp 0x14003c60b
mov r8, rdi
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.POST
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], 3
mov dword [rsp + 0x7c], 1
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, str.https:__www.virustotal.com
mov rcx, qword [r13]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x14003c683
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea r8, [rsp + 0x48]
lea edx, [r9 + 0xe]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rax, qword [rbx]
test rax, rax
je 0x14003c69e
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c69e
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r12d, eax
jmp 0x14003c6a1
mov r12d, edi
mov rax, qword [rbx]
test rax, rax
je 0x14003c6bb
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c6bb
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebp, eax
jmp 0x14003c6bd
mov ebp, edi
mov rdi, qword [rbx]
test rdi, rdi
je 0x14003c6de
cmp qword [rdi + 8], 0
jne 0x14003c6d8
mov rcx, qword [rdi]
call fcn.1400a6bc0
mov qword [rdi + 8], rax
mov r9, qword [rdi + 8]
jmp 0x14003c6e1
xor r9d, r9d
mov rax, qword [r14]
test rax, rax
je 0x14003c6ee
mov rdx, qword [rax]
jmp 0x14003c6f0
xor edx, edx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14003c736
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14003c736
mov r8, qword [rsp + 0xe0]
mov rdx, rsi
mov rcx, r13
call fcn.14003c090
jmp 0x14003c73c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x14003c75c
call fcn.140009910
xor esi, esi
mov qword [r15], rsi
jmp 0x14003c75e
xor esi, esi
mov rcx, qword [r14]
test rcx, rcx
je 0x14003c76e
call fcn.140009910
mov qword [r14], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c77e
call fcn.140009910
mov qword [rbx], rsi
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003caf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x38]
mov rdi, r9
mov esi, r8d
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cb9b
mov qword [rsp + 0x70], rbx
xor ebx, ebx
test esi, esi
je 0x14003cb8b
nop dword [rax + rax]
lea rdx, [0x1400daec8]
lea rcx, [rsp + 0x40]
mov r8d, ebx
mov dword [rsp + 0x30], 4
call fcn.140038630
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x14003cb40
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x14003cbb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
movsx eax, word [r8]
mov rcx, qword [rcx + 8]
movzx ebx, r9w
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x50]
mov rdi, r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, word [rsp + 0x40]
mov r8d, 0x60
test eax, eax
cmovne cx, bx
mov word [rdi], cx
mov edx, dword [0x140126408]
movsx ecx, cx
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rbx, qword [rsp + 0x48]
mov word [rdi], ax
add rsp, 0x30
pop rdi
ret

Function at 0x14003cc30
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x38]
mov rdi, r9
mov esi, r8d
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003ccfc
mov qword [rsp + 0x70], rbx
xor ebx, ebx
test esi, esi
je 0x14003ccec
nop dword [rax]
lea rdx, [0x1400daec8]
lea rcx, [rsp + 0x40]
mov r8d, ebx
mov dword [rsp + 0x34], 4
call fcn.140038630
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003cce2
movzx ecx, word [rsp + 0x30]
mov edx, dword [0x140126408]
lea r8d, [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov word [rdi], ax
inc ebx
add rdi, 2
cmp ebx, esi
jb 0x14003cc80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x78
pop rdi
pop rsi
ret