joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cc50
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov r14, rdx
mov qword [r11 - 0x40], rdx
xor ebx, ebx
mov qword [r11 - 0x38], rbx
mov rcx, qword [rdx]
mov rax, qword [rcx]
lea r8, [r11 - 0x38]
lea rdx, [0x1800bd280]
call qword [rax]
mov esi, eax
test eax, eax
jns 0x18001ccca
lea rcx, str.GetHtmlContent:_lpDoc2__QueryInterface_IID_IHTMLDocument3___void_lpDoc3__failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001cda1
mov rdx, qword [rcx]
call qword [rdx + select]
jmp 0x18001cda1
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x50]
mov esi, eax
test eax, eax
jns 0x18001ccf7
lea rcx, str.GetHtmlContent:_lpDoc3__get_documentElement_lpElem__failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18001cd7f
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x1f0]
mov esi, eax
test eax, eax
jns 0x18001cd1e
lea rcx, str.GetHtmlContent:_lpElem__get_outerHTML_strHtml__failed_n
jmp 0x18001cd6c
mov rcx, qword [rsp + 0x40]
call fcn.180058de0
mov rdi, rax
test rax, rax
je 0x18001cd61
cmp byte [rax], 0
je 0x18001cd49
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18001cd40
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1800025d0
mov rcx, rdi
call fcn.180059820
jmp 0x18001cd73
or rsi, 0xffffffffffffffff
lea rcx, str.GetHtmlContent:__com_util::ConvertBSTRToString_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18001cd90
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001cda1
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x18001cdaf
mov rax, qword [rcx]
call qword [rax + select]
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x18001eaa0
Capabilities:
Create thread
Print debug messages

Disassembly:
cmp edx, 0xffffffff
jne 0x18001eb89
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x88], 0
mov rbx, rcx
je 0x18001eb84
cmp dword [rcx + 0x8c], 3
jne 0x18001eb84
cmp qword [rcx + 0x70], 0
je 0x18001eb8a
lea rcx, str.notify_tab_changed_from_OnCommandStateChange
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x508
call fcn.180059380
mov rdi, rax
test rax, rax
je 0x18001eb7f
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.180078610
mov dword [rdi], 1
mov rcx, qword [rbx + 0x70]
call fcn.180058de0
mov rbx, rax
test rax, rax
je 0x18001eb36
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180056120
xor eax, eax
lea r8, [0x18001f480]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18001eb65
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001eb72
mov edx, 0x508
mov rcx, rdi
call fcn.180059820
test rbx, rbx
je 0x18001eb7f
mov rcx, rbx
call fcn.180059820
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
lea rcx, str.OnCommandStateChange:_m_curUrl_is_NULL
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x18001eba0
Capabilities:
Create thread
Print debug messages

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov qword [r11 - 0x30], rbp
test r8, r8
je 0x18001ed9d
cmp qword [r8 + 8], rbp
je 0x18001ed9d
mov rcx, qword [rcx + 0x58]
mov rax, qword [rcx]
lea r8, [r11 - 0x30]
lea rdx, [0x1800bd240]
call qword [rax]
test eax, eax
js 0x18001edaa
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x78]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], bpl
lea rcx, [rsp + 0x30]
call fcn.180029cf0
nop
cmp qword [rsp + 0x48], rsi
jne 0x18001ed30
mov rdi, qword [rdi + 8]
mov rcx, qword [rbx + 0x70]
cmp rdi, rcx
je 0x18001ec67
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x18001ec63
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x18001ec67
mov ecx, 0x8007000e
call fcn.180004940
int3
mov qword [rbx + 0x70], rbp
mov rcx, qword [rbx + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x128]
test eax, eax
js 0x18001ed2c
mov r8d, 6
lea rdx, str.about:
mov rcx, qword [rbx + 0x70]
call fcn.180084164
test eax, eax
je 0x18001ed2c
mov ecx, 0x508
call fcn.180059380
mov rdi, rax
test rax, rax
je 0x18001ed2c
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.180078610
mov dword [rdi], ebp
mov rcx, qword [rbx + 0x70]
call fcn.180058de0
mov rsi, rax
test rax, rax
je 0x18001ece5
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180056120
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x18001f480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18001ed12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001ed1f
mov edx, 0x508
mov rcx, rdi
call fcn.180059820
test rsi, rsi
je 0x18001ed2c
mov rcx, rsi
call fcn.180059820
mov qword [rbx + 0x68], rbp
cmp byte [rsp + 0x38], 0
je 0x18001ed9b
mov ecx, 0x80000000
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x18001ed9b
cmp ecx, 0x80000000
jle 0x18001ed9b
mov rax, qword [rsp + 0x30]
lock bts dword [rax], 0x1e
jb 0x18001ed9b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x18001ed91
xor edx, edx
xor ecx, ecx
call fcn.180025ad0
mov rcx, rax
xor eax, eax
lock cmpxchg qword [rdi + 8], rcx
mov rbx, rax
je 0x18001ed8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001ed91
mov rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
jmp 0x18001edaa
lea rcx, str.OnDocumentComplete:_url_is_NULL_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001edba
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001f280
Capabilities:
Create thread
Print debug messages

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov r14d, r8d
mov ebp, edx
mov rbx, rcx
xor eax, eax
mov qword [r11 - 0x18], rax
lea rax, [rcx + 0x78]
mov qword [r11 - 0x20], rax
mov byte [rsp + 0x40], 0
lea rcx, [r11 - 0x20]
call fcn.180029cf0
nop
mov eax, r14d
and eax, 3
cmp al, 3
jne 0x18001f415
mov rcx, qword [rbx + 0x70]
test rcx, rcx
jne 0x18001f2ef
lea rcx, str.OnWindowStateChanged:_m_curUrl_is_NULL
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18001f408
mov eax, dword [rbx + 0x8c]
test eax, eax
je 0x18001f408
cmp dword [rbx + 0x90], 0
je 0x18001f408
cmp eax, 2
jne 0x18001f3e2
cmp ebp, 3
jne 0x18001f3e2
lea r8d, [rax + 4]
lea rdx, str.about:
call fcn.180084164
test eax, eax
je 0x18001f408
mov dword [rbx + 0x88], 1
lea rcx, str.notify_tab_changed_from_OnWindowStateChanged
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x508
call fcn.180059380
mov rdi, rax
test rax, rax
je 0x18001f408
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.180078610
mov dword [rdi], 1
mov rcx, qword [rbx + 0x70]
call fcn.180058de0
mov rsi, rax
test rax, rax
je 0x18001f399
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180056120
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ecx
mov r9, rdi
lea r8, [0x18001f480]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18001f3c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f3d3
mov edx, 0x508
mov rcx, rdi
call fcn.180059820
test rsi, rsi
je 0x18001f408
mov rcx, rsi
call fcn.180059820
jmp 0x18001f408
cmp eax, 3
jne 0x18001f408
cmp ebp, 2
jne 0x18001f408
lea r8d, [rax + 3]
lea rdx, str.about:
call fcn.180084164
test eax, eax
je 0x18001f408
xor ecx, ecx
mov dword [rbx + 0x88], ecx
mov dword [rbx + 0x8c], ebp
mov dword [rbx + 0x90], r14d
cmp byte [rsp + 0x40], 0
je 0x18001f458
mov ecx, 0x80000000
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x18001f458
cmp ecx, 0x80000000
jle 0x18001f458
mov rax, qword [rsp + 0x38]
lock bts dword [rax], 0x1e
jb 0x18001f458
mov rcx, qword [rsp + 0x38]
call fcn.180028f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
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 0x180033860
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r9d, r9d
lea rax, [rsp + 0x10]
mov r11, rcx
mov r8, rdx
lea ecx, [r9 + 4]
nop dword [rax]
nop word [rax + rax]
mov qword [rax], r9
mov qword [rax + 8], r9
mov qword [rax + 0x10], r9
lea rax, [rax + 0x40]
mov qword [rax - 0x28], r9
mov qword [rax - 0x20], r9
mov qword [rax - 0x18], r9
mov qword [rax - 0x10], r9
mov qword [rax - 8], r9
sub rcx, 1
jne 0x1800338b0
add rdx, 2
lea r10, [rsp + 0x10]
sub r10, r8
lea r8d, [rcx + 0x10]
nop dword [rax]
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx - 2]
lea rdx, [rdx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 3]
shl ecx, 8
or ecx, eax
mov dword [r10 + rdx - 6], ecx
sub r8, 1
jne 0x1800338f0
lea r10, [rsp + 0x14]
lea ebx, [r8 + 0x30]
nop word [rax + rax]
mov ecx, dword [r10]
mov r8d, ecx
mov edx, dword [r10 + 0x34]
lea r10, [r10 + 4]
mov eax, ecx
rol r8d, 0xe
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 + 0x1c]
add r8d, dword [r10 - 8]
mov dword [r10 + 0x38], r8d
sub rbx, 1
jne 0x180033930
mov r10d, dword [r11]
lea r13, [0x1800b5b80]
mov edi, dword [r11 + 4]
mov esi, dword [r11 + 8]
mov r15d, dword [r11 + 0xc]
mov ebx, dword [r11 + 0x10]
mov ebp, dword [r11 + 0x14]
mov r14d, dword [r11 + 0x18]
mov r12d, dword [r11 + 0x1c]
nop dword [rax]
mov r8d, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, ebx
mov edx, r10d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, ebx
xor ecx, eax
mov eax, r10d
add r8d, ecx
rol eax, 0xa
add r8d, dword [r9 + r13]
xor edx, eax
add r8d, dword [rsp + r9 + 0x10]
mov eax, r10d
ror eax, 2
add r8d, r12d
xor edx, eax
mov ecx, edi
xor ecx, r10d
mov eax, edi
and eax, r10d
and ecx, esi
xor ecx, eax
mov r12d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, ebx
add r9, 4
lea ebx, [r8 + r15]
mov r15d, esi
mov esi, edi
mov edi, r10d
lea r10d, [rdx + r8]
cmp r9, 0x100
jb 0x1800339a0
add dword [r11], r10d
add dword [r11 + 4], edi
add dword [r11 + 8], esi
add dword [r11 + 0xc], r15d
add dword [r11 + 0x10], ebx
add dword [r11 + 0x14], ebp
add dword [r11 + 0x18], r14d
add dword [r11 + 0x1c], r12d
mov eax, dword [r11]
mov dword [r11], eax
mov eax, dword [r11 + 4]
mov dword [r11 + 4], eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180033a80
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r9d, r9d
lea rax, [rsp + 0x10]
mov r11, rcx
lea ecx, [r9 + 4]
mov qword [rax], r9
mov qword [rax + 8], r9
mov qword [rax + 0x10], r9
lea rax, [rax + 0x40]
mov qword [rax - 0x28], r9
mov qword [rax - 0x20], r9
mov qword [rax - 0x18], r9
mov qword [rax - 0x10], r9
mov qword [rax - 8], r9
sub rcx, 1
jne 0x180033ac0
lea r10, [rsp + 0x10]
sub r10, rdx
lea r8, [rdx + 2]
lea edx, [rcx + 0x10]
nop dword [rax + rax]
movzx eax, byte [r8 - 1]
movzx ecx, byte [r8 - 2]
lea r8, [r8 + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 - 3]
shl ecx, 8
or ecx, eax
mov dword [r10 + r8 - 6], ecx
sub rdx, 1
jne 0x180033b00
lea r10, [rsp + 0x14]
lea ebx, [rdx + 0x30]
nop word [rax + rax]
mov ecx, dword [r10]
mov r8d, ecx
mov edx, dword [r10 + 0x34]
lea r10, [r10 + 4]
mov eax, ecx
rol r8d, 0xe
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 + 0x1c]
add r8d, dword [r10 - 8]
mov dword [r10 + 0x38], r8d
sub rbx, 1
jne 0x180033b40
mov r10d, dword [r11]
lea r13, [0x1800b5b80]
mov edi, dword [r11 + 4]
mov esi, dword [r11 + 8]
mov r15d, dword [r11 + 0xc]
mov ebx, dword [r11 + 0x10]
mov ebp, dword [r11 + 0x14]
mov r14d, dword [r11 + 0x18]
mov r12d, dword [r11 + 0x1c]
nop dword [rax]
mov r8d, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, ebx
mov edx, r10d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, ebx
xor ecx, eax
mov eax, r10d
add r8d, ecx
rol eax, 0xa
add r8d, dword [r9 + r13]
xor edx, eax
add r8d, dword [rsp + r9 + 0x10]
mov eax, r10d
ror eax, 2
add r8d, r12d
xor edx, eax
mov ecx, edi
xor ecx, r10d
mov eax, edi
and eax, r10d
and ecx, esi
xor ecx, eax
mov r12d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, ebx
add r9, 4
lea ebx, [r8 + r15]
mov r15d, esi
mov esi, edi
mov edi, r10d
lea r10d, [rdx + r8]
cmp r9, 0x100
jb 0x180033bb0
add dword [r11], r10d
add dword [r11 + 4], edi
add dword [r11 + 8], esi
add dword [r11 + 0xc], r15d
add dword [r11 + 0x10], ebx
add dword [r11 + 0x14], ebp
add dword [r11 + 0x18], r14d
add dword [r11 + 0x1c], r12d
mov eax, dword [r11]
mov dword [r11], eax
mov eax, dword [r11 + 4]
mov dword [r11 + 4], eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180033f50
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r9
mov rbx, r8
xor eax, eax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
lea r8d, [rax + 0x20]
lea rdx, [0x1800b5b60]
lea rcx, [rbp - 1]
call fcn.180079c20
nop
mov r8, qword [rbp + 0x5f]
mov rdx, qword [rbp + 0x57]
lea rcx, [rbp - 0x29]
call fcn.1800372d0
lea rcx, [rbp - 0x29]
call fcn.18004d9a0
lea r8, [rbp - 1]
mov rdx, rsi
cmp rbx, rdi
je 0x180034009
mov ecx, 3
sub cl, dl
shl cl, 3
mov eax, dword [r8]
shr eax, cl
mov byte [rbx], al
inc rbx
inc rdx
cmp rdx, 4
jb 0x180033fe7
add r8, 4
lea rax, [rbp + 0x1f]
cmp r8, rax
jne 0x180033fe4
lea rcx, [rbp - 0x29]
call fcn.180023960
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x18003cd20
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1800ffcc0], eax
inc eax
cmp eax, 1
jne 0x18003cd6d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800ffcc4], eax
test dil, dil
je 0x18003cd80
xor eax, eax
lock xadd dword [0x1800ffcc4], eax
test eax, eax
jne 0x18003cda4
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x20], eax
call fcn.180077d60
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.18004d5b0
int3
Function at 0x180041180
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x18004132a
cmp byte [rcx + 0x72], 0
je 0x18004132a
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp bx, ax
jne 0x1800411de
xor al, al
jmp 0x18004132c
mov qword [rbp - 0x18], SafeArrayGetLBound
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.1800246f0
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x18004124e
sub eax, 1
jne 0x1800412c2
jmp 0x180041252
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x18004129f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.18008a240
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1800412cf
cmp byte [rdi + 0x72], 0
je 0x1800412d3
test rbx, rbx
jne 0x180041210
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.180003470
jmp 0x180041203
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1800412d3
xor bl, bl
jmp 0x1800412d5
mov bl, 1
cmp r9, 0x10
jb 0x180041325
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x180041320
test byte [rbp - 0x30], 0x1f
je 0x1800412f3
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180041302
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180041311
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x18004131d
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
movzx eax, bl
jmp 0x18004132c
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180047670
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x1800477ad
test r8b, r8b
je 0x1800476ff
test byte [rdx], 8
je 0x1800476ff
mov dword [rsp + 0x40], r15d
call fcn.180077d60
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.180077d60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1800476ff
call fcn.180077d60
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.180077d60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x1800477ad
call fcn.180077d60
cmp qword [rdi + 8], rax
jne 0x180047748
cmp dword [rdi], 0x2733
je 0x18004775b
call fcn.180077d60
cmp qword [rdi + 8], rax
jne 0x1800477a9
cmp dword [rdi], 0x4d5
jne 0x1800477a9
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.180077d60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x1800477c4
mov dword [rsp + 0x30], r15d
call fcn.180077d60
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004a5c0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x18004a604
mov dword [rsp + 0x20], 0x2719
call fcn.180077d60
mov qword [rsp + 0x28], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x18004a658
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.180077d60
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x18004a656
mov dword [rsp + 0x20], esi
call fcn.180077d60
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18004f420
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov rdi, rcx
lea rdx, str.SoftwareMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
lea r8, [rsp + 0x30]
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18004f4f8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.180078610
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x3c], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DownloadPath
mov dword [rsp + 0x38], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18004f4f8
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18004f4d3
lea rax, [rsi - 1]
mov rcx, rdi
cmp rax, r8
lea rdx, [rsp + 0x40]
cmovb r8, rax
call fcn.180089334
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18004f508
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret