joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036380
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400363c9
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140011b08
test rax, rax
jne 0x1400363db
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400363b0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x46
mov dword [rbp - 0x20], 0xa002e
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x19002b
mov dword [rbp - 0x18], 0x340024
mov dword [rbp - 0x14], 0x2d0020
mov dword [rbp - 0x10], 0x33003e
call fcn.14000e090
mov rcx, qword [rax]
call 0x140036380
mov qword [0x140085728], rax
lea rcx, [rbp - 0x20]
mov eax, 0x6d
mov dword [rbp - 0x20], 0xa002e
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x19002b
mov dword [rbp - 0x18], 0x340024
mov dword [rbp - 0x14], 0x5e0051
call fcn.140004a60
mov rcx, qword [rax]
call 0x140036380
lea rcx, [rbp - 0x20]
mov qword [0x140085720], rax
mov dword [rbp - 0x20], 0x3b000b
mov dword [rbp - 0x1c], 0x3b001d
mov dword [rbp - 0x18], 0x78000d
call fcn.14000de40
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x140036380
Function at 0x140039590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400856b8]
mov r13d, 2
mov ecx, r13d
xor edx, edx
call rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140039814
mov r8, qword [0x140085698]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x338], rsi
mov rcx, rax
xor esi, esi
mov dword [rbp - 0x10], 0x238
mov ebx, esi
call r8
test eax, eax
je 0x14003966b
mov dword [rbp + 0x280], 0x65
nop
mov eax, dword [rbp + 0x280]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x48], ax
mov dword [rsp + 0x30], 0x370000
mov dword [rsp + 0x34], 0x3b0009
mov dword [rsp + 0x38], 0xa000e
mov dword [rsp + 0x3c], 0x1e0007
mov dword [rsp + 0x40], 0x130043
mov dword [rsp + 0x44], 0x24003e
call fcn.140003600
lea rcx, [rbp + 0x1c]
mov rdx, qword [rax]
call fcn.140018314
test eax, eax
jne 0x140039657
inc ebx
mov rax, qword [0x1400856a8]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call rax
test eax, eax
jne 0x140039600
mov rcx, rdi
call qword [0x140085690]
mov rsi, qword [rsp + 0x338]
cmp ebx, 1
jg 0x140039814
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x40
call qword [0x140085680]
mov eax, 0x80000000
cmp qword [rbp - 0x78], rax
jae 0x140039814
call qword [0x1400856b0]
mov ecx, 0x3e8
mov rbx, rax
call qword [0x140085658]
call qword [0x1400856b0]
sub rax, rbx
cmp rax, 0x3e8
jb 0x140039810
lea rcx, [rbp - 0x40]
call qword [0x140085688]
cmp dword [rbp - 0x20], r13d
jb 0x140039810
mov rbx, qword [0x1400856c0]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x200036
mov dword [rsp + 0x34], 0x23001f
mov dword [rsp + 0x38], 0x190016
mov dword [rsp + 0x3c], 0x90010
mov dword [rsp + 0x40], 0x250031
mov dword [rsp + 0x44], 0x2f0027
mov dword [rsp + 0x48], 0x2d0001
mov dword [rsp + 0x4c], 0xa003e
mov dword [rsp + 0x50], 0x6003c
mov dword [rsp + 0x54], 0x220034
mov dword [rsp + 0x58], 0x27000b
mov dword [rsp + 0x5c], 0x50015
mov dword [rsp + 0x60], 0x710002
call fcn.140002c70
lea rcx, [rbp + 0x298]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, qword [rax]
call rbx
test eax, eax
jne 0x140039794
mov rcx, qword [rbp + 0x298]
call qword [0x140085678]
mov al, 1
jmp 0x140039816
lea rcx, [rbp + 0x290]
call qword [0x1400856c8]
mov ecx, 0x3e8
call qword [0x140085658]
lea rcx, [rbp + 0x288]
call qword [0x1400856c8]
mov eax, dword [rbp + 0x288]
cmp dword [rbp + 0x290], eax
jne 0x1400397d5
mov eax, dword [rbp + 0x28c]
cmp dword [rbp + 0x294], eax
je 0x140039810
mov rbx, qword [0x1400856a0]
lea rcx, [rbp + 0x280]
mov dword [rbp + 0x280], 0x750026
mov dword [rbp + 0x284], 0x570025
call fcn.140002ad0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, qword [rax]
call rbx
mov al, 1
jmp 0x140039816
xor al, al
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x14003acb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x140085730]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x270036
mov dword [rbp - 0x1c], 0x3b001c
mov dword [rbp - 0x18], 0x4b000d
mov dword [rbp - 0x14], 0x420050
mov dword [rbp - 0x10], 0x1a0009
mov dword [rbp - 0xc], 0x41002a
call fcn.140009de0
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x14004b2f0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x140085718], rax
mov word [rbp - 0x10], 0x3f03
mov byte [rbp - 0xe], 0x50
call fcn.14000ce50
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x3b1c2736
mov dword [rbp - 0x1c], 0x91a3d0d
mov dword [rbp - 0x18], 0x2432030e
mov word [rbp - 0x14], 0x4f32
call fcn.14000a5a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret

Function at 0x14003b2d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400363c9
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140011b08
test rax, rax
jne 0x1400363db
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400363b0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x46
mov dword [rbp - 0x20], 0xa002e
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x19002b
mov dword [rbp - 0x18], 0x340024
mov dword [rbp - 0x14], 0x2d0020
mov dword [rbp - 0x10], 0x33003e
call fcn.14000e090
mov rcx, qword [rax]
call 0x140036380
mov qword [0x140085728], rax
lea rcx, [rbp - 0x20]
mov eax, 0x6d
mov dword [rbp - 0x20], 0xa002e
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x19002b
mov dword [rbp - 0x18], 0x340024
mov dword [rbp - 0x14], 0x5e0051
call fcn.140004a60
mov rcx, qword [rax]
call 0x140036380
lea rcx, [rbp - 0x20]
mov qword [0x140085720], rax
mov dword [rbp - 0x20], 0x3b000b
mov dword [rbp - 0x1c], 0x3b001d
mov dword [rbp - 0x18], 0x78000d
call fcn.14000de40
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x140036380
Function at 0x14003b6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14003b717
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14003b736
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x14003b6f0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x14003b719
Function at 0x140001330
Capabilities:
Get socket status
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x560
mov rax, qword [0x14000a048]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov ebx, ecx
lea rsi, [0x140000000]
xor r9d, r9d
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x30], 1
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140001527
je 0x140001362
mov ecx, ebx
call fcn.140002660
cmp eax, 9
ja case.0x1400013bd.6
cdqe
mov ecx, dword [rsi + rax*4 + 0x1564]
add rcx, rsi
jmp rcx
lea r9, [rsp + 0x250]
mov ecx, ebx
lea r8, [rsp + 0x350]
lea rdx, [rsp + 0x450]
call fcn.1400024d0
test eax, eax
js case.0x1400013bd.0
mov edx, 1
mov ecx, ebx
call fcn.1400019c0
jmp 0x1400014ed
lea rdx, [0x14000a0b0]
mov ecx, ebx
call fcn.140002af0
jmp 0x1400014ed
lea r9, str.Clock_capture_server___v1.0
mov ecx, ebx
lea r8, [0x1400075d4]
lea rdx, [0x14000a0b0]
call fcn.1400039b0
jmp 0x1400014ed
cmp dword [0x14000a114], 0
jne 0x140001492
mov edx, 8
lea rcx, str.hours
lea r8d, [rdx - 7]
call fcn.140001a30
mov edx, 8
mov qword [0x14000a118], rax
lea rcx, str.minutes
lea r8d, [rdx - 7]
call fcn.140001a30
mov edx, 8
mov qword [0x14000a120], rax
lea rcx, str.seconds
lea r8d, [rdx - 7]
call fcn.140001a30
mov qword [0x14000a128], rax
mov dword [0x14000a114], 1
xorps xmm3, xmm3
mov dword [rsp + 0x28], 1
xorps xmm2, xmm2
mov dword [rsp + 0x20], 0x80000
xorps xmm1, xmm1
movq r9, xmm3
movq r8, xmm2
movq rdx, xmm1
mov ecx, ebx
call fcn.140002850
jmp 0x1400014ed
mov ecx, ebx
call fcn.1400010c0
mov ecx, ebx
call fcn.140002290
jmp 0x1400014ed
lea r9, str.Unknown_server_command.
mov edx, 3
lea r8, [0x14000a0b0]
mov ecx, ebx
call fcn.1400022f0
test eax, eax
jns 0x140001362
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140005070
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1400014fa
lea r9, str.select_failed
mov edx, 4
lea r8, [0x14000a0b0]
mov ecx, ebx
call fcn.1400022f0
xor r9d, r9d
lea r8, str.select
mov ecx, ebx
lea edx, [r9 + 4]
call fcn.1400022f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001be0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x80
cmp dword [0x14000a370], 0
mov rdi, rcx
jne 0x140001c03
mov eax, 0xffffffff
add rsp, 0x80
pop rdi
ret
mov qword [rsp + 0x90], rbx
lea rcx, str.MAYA_IP_TYPE
mov qword [rsp + 0x78], rsi
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x70], r14
xor esi, esi
mov qword [rsp + 0x40], 1
mov dword [rsp + 0x6c], esi
movdqu xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x48], 1
movdqu xmmword [rsp + 0x5c], xmm1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r14d, [rsi + 2]
mov rbx, rax
test rax, rax
je 0x140001c93
mov rdx, rax
lea rcx, str.ipv6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001c75
mov dword [rsp + 0x44], reloc.WS2_32.dll_socket
jmp 0x140001c93
mov rdx, rbx
lea rcx, str.ipv4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [rsp + 0x44]
test eax, eax
cmove ecx, r14d
mov dword [rsp + 0x44], ecx
mov rax, qword [0x14000a138]
test rax, rax
jne 0x140001cad
xor ecx, ecx
call fcn.1400041e0
mov qword [0x14000a138], rax
lea r9, [rsp + 0xa0]
mov rdx, rdi
lea r8, [rsp + 0x40]
xor ecx, ecx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jns 0x140001d23
mov qword [rsp + 0x30], rsi
lea rdi, [0x14000a960]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.getaddrinfo_error::___s__n
mov rcx, rax
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140001df4
mov rax, qword [rsp + 0xa0]
mov ebx, 0xffffffff
mov rsi, rax
test rax, rax
je 0x140001e13
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
js 0x140001d85
mov rdx, qword [rsp + 0xa0]
movsxd rdi, eax
mov rcx, rdi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140001da2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x140001d40
test ebx, ebx
js 0x140001e13
mov qword [rsp + 0x98], rbp
mov edx, 5
movsxd rbp, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
mov edi, eax
mov rax, qword [0x14000a148]
test rax, rax
jne 0x140001dd8
mov ecx, r14d
call fcn.1400041e0
mov qword [0x14000a148], rax
mov rcx, rsi
call rax
test edi, edi
jns 0x140001e0f
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov rbp, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret
mov eax, ebx
jmp 0x140001dec
mov rax, qword [0x14000a148]
test rax, rax
jne 0x140001e2e
mov ecx, r14d
call fcn.1400041e0
mov qword [0x14000a148], rax
mov rcx, rsi
call rax
mov eax, ebx
jmp 0x140001df4
Function at 0x140002200
Capabilities:
Get common file path
Set current directory

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000a048]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140005070
add rsp, 0x148
ret

Function at 0x1400024d0
Capabilities:
Get hostname

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x1e8
mov rax, qword [0x14000a048]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp dword [0x14000a154], 1
mov rdi, r9
mov rbx, r8
movsxd r14, ecx
mov rsi, rdx
je 0x14000250e
mov eax, 0xffffffff
jmp 0x14000263a
mov qword [rsp + 0x1e0], rbp
mov rbp, qword [0x14000a158]
test rsi, rsi
je 0x14000253b
mov r8d, 0x100
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rsi + 0xff], 0
test rbx, rbx
je 0x14000255d
lea rdx, [rbp + 0x104]
mov r8d, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rbx + 0xff], 0
mov rbp, qword [rsp + 0x1e0]
test rdi, rdi
je 0x140002638
mov rcx, r14
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ebx, dword [rsp + 0x40]
test ebx, ebx
jne 0x1400025ae
mov ecx, 1
mov edx, 0x100
mov word [rsp + 0x50], cx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
jmp 0x140002638
cmp word [rsp + 0x50], 1
jne 0x1400025c6
mov edx, 0x100
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
jmp 0x140002638
mov rax, qword [0x14000a140]
test rax, rax
jne 0x1400025e1
lea ecx, [rax + 1]
call fcn.1400041e0
mov qword [0x14000a140], rax
xor ecx, ecx
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x30], ecx
mov r9d, 0x100
mov qword [rsp + 0x28], rcx
mov edx, ebx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x140002635
mov r8d, 0x100
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rdi + 0xff], bl
jmp 0x140002638
mov byte [rdi], 0
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140005070
add rsp, 0x1e8
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002be0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0xd8
mov rax, qword [0x14000a048]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov edx, 0x3a
mov rbp, rcx
call sub.VCRUNTIME140.dll_strchr
xor r12d, r12d
test rax, rax
je 0x140002c31
lea rbx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsx edx, ax
mov rcx, rbx
call fcn.140001be0
mov edi, r12d
jmp 0x140002c3e
mov rcx, rbp
call fcn.140001e40
mov edi, 1
test eax, eax
js 0x140002e2b
mov qword [rsp + 0x118], r14
mov edx, 1
movsxd r14, eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x140002e23
mov qword [rsp + 0x108], rsi
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x110], r13
mov rcx, r14
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test eax, eax
jns 0x140002ca9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov byte [rsp + 0x30], 1
mov r13d, dword [rax]
test edi, edi
je 0x140002de0
xor r9d, r9d
mov qword [rsp + 0xd0], r15
xor edx, edx
lea rax, str.Maya_Unix_Socket_Share
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xe9c
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002da5
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140002da5
mov edi, dword [rbx]
lea r12, [rax + 4]
xor eax, eax
mov r10d, 1
mov r9d, eax
nop dword [rax]
test r10d, edi
je 0x140002d77
mov r11d, r9d
mov r8, rbp
imul rax, r11, 0x6e
add rax, r12
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002d73
inc rax
test ecx, ecx
jne 0x140002d60
test edx, edx
je 0x140002d85
add r10d, r10d
inc r9d
cmp r9d, 0x20
jl 0x140002d40
jmp 0x140002dae
imul rax, r11, 0x6e
xor ecx, ecx
not r10d
mov byte [rax + r12], 0
mov word [rax + r12 + 0x6c], cx
mov rcx, rbx
and dword [rbx], r10d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 6
movsxd rcx, esi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 1
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov r15, qword [rsp + 0xd0]
jmp 0x140002e08
mov edx, 6
movsxd rcx, esi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 1
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r13d
mov eax, esi
mov rsi, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140005070
add rsp, 0xd8
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400041e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x14000a048]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x14000a130], 0
lea rax, [0x140003b40]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140003fa0]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140003ae0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1400043b9
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400043af
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400042d6
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140004338
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400043a7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140004338
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400043a7
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop word [rax + rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x140004396
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140004350
mov rax, qword [rsp + 0x28]
mov qword [0x14000a018], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14000a028], rax
mov rax, qword [rsp + 0x48]
mov qword [0x14000a038], rax
jmp 0x14000439f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x14000a130], 1
mov rax, rbp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140005070
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret