joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fe10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000feb0
jmp 0x14000fe9f
jae 0x14000ff6f
cmp r8, 0x201
jae 0x14000feb0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000ff07
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000fedf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140031a70
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000ff30
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000ffdb
mov r8d, r13d
cmp r12, r8
jne 0x14000fe90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001000f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000fe9f
jmp 0x14000feb0
cmp r14, r8
jb 0x140010029
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140012220
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000ffc4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001150
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000ffaf
jmp 0x14000ffc4
lea rcx, [0x140036048]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400329f0
jmp 0x14001003e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140032e60
ud2
Function at 0x140019dc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140037ff0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140019df8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140019e4f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x140019e5c
xor edx, edx
xor eax, eax
jmp 0x140019e86
cmp eax, 0x103
je 0x140019e90
test eax, eax
js 0x140019e6f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140019e86
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140011f10
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000a8e0
mov ecx, 7
int 0x29
ud2

Function at 0x140019ee0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140037ff0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140019f18
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140019f76
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140019fa3
test eax, eax
js 0x140019f82
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140019f99
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140011f10
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000a8e0
mov ecx, 7
int 0x29
ud2
Function at 0x140002fd0
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r8d, edx
mov eax, 0x10624dd3
mov rbx, rcx
mov qword [rsp + 0x258], rcx
mov qword [rsp + 0x48], rcx
lea r9, [rsp + 0x40]
mul edx
shr edx, 6
lea rax, [rsp + 0x38]
xor ecx, ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x250], 1
mov dword [rsp + 0x40], 1
imul edx, edx, 0x3e8
sub r8d, edx
xor edx, edx
mov qword [rsp + 0x20], rax
imul r8d, r8d, 0x3e8
mov dword [rsp + 0x3c], r8d
lea r8, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140003062
jne 0x1400030af
mov eax, 0x5b4
jmp 0x1400030d0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, rbx
test eax, eax
je 0x1400030c1
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1007
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400030af
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400030af
cmp eax, 0xffffffff
jne 0x1400030d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x22a
test eax, eax
cmove eax, ecx
jmp 0x1400030d0
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140254fb0
add rsp, 0x470
pop rbx
ret
Function at 0x1400032c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x140002c42
cmp ax, 0x17
je 0x140002c3b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x140002c47
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x140002c2e
test bx, bx
je 0x140002c7d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.140254810
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.140003180
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14000336b
call fcn.1402540fc
test ebx, ebx
je 0x14000337b
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1400033de
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1400033b5
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1400033a0
cmp eax, 0x17
je 0x1400033a0
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140003388
jmp 0x1400033b5
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.140255100
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1400033d1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1400033dc
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140254fb0
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.140002490
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x140003452
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140002c00
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400032c0
Function at 0x140003410
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x140002c42
cmp ax, 0x17
je 0x140002c3b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x140002c47
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x140002c2e
test bx, bx
je 0x140002c7d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.140254810
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.140003180
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14000336b
call fcn.1402540fc
test ebx, ebx
je 0x14000337b
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1400033de
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1400033b5
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1400033a0
cmp eax, 0x17
je 0x1400033a0
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140003388
jmp 0x1400033b5
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.140255100
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1400033d1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1400033dc
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140254fb0
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.140002490
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x140003452
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140002c00
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400032c0
Function at 0x14004e8d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, qword [rsp + 0x2b0]
mov r15d, r8d
mov rsi, rdx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov r12, r9
mov word [rsp + 0x30], ax
call fcn.140254810
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [r15 + rsi - 4]
lea rcx, [r15 - 4]
lea edi, [r15 - 4]
call fcn.140254f10
lea r8, [r15 - 4]
mov rcx, rax
xor edx, edx
mov r13, rax
call fcn.140254810
lea r8, [r15 - 4]
mov rdx, rsi
mov rcx, r13
call fcn.140255100
movsxd r11, edi
test edi, edi
jle 0x14004e97d
mov rcx, r13
xor byte [rcx], bpl
inc rcx
dec r11
jne 0x14004e972
mov dword [rsp + 0x20], 0
mov eax, dword [r13]
mov ecx, eax
mov dword [rsp + 0x20], eax
call fcn.140254f10
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140254810
lea edx, [r15 - 4]
lea rcx, [r13 + 4]
lea r9, [rsp + 0x20]
mov r8, rdi
call fcn.1400029e0
test eax, eax
jne 0x14004ea2f
movsxd rdx, dword [rsp + 0x20]
mov rcx, rdx
test edx, edx
jle 0x14004e9df
mov rax, rdi
nop
xor byte [rax], 0xa4
inc rax
dec rcx
jne 0x14004e9d0
mov edx, dword [rsp + 0x20]
test r12, r12
jne 0x14004e9ef
lea eax, [rdx + 0x20c]
mov dword [r14], eax
jmp 0x14004ea2f
mov ebx, edx
mov r8d, edx
mov rcx, r12
mov rdx, rdi
call fcn.140255100
mov dword [rbx + r12], 0x208
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rax + r12 + 4]
mov r8d, 0x208
call fcn.140255100
mov r11d, dword [rsp + 0x20]
add r11d, 0x20c
mov dword [r14], r11d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140254fb0
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ede0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14004ee6c
mov rdx, qword [rcx + 0x38]
mov rcx, qword [rcx + 0x30]
lea r8d, [rdi + 0x30]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14004ef32
cmp word [rsi], 2
mov rcx, qword [rbx + 0x30]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14004ee55
cmp eax, 0xffffffff
jne 0x14004ef32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004ef32
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x30]
mov edx, 1
call fcn.140002580
test eax, eax
je 0x14004ee89
mov ecx, 0x80004005
call fcn.1400011f0
int3
cmp word [rsi], 2
mov rcx, qword [rbx + 0x30]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
je 0x14004eebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x14004ef32
cmp esi, 0xffffffff
jne 0x14004eecf
mov edx, dword [rbx + 0x4c]
mov rcx, qword [rbx + 0x30]
call fcn.140002fd0
mov esi, eax
test esi, esi
jne 0x14004ef2a
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
lea r8d, [rsi + 0x23]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14004ef32
mov dword [rbx + 0x78], 1
xor ecx, ecx
mov dword [rbx + 0x7c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x180]
cmp eax, 2
jne 0x14004ee55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
jmp 0x14004ef2c
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14004f130
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x21c]
mov rbx, rcx
test eax, eax
jne 0x14004f22e
nop dword [rax + rax]
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x30]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14004f1d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov rdx, qword [rbx + 0x90]
mov r8d, edi
mov rcx, rbx
call qword [r9 + 0x1a0]
cmp eax, 2
jne 0x14004f1e0
mov rdx, qword [rbx + 0x40]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14004e7c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x20], 1
mov dword [rbx + 0x24], 4
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xffffffff
je 0x14004f221
test eax, eax
je 0x14004f1fe
mov eax, dword [rbx + 0x21c]
test eax, eax
je 0x14004f150
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x20], 1
mov qword [rbx + 0x24], 5
mov dword [rbx + 0x2c], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004f1b2
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f2f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rsi, rcx
mov ecx, dword [0x1403b41d0]
mov r13, r8
mov rbp, rdx
call fcn.140002a40
mov ecx, eax
mov dword [rsp + 0x34], eax
call fcn.140254f10
mov edx, dword [0x1403b41d0]
lea r9, [rsp + 0x34]
lea rcx, [0x140003df0]
mov r8, rax
mov rdi, rax
call fcn.140003110
movsxd rbx, dword [0x1403b41d0]
mov rcx, rbx
call fcn.140253f70
mov edx, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov r8, rax
mov rcx, rdi
mov r12, rax
mov dword [rsp + 0x30], ebx
call fcn.1400029e0
test eax, eax
jne 0x14004f4dd
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
xor r9d, r9d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14004e8d0
mov r11d, dword [rsp + 0x78]
test r11d, r11d
je 0x14004f3f2
mov r9d, 0x40
mov r8d, 0x1000
mov edx, r11d
xor ecx, ecx
mov ebx, r11d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140254810
mov r8d, dword [rsp + 0x30]
lea r11, [rsp + 0x78]
mov r9, rdi
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], r11
call fcn.14004e8d0
lea r11, [rdi + 4]
mov rcx, rdi
call r11
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp + 0x28]
je 0x14004f490
nop
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rsi + 0x30]
cmp eax, r8d
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
test eax, eax
jle 0x14004f47f
lea rcx, [rsi + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x218], edi
lea rcx, [rsi + 0x1b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov rdx, qword [rbp + 0x28]
mov r8d, edi
mov rcx, rsi
call qword [r9 + 0x190]
cmp eax, 2
jne 0x14004f473
mov rdx, qword [rsi + 0x40]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14004e7c0
mov edx, edi
mov rcx, rbp
call fcn.140050970
jmp 0x14004f484
cmp eax, 0xffffffff
je 0x14004f4ae
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp + 0x28]
jne 0x14004f400
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004f4c5
mov dword [r13], 1
jmp 0x14004f490
mov dword [rsi + 0x20], 1
mov dword [rsi + 0x24], 3
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 1
xor eax, eax
jmp 0x14004f495

Function at 0x140050660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x70]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x1400503d0]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140253c7c
test rax, rax
mov qword [rbx + 0x68], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140058d90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x10], 0x3020100
mov r9d, dword [rsp + 0x10]
mov r10, rcx
mov rcx, qword [r8 + 0x1b8]
mov r11, rdx
mov eax, 1
mov dword [r8 + 0x1c4], r9d
add r9d, 0x4040404
inc rax
mov dword [r8 + rax*4 + 0x1c0], r9d
cmp rax, rcx
jbe 0x140058db6
xor r9d, r9d
test rdx, rdx
je 0x140058e10
movzx ecx, byte [r10]
movsxd rdx, ecx
or r9, rcx
movzx eax, byte [rdx + r8 + 0x1c4]
mov byte [r10], al
mov byte [r8 + 0x1c3], al
movzx eax, byte [r8 + rdx + 0x1c3]
dec rdx
mov byte [r8 + rdx + 0x1c5], al
jns 0x140058df2
inc r10
dec r11
jne 0x140058dd5
shr r9, 2
mov qword [r8 + 0x1b8], r9
ret
Function at 0x1400a5910
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov eax, 8
call fcn.1402563f0
sub rsp, rax
xor r10d, r10d
mov r11, rcx
test rcx, rcx
je 0x1400a599b
movzx eax, byte [rcx]
test al, al
je 0x1400a599b
mov qword [rsp], rbx
mov ebx, 0x100
nop dword [rax + rax]
movsx r9d, al
mov edx, r10d
mov eax, r10d
or r9d, ebx
inc r11
mov ecx, 0x20
mov r8d, r9d
add ebx, 0x100
shr r8d, 2
xor r8d, r9d
and r8d, 0xf
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
imul r9d, r9d
shl eax, cl
mov r10d, edx
or r10d, eax
movzx eax, byte [r11]
xor r10d, r9d
test al, al
jne 0x1400a5940
mov rbx, qword [rsp]
mov eax, r10d
shr eax, 0x10
xor eax, r10d
add rsp, 8
ret
xor eax, eax
add rsp, 8
ret

Function at 0x1400a59b0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1402563f0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1400a5a42
movzx eax, byte [rcx]
test al, al
je 0x1400a5a42
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1400f62c0
mov edx, ebx
inc rdi
mov r11d, eax
mov eax, ebx
mov ecx, 0x20
or r11d, esi
add esi, 0x100
mov r8d, r11d
shr r8d, 2
xor r8d, r11d
and r8d, 0xf
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
imul r11d, r11d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r11d
test al, al
jne 0x1400a59e0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret