joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031730
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rsi, qword [rax]
mov ecx, dword [0x1400d5180]
test ecx, ecx
je 0x140031789
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x1400317a4
mov rax, qword [rsi]
cmp rdi, rax
jne 0x1400317b4
mov eax, dword [rsi + 8]
cmp eax, 0xffffffff
je 0x140031825
lea ecx, [rax + 1]
mov dword [rsi + 8], ecx
cmp qword [rsi + 0x10], 0
jne 0x140031817
mov dword [rsi + 8], eax
test eax, eax
jne 0x1400317f3
jmp 0x1400317d7
lea rcx, [0x1400d5168]
call fcn.140054600
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x14003175b
call fcn.140026550
mov rdi, rax
mov rax, qword [rsi]
cmp rdi, rax
je 0x140031763
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 0xc], cl
jne 0x1400317fd
mov qword [rsi], rdi
mov dword [rsi + 8], 1
cmp qword [rsi + 0x10], 0
jne 0x140031817
mov dword [rsi + 8], 0
mov qword [rsi], 0
xor eax, eax
xchg byte [rsi + 0xc], al
cmp al, 2
jne 0x1400317f3
add rsi, 0xc
mov rcx, rsi
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsi + 0xc]
call fcn.140053aa0
mov qword [rsi], rdi
mov dword [rsi + 8], 1
cmp qword [rsi + 0x10], 0
je 0x1400317d0
lea rcx, [0x1400a3930]
call fcn.140082a00
ud2
lea rcx, [0x1400a45e0]
lea r8, [0x1400a4628]
mov edx, 0x26
call fcn.140085ae0
mov rdi, rax
mov rcx, rsi
call fcn.140006550
mov rcx, rdi
call fcn.14009c890
int3
Function at 0x140031860
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rbx, rdx
mov rax, qword [rcx]
mov rsi, qword [rax]
mov ecx, dword [0x1400d5180]
test ecx, ecx
je 0x1400318af
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
test rax, rax
je 0x1400318ca
mov rax, qword [rsi]
cmp r14, rax
jne 0x1400318da
mov eax, dword [rsi + 8]
cmp eax, 0xffffffff
je 0x140031987
inc eax
mov dword [rsi + 8], eax
jmp 0x1400318f3
lea rcx, [0x1400d5168]
call fcn.140054600
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
test rax, rax
jne 0x140031894
call fcn.140026550
mov r14, rax
mov rax, qword [rsi]
cmp r14, rax
je 0x14003189c
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 0xc], cl
jne 0x14003196b
mov qword [rsi], r14
mov dword [rsi + 8], 1
cmp qword [rsi + 0x10], 0
jne 0x140031979
mov qword [rsi + 0x10], 0xffffffffffffffff
lea rcx, [rsi + 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.140033900
inc qword [rsi + 0x10]
dec dword [rsi + 8]
jne 0x14003193d
mov qword [rsi], 0
xor ecx, ecx
xchg byte [rsi + 0xc], cl
cmp cl, 2
jne 0x14003193d
add rsi, 0xc
mov rcx, rsi
mov rsi, rax
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
mov rax, rsi
movabs rdx, 0xffffffff00000003
and rdx, rax
xor ecx, ecx
movabs r8, 0x600000002
cmp rdx, r8
cmovne rcx, rax
mov rax, rcx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [rsi + 0xc]
call fcn.140053aa0
jmp 0x1400318e9
lea rcx, [0x1400a3948]
call fcn.140082a00
ud2
lea rcx, [0x1400a45e0]
lea r8, [0x1400a4628]
mov edx, 0x26
call fcn.140085ae0
mov rdi, rax
inc qword [rsi + 0x10]
mov rcx, rsi
call fcn.140006550
mov rcx, rdi
call fcn.14009c890
mov rdi, rax
mov rcx, rsi
call fcn.140006550
mov rcx, rdi
call fcn.14009c890
int3
Function at 0x1400319d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rbx, rdx
mov rax, qword [rcx]
mov rsi, qword [rax]
mov ecx, dword [0x1400d5180]
test ecx, ecx
je 0x140031a1f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
test rax, rax
je 0x140031a3a
mov rax, qword [rsi]
cmp r14, rax
jne 0x140031a4a
mov eax, dword [rsi + 8]
cmp eax, 0xffffffff
je 0x140031af7
inc eax
mov dword [rsi + 8], eax
jmp 0x140031a63
lea rcx, [0x1400d5168]
call fcn.140054600
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
test rax, rax
jne 0x140031a04
call fcn.140026550
mov r14, rax
mov rax, qword [rsi]
cmp r14, rax
je 0x140031a0c
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 0xc], cl
jne 0x140031adb
mov qword [rsi], r14
mov dword [rsi + 8], 1
cmp qword [rsi + 0x10], 0
jne 0x140031ae9
mov qword [rsi + 0x10], 0xffffffffffffffff
lea rcx, [rsi + 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.140033a80
inc qword [rsi + 0x10]
dec dword [rsi + 8]
jne 0x140031aad
mov qword [rsi], 0
xor ecx, ecx
xchg byte [rsi + 0xc], cl
cmp cl, 2
jne 0x140031aad
add rsi, 0xc
mov rcx, rsi
mov rsi, rax
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
mov rax, rsi
movabs rdx, 0xffffffff00000003
and rdx, rax
xor ecx, ecx
movabs r8, 0x600000002
cmp rdx, r8
cmovne rcx, rax
mov rax, rcx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [rsi + 0xc]
call fcn.140053aa0
jmp 0x140031a59
lea rcx, [0x1400a3960]
call fcn.140082a00
ud2
lea rcx, [0x1400a45e0]
lea r8, [0x1400a4628]
mov edx, 0x26
call fcn.140085ae0
mov rdi, rax
inc qword [rsi + 0x10]
mov rcx, rsi
call fcn.140006550
mov rcx, rdi
call fcn.14009c890
mov rdi, rax
mov rcx, rsi
call fcn.140006550
mov rcx, rdi
call fcn.14009c890
int3
Function at 0x140031b40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov rsi, rdx
mov rax, qword [rcx]
mov rbx, qword [rax]
mov ecx, dword [0x1400d5180]
test ecx, ecx
je 0x140031b8c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140031ba7
mov rax, qword [rbx]
cmp rdi, rax
jne 0x140031bb7
mov eax, dword [rbx + 8]
cmp eax, 0xffffffff
je 0x140031ca8
inc eax
mov dword [rbx + 8], eax
jmp 0x140031bd0
lea rcx, [0x1400d5168]
call fcn.140054600
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x140031b71
call fcn.140026550
mov rdi, rax
mov rax, qword [rbx]
cmp rdi, rax
je 0x140031b79
mov cl, 1
xor eax, eax
lock cmpxchg byte [rbx + 0xc], cl
jne 0x140031c9a
mov qword [rbx], rdi
mov dword [rbx + 8], 1
mov qword [rbp - 8], rbx
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
lea rdi, [rbp - 0x10]
mov qword [rbp - 0x10], 0
lea rdx, [0x1400a2568]
lea rcx, [rbp - 0x18]
mov r8, rsi
call fcn.140089780
mov ecx, eax
mov rax, qword [rbp - 0x10]
test cl, cl
je 0x140031c19
test rax, rax
je 0x140031cc0
mov rcx, qword [rbp - 8]
dec dword [rcx + 8]
jne 0x140031c8f
jmp 0x140031c6f
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140031c64
lea rsi, [rax - 1]
mov rdi, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x140031c3c
mov rcx, rdi
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140031c51
mov r8, qword [r14 + 0x10]
mov rcx, rdi
call fcn.140003bc0
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140003bc0
xor eax, eax
mov rcx, qword [rbp - 8]
dec dword [rcx + 8]
jne 0x140031c8f
mov qword [rcx], 0
xor edx, edx
xchg byte [rcx + 0xc], dl
cmp dl, 2
jne 0x140031c8f
add rcx, 0xc
mov rsi, rax
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [rbx + 0xc]
call fcn.140053aa0
jmp 0x140031bc6
lea rcx, [0x1400a45e0]
lea r8, [0x1400a4628]
mov edx, 0x26
call fcn.140085ae0
lea rax, str.a_formatting_trait_implementation_returned_an_error_when_the_underlying_stream_did_not
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
lea rdx, [0x1400a3c50]
lea rcx, [rbp - 0x48]
call fcn.140085c50
ud2
Function at 0x140036070
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x1400360a5
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400360f1
movsxd rdx, eax
xor ecx, ecx
jmp 0x140036114
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x140036114
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x14003c580
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14003c6f9
mov byte [rbp + 7], 0
mov eax, dword [0x1400d50c8]
cmp eax, 3
jne 0x14003c5e8
cmp byte [rbp + 7], 0
jne 0x14003c6e0
mov ecx, dword [0x1400d5180]
test ecx, ecx
je 0x14003c5fc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14003c614
mov rcx, qword [0x1400d5090]
cmp rax, rcx
jne 0x14003c625
mov eax, dword [0x1400d5098]
cmp eax, 0xffffffff
je 0x14003c6e0
inc eax
jmp 0x14003c646
lea rcx, [rbp + 7]
call fcn.14003ccfb
cmp byte [rbp + 7], 0
je 0x14003c5b3
jmp 0x14003c6e0
lea rcx, [0x1400d5168]
call fcn.140054600
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14003c5c9
call fcn.140026550
mov rcx, qword [0x1400d5090]
cmp rax, rcx
je 0x14003c5d5
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x1400d509c], dl
jne 0x14003c6e0
mov qword [0x1400d5090], rcx
mov eax, 1
mov dword [0x1400d5098], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x1400d50a0], 0
jne 0x14003c705
mov qword [0x1400d50a0], 0xffffffffffffffff
lea rcx, [0x1400d50a8]
call fcn.1400080b0
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x1400d50b8], xmm1
movups xmmword [0x1400d50a8], xmm0
inc qword [0x1400d50a0]
dec dword [0x1400d5098]
jne 0x14003c6e0
mov qword [0x1400d5090], 0
xor eax, eax
xchg byte [0x1400d509c], al
cmp al, 2
jne 0x14003c6e0
lea rcx, [0x1400d509c]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
mov eax, dword [0x1400d5138]
cmp eax, 3
jne 0x14003c6f1
call qword [0x1400d5130]
nop
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, str.std_src_synconce.rs
call fcn.140085ac0
lea rcx, [0x1400a3858]
call fcn.140082a00
ud2
Function at 0x14003d8e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1400789c0
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x14003d960
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x14003d990
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14003d9a4
lea rax, str.XG_n_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x14003d9c4
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140003bc0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x14003d9c4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140003bc0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14003e2c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14009c080
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov rsi, rdx
mov qword [rbp + 0xff8], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rbp + 0xfec]
lea rdi, [0x140048f00]
lea r12, [rbp + 0xfb0]
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
mov rdx, rbx
call fcn.140048d30
mov r14, rdx
test rax, rax
jne 0x14003e43c
test r14, r14
je 0x14003e40d
cmp r14, 0x1000
ja 0x14003e4a0
xor r13d, r13d
nop word cs:[rax + rax]
cmp r13, r14
ja 0x14003e48c
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14003e408
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfec], 1
jne 0x14003e3d0
cmp dword [rbp + 0xff0], 0
jne 0x14003e40d
mov eax, dword [rbp + 0xff4]
add r13, rax
cmp r13, r14
jne 0x14003e370
jmp 0x14003e32c
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp + 0xff8]
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14003e40d
mov rbx, r14
dec rbx
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14003e462
mov rcx, r15
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14003e477
mov r8, qword [rdi + 0x10]
mov rcx, r15
call fcn.140003bc0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140003bc0
jmp 0x14003e40d
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.14008c500
jmp 0x14003e4b4
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.14008c490
ud2
Function at 0x14004002e
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
cmp byte [rcx + 0x19], 0
je 0x140040054
mov byte [rbp + 0x27], 3
jmp 0x14004006d
call fcn.140040520
cmp rax, 1
jbe 0x140040065
mov byte [rbp + 0x27], 1
jmp 0x14004006d
call fcn.140036ac0
mov byte [rbp + 0x27], al
mov rax, qword [rsi + 0x10]
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.140040a00
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov ecx, dword [0x1400d51a0]
test ecx, ecx
je 0x140040217
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jbe 0x1400400d6
lock inc qword [rax - 0x10]
jle 0x140040237
add rax, 0xfffffffffffffff0
lea rcx, [rbp + 0x18]
mov qword [rcx], rax
call fcn.140027100
test rax, rax
lea rcx, str._unnamed_thread__panicked_at__nqN_n_
cmovne rcx, rax
push 9
pop rax
cmovne rax, rdx
jmp 0x1400400e5
and qword [rbp + 0x18], 0
push 9
pop rax
lea rcx, str._unnamed_thread__panicked_at__nqN_n_
lea rdx, [rbp - 0x58]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 8]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x27]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140032130
mov rbx, rax
mov rdi, rdx
lea rsi, [rbp + 8]
mov qword [rsi - 8], rax
mov qword [rsi], rdx
test rax, rax
sete al
test rdx, rdx
setne r15b
and r15b, al
je 0x14004016a
mov qword [rbp + 0x10], rdi
lea rbx, [rdi + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rdi + 0x10], cl
jne 0x14004022a
mov rax, qword [0x1400d5120]
shl rax, 1
test rax, rax
je 0x140040187
call fcn.140040570
mov r14d, eax
xor r14b, 1
jmp 0x14004018a
lea rdx, [rbp - 0x18]
and dword [rdx], 0
mov byte [rdx + 4], 0
lea r8, [fcn.140033e80]
lea rcx, [rbp - 0x48]
call fcn.14004029d
jmp 0x1400401c2
xor r14d, r14d
mov al, byte [rdi + 0x11]
lea rdx, [rdi + 0x18]
lea r8, [fcn.140033d50]
lea rcx, [rbp - 0x48]
call fcn.14004029d
mov rcx, rbx
mov edx, r14d
call fcn.140006f10
mov rcx, qword [rbp + 0x10]
call fcn.140032130
test rax, rax
je 0x1400401f5
mov rbx, qword [rbp]
mov rdi, qword [rbp + 8]
lea rcx, [rbp + 0x18]
call fcn.140007850
test rdi, rdi
sete al
or al, bl
or r15b, al
test r15b, 1
jne 0x1400401e4
mov rcx, rsi
call fcn.140005780
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], 1
test rdx, rdx
je 0x1400401ba
lock dec qword [rdx]
jne 0x1400401ba
lea rcx, [rbp - 0x10]
call fcn.140015a70
jmp 0x1400401ba
lea rcx, [0x1400d5188]
call fcn.140054600
mov ecx, eax
jmp 0x140040099
mov rcx, rbx
call fcn.140053aa0
jmp 0x14004014d
ud2
Function at 0x140042620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rdx + 8]
cmp rdi, 0xffffffffffffffff
je 0x140042713
mov eax, dword [rdx + 0x10]
movzx ebx, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r14d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14004268a
mov r12, qword [rdx]
cmp bx, 0x2e
jne 0x14004272d
test r15w, r15w
je 0x14004268a
mov eax, r15d
xor eax, 0x2e
or ax, r14w
jne 0x14004272d
mov r14, rdx
lea rbx, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x14004271f
mov rbx, qword [r14]
lea r14, [rbp - 0x60]
jmp 0x1400426cf
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x14004271f
cmp word [rbp - 0x34], 0x2e
jne 0x1400426ec
movzx eax, word [rbp - 0x32]
test ax, ax
je 0x1400426c0
cmp ax, 0x2e
jne 0x1400426ec
cmp word [rbp - 0x30], 0
je 0x1400426c0
lock inc qword [rbx]
jle 0x1400427b9
lea rcx, [rsi + 0x10]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.msvcrt.dll_memcpy
mov eax, 8
jmp 0x140042798
mov qword [rsi], 0
jmp 0x1400427a4
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x140042781
xor eax, eax
jmp 0x1400427a1
lock inc qword [r12]
jle 0x1400427b9
lea rax, [rdx + 0x14]
add rdx, 0x46
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x1c]
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
lea rcx, [rsi + 0x42]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], r12
mov word [rsi + 0x3c], bx
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r14w
mov qword [rsi], 1
jmp 0x1400427a4
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsi + 8], 0
mov eax, 0x10
mov qword [rsi + rax], rbx
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2

Function at 0x140043110
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140050880
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x140043173
movabs rbx, 0x8000000000000000
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.140052e80
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14004317f
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x1400431aa
test rdi, rdi
je 0x1400431d5
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140003bc0
xor eax, eax
jmp 0x140043176
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140043176
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140003bc0
jmp 0x140043173
xor eax, eax
jmp 0x140043176
Function at 0x1400461a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400a5790]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14004622d
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x14004623a
xor edx, edx
xor eax, eax
jmp 0x140046263
cmp eax, 0x103
je 0x14004626d
test eax, eax
js 0x14004624d
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140046263
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.HY_n_
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140033e80
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140007c70
mov ecx, 7
int 0x29
ud2

Function at 0x1400462c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400a5790]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140046354
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x140046380
test eax, eax
js 0x140046360
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140046376
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.HY_n_
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140033e80
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140007c70
mov ecx, 7
int 0x29
ud2