joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140177480
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400809e7
sub rsp, rax
mov rax, qword [0x1401c7e38]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401cc140]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14017768d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1401775d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401775d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1401775b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140177548
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14017764d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401776ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140177688
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401776ac
jmp 0x14017751e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140081b4e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140013080
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143e0
xor al, al
jmp 0x140014461
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143f3
xor al, al
jmp 0x140014461
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001441d
xor al, al
jmp 0x140014461
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014431
xor al, al
jmp 0x140014461
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014443
xor al, al
jmp 0x140014461
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001445f
xor al, al
jmp 0x140014461
mov al, 1
add rsp, 0x38
ret
Function at 0x1800997b8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800997cb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180099e30
lea rdx, [0x1800ee7e0]
lea rcx, [rsp + 0x20]
call fcn.180071bb8
int3

Function at 0x1800a4340
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800f7b48]
xor edx, edx
jmp fcn.1800997b8

Function at 0x1800a4d30
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800f7b48]
jmp fcn.1800997b8

Function at 0x14000d3d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d41e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d41e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d41e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d41e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d41e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d420
xor al, al
add rsp, 0x28
ret
Function at 0x140003660
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, r9
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x48], r13
mov r15d, recv
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x38], r13b
lea edx, [r13 + 1]
lea r8d, [r13 + 6]
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400036e0
mov qword [rsi], r13
mov qword [rsi + 0x18], r15
mov byte [rsi], r13b
jmp 0x140003849
mov word [rsp + 0x58], r14w
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x5c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140003822
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], 0
jne 0x140003724
mov ebx, edi
test edi, edi
jle 0x140003755
xor r9d, r9d
mov r8d, ebx
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140003763
sub ebx, eax
cdqe
add rbp, rax
test ebx, ebx
jg 0x140003733
mov edx, edi
lea rcx, str.Client:_send___is_OK___bytes_sent:__d_n
call fcn.140004510
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movzx ebx, byte [rsp + 0x30]
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400037f8
movsxd r14, eax
mov rcx, qword [rsp + 0x48]
mov rax, r15
sub rax, rcx
cmp r14, rax
ja 0x1400037d3
lea rax, [r14 + rcx]
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x38]
cmp r15, 0x10
cmovae rdi, qword [rsp + 0x38]
add rdi, rcx
mov r8, r14
lea rdx, [rsp + 0x68]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r14], 0
mov r15, qword [rsp + 0x50]
jmp 0x140003770
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
movzx r8d, bl
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140001ea0
mov r15, qword [rsp + 0x50]
jmp 0x140003770
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm1
jmp 0x140003850
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Client:_connect___failed__Error_code:__d_n
call fcn.140004510
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], r13
mov qword [rsi + 0x18], r15
mov byte [rsi], 0
mov qword [rsi + 0x10], r13
mov byte [rsi], 0
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d230
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004b70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x140004d66
nop
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140004c24
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140004be0
mov ecx, dword [r10]
jmp 0x140004d07
cmp ecx, 0x4e0
jb 0x140004d07
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140004c40
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140004c90
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140004bc0
movzx ecx, byte [rdi + 8]
or esi, eax
add cl, 0xff
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140004bb0
xor edx, edx
mov eax, ebp
div r15d
xor edx, edx
mov ecx, eax
mov eax, esi
div r15d
cmp eax, ecx
jb 0x140004d8a
xor edx, edx
mov eax, ebp
div r15d
cmp edx, r14d
jne 0x140004ba0
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x140005e70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
xor r14d, r14d
mov rdi, rcx
mov esi, r14d
mov ebp, r14d
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl esi, cl
add esi, esi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140005f04
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140005ec0
mov ecx, dword [r10]
jmp 0x140005fe7
cmp ecx, 0x4e0
jb 0x140005fe7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140005f20
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140005f70
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x140005ea0
add rbp, qword [rdi + 8]
or esi, ecx
cmp rbp, 0x20
jb 0x140005e92
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140006c80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov r8d, dword [rcx]
mov edi, 0x80000000
mov r9d, dword [rcx + 4]
cmp r8d, edi
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0x20
lea eax, [r8 - 0x80000000]
mov dword [rsp + 0x30], 0xffffffff
lea ebx, [r8 + rdi]
cmovae ebx, eax
lea edx, [r9 + rdi]
cmp r9d, edi
lea eax, [r9 - 0x80000000]
cmovae edx, eax
sub edx, ebx
cmp edx, 0xffffffff
jne 0x1400045d1
call fcn.140005e70
jmp 0x1400045d8
inc edx
call fcn.140004b70
lea edx, [rbx + rax]
mov rbx, qword [rsp + 0x50]
cmp edx, edi
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rdi]
cmovae eax, ecx
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, edx
mov esi, ecx
mov r8d, dword [0x1400319b8]
mov rax, qword gs:[0x58]
mov rbx, qword [rax + r8*8]
mov r14d, 0x13a8
mov eax, dword [r14 + rbx]
test al, 1
jne 0x140006cc7
or eax, 1
mov dword [r14 + rbx], eax
mov ebp, 0x13b0
test al, 2
jne 0x140006d29
or eax, 2
mov dword [r14 + rbx], eax
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rbx + rbp + 0x1384], 0xffffffff
mov dword [rbx + rbp + 4], eax
mov edx, 1
lea r8, [rbp + 8]
add r8, rbx
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140006d00
mov dword [rbx + rbp], 0x270
mov eax, dword [r14 + rbx]
mov ecx, 0x2738
test al, 4
jne 0x140006d44
or eax, 4
mov dword [r14 + rbx], eax
mov dword [rbx + rcx], esi
mov dword [rbx + rcx + 4], edi
lea rdx, [rbx + rbp]
add rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x140004570
Function at 0x140006d70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

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, 0x40
mov ebp, edx
mov rbx, rcx
xor r15d, r15d
mov r8d, dword [0x1400319b8]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + r8*8]
mov eax, 0x2740
mov eax, dword [rax + rsi]
cmp dword [0x140031348], eax
jg 0x140006f6d
mov r14d, 0x1398
mov eax, dword [r14 + rsi]
mov r12d, reloc.WS2_32.dll_recv
test al, 1
jne 0x140006e28
or eax, 1
mov dword [r14 + rsi], eax
mov edi, r12d
add rdi, rsi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rdi + 0x1384], 0xffffffff
mov dword [rdi + 4], eax
mov edx, 1
lea r8, [rdi + 8]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140006e00
mov dword [rdi], 0x270
mov eax, dword [r14 + rsi]
mov edi, 0x13a0
test al, 2
jne 0x140006e48
or eax, 2
mov dword [r14 + rsi], eax
mov dword [rdi + rsi], r15d
mov dword [rdi + rsi + 4], reloc.WS2_32.dll_socket
mov qword [rbx], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], shutdown
mov byte [rbx], 0
mov eax, 0x20
test ebp, ebp
cmovne eax, ebp
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.1400060f0
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140006e84
mov rcx, qword [rbx]
mov rdx, rcx
jmp 0x140006e87
mov rdx, rbx
mov r14, rcx
mov rbp, qword [rbx + 0x10]
add rbp, rdx
cmp rcx, rbp
je 0x140006f4a
lea r15, [rsi + rdi]
mov eax, r12d
add rsi, rax
mov r12d, 0x80000000
lea r13, [0x14002f040]
mov edx, dword [r15 + 4]
mov ecx, dword [r15]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0x20
mov dword [rsp + 0x38], 0xffffffff
lea eax, [rcx - 0x80000000]
lea edi, [rcx + r12]
cmp ecx, r12d
cmovae edi, eax
lea eax, [rdx - 0x80000000]
lea ecx, [rdx + r12]
cmp edx, r12d
cmovae ecx, eax
sub ecx, edi
cmp ecx, 0xffffffff
jne 0x140006f01
lea rcx, [rsp + 0x28]
call fcn.140005e70
jmp 0x140006f0e
lea edx, [rcx + 1]
lea rcx, [rsp + 0x28]
call fcn.140004b70
lea ecx, [rdi + rax]
lea eax, [rcx - 0x80000000]
lea edx, [rcx + r12]
cmp ecx, r12d
cmovae edx, eax
mov rcx, r13
cmp qword [0x14002f058], 0x10
cmovae rcx, qword [0x14002f040]
movsxd rax, edx
movzx ecx, byte [rax + rcx]
mov byte [r14], cl
inc r14
cmp r14, rbp
jne 0x140006eb1
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x140031348]
call fcn.14001d404
cmp dword [0x140031348], 0xffffffff
jne 0x140006dbc
mov ecx, 0x20
call fcn.14001cc6c
mov qword [0x14002f050], 0x18
mov qword [0x14002f058], 0x1f
movups xmm0, xmmword [str.abcdefghijklmnopqrstvwxz]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140021b98]
movsd qword [rax + 0x10], xmm1
mov byte [rax + 0x18], 0
mov qword [0x14002f040], rax
lea rcx, [0x14001ffc0]
call fcn.14001cee8
nop
lea rcx, [0x140031348]
call fcn.14001d3a4
jmp 0x140006dbc
Function at 0x140007970
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edi, edi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], shutdown
mov byte [rbx], dil
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400079e1
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140003200
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001d230
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x140013b30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov ebx, 0xb4
nop
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x3e8
call fcn.14000b010
sub rbx, 1
jne 0x140013b40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edi, 0x708
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, 0x30c
jae 0x140013b99
mov ebx, edi
nop word [rax + rax]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x3e8
call fcn.14000b010
sub rbx, 1
jne 0x140013b80
call fcn.140010e10
test al, al
je 0x140013bd6
mov dword [rsp + 0x30], 0x3e8
nop word [rax + rax]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140009240
mov rcx, rax
call fcn.14000b010
sub rdi, 1
jne 0x140013bb0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140018280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140018353
cmp byte [rcx + 0x71], 0
je 0x140018353
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001834f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140018314
sub eax, 1
je 0x140018318
cmp eax, 2
jne 0x14001834f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d230
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140018346
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001834f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400182fc
xor al, al
jmp 0x1400182fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d230
add rsp, 0x60
pop rbx
ret
Function at 0x140019580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400195ad
xor eax, eax
jmp 0x14001970a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400195d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400195d8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14001970a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400196fd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001961b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140019646
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140019702
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400196b5
sub eax, 1
je 0x1400196b5
cmp eax, 2
jne 0x1400196fd
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140019702
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400196e3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400196fd
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140019702
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d230
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret