joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fae01
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x1401fae13
add rcx, 8
jmp fcn.1402754ed
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov qword [rcx + 0x38], rdx
mov rcx, r8
call fcn.1401fafa5
mov rbx, rax
mov r14, rdx
lea r15, [rsp + 0x28]
mov rcx, rsi
call fcn.1401f60de
test rdx, rdx
jne 0x1401faeb6
mov rcx, r15
mov rdx, rsi
call fcn.1401e219e
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x1401faf45
test eax, eax
je 0x1401faeb6
cmp qword [rsi + 0xf8], 0
je 0x1401fae99
mov rcx, r15
mov rdx, rsi
call fcn.1401e2f02
cmp qword [rsp + 0x28], 0
jne 0x1401faf45
cmp qword [rsp + 0x30], 0
je 0x1401faeb6
and qword [rsi + 0xf8], 0
mov rcx, r15
mov rdx, rsi
call fcn.1401e3138
cmp byte [rsp + 0x28], 0
jne 0x1401faf45
cmp byte [rsp + 0x29], 0
je 0x1401fae3f
mov rcx, rsi
call fcn.1401f60de
mov r15, rdx
test rax, rax
je 0x1401faf4a
mov r13, rax
cmp r14, r15
mov r12, r15
cmovb r12, r14
lea r9, str._Users_spectrum_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, r12
mov rdx, rbx
mov r8, r14
call fcn.1401e3300
mov rbx, rax
mov r14, rdx
lea r9, str._Users_spectrum_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.14008b61a
mov r9, rdx
lea rcx, str._Users_spectrum_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, r14
mov r8, rax
call fcn.140116765
mov rax, qword [rsi + 0x78]
add rax, r12
cmp rax, qword [rsi + 0x70]
ja 0x1401faf8b
mov qword [rsi + 0x78], rax
mov rcx, rdi
mov rdx, r12
call fcn.1401faffb
xor r15d, r15d
jmp 0x1401faf71
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov rcx, r15
call fcn.1401fa635
cmp al, 0xd
jne 0x1401faf71
and qword [rsi + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.14008d6e7
mov eax, 1
jmp 0x1401faf78
and qword [rsi + 0x38], 0
xor eax, eax
mov rdx, r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
lea r8, str._Users_spectrum_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov edx, 0x3b
call fcn.1400519b0
ud2
Function at 0x140205ae1
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, r8
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.140205937
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.140289020
mov rbx, rax
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140205b7e
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.14027a479
mov rbx, qword [rsp + 0x40]
jmp 0x140205b49
test eax, eax
jne 0x140205ba0
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x140205bbe
movabs rax, 0xde00000002
jmp 0x140205ba8
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14015e77d
jmp 0x140205bd2
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14006b9ac
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14020e7f1
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rcx
call fcn.14021b63e
cmp rax, 1
jbe 0x14020e82f
mov rcx, rax
mov rax, qword [rax + 8]
add rcx, 0x10
test rax, rax
cmove rcx, rax
jne 0x14020e953
call fcn.14021b63e
cmp rax, 1
je 0x14020e951
mov rsi, rax
test rax, rax
jne 0x14020e87f
mov ecx, 0x18
mov edx, 8
call fcn.1400073ab
mov rsi, rax
lea rax, [0x1403a0180]
mov qword [rsi], rax
and qword [rsi + 8], 0
mov ecx, dword [0x1403a0198]
test ecx, ecx
je 0x14020e96f
dec ecx
mov rdx, rsi
call fcn.1402981a4
test rdi, rdi
mov qword [rsp + 0x20], rsi
je 0x14020e8b3
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x14020e8b3
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0x20]
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], rax
jmp 0x14020e953
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1400ebe89
mov rcx, rdi
call fcn.14020a21f
mov rbx, rax
mov r14, rdx
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r13, 0x646f72616e646f6d
xor r13, rdx
movabs rbp, 0x6c7967656e657261
xor rbp, rax
movabs rsi, 0x7465646279746573
xor rsi, rdx
mov r15d, 1
xor eax, eax
xorps xmm6, xmm6
test rax, rax
jne 0x14020e899
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
movups xmmword [rdi + 0x30], xmm6
and qword [rdi + 0x40], 0
mov rcx, rdi
mov rdx, r15
call fcn.1401fc31b
mov rcx, rdi
call fcn.1401fbfee
inc r15
jmp 0x14020e90d
xor ecx, ecx
mov rax, rcx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1403a0180]
call fcn.1402332b0
mov ecx, eax
jmp 0x14020e877

Function at 0x14021b63e
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1403a0198]
test ecx, ecx
je 0x14021b657
dec ecx
add rsp, 0x28
jmp fcn.14029819c
lea rcx, [0x1403a0180]
call fcn.1402332b0
mov ecx, eax
jmp 0x14021b64e

Function at 0x140227f10
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.14005b1d0
jmp fcn.1400505d0
Function at 0x140228eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140228f0b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140228f0b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140228f26
cmp eax, 0x42
jne 0x140228f0b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140228fd6
cmp byte [r9 + r11], 0x5f
jne 0x140228fd6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14022903e
mov rcx, rsi
xor edx, edx
call fcn.140224950
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140224950
test al, al
jne 0x1402290d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140228f62
lea rdx, [0x1404bb4eb]
mov r8d, 1
call fcn.140051690
test al, al
jne 0x1402290d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140228f1a
xor r14d, r14d
lea rbx, [0x1404bb8a0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140228f94
cmp byte [rax + rcx], 0x45
je 0x1402290f3
sub r14, 1
jb 0x140228fb9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140228fb9
mov r8d, 2
mov rdx, rbx
call fcn.140051690
test al, al
jne 0x1402290d1
mov rcx, rsi
call fcn.140226180
test al, al
jne 0x1402290d1
mov rax, qword [rsi]
test rax, rax
jne 0x140228f80
jmp 0x140228f1a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140229098
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140229032
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14022901c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14022900b
add dl, 0xa9
jmp 0x14022901a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140229098
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140229098
movzx edx, bl
add rax, rdx
jae 0x140228fe0
jmp 0x140229098
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140229098
cmp rax, rcx
jae 0x140229095
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1402290eb
cmp qword [rsi + 0x20], 0
je 0x1402290e4
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.140228eb0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140228f1c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1402290d9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1404bb860]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140051690
test al, al
je 0x1402290d9
mov dil, 2
jmp 0x140228f1a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140228f1a
mov dil, 1
xor r8d, r8d
jmp 0x14022909a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140228f1a
Function at 0x14022be71
Capabilities:
Get remote cert context via schannel

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

Function at 0x14022c015
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

Function at 0x140231b37
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 sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140231b63
xor eax, eax
jmp 0x140231b68
call fcn.1401e3333
nop
add rsp, 0x38
ret

Function at 0x140232f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x1403a0218]
test ecx, ecx
je 0x140233003
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x140232f44
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140232f44
add rdi, 0x10
jmp 0x140232ff9
mov ecx, dword [0x1403a0218]
test ecx, ecx
je 0x140233016
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x140232ff7
mov rsi, rax
test rax, rax
jne 0x140232fc7
mov qword [rsp + 0x30], 0
lea rax, str._5_
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140545270]
mov ecx, 0x20
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140233039
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x1403a0218]
test ecx, ecx
je 0x140233029
dec ecx
mov rdx, rsi
call fcn.1402981a4
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140232ff9
test rcx, rcx
je 0x140232ff9
lock dec qword [rcx]
jne 0x140232ff9
call fcn.140233080
jmp 0x140232ff9
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, str._5_
call fcn.1402332b0
mov ecx, eax
jmp 0x140232f26
lea rcx, str._5_
call fcn.1402332b0
mov ecx, eax
jmp 0x140232f54
lea rcx, str._5_
call fcn.1402332b0
mov ecx, eax
jmp 0x140232fbf
mov ecx, 8
mov edx, 0x20
call fcn.14004a180
ud2
Function at 0x1402332b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140233335
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140233376
cmp dword [rsp + 0x2c], 0
je 0x14023335a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14023339e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1405451e0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1405451e0], rsi
jne 0x140233310
mov byte [0x1405451d8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14023336c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1402333ea
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14023335f
mov edi, dword [rsp + 0x28]
jmp 0x14023336c
mov edi, dword [rsi + 0x18]
jmp 0x14023336a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1404c0de8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140233450
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1404ef530]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14004fdf0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1404ef530]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140233490
ud2

Function at 0x140233ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1403a0238]
test ecx, ecx
je 0x140233b4f
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x140233ad9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140233b3e
mov ecx, dword [0x1403a0238]
test ecx, ecx
je 0x140233b62
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x140233b44
mov rsi, rax
test rax, rax
jne 0x140233b38
movzx eax, byte [0x140545270]
mov ecx, 0x10
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140233b85
mov rsi, rax
lea rax, [0x1403a0220]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1403a0238]
test ecx, ecx
je 0x140233b75
dec ecx
mov rdx, rsi
call fcn.1402981a4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140233b46
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1403a0220]
call fcn.1402332b0
mov ecx, eax
jmp 0x140233ac5
lea rcx, [0x1403a0220]
call fcn.1402332b0
mov ecx, eax
jmp 0x140233ae5
lea rcx, [0x1403a0220]
call fcn.1402332b0
mov ecx, eax
jmp 0x140233b30
mov ecx, 8
mov edx, 0x10
call fcn.14004a180
ud2
Function at 0x140234510
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1404c0500]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
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 sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140234581
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1402345b7
test eax, eax
js 0x140234592
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1402345aa
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1404c0560]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140232690
mov rcx, rax
call fcn.140232770
mov ecx, 7
int 0x29
ud2

Function at 0x1402349f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1403a01f8]
test ecx, ecx
je 0x140234aad
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x140234a20
cmp qword [rax + 8], 0
je 0x140234a20
add rax, 0x10
jmp 0x140234aa7
mov ecx, dword [0x1403a01f8]
test ecx, ecx
je 0x140234ac0
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x140234aa5
mov rsi, rax
test rax, rax
jne 0x140234a8b
movzx eax, byte [0x140545270]
mov ecx, 0x20
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140234ae3
mov rsi, rax
lea rax, [0x1403a01e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1403a01f8]
test ecx, ecx
je 0x140234ad3
dec ecx
mov rdx, rsi
call fcn.1402981a4
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140234aa7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1403a01e0]
call fcn.1402332b0
mov ecx, eax
jmp 0x140234a05
lea rcx, [0x1403a01e0]
call fcn.1402332b0
mov ecx, eax
jmp 0x140234a30
lea rcx, [0x1403a01e0]
call fcn.1402332b0
mov ecx, eax
jmp 0x140234a83
mov ecx, 8
mov edx, 0x20
call fcn.14004a180
ud2
Function at 0x140238240
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140250f40
mov rsi, rdx
test rax, rax
je 0x1402382ef
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1402382e3
test rax, rax
je 0x1402382e3
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1402382d6
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140026d90
mov edx, 8
mov rcx, rsi
call fcn.140026d90
mov qword [rdi], 0
jmp 0x14023844f
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140251150
cmp dword [rsp + 0x40], 2
jne 0x14023836d
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x14023834e
test rcx, rcx
je 0x14023834e
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x140238341
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.140026d90
mov edx, 8
mov rcx, rbx
call fcn.140026d90
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x1402383bf
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14023843b
mov rbx, qword [rsp + 0x40]
jmp 0x1402383c1
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14023842a
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x14023842a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140238447
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140238447
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140254e90
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1404c0500]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
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 sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140254efa
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140254f09
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140254f40
cmp eax, 0x103
je 0x140254f4a
test eax, eax
js 0x140254f26
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140254f40
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1404c0560]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140232690
cli
invalid
std
dec dword [rax - 0x77]
shr eax, 0xd2
xlatb
std
invalid
mov ecx, 7
add byte [rax], al
add ch, cl
sub dword [rdi], ecx
invalid

Function at 0x140255920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14025597c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x140255a71
test r15w, r15w
je 0x14025597c
cmp r15w, 0x2e
jne 0x140255a71
test r12w, r12w
jne 0x140255a71
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x140255a57
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
jmp case.0x14025448e.270
lock inc qword [r14]
Function at 0x140258ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1403a0298]
test ecx, ecx
je 0x140258f94
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x140258ed4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140258ed4
add rdi, 0x10
jmp 0x140258f8a
mov ecx, dword [0x1403a0298]
test ecx, ecx
je 0x140258fa7
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x140258f88
mov rsi, rax
test rax, rax
jne 0x140258f57
mov qword [rsp + 0x28], 0
lea rax, [0x1403a0280]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x140545270]
mov ecx, 0x18
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140258fca
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1403a0298]
test ecx, ecx
je 0x140258fba
dec ecx
mov rdx, rsi
call fcn.1402981a4
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140258f8a
test rcx, rcx
je 0x140258f8a
lock dec qword [rcx]
jne 0x140258f8a
call fcn.140259000
jmp 0x140258f8a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1403a0280]
call fcn.1402332b0
mov ecx, eax
jmp 0x140258eb6
lea rcx, [0x1403a0280]
call fcn.1402332b0
mov ecx, eax
jmp 0x140258ee4
lea rcx, [0x1403a0280]
call fcn.1402332b0
mov ecx, eax
jmp 0x140258f4f
mov ecx, 8
mov edx, 0x18
call fcn.14004a180
ud2