joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011d30
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 [0x1800ad0e0]
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, [0x180083208]
call qword [rax]
mov esi, eax
test eax, eax
jns 0x180011daa
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 0x180011e81
mov rdx, qword [rcx]
call qword [rdx + select]
jmp 0x180011e81
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 0x180011dd7
lea rcx, str.GetHtmlContent:_lpDoc3__get_documentElement_lpElem__failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180011e5f
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 0x180011dfe
lea rcx, str.GetHtmlContent:_lpElem__get_outerHTML_strHtml__failed_n
jmp 0x180011e4c
mov rcx, qword [rsp + 0x40]
call fcn.180046580
mov rdi, rax
test rax, rax
je 0x180011e41
cmp byte [rax], 0
je 0x180011e29
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180011e20
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1800024c0
mov rcx, rdi
call fcn.18004736c
jmp 0x180011e53
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 0x180011e70
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180011e81
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x180011e8f
mov rax, qword [rcx]
call qword [rax + select]
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x180012b50
Capabilities:
Create thread
Print debug messages

Disassembly:
cmp edx, 0xffffffff
jne 0x180012c39
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x88], 0
mov rbx, rcx
je 0x180012c34
cmp dword [rcx + 0x8c], 3
jne 0x180012c34
cmp qword [rcx + 0x70], 0
je 0x180012c3a
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.180046b20
mov rdi, rax
test rax, rax
je 0x180012c2f
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.18004c910
mov dword [rdi], 1
mov rcx, qword [rbx + 0x70]
call fcn.180046580
mov rbx, rax
test rax, rax
je 0x180012be6
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180044400
xor eax, eax
lea r8, [0x180013530]
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 0x180012c15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180012c22
mov edx, 0x508
mov rcx, rdi
call fcn.18004736c
test rbx, rbx
je 0x180012c2f
mov rcx, rbx
call fcn.18004736c
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 0x180012c50
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 [0x1800ad0e0]
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 0x180012e4d
cmp qword [r8 + 8], rbp
je 0x180012e4d
mov rcx, qword [rcx + 0x58]
mov rax, qword [rcx]
lea r8, [r11 - 0x30]
lea rdx, [0x1800831d8]
call qword [rax]
test eax, eax
js 0x180012e5a
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.180019d60
nop
cmp qword [rsp + 0x48], rsi
jne 0x180012de0
mov rdi, qword [rdi + 8]
mov rcx, qword [rbx + 0x70]
cmp rdi, rcx
je 0x180012d17
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x180012d13
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x180012d17
mov ecx, 0x8007000e
call fcn.180004810
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 0x180012ddc
mov r8d, 6
lea rdx, str.about:
mov rcx, qword [rbx + 0x70]
call fcn.1800582b8
test eax, eax
je 0x180012ddc
mov ecx, 0x508
call fcn.180046b20
mov rdi, rax
test rax, rax
je 0x180012ddc
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.18004c910
mov dword [rdi], ebp
mov rcx, qword [rbx + 0x70]
call fcn.180046580
mov rsi, rax
test rax, rax
je 0x180012d95
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180044400
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x180013530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180012dc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180012dcf
mov edx, 0x508
mov rcx, rdi
call fcn.18004736c
test rsi, rsi
je 0x180012ddc
mov rcx, rsi
call fcn.18004736c
mov qword [rbx + 0x68], rbp
cmp byte [rsp + 0x38], 0
je 0x180012e4b
mov ecx, 0x80000000
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x180012e4b
cmp ecx, 0x80000000
jle 0x180012e4b
mov rax, qword [rsp + 0x30]
lock bts dword [rax], 0x1e
jb 0x180012e4b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x180012e41
xor edx, edx
xor ecx, ecx
call fcn.1800177f0
mov rcx, rax
xor eax, eax
lock cmpxchg qword [rdi + 8], rcx
mov rbx, rax
je 0x180012e3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180012e41
mov rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
jmp 0x180012e5a
lea rcx, str.OnDocumentComplete:_url_is_NULL_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180012e6a
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013330
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.180019d60
nop
mov eax, r14d
and eax, 3
cmp al, 3
jne 0x1800134c5
mov rcx, qword [rbx + 0x70]
test rcx, rcx
jne 0x18001339f
lea rcx, str.OnWindowStateChanged:_m_curUrl_is_NULL
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800134b8
mov eax, dword [rbx + 0x8c]
test eax, eax
je 0x1800134b8
cmp dword [rbx + 0x90], 0
je 0x1800134b8
cmp eax, 2
jne 0x180013492
cmp ebp, 3
jne 0x180013492
lea r8d, [rax + 4]
lea rdx, str.about:
call fcn.1800582b8
test eax, eax
je 0x1800134b8
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.180046b20
mov rdi, rax
test rax, rax
je 0x1800134b8
xor edx, edx
mov r8d, 0x508
mov rcx, rax
call fcn.18004c910
mov dword [rdi], 1
mov rcx, qword [rbx + 0x70]
call fcn.180046580
mov rsi, rax
test rax, rax
je 0x180013449
lea rcx, [rdi + 4]
mov r8, rax
mov edx, 0x400
call fcn.180044400
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ecx
mov r9, rdi
lea r8, [0x180013530]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180013476
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180013483
mov edx, 0x508
mov rcx, rdi
call fcn.18004736c
test rsi, rsi
je 0x1800134b8
mov rcx, rsi
call fcn.18004736c
jmp 0x1800134b8
cmp eax, 3
jne 0x1800134b8
cmp ebp, 2
jne 0x1800134b8
lea r8d, [rax + 3]
lea rdx, str.about:
call fcn.1800582b8
test eax, eax
je 0x1800134b8
xor ecx, ecx
mov dword [rbx + 0x88], ecx
mov dword [rbx + 0x8c], ebp
mov dword [rbx + 0x90], r14d
cmp byte [rsp + 0x40], 0
je 0x180013508
mov ecx, 0x80000000
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x180013508
cmp ecx, 0x80000000
jle 0x180013508
mov rax, qword [rsp + 0x38]
lock bts dword [rax], 0x1e
jb 0x180013508
mov rcx, qword [rsp + 0x38]
call fcn.1800195d0
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 0x180022f60
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 [0x1800ad0e0]
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 0x180022fb0
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 0x180022ff0
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 0x180023030
mov r10d, dword [r11]
lea r13, [0x18007c9a0]
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 0x1800230a0
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.180046a00
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 0x180023180
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 [0x1800ad0e0]
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 0x1800231c0
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 0x180023200
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 0x180023240
mov r10d, dword [r11]
lea r13, [0x18007c9a0]
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 0x1800232b0
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.180046a00
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 0x180023650
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 [0x1800ad0e0]
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, [0x18007c980]
lea rcx, [rbp - 1]
call fcn.18004df20
nop
mov r8, qword [rbp + 0x5f]
mov rdx, qword [rbp + 0x57]
lea rcx, [rbp - 0x29]
call fcn.1800262a0
lea rcx, [rbp - 0x29]
call fcn.18003cd80
lea r8, [rbp - 1]
mov rdx, rsi
cmp rbx, rdi
je 0x180023709
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 0x1800236e7
add r8, 4
lea rax, [rbp + 0x1f]
cmp r8, rax
jne 0x1800236e4
lea rcx, [rbp - 0x29]
call fcn.180036510
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002c110
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1800b89c0], eax
inc eax
cmp eax, 1
jne 0x18002c15d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1800b89c4], eax
test dil, dil
je 0x18002c170
xor eax, eax
lock xadd dword [0x1800b89c4], eax
test eax, eax
jne 0x18002c194
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180046a00
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.18004c8b0
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.18003c900
int3
Function at 0x180037580
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 [0x1800ad0e0]
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 0x1800376bd
test r8b, r8b
je 0x18003760f
test byte [rdx], 8
je 0x18003760f
mov dword [rsp + 0x40], r15d
call fcn.18004c8b0
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.18004c8b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x18003760f
call fcn.18004c8b0
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.18004c8b0
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 0x1800376bd
call fcn.18004c8b0
cmp qword [rdi + 8], rax
jne 0x180037658
cmp dword [rdi], 0x2733
je 0x18003766b
call fcn.18004c8b0
cmp qword [rdi + 8], rax
jne 0x1800376b9
cmp dword [rdi], 0x4d5
jne 0x1800376b9
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.18004c8b0
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 0x1800376d4
mov dword [rsp + 0x30], r15d
call fcn.18004c8b0
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.180046a00
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180039960
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 0x1800399a4
mov dword [rsp + 0x20], 0x2719
call fcn.18004c8b0
mov qword [rsp + 0x28], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x1800399f8
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.18004c8b0
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 0x1800399f6
mov dword [rsp + 0x20], esi
call fcn.18004c8b0
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 0x18003e6e0
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 [0x1800ad0e0]
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 0x18003e7b8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.18004c910
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 0x18003e7b8
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18003e793
lea rax, [rsi - 1]
mov rcx, rdi
cmp rax, r8
lea rdx, [rsp + 0x40]
cmovb r8, rax
call fcn.18005ca70
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18003e7c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180046a00
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18003ecd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx + 0x18], setsockopt
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 0x10
jb 0x18003ed2a
mov rax, qword [rcx]
jmp 0x18003ed2d
mov rax, rdi
mov byte [rax], bl
mov r8d, 6
lea rdx, str.unknow
call fcn.1800024c0
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], setsockopt
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x58], 0
mov r8d, 0x24
lea rdx, [0x180080240]
lea rcx, [rsp + 0x58]
call fcn.1800024c0
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x18003ee18
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x80]
call fcn.18004c910
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x50], 0x400
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18003ee18
cmp byte [rbp - 0x80], al
je 0x18003ee09
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18003ee00
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1800024c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18003ee29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x18003ee81
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003ee7c
test cl, 0x1f
je 0x18003ee4f
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003ee5e
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003ee6d
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x18003ee79
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.180046a00
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret