joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140068eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400621b0
sub rsp, rax
mov rax, qword [0x1400b7080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400794e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140068eff
mov rax, rbp
jmp 0x140069007
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb9400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140079774
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb9400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140069003
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069003
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140079774
test rax, rax
js 0x140069003
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140069003
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140068ff5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140068ff5
cmp byte [rcx], 0xd
jne 0x140068fdb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140068fea
cmp byte [rcx + 1], 0xa
jne 0x140068fea
inc rcx
jmp 0x140068fea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb7460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140068fbd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140069007
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400617f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140079820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400b9400]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140079877
cmp word [rdx], r13w
jne 0x140079877
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007987c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400799a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400799c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400798b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400798dc
cmp r9, r8
jae 0x1400798ec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140079896
jmp 0x1400799a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140079996
cmp dword [rsp + 0x80], esi
je 0x140079996
lea r8, [0x1400b9400]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007996e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007993e
mov word [rbx], r13w
jmp 0x14007999e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14007994b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007999e
cmp word [rsp + 0x70], r13w
jne 0x14007997b
cmp rbx, r14
je 0x140079938
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14007977c
cmp word [rsp + 0x70], r13w
je 0x1400799a1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400b9400]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007999b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400799a1
Function at 0x14007d6e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007d6fe
mov al, 1
jmp 0x14007d75e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007d70f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007d75c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140081a9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007d75c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007d75c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007d75c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007d75e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400811d0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140081200
xor eax, eax
jmp 0x1400812c3
mov rbp, rbx
cmp word [rax], si
je 0x140081225
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008120c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140081208
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14007fad8
movsxd r14, eax
test eax, eax
jne 0x140081263
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400811f9
mov rcx, r14
call fcn.14007c184
mov rdi, rax
test rax, rax
jne 0x14008127c
xor ecx, ecx
call fcn.14007a504
jmp 0x140081258
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14007fad8
test eax, eax
jne 0x1400812ad
mov rcx, rdi
call fcn.14007a504
jmp 0x1400812b7
xor ecx, ecx
call fcn.14007a504
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140083ff0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140079120
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140084091
cmp ebx, dword [rsp + 0x30]
je 0x14008408a
test esi, esi
je 0x14008408a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140084065
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140084072
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008404f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140084076
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140084093
mov eax, 1
jmp 0x140084093
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140088170
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.14007977c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007977c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400882c0
cmp rax, 0xffffffffffffffff
je 0x1400882c0
xor edi, edi
test rbp, rbp
jle 0x14008826b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007a48c
mov rbx, rax
test rax, rax
jne 0x1400881f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140088261
mov edx, 0x8000
mov ecx, r14d
call fcn.140077260
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.14007ba78
cmp eax, 0xffffffff
je 0x140088241
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140088208
mov edx, r15d
mov ecx, r14d
call fcn.140077260
jmp 0x140088261
cmp byte [rsi + 0x38], dil
je 0x140088258
cmp dword [rsi + 0x34], 5
jne 0x140088258
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140088261
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007a504
jmp 0x1400882d4
jns 0x1400882d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007977c
cmp rax, 0xffffffffffffffff
jne 0x14008828c
cmp byte [rsi + 0x30], dil
je 0x1400882d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400882d4
mov ecx, r14d
call fcn.140081a9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400882d4
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 0x1400882d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400882cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400882d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007977c
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 0x140088d20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140088d48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140088d48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012156
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x1400eb288]
mov ebx, 0xff
lea rsi, str.C:Userspc.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
cmp r9, 0x40
jb 0x140012286
mov r14d, 4
sub r14, 1
jb 0x14001217b
cmp r9, 0xf
jbe 0x1400122b3
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.14001279a
mov r9, rdx
mov ecx, ebp
jmp 0x14001218b
xor edx, edx
cmp r9, rdx
je 0x1400122a4
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x140012288
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.C:Userspc.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
mov ecx, send
mov rdx, r9
call fcn.1400e4550
ud2
Function at 0x140064bb4
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x348
mov rbx, rdx
mov qword [rsp + 0x50], rcx
movzx eax, byte [rdx + 0x378]
test eax, eax
mov qword [rsp + 0x58], r8
je 0x140064c05
cmp eax, 3
jne case.default.0x140064c03
mov r15, r8
lea r12, [rbx + 0x1f0]
movzx eax, byte [rbx + 0x280]
lea rcx, [0x14014dc2c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
and qword [rbx + 0x20], 0
mov qword [rbx + 0x40], rax
jmp 0x140064c32
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainC:Userspc.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.10_srcutilpoll_buf.rs
lea r8, str.C:Userspc.cargo_registry_srcindex.crates.io_6f17d22bba15001fhyper_0.14.27_srcclientconnecthttp.rs
jmp 0x140065614
Function at 0x14008018f
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400801f2
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x140080228
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x140080221
lea r9, [0x14014c9e8]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x140080210
mov dword [rsp + 0xa0], edx
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x140080279
mov rax, r15
shr rax, 0x3c
jne 0x14008033b
mov rbx, qword [rcx]
mov ecx, 8
mov rdx, rsi
call fcn.14009dcda
test rax, rax
je 0x140080342
mov rdi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x140080264
mov eax, r15d
jmp 0x140080280
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1400802d7
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14008030f
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.14009dcda
test rax, rax
je 0x14008034c
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x140080324
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.140002588
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400085a0
ud2
mov ecx, 8
mov rdx, rsi
jmp 0x140080356
mov ecx, 8
mov edx, 0x20
call fcn.1400e41c0
ud2

Function at 0x1400808dd
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140080907
mov rdx, qword [rsp + 0x20]
jmp 0x14008090f
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x140081e37
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140081e64
xor eax, eax
jmp 0x140081e69
call fcn.140034bc9
nop
add rsp, 0x38
ret
Function at 0x1400841d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140122378]
xchg edx, eax
loope 0x1400841ee
add byte [rdi], cl
sub dword [rsp + 0x60], eax
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x11
and al, 0x38
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140084243
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14008427a
test eax, eax
js 0x140084254
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008426d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
invalid
add byte [rax - 0x3f], cl
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
invalid
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401223e0]

Function at 0x140088a50
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
add al, 0
add byte [rax - 0x73], cl
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], al
add byte [rax - 0x39], cl
test dword [rax], esp
add al, 0
add dh, bh
invalid
invalid
dec dword [rax - 0x77]
invalid
lea rcx, [rbp - 0x58]
lea ecx, [rbp - 0x58]

Function at 0x14008ba50
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
mov edx, ecx
lea rcx, [rsp + 0x20]
call fcn.140084950
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
je 0x14008ba94
sub byte [rax - 0x7b], cl
invalid
Function at 0x1400970e0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140164a38]
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140008430
test rax, rax
je 0x1400971b7
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400972a0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400971a9
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x140097186
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400084c0
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.1400084c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, reloc.WS2_32.dll_recv
call fcn.1400e41c0
ud2

Function at 0x140097ca0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140097ce3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400895a0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400e4490
ud2

Function at 0x14009cd10
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
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 0x14009cd45
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14009cd4a
call fcn.140097ca0
nop
add rsp, 0x38
ret

Function at 0x1400a280f
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400a2816
test al, 1
je 0x1400a2835
test al, 2
jne 0x1400a284a
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140125dd8]
mov edx, 0x23
jmp 0x1400a285d
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140125e18]
mov edx, 0x25
call fcn.1400e4650
ud2
Function at 0x180009440
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea r14d, [rdx + 0x225]
mov rsi, rcx
cmp edx, r14d
jae case.0x1800094a3.2
mov r15, qword [rsp + 0xa0]
lea ebp, [rdx - 0x1e]
mov ebx, dword [rsp + 0x98]
lea r13, [0x180000000]
xor r12d, r12d
cmp ebp, 0xc9
ja case.0x1800094a3.7
movzx eax, byte [rbp + r13 + 0x9730]
mov ecx, dword [r13 + rax*4 + 0x9710]
add rcx, r13
jmp rcx
mov r9d, 0xe5
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1800081d0
cmp eax, 3
setae byte [rsp + 0x40]
jmp case.0x1800094a3.7
mov edi, 0xdc
nop dword [rax]
cmp edi, 0x44c0
ja 0x1800095da
je 0x18000962b
mov eax, edi
sub eax, 0xd1
je 0x180009583
sub eax, 0xb
je 0x180009558
cmp eax, 0x4074
jne 0x1800095f0
xor r9d, r9d
mov dword [rsp + 0x98], 8
lea r8, [rsp + 0x98]
mov rdx, rsi
mov ecx, 0x100
call fcn.180057ae0
mov edx, reloc.SHLWAPI.dll_SHStripMneumonicW
mov dword [rsp + 0xa0], eax
lea rcx, [rsp + 0xa0]
call fcn.180033a20
cmp dword [0], 1
mov rbx, rax
mov eax, r12d
sete al
mov dword [0], eax
jmp 0x1800095f0
mov r8, qword [rsi + 0x3c0]
test r8, r8
je 0x180009611
mov rdx, qword [r8 + 0x48]
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
lea rax, [rdx - 1]
mov qword [r8 + 0x48], rax
mov qword [rsp + 0x48], rcx
jmp 0x1800095f0
test rsi, rsi
jne 0x1800095b0
lea r9, [0x180062423]
mov dword [rsp + 0xa8], r12d
lea r8, [rsp + 0xa8]
mov edx, 0xa8
lea rcx, str.a___NULL
call fcn.1800175c0
lea r9, [0x180062423]
mov dword [rsp + 0xa0], r12d
lea r8, [rsp + 0xa0]
mov edx, 0xa8
lea rcx, str.b___NULL
call fcn.1800175c0
jmp 0x1800095f0
cmp edi, 0x81cf
je 0x1800095ec
cmp edi, 0xc24e
je 0x18000962b
jmp 0x1800095f0
mov dword [rsp + 0x48], ebx
add edi, 0x43e4
cmp edi, 0x19758
jbe 0x1800094d0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp case.0x1800094a3.7
movsxd rdx, dword [rsi + 0x3a4]
mov rcx, qword [rsi + rdx*8 + 0x68]
lea eax, [rdx - 1]
mov qword [rsp + 0x48], rcx
mov dword [rsi + 0x3a4], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp case.0x1800094a3.7
mov r9d, 0x13
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call fcn.180028dd0
test al, al
je 0x1800096ed
cmp dword [rsp + 0x30], 2
jb case.0x1800094a3.7
mov byte [rsp + 0x40], 1
jmp case.0x1800094a3.2
mov r8d, 0x120
mov dword [rsp + 0x38], r12d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180052660
mov r15, rax
jmp case.0x1800094a3.7
mov dword [rsp + 0x40], 1
jmp case.0x1800094a3.7
mov r8d, 0x120
mov dword [rsp + 0xa0], 1
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.180052660
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov r8, rsi
lea rdx, [rsp + 0xa0]
mov ecx, 0xc1
mov dword [rsp + 0xa0], eax
call fcn.18004e250
add ebp, 0x3d
lea eax, [rbp + 0x1e]
cmp eax, r14d
jb 0x180009483
jmp case.0x1800094a3.2
mov byte [rsp + 0x40], r12b
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret