joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800160a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800160d4
xor eax, eax
jmp 0x180016197
mov rbp, rbx
cmp word [rax], si
je 0x1800160f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800160e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800160dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180015fc4
movsxd r14, eax
test eax, eax
jne 0x180016137
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800160cd
mov rcx, r14
call fcn.180012624
mov rdi, rax
test rax, rax
jne 0x180016150
xor ecx, ecx
call fcn.180011a98
jmp 0x18001612c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180015fc4
test eax, eax
jne 0x180016181
mov rcx, rdi
call fcn.180011a98
jmp 0x18001618b
xor ecx, ecx
call fcn.180011a98
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180019adc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180019af2
mov al, 1
jmp 0x180019b52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180019b03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180019b50
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001792c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180019b50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180019b50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180019b50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180019b52
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18001cf50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001cf78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001cf78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000250c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002556
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002556
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002556
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002556
cmp dword [rcx + 0x84], 0xe
jbe 0x140002556
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002558
xor al, al
add rsp, 0x28
ret
Function at 0x180001448
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.1800040f4
test eax, eax
jne 0x180001569
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001564
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001564
test cl, 3
jne 0x180001564
movsxd rax, dword [r9]
lea r12, [0x18004eb50]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x1800014e5
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x180001569
test esi, esi
je 0x180001560
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x18000150f
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800014fc
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x180001569
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001552
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x18000153f
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800014ed
xor eax, eax
jmp 0x180001569
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180001588
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x180049348]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.1800040f4
test eax, eax
jne 0x1800016a6
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x1800016a1
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x1800016a1
test cl, 3
jne 0x1800016a1
movsxd rax, dword [r9]
lea r15, [0x18004eb50]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x180001624
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x1800016a6
test esi, esi
je 0x18000169d
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x1800016a6
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x18000168e
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000166b
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x180001628
xor eax, eax
jmp 0x1800016a6
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180028920
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800039f4
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x180004170
Capabilities:
Encode data using xor

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
mov rsi, rcx
mov ecx, dword [rcx + 0x70]
mov r13, r8
mov r15, rdx
call fcn.18000411c
test eax, eax
jne 0x1800042e2
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x180050150]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.18001f784
mov ecx, r12d
mov r14, rax
call fcn.18001f784
mov rbp, rax
test r14, r14
je 0x1800042d0
test rax, rax
je 0x1800042c8
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea r9, [0x180050150]
xor r8d, r8d
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x180004223
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x180004207
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180050150]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rdi + rax + 0x10]
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180050150]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180050150]
mov rdx, r14
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
xor ecx, ecx
test r12d, r12d
je 0x1800042a2
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x1800042a2
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x18000428b
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.18001f744
mov rcx, rbp
call fcn.18001f744
mov rcx, r14
call fcn.18001f744
mov eax, ebx
jmp 0x1800042e2
mov rcx, r14
call fcn.18001f744
test rbp, rbp
je 0x1800042dd
mov rcx, rbp
call fcn.18001f744
mov eax, reloc.WS2_32.dll_listen
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
Function at 0x180004300
Capabilities:
Encode data using xor

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 rsi, rcx
movsxd rbp, edx
mov edi, r9d
mov ecx, ebp
mov r13, r8
call fcn.18000411c
test eax, eax
jne 0x18000446d
mov rbx, rbp
lea rax, [0x180050150]
mov dword [rsi + 0x70], ebp
shl rbx, 7
mov r15d, dword [rbx + rax + 0xc]
test r9d, r9d
jne 0x18000435b
lea eax, [r9 + 3]
jmp 0x18000446d
mov r12d, dword [rbx + rax + 0x10]
mov ecx, r12d
call fcn.18001f784
mov r14, rax
test rax, rax
jne 0x180004379
lea eax, [r14 + 0xd]
jmp 0x18000446d
mov rcx, r12
call fcn.18001f784
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004395
lea edi, [rax + 0xd]
jmp 0x180004463
lea r12, [0x180050150]
mov rdx, r13
mov ecx, dword [rbx + r12 + 0x10]
cmp edi, ecx
jbe 0x1800043e6
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov r8d, edi
call fcn.1800018bc
mov edi, eax
test eax, eax
jne 0x180004457
mov eax, dword [rbx + r12 + 0x10]
cmp r15d, eax
jae 0x18000440d
mov rcx, r15
sub eax, r15d
add rcx, qword [rsi + 0xe8]
jmp 0x180004406
mov r8, rdi
mov rcx, rax
call fcn.18001fe20
mov eax, dword [rbx + r12 + 0x10]
cmp edi, eax
jae 0x18000440d
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.1800040dc
xor r8d, r8d
cmp dword [rbx + r12 + 0x10], r8d
jbe 0x180004433
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r12 + 0x10]
jb 0x180004417
mov rcx, rsi
call qword [rbx + r12 + 0x58]
mov edi, eax
test eax, eax
jne 0x180004457
mov r8d, dword [rbx + r12 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r12 + 0x60]
mov edi, eax
test eax, eax
je 0x180004463
mov rcx, qword [rsi + 0xe8]
call fcn.18001f744
mov rcx, r14
call fcn.18001f744
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000ec94
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1800494c8], 0
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rsp + 0x58], 0x3a980
mov qword [0x1800494d0], r9
jne 0x18000ee4c
mov eax, 0x80
mov ecx, 0x15a0
mov dword [0x1800521b8], 0x100
mov dword [0x1800521ac], eax
mov dword [0x1800521a8], eax
mov dword [0x1800521a4], eax
mov eax, 0x800
mov dword [0x1800521b4], 0x100
mov dword [0x1800521b0], 0x200
mov dword [0x1800521a0], eax
mov dword [0x180052198], eax
mov dword [0x18005219c], 0x20
call fcn.18001652c
mov edx, dword [0x1800521b8]
mov rcx, rax
mov qword [0x1800494c8], rax
call fcn.1800168f4
mov edx, dword [0x1800521b4]
mov rcx, qword [0x1800494c8]
mov qword [0x180052190], rax
call fcn.1800168f4
mov edx, dword [0x1800521b0]
mov rcx, qword [0x1800494c8]
mov qword [0x180052188], rax
call fcn.1800168f4
mov edx, dword [0x1800521ac]
mov rcx, qword [0x1800494c8]
mov qword [0x180052180], rax
call fcn.1800168f4
mov edx, dword [0x1800521a8]
mov rcx, qword [0x1800494c8]
mov qword [0x180052178], rax
call fcn.1800168f4
mov edx, dword [0x1800521a4]
mov rcx, qword [0x1800494c8]
mov qword [0x180052170], rax
call fcn.1800168f4
mov edx, dword [0x1800521a0]
mov rcx, qword [0x1800494c8]
mov qword [0x180052168], rax
call fcn.1800168f4
mov edx, dword [0x18005219c]
mov rcx, qword [0x1800494c8]
mov qword [0x180052160], rax
call fcn.1800168f4
mov edx, dword [0x180052198]
mov rcx, qword [0x1800494c8]
mov qword [0x180052158], rax
call fcn.1800168f4
mov rcx, qword [0x1800494c8]
xor r9d, r9d
mov qword [0x180052150], rax
lea rax, [fcn.180016620]
lea edx, [r9 + 0x18]
lea r8d, [r9 + 3]
mov qword [rsp + 0x20], rax
call fcn.18001efb4
mov rcx, qword [0x1800494c8]
and qword [rsp + 0x20], 0
movsxd rdx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
lea r8d, [r9 + 2]
call fcn.18001efb4
mov ecx, 1
call fcn.18001b970
mov rdx, qword [0x180052190]
mov rcx, rbx
and eax, 8
shl eax, 0x14
bts eax, 8
mov dword [0x1800494d8], eax
call fcn.18000f510
mov ecx, 0x23
call fcn.18001b970
movzx ecx, ax
test ecx, ecx
je 0x18000eeac
dec ecx
je 0x18000eea3
dec ecx
je 0x18000ee9c
cmp ecx, 2
je 0x18000eeac
mov rax, qword [0x1800494a8]
jmp 0x18000eeed
xor r8d, r8d
xor edx, edx
jmp 0x18000eed1
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000eed1
mov ecx, 0x20
call fcn.18001b960
mov rdx, qword [0x180052188]
mov rcx, rax
call fcn.18000f510
mov r8, qword [0x180052188]
mov edx, 3
mov rcx, qword [0x180052190]
and dword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [0x1800494a8], rax
mov ebx, 4
lea r8, [rsp + 0x58]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [0x1800494a8]
lea r8, [rsp + 0x58]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rdx, qword [0x180052180]
mov rcx, rsi
call fcn.18000f510
mov rdx, qword [0x180052180]
mov rcx, qword [0x1800494a8]
xor r9d, r9d
movzx r8d, di
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov qword [0x1800494b0], rax
add rsp, 0x30
pop rdi
ret
Function at 0x18000f64c
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 1
jmp fcn.18000f658

Function at 0x18000f658
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
cmp dword [0x1800494dc], 1
mov ebx, ecx
je 0x18000f68e
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000f712
mov dword [0x1800494dc], 1
test ebx, ebx
je 0x18000f709
cmp dword [0x1800494e0], 1
je 0x18000f709
mov ecx, reloc.WS2_32.dll_sendto
call fcn.18001b950
mov ecx, reloc.WS2_32.dll_send
mov dword [0x1800494e4], eax
call fcn.18001b950
mov ecx, 0x3d
mov dword [0x1800494e8], eax
call fcn.18001b960
mov ecx, 0x3e
mov qword [0x180052148], rax
call fcn.18001b960
mov ecx, 0x3f
mov qword [0x180052140], rax
call fcn.18001b960
mov ecx, 0x42
mov qword [0x180052138], rax
call fcn.18001b960
mov dword [0x1800494e0], 1
mov qword [0x180052130], rax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.180020cdc
int3
Function at 0x180010284
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.18001fa30
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.180017e6c
test eax, eax
je 0x180010379
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
or r8, 0xffffffffffffffff
cmp qword [rbp + 0x3f], rax
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
cmove r8, rax
call fcn.180015134
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x180010408
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x18001044a
mov rax, rbp
jmp 0x1800104a4
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x180010445
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001fe20
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x1800104a1
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x180010445
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180010cb8
Capabilities:
Encode data using xor

Disassembly:
cmp rcx, qword [0x1800494f8]
jae 0x180010d15
mov r9, qword [0x1800494f0]
lea r8, [rcx + rcx*4]
xor edx, edx
cmp dword [r9 + r8*8], edx
je 0x180010d15
cmp dword [r9 + r8*8 + 0x10], edx
jne 0x180010d15
cmp qword [r9 + r8*8 + 0x18], rdx
je 0x180010d15
cmp qword [r9 + r8*8 + 0x20], rdx
jbe 0x180010d0c
mov rcx, qword [r9 + r8*8 + 0x18]
mov rax, rdx
lea r10, [0x180049500]
and eax, 3
mov al, byte [rax + r10]
xor byte [rcx + rdx], al
inc rdx
cmp rdx, qword [r9 + r8*8 + 0x20]
jb 0x180010ce9
mov dword [r9 + r8*8 + 0x10], 1
ret

Function at 0x180010d80
Capabilities:
Encode data using xor

Disassembly:
cmp rcx, qword [0x1800494f8]
jae 0x180010dde
mov r8, qword [0x1800494f0]
lea rdx, [rcx + rcx*4]
xor r11d, r11d
cmp dword [r8 + rdx*8], r11d
je 0x180010dde
cmp dword [r8 + rdx*8 + 0x10], r11d
je 0x180010dde
cmp qword [r8 + rdx*8 + 0x18], r11
je 0x180010dde
mov r9d, r11d
cmp qword [r8 + rdx*8 + 0x20], r11
jbe 0x180010dd9
mov rcx, qword [r8 + rdx*8 + 0x18]
mov rax, r9
lea r10, [0x180049500]
and eax, 3
mov al, byte [rax + r10]
xor byte [rcx + r9], al
inc r9
cmp r9, qword [r8 + rdx*8 + 0x20]
jb 0x180010db5
mov dword [r8 + rdx*8 + 0x10], r11d
ret
Function at 0x1800113a4
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x1800113b6
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x1800113e7
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8]
mov byte [r8], al
inc r8
dec r10
jne 0x1800113cb
mov eax, edx
ret

Function at 0x1800113ec
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rsi, edx
movsxd rax, r9d
mov rbx, r8
add rsi, 4
mov edi, edx
mov rbp, rcx
mov r14, r8
cmp rsi, rax
jbe 0x180011423
xor eax, eax
jmp 0x180011456
call fcn.18000f8e0
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x180011454
sub rbp, rbx
mov rax, rdi
mov rcx, rdx
inc rdx
and ecx, 3
mov cl, byte [rcx + r14]
xor cl, byte [rbx + rbp]
mov byte [rbx], cl
inc rbx
dec rax
jne 0x18001143a
mov eax, esi
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
ret
Function at 0x180011728
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x180011794
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x180011794
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.180011474
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.180011578
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x180011787
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18001179c
mov rcx, qword [rcx + 8]
call fcn.18001d53c
mov eax, edi
jmp 0x18001179c
mov rcx, rbx
call fcn.180011474
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800117a8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov r9d, 2
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
mov eax, dword [rcx + 0x20]
mov rcx, qword [0x18004d868]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x18004d870]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x18004d860]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180011808
mov eax, 1
jmp 0x180011820
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000e680
xor eax, eax
add rsp, 0x60
pop rbx
ret