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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140007570
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007570
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400b9094]
test esi, esi
mov rbx, rcx
jle 0x140001990
mov rax, qword [0x1400b9098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001890
mov rcx, rbx
call fcn.1400022d0
test rax, rax
mov rdi, rax
je 0x1400019b2
mov rax, qword [0x1400b9098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002410
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b9098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000192e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001940
add dword [0x1400b9094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400b9098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000192e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017f0
nop dword [rax]
xor esi, esi
jmp 0x1400018b8
mov rax, qword [0x1400b9098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017f0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400017f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b9100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b90e0]
test rbx, rbx
je 0x140001f7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f73
test rsi, rsi
je 0x140001f73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002190
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400021b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400022d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400b6740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000234d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022f0
add rax, 0x28
cmp rax, r9
jne 0x140002330
xor eax, eax
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b6740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000236f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002378
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000236f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b6740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000242f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002438
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
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, [0x1800702b0]
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 [0x18006aa78]
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, [0x1800702b0]
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.180049260
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, [0x1800718b0]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.18003ffe4
mov ecx, r12d
mov r14, rax
call fcn.18003ffe4
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, [0x1800718b0]
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, [0x1800718b0]
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, [0x1800718b0]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x1800718b0]
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.18003ffa4
mov rcx, rbp
call fcn.18003ffa4
mov rcx, r14
call fcn.18003ffa4
mov eax, ebx
jmp 0x1800042e2
mov rcx, r14
call fcn.18003ffa4
test rbp, rbp
je 0x1800042dd
mov rcx, rbp
call fcn.18003ffa4
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, [0x1800718b0]
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.18003ffe4
mov r14, rax
test rax, rax
jne 0x180004379
lea eax, [r14 + 0xd]
jmp 0x18000446d
mov rcx, r12
call fcn.18003ffe4
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004395
lea edi, [rax + 0xd]
jmp 0x180004463
lea r12, [0x1800718b0]
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.180047390
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.18003ffa4
mov rcx, r14
call fcn.18003ffa4
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 0x180010dbc
Capabilities:
Create udp socket

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x678
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x5c], 0
mov ecx, dword [rsp + 0x680]
call fcn.180010f14
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x180010e1d
xor eax, eax
jmp 0x180010ef7
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x5f0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180010e7a
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x4c
div rcx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x50], 0
jmp 0x180010e8e
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x50], eax
jge 0x180010ee8
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x4c
lea rax, [rsp + rax + 0x84]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x4c
mov eax, dword [rsp + rax + 0x80]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
and eax, 4
test eax, eax
jne 0x180010ee6
mov eax, dword [rsp + 0x58]
and eax, 1
test eax, eax
je 0x180010ee6
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x54], eax
jmp 0x180010ee8
jmp 0x180010e84
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x54]
add rsp, 0x678
ret

Function at 0x180010f14
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x1d8
cmp dword [0x18006ac1c], 1
jne 0x180010f2a
jmp 0x180010f62
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x180010f58
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.180040f20
mov dword [0x18006ac1c], 1
cmp dword [rsp + 0x1e0], 0
je 0x180010fe5
cmp dword [0x18006ac20], 1
jne 0x180010f77
jmp 0x180010fe5
mov ecx, reloc.WS2_32.dll_sendto
call fcn.18003a6d4
mov dword [0x18006ac24], eax
mov ecx, reloc.WS2_32.dll_send
call fcn.18003a6d4
mov dword [0x18006ac28], eax
mov ecx, 0x3d
call fcn.18003a6f4
mov qword [0x1800738a8], rax
mov ecx, 0x3e
call fcn.18003a6f4
mov qword [0x1800738a0], rax
mov ecx, 0x3f
call fcn.18003a6f4
mov qword [0x180073898], rax
mov ecx, 0x42
call fcn.18003a6f4
mov qword [0x180073890], rax
mov dword [0x18006ac20], 1
add rsp, 0x1d8
ret

Function at 0x1800113a8
Capabilities:
Set current directory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x428
cmp dword [rsp + 0x438], 0x3ff
jle 0x1800113c7
jmp 0x1800113fc
movsxd rax, dword [rsp + 0x438]
mov r8, rax
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x20]
call fcn.180041440
movsxd rax, dword [rsp + 0x438]
mov byte [rsp + rax + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add rsp, 0x428
ret
Function at 0x180011774
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x830
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x7ff
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x1800117d0
mov r8d, reloc.WS2_32.dll_send
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [rsp + 0x840]
add rsp, 0x830
pop rdi
ret

Function at 0x180011b90
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001b280
lea rcx, [rsp + 0x48]
call fcn.18001b600
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call fcn.18001b2c4
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x48]
call fcn.18001b16c
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.18000d4cc
mov dword [rsp + 0x28], eax
call fcn.180010f00
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x20]
jae 0x180011c57
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
call fcn.180012140
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180011c3c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180011c55
xor r9d, r9d
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.WS2_32.dll_send
jmp 0x180011c61
jmp 0x180011c08
mov ecx, 0x46
call fcn.18000f7b0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
call sub.WS2_32.dll_closesocket
add rsp, 0x68
ret
Function at 0x180011c7c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rsp + 0x4c], eax
mov r8d, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x58]
call fcn.18001b280
mov r8d, 0x80
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.18001b578
lea rcx, [rsp + 0x58]
call fcn.18001b16c
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.18000d4cc
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
jmp 0x180011d03
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xa
jae 0x180011e2b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.180018be8
test eax, eax
je 0x180011dfc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jae 0x180011dcd
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jbe 0x180011d70
mov dword [rsp + 0x48], 0x2000
jmp 0x180011d80
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180011dc6
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180011dc8
jmp 0x180011dcd
jmp 0x180011d49
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rsp + 0x40]
call fcn.18003c5fc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180011e43
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
jne 0x180011e0b
jmp 0x180011e2b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x4c]
jb 0x180011e1b
jmp 0x180011e2b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180011cf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x70]
mov ecx, gethostbyname
call fcn.18000f7f8
add rsp, 0xf8
ret
Function at 0x180011e4c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x400
call fcn.18003ffe4
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180011e7a
jmp 0x180011f41
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18001b280
mov r8d, 0x400
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.18001b578
test eax, eax
jne 0x180011eb6
mov rcx, qword [rsp + 0x20]
call fcn.18003ffa4
jmp 0x180011f41
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call fcn.18004112c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x180011eda
cmp qword [rsp + 0x28], 0
jne 0x180011ef8
mov rcx, qword [rsp + 0x20]
call fcn.18003ffa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 8
call fcn.18000f68c
jmp 0x180011f41
lea rcx, [rsp + 0x38]
call fcn.18000d4cc
cdqe
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.18001b16c
mov r9, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov r8, rcx
mov edx, 1
mov rcx, rax
call fcn.1800412c8
mov rcx, qword [rsp + 0x28]
call fcn.180040fec
mov rcx, qword [rsp + 0x20]
call fcn.18003ffa4
add rsp, 0x58
ret

Function at 0x180011f48
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov r9d, 0x100000
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xbc], 0x101
xor eax, eax
mov word [rsp + 0xc0], ax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.18001db40
test eax, eax
jne 0x180012043
jmp 0x1800120a8
mov edx, 0x2710
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0xd8], rax
jne 0x18001206e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x180012077
mov qword [rsp + 0x38], 0xffffffffffffffff
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.1800192c4
add rsp, 0x118
pop rdi
pop rsi
ret