joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e5f40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x18012d028]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, qword [0x180132fe8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 8], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov qword [rbx + 0x10], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x30]
sub eax, dword [rsp + 0x20]
mov r8d, 0x104
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov dword [rbx + 0x1c], eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r8d, 0x104
mov qword [rbx + 0x28], rax
lea rdx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x140]
mov r9d, 0x104
mov qword [rbx + 0x30], rax
lea r8, [rsp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea rax, [rsp + 0x250]
mov r8d, 0xd
mov qword [rbx + 0x38], rax
lea rdx, str.GameData::Init___Process_Window_Info_Established_n
mov rcx, qword [0x180132fd8]
call fcn.1800e5500
mov rdi, qword [0x180132ff8]
mov rcx, rdi
call fcn.1800e55b0
test al, al
je 0x1800e60ad
mov rax, qword [0x1801394c8]
lea rdx, [0x1800e5ce0]
mov r8, rdi
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1800e3ef0
test eax, eax
jne 0x1800e6066
lea edx, [rax + 1]
mov rcx, rbx
call fcn.1800e4460
mov rax, qword [0x1801394c8]
lea r8, [rdi + 8]
lea rdx, [fcn.180044d30]
mov rbx, qword [rax + 0x60]
mov rcx, rbx
call fcn.1800e3ef0
test eax, eax
jne 0x1800e6093
lea edx, [rax + 1]
mov rcx, rbx
call fcn.1800e4460
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0xd
lea rdx, str.D3D11Window::Hook_Initialized_n
jmp 0x1800e60ba
mov r8d, 0xc
lea rdx, str.___D3D11Window::Hook_Failed_to_Initialize_n
mov rcx, qword [0x180132fd8]
call fcn.1800e5500
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ecx, ecx
mov qword [0x180131be0], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x87ef700
mov qword [0x180133a08], rax
call fcn.18003efa0
mov rcx, qword [0x180131be0]
lea r8, [0x1801338b0]
add rcx, qword [0x180131be8]
lea rdx, [0x18003ee50]
mov qword [0x1801338b8], rcx
mov qword [0x180131e38], rax
call fcn.1800e3ef0
xor eax, eax
xorps xmm0, xmm0
xor ecx, ecx
mov qword [0x180131e80], rax
movups xmmword [0x180131e70], xmm0
lea edx, [rax + 1]
call fcn.1800e4460
mov rcx, qword [0x180132fd8]
lea rdx, str.Hooking::Hook_Initialized_n
mov r8d, 0xa
call fcn.1800e5500
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1800ed870
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rdi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140623380]
mov dword [rax], 1
mov rax, qword [0x140623390]
mov dword [rax], 1
mov rax, qword [0x1406233a0]
mov dword [rax], 1
mov rax, qword [0x140623370]
mov dword [rax], 1
mov rax, qword [0x140623200]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400021c2
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400021e3
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x140011408
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x140007187
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
sub rsp, 0x150
mov r13, rcx
mov qword [rbp + 0x18], rdx
lea rcx, [rbp - 0x138]
mov rdx, r13
mov qword [rbp + 0x20], r8
mov qword [rbp - 0x138], 0
call fcn.14000642b
test al, al
jne 0x140007209
lea rcx, [0x140637480]
mov edx, 0x30
call fcn.140006261
mov ecx, 0xd
mov r12, rax
lea rax, [0x140637440]
mov qword [r12], rax
lea rax, str.IOError
mov qword [r12 + 0x10], rax
test r13, r13
je 0x140007336
mov rax, qword [r13]
lea rcx, [rax + 0xd]
jmp 0x140007336
mov rax, qword [0x140637430]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x140637430], rax
call sub.msvcrt.dll__setjmp
movsxd r12, eax
mov qword [rbp - 0x128], r12
test r12, r12
jne 0x14000726b
mov r15, qword [rbp - 0x138]
mov rcx, qword [rbp + 0x18]
mov edx, 1
mov r8, qword [rbp + 0x20]
mov r9, r15
call sub.msvcrt.dll_fwrite
mov rcx, r15
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140007285
call fcn.1400017f8
mov rcx, qword [rbp - 0x138]
test rcx, rcx
jne 0x140007322
jmp 0x140007327
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
movsxd rcx, dword [rax]
call fcn.1400067bd
mov r14, rax
call r13
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rcx, rax
call fcn.140006094
mov r13, rax
xor eax, eax
test r14, r14
je 0x1400072b9
mov rax, qword [r14]
test r13, r13
je 0x1400072c2
mov r12, qword [r13]
lea rcx, [r12 + rax + 0xa]
call fcn.140006491
lea rdx, [0x1406229e0]
mov r12, rax
mov rcx, rax
call fcn.140002194
mov rdx, r14
mov rcx, r12
call fcn.1400021ba
lea rdx, [0x1406229c0]
mov rcx, r12
call fcn.140002194
mov rdx, r13
mov rcx, r12
call fcn.1400021ba
lea rdx, [0x1406229a0]
mov rcx, r12
call fcn.140002194
mov rcx, r15
call sub.msvcrt.dll_clearerr
mov rcx, r12
call fcn.140006d91
call sub.msvcrt.dll_fclose
cmp qword [rbp - 0x128], 0
je 0x140007398
call fcn.140006f7e
call fcn.140006491
lea rdx, [0x140622a40]
mov r9, rax
mov rcx, rax
call fcn.140002194
mov rcx, r9
mov rdx, r13
call fcn.1400021ba
mov rdx, r9
lea rcx, [r12 + 0x18]
call fcn.1400051d2
lea rcx, [r12 + 8]
xor edx, edx
call fcn.1400051d2
lea r9, str.io.nim
lea r8, str.writeFile
mov rcx, r12
mov qword [rsp + 0x20], 0x381
lea rdx, str.IOError
call fcn.140006d0b
nop
add rsp, 0x150
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14000a9c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140011b40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140011b40
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14000b5f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14063a1a8]
test eax, eax
je 0x14000b68a
lea rax, [0x14063a180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14063a1b0]
mov qword [rbp - 8], rax
jmp 0x14000b66e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000b662
cmp qword [rbp - 0x10], 0
je 0x14000b662
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000b628
lea rax, [0x14063a180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000b68b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000b790
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000b7b8
mov eax, 0
jmp 0x14000b806
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000b7e1
mov eax, 0
jmp 0x14000b806
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000b801
mov eax, 0
jmp 0x14000b806
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000b80c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000b88a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000b881
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000b881
mov rax, qword [rbp - 8]
jmp 0x14000b89f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000b854
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
in al, 0xc9
lodsb al, byte [rsi]
stosb byte [rdi], al
int3
invalid
sal byte [rsi + 0x14], 0xfa
jns 0x140078d4d
test al, 0x37
lodsd eax, dword [rsi]
stc
fist dword [rsi + rbp*4]
test eax, 0x606e0aa8
mov esi, 0x8f59b49f
xor eax, 0x7beff65f
cmp dl, dh
cmp dword [rsi + 0x51], esi
invalid
sub al, 0xb8
xchg dword [rsi + rdi*8], edi
bnd jle 0x140078d7c
mov ebx, 0x9d954aa0
invalid
retf

Function at 0x140006b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006b98
add rdi, rbx
sub rsi, rbx
je 0x140006bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call fcn.1400017f0
jmp 0x140006b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400365a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001d78
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x48], 0
mov rbx, rcx
je 0x140001d99
xor eax, eax
jmp 0x140001e0f
call fcn.140002930
mov edi, eax
test eax, eax
jne 0x140001e05
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x40]
mov rcx, rbx
cmp byte [rbx + 0x4b], dil
je 0x140001dc3
call fcn.140002058
jmp 0x140001dc8
call fcn.140001ec0
mov edi, eax
test eax, eax
jne 0x140001e05
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x140001def
mov rcx, rbx
call fcn.140001cf0
mov edi, eax
test eax, eax
jne 0x140001e05
dec esi
test esi, esi
jg 0x140001ddb
lea rdx, [0x140007514]
mov r8d, ebp
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x140001e0d
mov rcx, rbx
call fcn.140001e2c
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140001ec0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
xor r9d, r9d
lea r15d, [rbx + 1]
lea r8d, [rbx + 5]
mov edx, ebx
mov ecx, r15d
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140002019
lea r9, [rbp - 0x1c]
lea edx, [rbx + 5]
mov r8d, ebx
mov rcx, rax
mov dword [rbp - 0x1c], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140002019
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
lea r8d, [rbx - 6]
mov edx, 0xffff
mov dword [rbp - 0x20], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x14000202d
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x18], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
cmp byte [rdi + 0x4a], bl
je 0x140001f93
and dword [rbp - 0x14], ebx
jmp 0x140001fa1
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140002005
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140002019
mov rcx, qword [rdi + 0x38]
and dword [rbp - 0x20], 0
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140002019
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14000202d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005300
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140002058
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
lea ebx, [rsi + 6]
lea r12d, [r14 + 0x16]
xor r9d, r9d
mov edx, r14d
mov r8d, ebx
mov ecx, r12d
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400021be
lea r9, [rbp - 0x2c]
mov r8d, r14d
mov edx, ebx
mov rcx, rax
mov dword [rbp - 0x2c], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400021be
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
lea r8d, [r14 - 6]
mov edx, 0xffff
mov dword [rbp - 0x30], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x1400021d2
xor eax, eax
mov word [rbp - 0x26], si
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp byte [rdi + 0x4a], sil
jne 0x140002136
mov byte [rbp - 0x11], r14b
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x28], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x38]
mov r14d, 0x1c
lea rdx, [rbp - 0x28]
mov r8d, r14d
mov word [rbp - 0x26], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400021aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x1400021be
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
lea r8d, [r14 - 0x21]
mov edx, 0xffff
mov dword [rbp - 0x30], esi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400021be
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400021d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005300
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400024c8
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov byte [rcx + 0x4b], 0
call fcn.140001008
mov ebx, eax
test eax, eax
jne 0x14000264f
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002536
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000264f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov byte [rdi + 4], 1
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x14000263f
mov qword [rdi + 0x40], rax
mov eax, 0xa5b8
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov word [rdi + 0x30], ax
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000261e
mov rcx, qword [rsp + 0x38]
lea ebx, [rax + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
lea rdx, str.Port
xor r8d, r8d
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400025de
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x1400025de
mov word [rdi + 0x30], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, str.UseIPV6
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000261e
cmp dword [rsp + 0x44], eax
je 0x14000261e
mov byte [rdi + 0x4b], 1
call fcn.140003d24
mov ebx, eax
test eax, eax
jne 0x14000264f
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140002648
call fcn.1400058e8
mov ebx, eax
jmp 0x14000264f
call sub.webengine4.dll_PerfCounterInitialize
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000265f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140005300
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000279c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov byte [rcx + 0x10], dil
call fcn.140002870
lea r8, [0x140002afc]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400027e1
call fcn.1400058e8
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002870
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x68]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
and qword [rsp + 0x68], rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 0xf]
test eax, eax
jne 0x1400028e8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.SocketTimeout
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400028f8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002908
mov eax, dword [rsp + 0x58]
test eax, eax
cmovle eax, esi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x20], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002918
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000291f
mov dword [rdi + 0x20], esi
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002930
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
and qword [r11 + 0x20], rbx
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400029a6
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea rdx, str.AllowRemoteConnection
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400029b6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400029c0
cmp dword [rsp + 0x50], ebx
setne al
mov byte [rdi + 0x4a], al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400029d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400029da
mov byte [rdi + 0x4a], 0
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret