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

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x14000452d
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rax, str.udptest_first_write_failed___errno__d
mov rcx, rax
call fcn.140003210
mov eax, dword [0x140012218]
test eax, eax
je 0x140004550
mov eax, dword [0x140012218]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1400045c6
mov word [0x140012214], 0
mov dword [0x140012218], 5
mov rax, qword [rbp + 0x28]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call fcn.140003c3b
mov ebx, eax
test ebx, ebx
jle 0x14000459c
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov dword [0x140012218], 0
movzx eax, word [0x140012214]
add eax, 1
mov word [0x140012214], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x140004605
mov eax, dword [rbp + 0x20]
jmp 0x140004631
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov eax, dword [rbp + 0x20]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x38], edx
mov edi, 0
mov rbx, qword [rbp + 0x30]
mov esi, dword [rbp + 0x38]
jmp 0x1400048ee
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x1400048e3
mov byte [0x140012232], 0xff
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
cmp al, 0xfb
je 0x140004881
movzx eax, byte [rbx]
cmp al, 0xfc
jne 0x140004886
mov edi, 0xfffffffe
movzx eax, byte [rbx]
cmp al, 0xfd
je 0x140004894
movzx eax, byte [rbx]
cmp al, 0xfe
jne 0x140004899
mov edi, 0xfffffffc
test dil, dil
je 0x1400048e6
mov byte [0x140012233], dil
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
mov byte [0x140012234], al
mov eax, dword [0x14000d010]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140012232]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov edi, 0
jmp 0x1400048e7
nop
jmp 0x1400048e7
nop
add rbx, 1
sub esi, 1
test esi, esi
jg 0x14000485e
nop
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140006220
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000c4b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000c4b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140006290
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400122a4]
mov rbx, rcx
test esi, esi
jle 0x1400063c0
mov rax, qword [0x1400122a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400062db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006365
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400062c0
mov rcx, rbx
call fcn.140006d10
mov rdi, rax
test rax, rax
je 0x1400063e2
mov rax, qword [0x1400122a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140006e50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400122a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400063c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000635e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140006370
add dword [0x1400122a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400122a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000635e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006220
nop dword [rax]
xor esi, esi
jmp 0x1400062e8
mov rax, qword [0x1400122a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006220
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140006220
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140006980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400122e0]
test rbx, rbx
je 0x1400069dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400069d3
test eax, eax
jne 0x1400069d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400069b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006d10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f3b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006d30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006d38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006d30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140006d8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006d84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006d30
add rax, 0x28
cmp rax, r9
jne 0x140006d70
xor eax, eax
ret

Function at 0x140006d90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f3b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140006daf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006db8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140006daf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140006e50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f3b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140006e6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140006e78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140019f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a010
cmp r11, r10
ja 0x14001a07e
cmp r10, rdx
ja 0x14001a092
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a012
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140019ff0
jmp 0x14001a06c
ja 0x14001a01a
mov r11, r10
cmp rax, r8
jne 0x140019fb4
add rsi, rdi
lea rdx, [rdi + 1]
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
movzx r8d, byte [rdi]
test r8b, r8b
jns 0x14001a050
cmp rdx, rsi
je 0x14001a0a3
movzx r9d, byte [rdx]
inc rdx
and r8d, 0x7f
shl r8d, 8
or r8d, r9d
mov rdi, rdx
sub ecx, r8d
js 0x14001a06e
xor al, 1
xor edx, edx
cmp rdi, rsi
setne dl
add rdx, rdi
cmp rdi, rsi
jne 0x14001a030
jmp 0x14001a06e
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140018560
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400184e0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400175a0
ud2

Function at 0x14002f5df
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdx, rcx
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.14002f6a6
movabs r15, 0x7183827660f901c4
movabs r12, 0x525d0fbffa641e60
movabs r13, 0x7183827660f901d4
mov rcx, rsi
call fcn.14002f75b
test rax, rax
je 0x14002f692
mov rbx, rax
mov r14, rdx
xor ecx, ecx
mov rdx, rax
mov r8d, r14d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
mov edi, eax
xor eax, eax
cmp edi, 0xc0000000
setae al
shl rax, 3
add rax, qword [0x1400da570]
mov rax, qword [r15 + rax]
add rax, r12
jmp rax
xor edi, edi
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003d34f
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rdx, qword [rdx + 8]
mov r8d, dword [r14 + 0x10]
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.14003d775
mov r8d, dword [r15 + 8]
cmp r8d, 0x3b9aca01
jne 0x14003d39f
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14003d55e
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x14003d3f8
mov rax, qword [rsp + 0x30]
mov ecx, 0x3e8
mul rcx
mov r10d, 0xffffffff
jo 0x14003d3f8
mov rcx, rax
mov r9d, 0xf4240
mov eax, r8d
xor edx, edx
div r9d
add rcx, rax
jb 0x14003d3f8
xor eax, eax
test edx, edx
setne al
add rcx, rax
jb 0x14003d3f8
mov r10d, 0xffffffff
cmp rcx, r10
cmovb r10, rcx
test r10, r10
je 0x14003d56f
lea r9, [rsp + 0x30]
mov dword [r9], r10d
mov r14, qword [r14]
mov dword [rsp + 0x20], 4
mov rcx, r14
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14003d427
xor eax, eax
jmp 0x14003d434
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
call fcn.14003d823
mov r8d, 0x7fffffff
cmp rbx, r8
cmovb r8, rbx
mov rcx, r14
mov rdx, rdi
xor r9d, r9d
call sub.ws2_32.dll_recv
movabs r15, 0x529265e537b2d30b
movabs r14, 0x973e8cf4f12a3dfb
cmp eax, 0xffffffff
je 0x14003d494
movsxd rdi, eax
mov eax, 1
xor r12d, r12d
shl rax, 3
add rax, qword [0x1400e7af0]
mov rax, qword [r15 + rax]
add rax, r14
jmp rax
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14003d4ac
mov eax, 1
xor edi, edi
xor r12d, r12d
jmp 0x14003d4c1
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov r12d, 1
mov eax, 3
shl rax, 3
add rax, qword [0x1400e7af0]
and al, 0xa6
or al, byte [rax]
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [r14]
lea rax, str.cannot_set_a_0_duration_timeoutconnection_timed_out
jmp 0x14003d434
Function at 0x140061c20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140018d60
cmp rax, rcx
je 0x140061c45
cmp rdx, 4
jae 0x140061c48
xor eax, eax
xor r8d, r8d
jmp 0x140061ce0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14014bbc0]
movdqa xmm3, xmmword [0x14014bbd0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140061c70
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140061cf7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140061ce0
ret
Function at 0x140062680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140062778
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140062778
movzx eax, byte [r8 + rcx]
cmp eax, 0x42
je 0x140062793
cmp eax, 0x49
jne 0x140062778
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14005e0d0
test al, al
jne 0x1400628b8
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400626fc
lea rdx, [0x14018bc92]
mov r8d, 1
call fcn.140012590
test al, al
jne 0x1400628b8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140062787
xor r14d, r14d
lea rbx, [0x14018eec7]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140062739
test rax, rax
je 0x140062739
cmp byte [rax + rcx], 0x45
je 0x1400628da
sub r14, 1
jb 0x14006275e
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14006275e
mov r8d, 2
mov rdx, rbx
call fcn.140012590
test al, al
jne 0x1400628b8
mov rcx, rsi
call fcn.14005f9d0
test al, al
jne 0x1400628b8
mov rax, qword [rsi]
test rax, rax
jne 0x140062720
jmp 0x140062787
mov rcx, rsi
xor edx, edx
call fcn.14005e0d0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400627b3
cmp byte [r8 + r11], 0x5f
jne 0x1400627b3
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14006281e
xor eax, eax
mov edi, 0x3e
nop word [rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x14006287f
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140062812
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400627fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400627eb
add dl, 0xa9
jmp 0x1400627fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14006287f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14006287f
movzx edx, bl
add rax, rdx
jae 0x1400627c0
jmp 0x14006287f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14006287f
cmp rax, rcx
jae 0x14006287c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400628d2
cmp qword [rsi + 0x20], 0
je 0x1400628cb
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.140062680
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x140062787
jmp 0x1400628b8
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400628c0
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for___::closureshim_as__mut_const___dyn___Cunsafe_extern__
lea rdx, [0x14018b7f0]
test r9b, r9b
cmovne rdx, rax
call fcn.140012590
test al, al
je 0x1400628c0
mov dil, 2
jmp 0x140062787
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140062787
mov dil, 1
xor r9d, r9d
jmp 0x140062881
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140062787
Function at 0x14006e6b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14006e800
test dword [rcx + rax], edi
add byte [rax], al
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
mov eax, dword [rbx + 8]
test rax, rax
jne case.0x14006d331.410
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14006e7e9
add byte [rax], al
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14006e7cb
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov eax, dword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x34], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
mov r8d, eax
shr al, 0xab
add eax, 0x74c08500
invalid
mov ecx, dword [rsp + 0x34]
mov eax, 2
test rcx, rcx
je 0x14006e783
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14006e787
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
movabs rdx, 0x3e500000000
cmp rax, rdx
je 0x14006e78b
movabs rdx, 0x6d00000000
cmp rax, rdx
jne 0x14006e7b1
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x38]
jmp 0x14006e790
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14006e7b7
lea rax, [rsp + 0x40]
mov qword [rax], 0
call fcn.1400761d0
xor al, 0x7a
add byte [rax], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14006e7c1
cmp rax, 1
je 0x14006e731
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp case.0x14006d331.391
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400820a0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14006e6f5
mov r8d, 0x10
mov rcx, rbx
call fcn.1400820a0
mov rax, qword [rbx + 8]
mov eax, dword [rbx + 8]
jmp case.0x14006d331.410
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call case.0x14006d331.442
stosb byte [rdi], al
add eax, dword [rax]
add byte [rdi], cl
invalid
Function at 0x14006e8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400ff200]
test ecx, ecx
je 0x14006e9db
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
add dh, byte [rdx + 0x13]
mov rbx, rax
cmp qword [rax + 8], 0
je 0x14006e918
add rbx, 0x10
jmp 0x14006e9d0
mov ecx, dword [0x1400ff200]
test ecx, ecx
je 0x14006e9f5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
add dword [rdi], ecx
invalid
xchg edi, eax
add byte [rax], al
invalid
mov rdi, rax
test rax, rax
jne 0x14006e98b
movzx eax, byte [0x1401e52e0]
mov ecx, 0x18
mov edx, 8
call fcn.14000d820
test rax, rax
je 0x14006ea1b
mov rdi, rax
lea rax, [0x1400ff1e8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
add byte [rax], al
add byte [rbx + 0x908870d], cl
xchg dword [rax], ecx
or dword [rax], eax
test ecx, ecx
je 0x14006ea08
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x14006e9ee
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14006e9ee
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
or byte [rax], al
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x14006e9d0
test rcx, rcx
je 0x14006e9d0
lock dec qword [rcx]
jne 0x14006e9d0
call fcn.14008d870
jmp 0x14006e9d0
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400ff1e8]
call fcn.140091f10
mov ecx, eax
jmp 0x14006e8fa
call fcn.14006db80
jmp 0x14006e9a1
lea rcx, [0x1400ff1e8]
call fcn.140091f10
mov ecx, eax
jmp 0x14006e928
lea rcx, [0x1400ff1e8]
call fcn.140091f10
mov ecx, eax
jmp 0x14006e983
mov ecx, 8
mov edx, 0x18
call fcn.14000fe80
ud2
Function at 0x140077ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.1400c28e0
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x14006e510]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x140077c4f
mov r14d, 0xffffffff
lea rbx, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140077b44
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x140077c56
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x140077c92
cmp r15d, 0x1000
ja 0x140077cd2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8, r15
sub r8, r12
lea rdx, [rsp + r12]
add rdx, 0x60
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x140077c74
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140077be0
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x140077c7b
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
je 0x140077c11
jbe 0x140077b90
jmp 0x140077cbe
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x140077b44
call sub.kernel32.dll_GetLastError
mov ecx, eax
mov rbx, rcx
shl rbx, 0x20
or rbx, 2
call fcn.14006d2e0
cmp al, 0xb
jne 0x140077c8a
mov rcx, rbx
call fcn.1400761d0
jmp 0x140077c92
call sub.kernel32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
call fcn.1400761d0
jmp 0x140077c92
mov rcx, rbx
call fcn.1400761d0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140018560
jmp 0x140077ce6
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1400184e0
ud2
Function at 0x140077e30
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1401e52e0]
mov ecx, 0x10
mov edx, 8
call fcn.14000d820
test rax, rax
je 0x140077ee8
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140077f40]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140077edb
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x140077eba
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14000d8b0
mov edx, 8
mov rcx, rsi
call fcn.14000d8b0
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.14000fe80
ud2