joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180085254
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007a8d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007a8d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800853a4
cmp rax, 0xffffffffffffffff
je 0x1800853a4
xor edi, edi
test rbp, rbp
jle 0x18008534f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180077c9c
mov rbx, rax
test rax, rax
jne 0x1800852dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180085345
mov edx, 0x8000
mov ecx, r14d
call fcn.1800850d8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180077148
cmp eax, 0xffffffff
je 0x180085325
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800852ec
mov edx, r15d
mov ecx, r14d
call fcn.1800850d8
jmp 0x180085345
cmp byte [rsi + 0x38], dil
je 0x18008533c
cmp dword [rsi + 0x34], 5
jne 0x18008533c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180085345
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800776b0
jmp 0x1800853b8
jns 0x1800853b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007a8d0
cmp rax, 0xffffffffffffffff
jne 0x180085370
cmp byte [rsi + 0x30], dil
je 0x1800853b8
mov edi, dword [rsi + 0x2c]
jmp 0x1800853b8
mov ecx, r14d
call fcn.18007e87c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800853b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800853b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800853b1
mov eax, dword [rsi + 0x2c]
jmp 0x1800853b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007a8d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180085e90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180085eb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180085eb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140053ee0
Capabilities:
Get session user name

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 4], 0
lea rdx, [rbp + 4]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [rbp + 4]
test rax, rax
mov qword [rbp - 0x18], rax
je 0x140053f41
lea rdi, [rax + rax]
mov edx, 2
mov rcx, rdi
call fcn.140051dc0
test rax, rax
jne 0x140053f46
mov edx, 2
mov rcx, rdi
call fcn.1400c2780
ud2
mov eax, 2
lea rdx, [rbp + 4]
mov qword [rbp - 8], rax
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140053f9d
mov eax, dword [rbp + 4]
lea r8, [rax - 1]
test rax, rax
cmove r8, rax
mov rcx, rsi
mov rdx, qword [rbp - 8]
call fcn.1400999e0
mov rdx, qword [rbp - 0x18]
test edx, edx
je 0x140053f8f
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 8]
call fcn.140051dd0
mov rax, rsi
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0xc], eax
lea rax, [rbp - 0xc]
mov qword [rbp - 0x28], rax
lea rax, [0x1400bc3a0]
mov qword [rbp - 0x20], rax
lea rax, [0x1400c7a48]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rdx, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823whoami_0.9.0_srcwindows.rsFailed_to_get_username:___report_at_https:__github.com_libcala_whoami_issues
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2

Function at 0x1400544e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x140054522
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x14005454f
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1400999e0
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret

Function at 0x14005fee0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14005fef0
test al, 1
je 0x14005ff0f
test al, 2
jne 0x14005ff29
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
Function at 0x1400638e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140063900
test al, 1
je 0x140063978
test al, 2
jne 0x140063992
test al, 8
mov qword [rbp + 8], rcx
jne 0x140063929
add rcx, 0x20
call fcn.14005c8d0
jmp 0x140063945
test al, 0x10
je 0x140063945
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x68]
test rax, rax
je 0x140063a0b
mov rcx, qword [rcx + 0x60]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x1400639ac
jne 0x14006396e
call fcn.1400628d0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400bc610]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:__
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x1400c8990]
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2
lea rcx, str.waker_missing
lea r8, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.24.1_src_runtime_taskcore.rs
mov edx, recv
call fcn.1400be740
ud2
Function at 0x140063af0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140063b10
test al, 1
je 0x140063b88
test al, 2
jne 0x140063ba2
test al, 8
mov qword [rbp + 8], rcx
jne 0x140063b39
add rcx, 0x20
call fcn.14005cad0
jmp 0x140063b55
test al, 0x10
je 0x140063b55
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x140063c1b
mov rcx, qword [rcx + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x140063bbc
jne 0x140063b7e
call fcn.140062ac0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400bc610]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:__
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x1400c8990]
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2
lea rcx, str.waker_missing
lea r8, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.24.1_src_runtime_taskcore.rs
mov edx, recv
call fcn.1400be740
ud2
Function at 0x140063d00
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140063d20
test al, 1
je 0x140063d98
test al, 2
jne 0x140063db2
test al, 8
mov qword [rbp + 8], rcx
jne 0x140063d49
add rcx, 0x20
call fcn.14005c690
jmp 0x140063d65
test al, 0x10
je 0x140063d65
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x78]
test rax, rax
je 0x140063e2b
mov rcx, qword [rcx + 0x70]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x140063dcc
jne 0x140063d8e
call fcn.1400627c0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400bc610]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:__
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x1400c8990]
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2
lea rcx, str.waker_missing
lea r8, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.24.1_src_runtime_taskcore.rs
mov edx, recv
call fcn.1400be740
ud2
Function at 0x140063f10
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140063f30
test al, 1
je 0x140063fab
test al, 2
jne 0x140063fc5
test al, 8
mov qword [rbp + 8], rcx
jne 0x140063f59
add rcx, 0x20
call fcn.14005c460
jmp 0x140063f78
test al, 0x10
je 0x140063f78
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x80]
test rax, rax
je 0x14006403e
mov rcx, qword [rcx + 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x140063fdf
jne 0x140063fa1
call fcn.1400629c0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400bc610]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:__
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x1400c8990]
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2
lea rcx, str.waker_missing
lea r8, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.24.1_src_runtime_taskcore.rs
mov edx, recv
call fcn.1400be740
ud2
Function at 0x140064120
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140064140
test al, 1
je 0x1400641bb
test al, 2
jne 0x1400641d5
test al, 8
mov qword [rbp + 8], rcx
jne 0x140064169
add rcx, 0x20
call fcn.14005c1f0
jmp 0x140064188
test al, 0x10
je 0x140064188
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x80]
test rax, rax
je 0x14006424e
mov rcx, qword [rcx + 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x1400641ef
jne 0x1400641b1
call fcn.140062c00
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400c8908]
mov edx, 0x23
call fcn.1400c2900
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400c8948]
mov edx, 0x25
call fcn.1400c2900
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400bc610]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:__
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x1400c8990]
lea rcx, [rbp - 0x58]
call fcn.1400c2820
ud2
lea rcx, str.waker_missing
lea r8, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.24.1_src_runtime_taskcore.rs
mov edx, recv
call fcn.1400be740
ud2

Function at 0x140074220
Capabilities:
Terminate process

Disassembly:
jmp 0x14009c9e0
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14009c9fd
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x140085580
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140089ec0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140100178]
cmp rax, 3
jne 0x140089f4b
cmp word [rdi], 0
mov eax, 2
mov ecx, reloc.WS2_32.dll_socket
cmove ecx, eax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x140089f20
mov rdi, rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140089f38
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140089f3e
mov qword [rsi + 8], rdi
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsp + 0x2b], 1
lea rax, [rsp + 0x2b]
mov qword [rsp + 0x30], rax
lea rax, str.C:UsersMiku.cargo_registry_srcgithub.com_1ecc6299db9ec823mio_0.8.5_src_syswindows_net.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140100178]
lea r9, fcn.140004220
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.1400c1fc0
jmp 0x140089ed9

Function at 0x140089f90
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rdi, rdx
mov r14, rcx
cmp word [rdx], 0
je 0x140089ff6
add rdi, 4
mov rcx, rdi
call fcn.140051e30
movups xmm6, xmmword [rax]
mov rcx, rdi
call fcn.140099350
mov r15d, eax
mov rcx, rdi
call fcn.140099330
mov esi, eax
rol si, 8
mov rcx, rdi
call fcn.140099340
mov ebx, eax
mov edi, 0x1c
mov ax, reloc.WS2_32.dll_socket
jmp 0x14008a01e
add rdi, 2
mov rcx, rdi
call fcn.140051e30
mov ebx, dword [rax]
mov rcx, rdi
call fcn.140099320
mov esi, eax
rol si, 8
xorps xmm6, xmm6
mov edi, reloc.WS2_32.dll_recv
mov ax, 2
mov word [rbp - 0x40], ax
mov word [rbp - 0x3e], si
mov dword [rbp - 0x3c], ebx
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], r15d
mov rcx, r14
call fcn.140051e30
mov rcx, rax
call fcn.140051e30
mov rcx, rax
call fcn.1400673d0
lea rdx, [rbp - 0x40]
mov rcx, rax
mov r8d, edi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14008a062
xor eax, eax
jmp 0x14008a089
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp - 0x20], rcx
mov ecx, eax
call fcn.1400abaa0
xor ecx, ecx
cmp al, 0xd
mov rax, qword [rbp - 0x20]
cmove rax, rcx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x140094e80
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x140094ea1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x140094ed9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, reloc.WS2_32.dll_recv
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140094ed2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140094ed9
mov ecx, eax
call fcn.1400aaa20
mov r8d, dword [0x140100328]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0xd8], 1
mov qword [rcx + 0xe0], rax
mov qword [rcx + 0xe8], rdx
add rsp, 0x38
ret

Function at 0x1400952c0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x140095360
jmp 0x14009534f
jae 0x14009541e
cmp r8, 0x201
jae 0x140095360
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x1400953b7
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14009538f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.1400c1ac0
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x1400953df
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140095486
mov r8d, r15d
cmp rsi, r8
jne 0x140095340
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400954a9
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x14009534f
jmp 0x140095360
cmp r14, r8
jb 0x1400954c3
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.1400999e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x14009546f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.140051dd0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x140095457
jmp 0x14009546f
lea rcx, [0x1400cde98]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400c2900
jmp 0x1400954d8
lea rax, str._t_r_
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400c2d00
ud2
Function at 0x140095ce0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp byte [rcx], 0
je 0x140095cfe
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.140095d70
lea rcx, [rsp + 0x28]
call fcn.1400a4c10
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140095d2f
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140095d34
xor ebx, ebx
test rsi, rsi
jne 0x140095d49
jmp 0x140095d5d
mov rbx, rsi
jmp 0x140095d5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140095d5d
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140051dd0
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140099880
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400998c2
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400998ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400998d7
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400998ea
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14009993d
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140099954
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14009a300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14009a333
test ecx, ecx
jne 0x14009a382
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14009a340
test ecx, ecx
jne 0x14009a382
mov rcx, rdi
call fcn.14009a1e0
movzx r10d, al
test bl, bl
jne 0x14009a389
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x14009a376.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14009a4fc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x14009a376.2
xor r10d, r10d
test bl, bl
je 0x14009a350
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14009a4de
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14009a3bb
xor edi, edi
jmp 0x14009a438
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x14009a400
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14009a41b
inc rsi
dec rax
cmp rsi, 1
jne 0x14009a3e0
jmp 0x14009a438
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14009a41b
cmp ebx, 0x5c
je 0x14009a41b
inc rsi
dec rax
cmp rsi, 1
jne 0x14009a400
jmp 0x14009a438
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14009a4ec
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x14009a462
mov al, 9
cmp rdx, 2
je 0x14009a466
cmp rdx, 1
jne 0x14009a476
cmp byte [r9], 0x2e
jne 0x14009a476
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14009a476
mov al, 0xa
jmp 0x14009a476
cmp byte [r9], 0x2e
jne 0x14009a476
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x14009a376.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x14009a376.2
mov esi, 2
jmp case.0x14009a376.2
lea r8, str.library_std_srcpath.rs
call fcn.1400c2cf0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400c2cf0
ud2