joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e5c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x500
mov rax, qword [0x180025450]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000e6a7
test rax, rax
je 0x18000e6a7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x18000e6d9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x518], rsi
mov dword [rsp + 0x50], 0x100001
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000e69c
nop word [rax + rax]
mov rcx, qword [rsp + 0x118]
cmp rcx, rdi
jb 0x18000e69c
lea rax, [rdi + rbp]
cmp rcx, rax
jae 0x18000e69c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 3
jge 0x18000e6cc
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc esi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18000e650
mov rax, rbx
mov rsi, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180010a70
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000e69f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000e6a7

Function at 0x18000e6f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180052bf0], edi
jbe 0x18000e765
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov rcx, qword [0x180052be8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180052be8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rbx, 8
cmp edi, dword [0x180052bf0]
jb case.default.0x18000e79b
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x180052be8]
call fcn.180011d08
mov qword [0x180052be8], 0
mov dword [0x180052bf0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov rcx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
add byte [rax], al
add byte [rax], al
add byte [rax], al
and byte [rax], al
add byte [rbx + 0x20], al
add byte [rax], al
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x18000f080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
lea r13, [0x1800528d0]
cmp dword [0x180052be0], esi
jne 0x18000f0c8
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
mov r8d, 0x200
mov rcx, r13
call fcn.180015840
mov dword [0x180052be0], 1
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r11d, r11d
mov rcx, r13
nop dword [rax + rax]
mov rbx, qword [rcx]
test rbx, rbx
je 0x18000f0f1
lea rax, [rbx + 0x38]
cmp rax, qword [rdi]
je 0x18000f103
inc r11d
add rcx, 8
cmp r11d, 0x40
jb 0x18000f0e0
jmp 0x18000f1dd
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x50], rbp
call fcn.18000e7b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x58]
mov r9d, 0x40
mov rcx, rbp
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000f1d3
mov rcx, qword [rbx]
xor edx, edx
cmp dword [rbx + 8], edx
jbe 0x18000f173
mov r8, rbx
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx + 0x58]
inc edx
inc rcx
mov byte [rcx - 1], al
cmp edx, dword [rbx + 8]
jb 0x18000f160
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8d, dword [rbx + 8]
mov r9d, dword [rsp + 0x58]
mov rdx, qword [rbx]
lea rax, [rsp + 0x58]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r11, qword [rbx]
mov qword [rdi], r11
mov esi, 1
xor eax, eax
mov rcx, r13
cmp qword [rcx], rbx
je 0x18000f1c4
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x18000f1b2
jmp 0x18000f1d3
dec dword [0x180052be4]
mov qword [r13 + rax*8], 0
call fcn.18000e6f0
mov rbp, qword [rsp + 0x50]
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x18001244f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180025450]
jne 0x180010a8a
rol rcx, 0x10
test cx, 0xffff
jne 0x180010a86
repz ret
ror rcx, 0x10
jmp 0x1800123a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800518b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800519a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001242d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800518b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001244f
mov rax, qword [rsp + 0x88]
mov qword [0x1800519a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180051948], rax
mov rax, qword [0x1800519a8]
mov qword [0x180051820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180051930], rax
mov dword [0x180051810], 0xc0000409
mov dword [0x180051814], 1
mov rax, qword [0x180025450]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180025458]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800518a8], eax
mov ecx, 1
call fcn.180017960
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18001d630]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800518a8], 0
jne 0x1800124d6
mov ecx, 1
call fcn.180017960
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800130d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180025450]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800165fc
xor ebx, ebx
cmp qword [0x180051e08], rbx
mov rdi, rax
jne 0x1800131e3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800132ba
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800132ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180051e08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180051e10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180051e18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180051e28], rax
test rax, rax
je 0x1800131da
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180051e20], rax
jmp 0x1800131ea
mov rax, qword [0x180051e20]
jmp 0x1800131f1
mov rax, qword [0x180051e20]
mov r11, qword [0x180051e28]
cmp rax, rdi
je 0x180013258
cmp r11, rdi
je 0x180013258
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180051e28]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180013258
test rax, rax
je 0x180013258
call rsi
test rax, rax
je 0x180013252
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180013252
test byte [rsp + 0x40], 1
jne 0x180013258
bts ebp, 0x15
jmp 0x180013298
mov rcx, qword [0x180051e10]
cmp rcx, rdi
je 0x180013298
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180013298
call rax
mov rbx, rax
test rax, rax
je 0x180013298
mov rcx, qword [0x180051e18]
cmp rcx, rdi
je 0x180013298
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180013298
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180051e08]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800132ba
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800132bc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180010a70
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x6d883530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8a45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8836b8
mov rax, qword [0x6d8a45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d88357c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d883605
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d883560
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8836ed
mov rax, qword [0x6d8a45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8a45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8836d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8835fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d883660
add dword [0x6d8a45e4], 1
cmp edi, 8
jae 0x6d883633
test dil, 4
jne 0x6d8836a4
test edi, edi
je 0x6d883628
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8836bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d883628
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d88364c
jmp 0x6d883628
add rsi, qword [0x6d8a45e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8835fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d883628
xor esi, esi
jmp 0x6d883587
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d883628
mov rax, qword [0x6d8a45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d883e40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8a48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8a48a0]
test rbx, rbx
je 0x6d883e94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d883e8b
test rsi, rsi
je 0x6d883e8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d883e70
lea rcx, [0x6d8a48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8840d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8840e0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8840f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d884131
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d884128
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d884133
add rax, 0x28
cmp rax, r9
jne 0x6d884114
xor eax, eax
ret

Function at 0x6d8841d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d88423d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88423d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d88423d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d884234
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d88423f
add rax, 0x28
cmp rax, r9
jne 0x6d884220
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d884340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d884360
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d884358
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8843bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8843b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8843c4
add rax, 0x28
cmp rax, r9
jne 0x6d8843a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8843e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8a11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d88444e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88444e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d88444e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d88444e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d884445
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d884455
add rcx, 0x28
cmp rcx, rax
jne 0x6d884430
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d884468
jmp 0x6d88444e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d884476
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d88444e
test r9d, r9d
jg 0x6d884460
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8847e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000ac90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.140012690
lea r15d, [rbp - 6]
mov r14, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000acef
mov r14, qword [rdi]
mov rdi, r14
mov r13, qword [rsi]
add r13, rdi
cmp r14, r13
je 0x14000adf1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14000ad96
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000ad7d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000ad72
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000ad8c
mov rcx, rbx
call fcn.140014b90
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14000ad40
inc r14
cmp r14, r13
jne 0x14000ad10
cmp r15d, 0xfffffffa
jle 0x14000adf1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000ade9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000adde
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000adf1
mov rcx, rbx
call fcn.140014b90
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14000ae39
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000ae25
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000ae1d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14000ae30
mov r9b, 0x3d
mov rcx, rbx
call fcn.140014b90
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14000ae00
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000afc0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14006c020]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000b02e
call fcn.140031d98
cmp dword [rax], 4
je 0x14000b000
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140026090
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000c780
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14006c020]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rcx + 0x18]
mov rax, qword [rcx + 0x10]
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000c7ef
call fcn.140031d98
cmp dword [rax], 4
je 0x14000c7c0
test rbx, rbx
setg al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140026090
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14000c840
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + ioctlsocket]
test al, al
je 0x14000c890
cmp rbx, 0x7fffffff
ja 0x14000c890
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c8b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x14000c900
cmp rbx, 0x7fffffff
ja 0x14000c900
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c920
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x14006c020]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rcx, qword [rcx + 8]
mov rbx, r8
mov rsi, rdx
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14000ca0b
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x14000c983
cmp ax, 0x17
jne 0x14000c993
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.1400288b0
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x14000ca0b
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000c9f1
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.140004940
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140026090
add rsp, 0x4f8
pop rsi
pop rbx
ret
Function at 0x1400151c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400151f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400151e0
ret