joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180026204
Capabilities:
Set http header

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x18008f230]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r8
mov rbx, rcx
xor esi, esi
cmp qword [rdx + 0x10], rsi
je 0x180026328
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], si
lea rax, [rbp - 0x28]
cmp rax, rdx
je 0x18002625f
lea rcx, [rbp - 0x28]
call fcn.180024b00
lea rdx, [0x180073a44]
lea rcx, [rbp - 0x28]
call fcn.18000598c
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.18000bc54
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r9d, 0xa0000000
mov r8d, dword [rbp - 0x18]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1800262c6
lea rcx, [rbp - 0x28]
call fcn.180005f20
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180040cc0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rax, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rax
je 0x180026300
test byte [rcx + 0x1c], 1
je 0x180026300
mov edx, 0x20
mov r9d, ebx
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rbp - 0x48]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rbp - 0x48]
call fcn.1800425b8
nop
lea rax, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rax
je 0x180026356
test byte [rcx + 0x1c], 1
je 0x180026356
mov edx, 0x1f
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001310
mov edx, 0x80070057
lea rcx, [rbp - 0x48]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rbp - 0x48]
call fcn.1800425b8
int3
Function at 0x180026940
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r15, r8
mov r12, rdx
mov rdi, rcx
test rcx, rcx
jne 0x180026978
xor ebx, ebx
and qword [rbp + 0x30], rbx
jmp 0x18002699d
mov rax, qword [rcx + 0x38]
movsxd rcx, dword [rax + 8]
lea rbx, [rdi + 0x38]
add rbx, rcx
mov qword [rbp + 0x30], rbx
je 0x18002699d
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180062b2e.0]
nop
cmp dword [rdi + 0xa4], 0
je 0x180026a94
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
and qword [rbp - 0x40], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xor esi, esi
mov rdx, r15
sub rdx, rsi
lea r8, [rbp - 0x40]
mov rcx, rdi
call fcn.180026f98
add rsi, rax
xor r14d, r14d
test rax, rax
setne r14b
test rax, rax
je 0x1800269ec
cmp rsi, r15
jb 0x1800269c3
mov rdx, r12
lea rcx, [rbp - 0x40]
call fcn.180028bbc
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp - 0x50]
call fcn.180039670
mov dword [rdi + 0xc0], eax
xor r14d, 1
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180026a5c
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180026a4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026a8e
call fcn.180040d20
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
and qword [rbp - 0x30], 0
test rbx, rbx
je 0x180026a72
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx + 0x10]
call qword [case.0x180062b2e.0]
nop
mov eax, r14d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18004afbc
nop
mov edx, 0x8007139f
lea rcx, [rbp - 0x28]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rbp - 0x28]
call fcn.1800425b8
int3
Function at 0x180026ac0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r8
mov r15, rdx
mov rdi, rcx
test rcx, rcx
jne 0x180026af8
xor ebx, ebx
and qword [rbp + 0x30], rbx
jmp 0x180026b1d
mov rax, qword [rcx + 0x38]
movsxd rcx, dword [rax + 8]
lea rbx, [rdi + 0x38]
add rbx, rcx
mov qword [rbp + 0x30], rbx
je 0x180026b1d
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180062b2e.0]
nop
cmp dword [rdi + 0xa4], 0
je 0x180026c1d
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
and qword [rbp - 0x40], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xor esi, esi
mov rdx, r12
sub rdx, rsi
lea r8, [rbp - 0x40]
mov rcx, rdi
call fcn.180026f98
add rsi, rax
xor r14d, r14d
test rax, rax
setne r14b
test rax, rax
je 0x180026b6c
cmp rsi, r12
jb 0x180026b43
lea rax, [rbp - 0x40]
cmp r15, rax
je 0x180026b81
lea rdx, [rbp - 0x40]
mov rcx, r15
call fcn.180027bfc
lea rcx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp - 0x50]
call fcn.180039670
mov dword [rdi + 0xc0], eax
xor r14d, 1
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180026be5
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180026bd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026c17
call fcn.180040d20
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
and qword [rbp - 0x30], 0
test rbx, rbx
je 0x180026bfb
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx + 0x10]
call qword [case.0x180062b2e.0]
nop
mov eax, r14d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18004afbc
nop
mov edx, 0x8007139f
lea rcx, [rbp - 0x28]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rbp - 0x28]
call fcn.1800425b8
int3
Function at 0x180026f98
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.180062b80
sub rsp, rax
mov rax, qword [0x18008f230]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov r15, rdx
mov r14, rcx
mov rcx, qword [rcx + 0x48]
lea rdx, [rsp + 0x24]
xor ebx, ebx
mov rsi, r8
mov dword [rsp + 0x24], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1800270cd
mov ecx, ebx
mov dword [rsp + 0x20], ebx
cmp dword [rsp + 0x24], ebx
jbe 0x18002709f
mov edx, 0x1000
lea rdi, [rbp - 0x80]
mov ecx, edx
lea r9, [rsp + 0x20]
xor eax, eax
cmp r15, rdx
rep stosb byte [rdi], al
mov rcx, qword [r14 + 0x48]
cmovb edx, r15d
mov r8d, edx
lea rdx, [rbp - 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180027130
mov ecx, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
mov edx, ecx
sub rdx, qword [rsi]
add rdx, qword [rsi + 8]
sub rax, qword [rsi]
cmp rdx, rax
jbe 0x18002706b
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x1800270c7
lfence
mov rcx, rsi
call fcn.180027d20
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x18002709f
mov rdx, qword [rsi + 8]
lea r8, [rbp - 0x80]
mov eax, ebx
add r8, rax
cmp qword [rsi + 0x10], rdx
je 0x18002708d
mov al, byte [r8]
mov byte [rdx], al
inc qword [rsi + 8]
jmp 0x180027095
mov rcx, rsi
call fcn.180027f3c
mov ecx, dword [rsp + 0x20]
inc ebx
cmp ebx, ecx
jb 0x18002706f
mov eax, ecx
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.180040cc0
mov rbx, qword [rsp + 0x10d8]
add rsp, 0x1090
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18000bd78
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x18008d218]
lea rdx, [0x18008d218]
cmp rcx, rdx
je 0x180027106
test byte [rcx + 0x1c], 1
je 0x180027106
mov rcx, qword [rcx + 0x10]
lea r8, [0x180073ab8]
mov edx, 0x2b
mov r9d, eax
call fcn.180001330
movzx edx, di
lea rcx, [rsp + 0x38]
or edx, 0x80070000
test edi, edi
cmovle edx, edi
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0x38]
call fcn.1800425b8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x18008d218]
lea rdx, [0x18008d218]
cmp rcx, rdx
je 0x180027169
test byte [rcx + 0x1c], 1
je 0x180027169
mov rcx, qword [rcx + 0x10]
lea r8, [0x180073ab8]
mov edx, 0x2c
mov r9d, eax
call fcn.180001330
movzx edx, di
lea rcx, [rsp + 0x58]
or edx, 0x80070000
test edi, edi
cmovle edx, edi
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0x58]
call fcn.1800425b8
int3
Function at 0x1800279c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x50]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x18008d218]
lea r14, [0x18008d218]
cmp rcx, r14
je 0x180027a29
test byte [rcx + 0x1c], 4
je 0x180027a29
mov rcx, qword [rsp + 0x50]
call fcn.1800395c8
mov rcx, qword [0x18008d218]
lea r8, [0x180073ab8]
mov edx, 0x3a
mov dword [rsp + 0x20], edi
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1800028e4
cmp dword [rbx + 0xd8], 0xffffffff
jne 0x180027a42
mov rcx, qword [rsp + 0x50]
call fcn.1800395c8
mov dword [rbx + 0xd8], eax
test dword [rbx + 0xb0], 0x800000
je 0x180027b24
mov rcx, rbx
call fcn.180025304
test al, 1
je 0x180027b24
mov rax, qword [0x1800910c4]
mov ecx, 0x60002
cmp eax, ecx
jae 0x180027a76
xor eax, eax
jmp 0x180027a7b
mov eax, 1
test eax, eax
je 0x180027b24
cmp dword [rbx + 0xa8], 0
jne 0x180027b24
mov rsi, qword [rbx + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rsi
call fcn.180027564
lea rcx, [rsp + 0x58]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x18008d218]
cmp rax, r14
je 0x180027af8
test byte [rax + 0x1c], 4
je 0x180027af8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.180039670
mov rcx, qword [0x18008d218]
lea r8, [0x180073ab8]
mov edx, 0x3b
mov dword [rsp + 0x20], eax
mov r9d, edi
mov rcx, qword [rcx + 0x10]
call fcn.1800028e4
test edi, edi
jns 0x180027b1a
lfence
mov edi, 0x2f0d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, rsi
mov dword [rbx + 0xa0], edi
call fcn.18002b0b0
mov dword [rbx + 0xa8], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x180028614
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x60]
mov rdi, rcx
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180062b2e.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x180062b2e.0]
lea r9, [rax + 0x28]
cmp qword [r9 + 0x18], 8
jb 0x180028652
mov r9, qword [r9]
lea r8, [rax + 8]
cmp qword [r8 + 0x18], 8
jb 0x180028660
mov r8, qword [r8]
lea rcx, [rdi + 0x78]
cmp qword [rcx + 0x18], 8
jb 0x18002866e
mov rcx, qword [rcx]
mov edx, dword [rax]
and dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
je 0x180028695
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
jmp fcn.18002afe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x1800286ce
test byte [rcx + 0x1c], 1
je 0x1800286ce
mov rcx, qword [rcx + 0x10]
lea r8, [0x180073ad8]
mov edx, 0xa
mov r9d, ebx
call fcn.180001330
movzx edx, bx
lea rcx, [rsp + 0x30]
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0x30]
call fcn.1800425b8
int3
Function at 0x1800301f0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x180030290
call fcn.180035b20
mov ebx, eax
test eax, eax
jns 0x180030290
cmp eax, 0x800700ea
jne 0x18003028a
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
and qword [rsp + 0x40], 0
call fcn.180013424
mov ebx, eax
test eax, eax
jns 0x18003024d
mov rcx, qword [rsp + 0x40]
jmp 0x180030280
mov rdi, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x18003027a
call fcn.180035b20
mov ebx, eax
test rdi, rdi
je 0x18003028a
mov rcx, rdi
jmp 0x180030285
mov rcx, qword [rsi]
mov qword [rsi], rdi
test rcx, rcx
je 0x18003028a
call fcn.180040d20
test ebx, ebx
jns 0x1800302d0
jmp 0x180030295
mov ebx, 0x8000ffff
mov rax, qword [0x18008d218]
lea rcx, [0x18008d218]
cmp rax, rcx
je 0x1800302d0
test byte [rax + 0x1c], 1
je 0x1800302d0
lfence
mov rcx, qword [0x18008d218]
lea r8, [0x180074378]
mov edx, 0xf
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
call fcn.180001330
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180030db0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rcx], 0
mov r14, rcx
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call fcn.180030fb4
mov rbx, qword [rsp + 0x48]
mov esi, eax
test eax, eax
js 0x180030f78
cmp qword [rbx + 0x10], 0
mov esi, 0x80004005
jne 0x180030f78
and qword [rsp + 0x40], 0
lea rdx, str.Wevtapi.dll
lea rcx, [rsp + 0x40]
call fcn.18003807c
mov esi, eax
test eax, eax
jns 0x180030e1a
mov rcx, qword [rsp + 0x40]
jmp 0x180030f3f
mov rdi, qword [rsp + 0x40]
lea rdx, str.EvtQuery
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x180030e4a
mov dl, 1
lea rcx, str.EvtQuery
call fcn.180036120
mov esi, eax
jmp 0x180030e4c
xor esi, esi
test esi, esi
jns 0x180030e61
test rdi, rdi
je 0x180030f4a
mov rcx, rdi
jmp 0x180030f44
lea rdx, str.EvtClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x180030e8c
mov dl, 1
lea rcx, str.EvtClose
call fcn.180036120
mov esi, eax
jmp 0x180030e8e
xor esi, esi
test esi, esi
js 0x180030e50
lea rdx, str.EvtNext
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x180030ebd
mov dl, 1
lea rcx, str.EvtNext
call fcn.180036120
mov esi, eax
jmp 0x180030ebf
xor esi, esi
test esi, esi
js 0x180030e50
lea rdx, str.EvtCreateRenderContext
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x180030eee
mov dl, 1
lea rcx, str.EvtCreateRenderContext
call fcn.180036120
mov esi, eax
jmp 0x180030ef0
xor esi, esi
test esi, esi
js 0x180030e50
lea rdx, str.EvtRender
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x180030f23
mov dl, 1
lea rcx, str.EvtRender
call fcn.180036120
mov esi, eax
jmp 0x180030f25
xor esi, esi
test esi, esi
js 0x180030e50
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], rcx
mov qword [rbx + 0x10], rdi
test rcx, rcx
je 0x180030f4a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jns 0x180030f69
and qword [rbx + 0x18], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
and qword [rbx + 0x30], 0
and qword [rbx + 0x38], 0
jmp 0x180030f78
mov rax, rbx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
xor esi, esi
mov qword [r14], rax
test rbx, rbx
je 0x180030fa4
or ecx, 0xffffffff
lock xadd dword [rbx + 8], ecx
sub ecx, 1
jg 0x180030fa4
lfence
mov rcx, qword [rsp + 0x48]
mov edx, 1
mov r8, qword [rcx]
mov rax, qword [r8 + 0x10]
call qword [case.0x180062b2e.0]
mov rbx, qword [rsp + 0x58]
mov eax, esi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180031264
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r15b, r8b
mov rbx, rcx
xor edi, edi
test rdx, rdx
je 0x1800313f7
lea rsi, [rcx + 0x20]
cmp qword [rsi], rdi
jne 0x1800313f7
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1800313ce
add rbx, 0x18
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800312d9
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x180062b2e.0]
mov qword [rbx], rdi
mov qword [rsp + 0x20], rbx
lea r9, [0x180078958]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x180078968]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lfence
test eax, eax
js 0x1800313db
mov r14, qword [rbx]
mov rax, qword [r14]
mov r12, qword [rax + 0x18]
mov rcx, qword [rsi]
test rcx, rcx
je 0x180031325
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x180062b2e.0]
mov qword [rsi], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
mov rcx, r14
mov rax, r12
call qword [case.0x180062b2e.0]
test eax, eax
js 0x1800313e2
test r15b, r15b
je 0x18003139e
lfence
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 7]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1800313ec
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
jmp 0x1800313b1
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lfence
mov ecx, 0x8007000e
call fcn.1800358d8
mov ecx, eax
call fcn.1800358d8
lfence
mov ecx, eax
call fcn.1800358d8
lfence
mov ecx, eax
call fcn.1800358d8
nop
mov ecx, 0x80070057
call fcn.1800358d8
int3
Function at 0x180035a38
Capabilities:
Parse pe header

Disassembly:
test cx, cx
jne 0x180035b1c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
mov rdi, rcx
cmp word [rcx], ax
jne 0x180035b12
test byte [rcx + 0x3c], 3
jne 0x180035b12
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180035b12
cmp dword [rdx + 0x84], 6
jb 0x180035b12
mov r8d, dword [rdx + 0x50]
mov r9d, dword [rdx + 0xb8]
lea eax, [r8 - 1]
lea ecx, [r9 - 1]
cmp ecx, eax
jae 0x180035b12
mov ecx, dword [rdx + 0xbc]
mov eax, r8d
sub eax, r9d
cmp ecx, eax
ja 0x180035b12
movabs rax, 0x2492492492492493
lea r10, [rdi + r9]
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 4
test ecx, ecx
je 0x180035b12
dec ecx
mov eax, ecx
imul rbx, rax, 0x1c
add rbx, r10
cmp dword [rbx + 0xc], 2
jne 0x180035acb
cmp dword [rbx + 0x14], r8d
jae 0x180035acb
mov eax, r8d
sub eax, dword [rbx + 0x14]
cmp dword [rbx + 0x10], eax
ja 0x180035acb
mov edx, 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
je 0x180035b12
mov ecx, dword [rbx + 0x14]
mov edx, dword [rbx + 0x10]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180035d7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp rax, rdx
je 0x180035da5
mov eax, 0x80070057
jmp 0x180035e2e
mov r8d, edx
jmp 0x180035dc5
mov eax, dword [rsp + 0x48]
cmp eax, ebx
je 0x180035e2c
test eax, eax
je 0x180035e25
cmp eax, ebx
ja 0x180035e25
sub ebx, eax
mov rcx, rsi
add rdi, rax
mov r8d, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
and dword [rsp + 0x48], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180035daa
call fcn.180035b20
mov ebx, eax
test ebx, ebx
jns 0x180035e2c
lfence
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180035e21
test byte [rcx + 0x1c], 1
je 0x180035e21
mov rcx, qword [rcx + 0x10]
lea r8, [0x180078108]
mov edx, 0xf
mov r9d, ebx
call fcn.180001330
mov eax, ebx
jmp 0x180035e2e
mov ebx, 0x8000ffff
jmp 0x180035de9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180035e40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, dword [rdx]
mov r10, r8
mov rbx, rdx
cmp rdi, qword [rdx]
je 0x180035e61
mov eax, 0x80070057
jmp 0x180035ee4
and qword [rdx], 0
lea r9, [rsp + 0x48]
and dword [rsp + 0x48], 0
mov rdx, r10
and qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180035ece
call fcn.180035b20
mov edi, eax
cmp eax, 0x80070026
jne 0x180035e99
and qword [rbx], 0
jmp 0x180035ee2
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180035eca
test byte [rcx + 0x1c], 1
je 0x180035eca
mov rcx, qword [rcx + 0x10]
lea r8, [0x180078108]
mov edx, 0x12
mov r9d, edi
call fcn.180001330
mov eax, edi
jmp 0x180035ee4
cmp dword [rsp + 0x48], edi
jbe 0x180035edb
mov eax, 0x8000ffff
jmp 0x180035ee4
mov eax, dword [rsp + 0x48]
mov qword [rbx], rax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180036e70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [r9]
mov rdi, r9
mov eax, r15d
mov r12, r8
mov dword [rsp + 0x78], eax
mov rbp, rdx
cmp rax, r15
je 0x180036ea8
mov ebx, 0x80070057
jmp 0x180036fe5
mov r14, qword [rsp + 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9, r12
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x180036f30
test r14, r14
je 0x180036ef8
mov eax, dword [rsp + 0x78]
cmp rax, qword [rdi]
jbe 0x180036ef8
mov qword [rdi], rax
mov ebx, 0x800700ea
jmp 0x180036fe5
mov eax, dword [rsp + 0x78]
mov qword [rdi], rax
lfence
mov r8d, dword [r12]
mov r9, rdi
mov rdx, r15
mov qword [rsp + 0x20], r14
mov rcx, rbp
call fcn.180036d8c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ebx, 0x80070002
cmp esi, ebx
jne 0x180036f7e
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180036fe5
test byte [rcx + 0x1c], 4
je 0x180036fe5
lfence
mov rcx, qword [0x18008d218]
lea r8, [0x180078208]
mov edx, 0x15
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.180001364
jmp 0x180036fe5
mov ebx, 0x800700ea
cmp esi, ebx
je 0x180036fca
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180036fc6
test byte [rcx + 0x1c], 1
je 0x180036fc6
lfence
mov rcx, qword [0x18008d218]
lea r8, [0x180078208]
mov edx, 0x16
mov dword [rsp + 0x20], esi
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.1800013c4
mov ebx, esi
jmp 0x180036fdd
mov eax, dword [rsp + 0x78]
cmp qword [rdi], rax
jb 0x180036fda
mov ebx, 0x8000ffff
jmp 0x180036fe5
mov qword [rdi], rax
test ebx, ebx
jns 0x180036eff
lfence
mov eax, ebx
jmp 0x180036f19