joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f270
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400c9948]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xc0]
mov rbp, rdx
mov rbx, qword [rsp + 0xb0]
xor edx, edx
mov r15, qword [rsp + 0xd0]
mov rsi, rcx
mov r14, qword [rsp + 0xd8]
call fcn.14004e610
test eax, eax
jne 0x14004f430
mov r8, qword [rsp + 0xb8]
mov rdx, rbx
mov rcx, rsi
call fcn.14004e8a0
test eax, eax
jne 0x14004f430
lea rax, [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x28], rax
mov r8, rbp
mov rdx, r15
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call fcn.14004eb90
test eax, eax
jne 0x14004f430
mov rbx, qword [rsp + 0xc8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14004f0b0
test eax, eax
jne 0x14004f430
xor r8d, r8d
mov eax, r8d
test rbx, rbx
je 0x14004f42e
cmp rbx, 8
jb 0x14004f3e0
mov rdx, rbx
lea rcx, [rsp + 0x38]
and rdx, 0xfffffffffffffff8
mov r8, rdi
sub r8, rcx
xorps xmm4, xmm4
xorps xmm3, xmm3
movd xmm2, dword [rdi + rax]
lea rcx, [r8 + rax]
movd xmm1, dword [rsp + rax + 0x38]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rsp + rax + 0x3c]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [rsp + rcx + 0x3c]
add rax, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rax, rdx
jb 0x14004f361
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r8d, xmm3
cmp rax, rbx
jae 0x14004f40c
lea rcx, [rsp + 0x38]
sub rdi, rcx
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
add rcx, rax
inc rax
movzx edx, byte [rdi + rcx]
movzx ecx, byte [rcx]
xor edx, ecx
or r8d, edx
cmp rax, rbx
jb 0x14004f3f0
test r8d, r8d
je 0x14004f42e
test rbp, rbp
je 0x14004f427
mov rax, qword [fcn.140080540]
mov r8, rbp
xor edx, edx
mov rcx, r14
call rax
mov eax, 0xffffffee
jmp 0x14004f430
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400946f0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140057ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx eax, r9b
mov rdi, r8
movzx r10d, al
mov rbx, rdx
and r10b, 0x1f
shr eax, 5
mov r11, rcx
and eax, 0x80000003
jge 0x140057cda
dec eax
or eax, 0xfffffffc
inc eax
movzx ecx, al
movzx ebp, r10b
mov edx, dword [r8 + rcx*4]
mov ecx, edx
shr ecx, 0x10
mov r9d, edx
and r9d, 0xff0000
xor r9d, ecx
mov ecx, edx
shl ecx, 0x10
and edx, 0xff00
xor ecx, edx
shr r9d, 8
shl ecx, 8
xor r9d, ecx
mov ecx, 0x20
sub cl, r10b
movzx edx, cl
xor ecx, ecx
test r10b, r10b
cmove edx, ecx
sub rbx, r11
movzx esi, dl
lea r10d, [rcx + 4]
nop dword [rax + rax]
inc al
lea r11, [r11 + 4]
and al, 3
movzx ecx, al
mov edx, dword [rdi + rcx*4]
mov r8d, edx
mov ecx, edx
and r8d, 0xff0000
shr ecx, 0x10
xor r8d, ecx
mov ecx, edx
shl ecx, 0x10
and edx, 0xff00
xor ecx, edx
shr r8d, 8
shl ecx, 8
xor r8d, ecx
mov ecx, ebp
shl r9d, cl
mov edx, r8d
mov ecx, esi
shr edx, cl
or r9d, edx
mov edx, r9d
mov ecx, r9d
shr ecx, 0x10
and edx, 0xff0000
xor edx, ecx
mov ecx, r9d
and ecx, 0xff00
shl r9d, 0x10
xor ecx, r9d
shr edx, 8
shl ecx, 8
mov r9d, r8d
xor edx, ecx
xor edx, dword [rbx + r11 - 4]
mov dword [r11 - 4], edx
sub r10, 1
jne 0x140057d30
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x1400598c0
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea r10d, [rdx + 2]
mov r11d, edx
mov edi, 0xaaaaaaab
mov rsi, r8
mov eax, edi
mov rbx, rcx
mul r10d
shr edx, 1
lea edx, [rdx*4 + 1]
cmp dword [r9], edx
jae 0x140059905
mov dword [r9], edx
mov eax, 6
jmp 0x1400599ed
mov eax, edi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x140059986
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov r10d, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [rbx]
shr rax, 2
mov al, byte [rax + rbp]
mov byte [r8], al
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbp]
mov byte [r8 + 2], al
movzx eax, byte [rbx + 2]
add rbx, 3
and eax, 0x3f
mov al, byte [rax + rbp]
mov byte [r8 + 3], al
add r8, 4
sub r10, 1
jne 0x14005992c
cmp edx, r11d
jae 0x1400599e1
movzx r10d, byte [rbx]
lea edi, [rdx + 1]
cmp edi, r11d
jae 0x14005999d
movzx edx, byte [rbx + 1]
jmp 0x14005999f
xor edx, edx
mov ecx, edx
mov rax, r10
shr ecx, 4
shr rax, 2
shl r10d, 4
add ecx, r10d
and ecx, 0x3f
mov al, byte [rax + rbp]
mov byte [r8], al
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
cmp edi, r11d
jae 0x1400599d2
and edx, 0xf
shl edx, 2
mov cl, byte [rdx + rbp]
jmp 0x1400599d4
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, esi
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x140059b78
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 rbx, r9
mov ecx, dword [r9]
mov esi, r8d
mov rdi, rdx
call fcn.14005c94c
test eax, eax
jne 0x140059ca6
mov r8d, dword [r9 + 4]
lea eax, [r8 - 1]
cmp eax, 0x7f
ja 0x140059ca1
xor edx, edx
mov eax, esi
div r8d
mov r11d, eax
test edx, edx
jne 0x140059ca1
test r8b, 3
jne 0x140059ca1
movsxd rcx, dword [r9]
lea r12, [0x1400d0c80]
imul rdx, rcx, 0xb0
mov r10, qword [rdx + r12 + 0x60]
test r10, r10
je 0x140059c1a
lea rax, [r9 + 0x88]
mov r8d, r11d
add r9, 8
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call r10
jmp 0x140059ca6
test esi, esi
je 0x140059c9d
xor edx, edx
test r8d, r8d
jle 0x140059c42
mov r8, rbp
lea rcx, [rbx + 8]
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 0x140059c2f
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
mov rdx, rdi
lea rcx, [rbx + 8]
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x140059ca6
mov r8d, dword [rbx + 4]
xor r9d, r9d
test r8d, r8d
jle 0x140059c8f
mov rdx, rbx
mov rcx, rdi
sub rdx, rdi
mov eax, dword [rcx]
add r9d, 4
mov dword [rdx + rcx + 8], eax
lea rcx, [rcx + 4]
mov r8d, dword [rbx + 4]
cmp r9d, r8d
jl 0x140059c78
movsxd rax, r8d
add rdi, rax
add rbp, rax
sub esi, r8d
jne 0x140059c1e
xor eax, eax
jmp 0x140059ca6
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 0x140059cc8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400c9948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rbx, r9
mov ecx, dword [r9]
mov edi, r8d
mov rbp, rdx
call fcn.14005c94c
test eax, eax
jne 0x140059de8
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x140059de3
xor edx, edx
mov eax, r8d
div ecx
mov r11d, eax
test edx, edx
jne 0x140059de3
test cl, 3
jne 0x140059de3
movsxd r8, dword [r9]
lea r15, [0x1400d0c80]
imul r9, r8, 0xb0
mov r10, qword [r9 + r15 + 0x68]
test r10, r10
je 0x140059d67
lea rax, [rbx + 0x88]
mov r8d, r11d
lea r9, [rbx + 8]
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call r10
jmp 0x140059de8
test edi, edi
je 0x140059ddf
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [r9 + r15 + gethostbyname]
test eax, eax
jne 0x140059de8
mov ecx, dword [rbx + 4]
xor r11d, r11d
test ecx, ecx
jle 0x140059dd2
lea r8, [rsp + 0x30]
mov r9, rsi
sub r8, rbx
lea rdx, [rbx + 8]
sub r9, rbx
mov r10, rbp
sub r10, rbx
mov ecx, dword [r8 + rdx - 8]
add r11d, 4
xor ecx, dword [rdx]
mov eax, dword [r9 + rdx - 8]
mov dword [rdx], eax
mov dword [r10 + rdx - 8], ecx
lea rdx, [rdx + 4]
mov ecx, dword [rbx + 4]
cmp r11d, ecx
jl 0x140059daf
movsxd rax, ecx
add rsi, rax
add rbp, rax
sub edi, ecx
jne 0x140059d6b
xor eax, eax
jmp 0x140059de8
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400946f0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005c24c
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
xor eax, eax
and qword [rcx], 0
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 0x14005c9c8
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 ecx, ebp
mov edi, r9d
mov r12, r8
call fcn.14005c974
test eax, eax
jne 0x14005cb2d
mov rbx, rbp
mov dword [rsi + 0x70], ebp
shl rbx, 7
lea r13, [0x1400d2280]
mov r15d, dword [rbx + r13 + 0xc]
test r9d, r9d
jne 0x14005ca23
lea eax, [r9 + 3]
jmp 0x14005cb2d
mov ecx, dword [rbx + r13 + 0x10]
call fcn.140081440
mov r14, rax
test rax, rax
jne 0x14005ca3e
lea eax, [r14 + 0xd]
jmp 0x14005cb2d
mov ecx, dword [rbx + r13 + 0x10]
call fcn.140081440
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x14005ca5c
lea edi, [rax + 0xd]
jmp 0x14005cb23
mov ecx, dword [rbx + r13 + 0x10]
mov rdx, r12
cmp edi, ecx
jbe 0x14005caa6
mov dword [rsp + 0x30], ecx
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rcx
mov ecx, ebp
call fcn.140059ffc
mov edi, eax
test eax, eax
jne 0x14005cb17
mov eax, dword [rbx + r13 + 0x10]
cmp r15d, eax
jae 0x14005cacd
sub eax, r15d
mov rcx, r15
add rcx, qword [rsi + 0xe8]
jmp 0x14005cac6
mov r8, rdi
mov rcx, rax
call fcn.140080780
mov eax, dword [rbx + r13 + 0x10]
cmp edi, eax
jae 0x14005cacd
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.14005c934
xor r8d, r8d
cmp dword [rbx + r13 + 0x10], r8d
jbe 0x14005caf3
mov rax, qword [rsi + 0xe8]
mov cl, byte [r8 + rax]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r13 + 0x10]
jb 0x14005cad7
mov rcx, rsi
call qword [rbx + r13 + 0x58]
mov edi, eax
test eax, eax
jne 0x14005cb17
mov r8d, dword [rbx + r13 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r13 + 0x60]
mov edi, eax
test eax, eax
je 0x14005cb23
mov rcx, qword [rsi + 0xe8]
call fcn.140081438
mov rcx, r14
call fcn.140081438
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 0x14005cb4c
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 rbp, rcx
mov r13, r8
mov ecx, dword [rcx + 0x70]
mov r15, rdx
call fcn.14005c974
test eax, eax
jne 0x14005ccbb
movsxd rdi, dword [rbp + 0x70]
lea rbx, [0x1400d2280]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.140081440
mov ecx, r12d
mov r14, rax
call fcn.140081440
mov rsi, rax
test r14, r14
je 0x14005cca9
test rax, rax
je 0x14005cca4
mov rdx, rax
mov rcx, rbp
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x14005cc84
xor r8d, r8d
lea r9, [0x1400d2280]
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x14005cbff
mov rax, qword [rbp + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x14005cbe3
mov rcx, rbp
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x14005cc84
lea rax, [0x1400d2280]
mov rdx, r14
mov r8d, dword [rdi + rax + 0x10]
mov rcx, rbp
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x14005cc84
mov r8d, r12d
lea rax, [0x1400d2280]
mov rdx, rsi
mov rcx, rbp
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x14005cc84
mov rdx, r14
lea rax, [0x1400d2280]
mov rcx, rbp
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x14005cc84
xor ecx, ecx
test r12d, r12d
je 0x14005cc7e
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x14005cc7e
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x14005cc67
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rbp + 0xe8]
call fcn.140081438
mov rcx, rsi
call fcn.140081438
mov rcx, r14
call fcn.140081438
mov eax, ebx
jmp 0x14005ccbb
mov rcx, r14
jmp 0x14005ccb1
test rsi, rsi
je 0x14005ccb6
mov rcx, rsi
call fcn.140081438
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 0x14005d868
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov ebx, edx
mov dword [rax - 0x18], 0xf0000020
mov rdi, rcx
xor edx, edx
lea rcx, [rax + 0x18]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14005d8ca
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005d8f0
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x14005d8e1
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14006655c
Capabilities:
Create udp socket

Disassembly:
sub rsp, 0x678
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x54], 0
call fcn.1400666a4
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 0x1400665b2
xor eax, eax
jmp 0x14006669a
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 0x14006660f
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x4c
div rcx
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 0
jmp 0x140066623
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jge 0x14006668b
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 0x140066689
mov eax, dword [rsp + 0x58]
and eax, 1
test eax, eax
je 0x140066689
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0x100007f
je 0x140066689
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x5c], eax
jmp 0x14006668b
jmp 0x140066619
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x5c]
add rsp, 0x678
ret
Function at 0x1400666a4
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
cmp dword [0x1400ca448], 1
jne 0x1400666b9
jmp 0x140066755
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 0x1400666e7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.14008574c
mov dword [0x1400ca448], 1
mov ecx, shutdown
call fcn.140077f38
mov dword [0x1400ca44c], eax
mov ecx, reloc.WS2_32.dll_send
call fcn.140077f38
mov dword [0x1400ca450], eax
mov ecx, 0x3d
call fcn.140077f7c
mov qword [0x1400d7580], rax
mov ecx, 0x3e
call fcn.140077f7c
mov qword [0x1400d7578], rax
mov ecx, 0x3f
call fcn.140077f7c
mov qword [0x1400d7570], rax
mov ecx, 0x42
call fcn.140077f7c
mov qword [0x1400d7568], rax
add rsp, 0x1d8
ret

Function at 0x1400667e8
Capabilities:
Set current directory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x428
cmp dword [rsp + 0x438], 0x3ff
jle 0x140066807
jmp 0x14006683c
movsxd rax, dword [rsp + 0x438]
mov r8, rax
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x20]
call fcn.140085860
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 0x140066b44
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x830
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
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 0x140066b9b
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 0x140066f08
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140066f3b
xor eax, eax
jmp 0x140066f77
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, dword [rsp + 0x50]
jb 0x140066f4b
xor eax, eax
jmp 0x140066f77
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x28]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add rsp, 0x30
pop rdi
ret
Function at 0x140066f80
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 qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x60], 1
mov r9d, 0x100000
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
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], 0x8000000
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.140078dd4
test eax, eax
jne 0x140067089
jmp 0x1400670ca
mov edx, 0x2710
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.14006aef0
add rsp, 0x118
pop rdi
pop rsi
ret
Function at 0x1400670d4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov qword [rsp + 0x78], 0
mov ecx, 0xa000
call fcn.14006fe58
mov qword [rsp + 0x60], rax
mov edx, 0x4000
mov rcx, qword [rsp + 0x60]
call fcn.14007009c
mov qword [rsp + 0x80], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14007009c
mov qword [rsp + 0x90], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14007009c
mov qword [rsp + 0x98], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14007009c
mov qword [rsp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14007009c
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
mov rdi, qword [rsp + 0x158]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xec], 0x101
xor eax, eax
mov word [rsp + 0xf0], ax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0xc0], 0
mov r8d, 0x4000
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x148]
call fcn.140079508
mov r8d, 0x400
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x138]
call fcn.140079508
mov r8d, 0x400
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x140]
call fcn.140079508
mov r8d, 0x400
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x130]
call fcn.140079508
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x400
jae 0x1400672a3
mov rdx, qword [rsp + 0x70]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x150]
or eax, 0x8000400
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x140067328
mov dword [rsp + 0x68], 1
jmp 0x140067368
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x130]
mov r8, qword [rsp + 0x148]
lea rdx, str._s_as__s_s:__d
mov ecx, 0x35
call fcn.140066264
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call fcn.14006ff80
mov eax, dword [rsp + 0x68]
add rsp, 0x120
pop rdi
ret