joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050330
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400504d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140050395
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140050395
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140050395
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400503cc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140050422
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140050422
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140050422
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140050422
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140050422
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14004fde0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140050484
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002c190
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400501b0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400504d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002c190
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140051c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140080080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140051cd5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140051d36
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14002c190
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400654c0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140051df1
sub ecx, 1
je 0x140051e64
sub ecx, 1
je 0x140051da0
cmp ecx, 1
je 0x140051d83
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400705f0]
call fcn.14002c190
jmp 0x140051e64
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140051970
test eax, eax
je 0x140051e64
jmp 0x140051d0a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140051e64
sub rax, rsi
cmp rax, rbp
jae 0x140051e64
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14002c310
jmp 0x140051e64
cmp r8d, 4
jle 0x140051e64
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140051e64
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002c0b0
mov esi, eax
test eax, eax
je 0x140051e43
mov edx, 5
mov rcx, rbx
call fcn.140052930
mov eax, esi
jmp 0x140051d0a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14003ab90
mov rcx, r14
call fcn.14003ae70
test eax, eax
je 0x140051d08
mov edx, 5
mov rcx, rbx
call fcn.140052930
mov eax, Ordinal_46
jmp 0x140051d0a
Function at 0x140064c00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140064c42
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140064c89
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140064ce2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140064ca0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140064d23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140075d7a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140075d7b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140064cf0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140065b4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140065b96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140065b96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140065b96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140065b96
cmp dword [rcx + 0x84], 0xe
jbe 0x140065b96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140065b98
xor al, al
add rsp, 0x28
ret
Function at 0x1400220db
Capabilities:
Open clipboard

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, 0xfffffffffffffffb
xor ecx, ecx
call sub.USER32.dll_OpenClipboard
test eax, eax
jne 0x140022113
call sub.KERNEL32.dll_GetLastError
test rbx, rbx
je 0x14002211e
mov ecx, 5
call fcn.14018f7cc
inc rbx
jmp 0x1400220ef
mov qword [rsi + 8], rdi
mov eax, 5
jmp 0x140022123
mov eax, 2
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140045410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x140045490
cmp r10, rax
jb 0x140045504
cmp r10, rdx
ja 0x140045518
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x140045492
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x140045470
jmp 0x1400454f3
ja 0x14004549a
mov rax, r10
cmp r11, r8
jne 0x140045442
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x1400454d0
mov r15, rbx
sub ecx, edx
jns 0x1400454ea
jmp 0x1400454f5
cmp rbx, r14
je 0x140045529
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x1400454f5
xor al, 1
cmp r15, r14
jne 0x1400454b0
jmp 0x1400454f5
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, [0x1401a16a8]
mov rcx, rax
mov rdx, r10
call fcn.140192650
ud2
lea r8, [0x1401a16a8]
mov rcx, r10
call fcn.1401923c0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, [0x1401a16c0]
mov edx, 0x2b
call fcn.1401923d0
ud2
Function at 0x14004a165
Capabilities:
Hash data with crc32

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r9, r8
mov rax, rdx
not ecx
lea rbx, [0x1401ab2e8]
mov r15d, 0xff
lea r14, str.C:Users_flori.cargo_registry_srcgithub.com_1ecc6299db9ec823crc32fast_1.3.2_src_baseline.rs
cmp r9, 0x40
jb 0x14004a293
mov edi, 4
sub rdi, 1
jb 0x14004a18d
cmp r9, 0xf
jbe 0x14004a2be
movzx edx, byte [rax + 0xf]
movzx ebp, byte [rax + 0xe]
mov ebp, dword [rbx + rbp*4 + 0x400]
xor ebp, dword [rbx + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rbx + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rbx + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rbx + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rbx + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rbx + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rbx + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rbx + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rbx + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rbx + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rbx + rdx*4 + 0x2c00]
movzx edx, byte [rax + 3]
mov esi, ecx
shr esi, 0x18
xor rsi, rdx
xor ebp, dword [rbx + rsi*4 + 0x3000]
movzx edx, byte [rax + 2]
mov esi, ecx
shr esi, 0x10
and esi, r15d
xor rsi, rdx
xor ebp, dword [rbx + rsi*4 + 0x3400]
movzx edx, byte [rax + 1]
mov esi, ecx
shr esi, 8
and esi, r15d
xor rsi, rdx
xor ebp, dword [rbx + rsi*4 + 0x3800]
movzx edx, byte [rax]
and ecx, r15d
xor rcx, rdx
xor ebp, dword [rbx + rcx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, r14
call fcn.14004a7c1
mov r9, rdx
mov ecx, ebp
jmp 0x14004a19c
xor ebp, ebp
cmp r9, rbp
je 0x14004a2ad
mov dl, byte [rax + rbp]
xor dl, cl
movzx edx, dl
shr ecx, 8
xor ecx, dword [rbx + rdx*4]
inc rbp
jmp 0x14004a295
not ecx
mov eax, ecx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, str.C:Users_flori.cargo_registry_srcgithub.com_1ecc6299db9ec823crc32fast_1.3.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r9
call fcn.140192330
ud2
Function at 0x140063836
Capabilities:
Log keystrokes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call fcn.14010e39a
mov rax, qword [rbx + 0x20]
lea r14, [rsp + 0x80]
mov qword [r14 + 0x20], rax
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [r14 + 0x10], xmm1
movaps xmmword [r14], xmm0
mov r12, qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r13b, 1
lea r15, [rsp + 0x20]
mov rcx, r14
call fcn.140063d7e
test ax, ax
je 0x1400638f4
mov ebp, edx
movzx ecx, dx
xor edx, edx
call r12
mov ebx, eax
mov ecx, ebp
call fcn.14010bbd0
mov ebp, eax
call fcn.14010c2ac
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0xd
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], r13b
and dword [rsp + 0x48], 0
mov byte [rsp + 0x4c], r13b
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi + 0x18]
mov rdx, r15
call fcn.14006364c
jmp 0x14006388e
lea rcx, [rsp + 0x80]
call fcn.14010d711
mov rcx, qword [rsi + 0x10]
call fcn.14004b7f9
and dword [rax + 0xd0], 0
mov rcx, rax
call fcn.14008171a
lea rbx, [rsp + 0x20]
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], 0xe
and dword [rbx + 0x18], 0
mov ebp, 1
mov dword [rbx], ebp
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call fcn.14006364c
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], 0xc
mov byte [rbx + 0x18], 0
mov dword [rbx], ebp
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0x20]
call fcn.14006364c
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140063976
Capabilities:
Log keystrokes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rsi, rdx
mov rdi, rcx
lea rbp, [rsp + 0xb0]
mov rcx, rbp
call fcn.14010e39a
mov rax, qword [rbp + 0x20]
lea r15, [rsp + 0x80]
mov qword [r15 + 0x20], rax
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movaps xmmword [r15 + 0x10], xmm1
movaps xmmword [r15], xmm0
mov r12, qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r13b, 1
lea r14, [rsp + 0x20]
mov rcx, r15
call fcn.140063d7e
test ax, ax
je 0x140063a40
mov ebp, edx
movzx ecx, dx
xor edx, edx
call r12
mov ebx, eax
mov ecx, ebp
call fcn.14010bbd0
mov ebp, eax
mov rcx, rdi
mov rdx, rsi
call fcn.1400636ed
call fcn.14010c2ac
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0xd
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], r13b
and dword [rsp + 0x48], 0
mov byte [rsp + 0x4c], r13b
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi + 0x18]
mov rdx, r14
call fcn.14006364c
jmp 0x1400639cf
lea rcx, [rsp + 0x80]
call fcn.14010d711
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], 0xc
mov byte [rdx + 0x18], 1
mov dword [rdx], 1
mov rcx, qword [rsi + 0x18]
call fcn.14006364c
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b484e
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [0x140372848]
test rdi, rdi
jne 0x1400b4990
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400b48bc
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400b48bc
mov rbx, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400b48bc
mov r15, rax
mov r12d, 1
jmp 0x1400b4944
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400b49a6
mov rbx, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400b49a6
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400b49a6
mov r15, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x1400b49a6
mov r14, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x1400b49a6
mov rbx, qword [rsp + 0x20]
xor r12d, r12d
mov ecx, 0x20
call fcn.1400b43ed
mov rdi, rax
mov qword [rax], r12
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r14
xor eax, eax
lock cmpxchg qword [0x140372848], rdi
je 0x1400b4990
mov rbx, rax
cmp qword [rdi], 0
jne 0x1400b4980
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
mov rcx, rdi
call fcn.14000bba0
mov rdi, rbx
and qword [rsi], 0
mov qword [rsi + 8], rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140195fc0
ud2
Function at 0x1400c0680
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x1400c068b
jmp 0x1400461b0
jmp fcn.14003cd30

Function at 0x1400c0960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400c09b2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x1400c09b2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x1400c09cd
cmp eax, 0x42
jne 0x1400c09b2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x1400c0a0a
cmp byte [rdi + rcx], 0x5f
jne 0x1400c0a0a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400c0b02
mov rcx, rsi
xor edx, edx
call fcn.1400bc560
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.1400bc560
test al, al
jne 0x1400c0a05
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c0a7c
lea rdx, [0x14032d02a]
mov r8d, 1
call fcn.14003e190
test al, al
je 0x1400c0a7c
mov dil, 2
jmp 0x1400c09c1
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x1400c0b5c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x1400c0af6
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400c0a5f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400c0a4e
add dl, 0xa9
jmp 0x1400c0a5d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400c0b5c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x1400c0b5c
movzx edx, bl
add rax, rdx
jae 0x1400c0a20
jmp 0x1400c0b5c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400c09c1
xor ebx, ebx
lea r14, [0x14032d3fd]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400c0ab4
cmp byte [rax + rcx], 0x45
je 0x1400c0bb4
sub rbx, 1
jb 0x1400c0ad9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c0ad9
mov r8d, 2
mov rdx, r14
call fcn.14003e190
test al, al
jne 0x1400c0a05
mov rcx, rsi
call fcn.1400c0bc0
test al, al
jne 0x1400c0a05
mov rax, qword [rsi]
test rax, rax
jne 0x1400c0aa0
jmp 0x1400c09c1
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x1400c0b5c
cmp rax, r9
jae 0x1400c0b59
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400c0bad
cmp qword [rsi + 0x20], 0
je 0x1400c0ba6
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400c0960
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400c09c3
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400c0b9c
lea rax, [0x14032d3c9]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14003e190
mov dil, 2
test al, al
jne 0x1400c09c1
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x1400c09c1
mov bl, 1
xor r8d, r8d
jmp 0x1400c0b5e
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400c09c1
Function at 0x1400cb0a0
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 r15d, r15d
xor ebx, ebx
cmp r8, 0x201
jae 0x1400cb140
jmp 0x1400cb12f
jae 0x1400cb1fc
cmp r8, 0x201
jae 0x1400cb140
lea rdi, [rbp - 0x58]
mov r13d, 0x200
mov rsi, r8
jmp 0x1400cb197
sub r8, rbx
sub r15, rbx
cmp r15, r8
jae 0x1400cb16f
lea rcx, [rbp + 0x3c8]
mov rdx, rbx
call fcn.140196a70
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov ebx, 0xffffffff
cmovb rbx, r12
mov qword [rbp + 0x3d8], rbx
mov r15, r12
mov rdi, qword [rbp + 0x3e8]
mov r13, rbx
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400cb1be
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400cb25b
mov r8d, r14d
cmp rsi, r8
jne 0x1400cb120
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400cb27d
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x1400cb12f
jmp 0x1400cb140
cmp r13, r8
jb 0x1400cb297
lea rcx, [rbp + 0x3a8]
mov rdx, rdi
call fcn.1400cb650
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test r12, r12
je 0x1400cb246
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.14000bba0
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test r12, r12
jne 0x1400cb235
jmp 0x1400cb246
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1401923d0
jmp 0x1400cb2ac
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1401923c0
ud2
Function at 0x1400ccff0
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 0x1400cd023
test ecx, ecx
jne 0x1400cd072
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400cd030
test ecx, ecx
jne 0x1400cd072
mov rcx, rdi
call fcn.1400cced0
movzx r10d, al
test bl, bl
jne 0x1400cd079
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x1400cd066.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1400cd1ec]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x1400cd066.2
xor r10d, r10d
test bl, bl
je 0x1400cd040
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400cd1ce
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1400cd0ab
xor edi, edi
jmp 0x1400cd128
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400cd0f0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1400cd10b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400cd0d0
jmp 0x1400cd128
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1400cd10b
cmp ebx, 0x5c
je 0x1400cd10b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400cd0f0
jmp 0x1400cd128
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1400cd1dc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x1400cd152
mov al, 9
cmp rdx, 2
je 0x1400cd156
cmp rdx, 1
jne 0x1400cd166
cmp byte [r9], 0x2e
jne 0x1400cd166
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400cd166
mov al, 0xa
jmp 0x1400cd166
cmp byte [r9], 0x2e
jne 0x1400cd166
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.0x1400cd066.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.0x1400cd066.2
mov esi, 2
jmp case.0x1400cd066.2
lea r8, str.library_std_srcpath.rs
call fcn.1401923b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1401923b0
ud2