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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18003c6b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18003c6c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003c6e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003c6e6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x18003c720
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18003c7c7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x18003c75b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x18003c7a1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18003c7e0
cmp rbx, rax
ja 0x18003c770
mov r8, rdi
test rdi, rdi
je 0x18003c7c7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x18003c7ca
Function at 0x18003cbe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18006c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18003cc0d
xor eax, eax
jmp 0x18003cd62
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18003cc38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18003cc38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18003cd62
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003cd55
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18003cc7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18003cca6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003cd5a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003cd15
sub eax, 1
je 0x18003cd15
cmp eax, 2
jne 0x18003cd55
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003cd5a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18003cd43
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18003cd55
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18003cd5a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800534b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18003e1e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18003e2b3
cmp byte [rcx + 0x71], 0
je 0x18003e2b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18003e2af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003e274
sub eax, 1
je 0x18003e278
cmp eax, 2
jne 0x18003e2af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800534b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18003e2a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18003e2af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18003e25c
xor al, al
jmp 0x18003e25c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800534b0
add rsp, 0x60
pop rbx
ret

Function at 0x18004d840
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
je 0x18004d857
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.18004d840
mov eax, edx
ret
Function at 0x18004ea20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x18006c010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, r8
mov rbp, rdx
mov r12, rcx
xor edi, edi
mov qword [rcx + 4], rdi
mov qword [rcx + 0xc], rdi
lea r15, [rcx + 0x14]
mov rbx, r15
lea esi, [rdi + 8]
nop word [rax + rax]
mov rcx, rbx
call fcn.180001120
add rbx, 8
sub rsi, 1
jne 0x18004ea70
mov dword [r12 + 4], 0x7f7fffff
mov dword [r12 + 8], 0x7f7fffff
mov dword [r12 + 0xc], 0xff7fffff
mov dword [r12 + 0x10], 0xff7fffff
movsd xmm6, qword [0x1800613f0]
movsd xmm7, qword [0x1800613e0]
test dil, 1
je 0x18004eac3
movss xmm0, dword [r14]
jmp 0x18004eac8
movss xmm0, dword [rbp]
movss dword [rsp + 0x20], xmm0
test dil, 2
je 0x18004eadc
movss xmm0, dword [r14 + 4]
jmp 0x18004eae1
movss xmm0, dword [rbp + 4]
movss dword [rsp + 0x24], xmm0
test dil, 4
je 0x18004eaf5
movss xmm0, dword [r14 + 8]
jmp 0x18004eafa
movss xmm0, dword [rbp + 8]
movss dword [rsp + 0x28], xmm0
mov rax, qword [0x180095570]
cmp qword [rax + 0x88], 0
je 0x18004ec3c
movss xmm0, dword [r15]
movss dword [rsp + 0x38], xmm0
lea rsi, [r15 + 4]
movss xmm1, dword [rsi]
movss dword [rsp + 0x3c], xmm1
mov rax, qword [rax + 0x88]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call rax
movzx ebx, al
mov rax, qword [0x180095580]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
call qword [rax + 0x180]
movss xmm2, dword [rsp + 0x38]
cvtps2pd xmm2, xmm2
addsd xmm2, xmm6
mulsd xmm2, xmm7
movd xmm0, dword [rsp + 0x30]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
mulsd xmm2, xmm1
cvtpd2ps xmm3, xmm2
movss dword [r15], xmm3
movd xmm0, dword [rsp + 0x34]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm2, xmm0
movss xmm1, dword [rsp + 0x3c]
cvtps2pd xmm1, xmm1
addsd xmm1, xmm6
mulsd xmm1, xmm7
mulsd xmm1, xmm2
subsd xmm2, xmm1
cvtpd2ps xmm0, xmm2
movss dword [rsi], xmm0
test bl, bl
jne 0x18004ec3c
lea rax, [r12 + 4]
movss xmm0, dword [r12 + 4]
comiss xmm0, xmm3
cmova rax, r15
mov eax, dword [rax]
mov dword [r12 + 4], eax
lea rax, [r12 + 8]
movss xmm0, dword [r12 + 8]
comiss xmm0, dword [rsi]
cmova rax, rsi
mov eax, dword [rax]
mov dword [r12 + 8], eax
lea rax, [r12 + 0xc]
movss xmm0, dword [r15]
comiss xmm0, dword [r12 + 0xc]
cmova rax, r15
mov eax, dword [rax]
mov dword [r12 + 0xc], eax
lea rcx, [r12 + 0x10]
movss xmm0, dword [rsi]
comiss xmm0, dword [r12 + 0x10]
cmova rcx, rsi
mov ecx, dword [rcx]
mov dword [r12 + 0x10], ecx
inc edi
add r15, 8
cmp edi, 8
jl 0x18004eab6
mov byte [r12], 1
jmp 0x18004ec41
mov byte [r12], 0
mov rax, r12
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800534b0
mov rbx, qword [rsp + 0xc8]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180052bb0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180052be5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180052440
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180052d37
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x180052ca3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x180052d26
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x180052ce0
mov r10, qword [rax]
cmp r10, rcx
je 0x180052cda
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x180052d26
mov r8, rax
cmp r10, rax
je 0x180052d02
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x180052d48
cmp r10, rax
jne 0x180052cf0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x180052c50
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x180052d26
Function at 0x180052d70
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180052da1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1800963f8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180096408]
lea rdx, [rdi + rdi]
call fcn.180052440
mov rcx, qword [0x1800963f8]
lea r9, [rdi - 1]
mov qword [0x180096420], r9
mov qword [0x180096428], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180052f25
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180096408]
mov r10, qword [r11]
cmp r10, rbx
jne 0x180052e63
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x180052ee6
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x180052ea0
mov r10, qword [rax]
cmp r10, rcx
je 0x180052e9a
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x180052ee6
mov r8, rax
cmp r10, rax
je 0x180052ec2
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x180052efa
cmp r10, rax
jne 0x180052eb0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x180052f20
mov r9, qword [0x180096420]
jmp 0x180052e11
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x180052ee6
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800532d0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1800532da
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1800532d0
Function at 0x1800532f0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov edx, 0xe80c2f78
lea rcx, [0x1800612e9]
call fcn.18004d840
mov edx, 0xc60bf9f2
mov dword [rsp + 0x78], eax
lea rcx, [0x180061309]
call fcn.18004d840
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x20]
call fcn.180052830
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
add rcx, 0x18
call fcn.180052580
mov rcx, qword [rax]
movsx rax, word [rcx + 0x1c]
mov rbx, qword [rax + rbx]
test rbx, rbx
je 0x1800533f8
mov edx, 0xe80c2f78
lea rcx, [0x1800612f9]
call fcn.18004d840
mov edx, 0xc60bf9f2
mov dword [rsp + 0x88], eax
lea rcx, [0x180061319]
call fcn.18004d840
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], eax
lea rdx, [rsp + 0x40]
call fcn.180052830
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
add rcx, 0x18
call fcn.180052580
mov rcx, qword [rax]
movsx rax, word [rcx + 0x1c]
mov r8, qword [rax + rbx]
test r8, r8
je 0x1800533f8
movsx eax, byte [r8]
mov ecx, 0x811c9dc5
test al, al
je 0x1800533e9
xor eax, ecx
lea rcx, [r8 + 1]
imul edx, eax, 0x1000193
call fcn.1800532d0
mov ecx, eax
cmp ecx, 0x3b96c0aa
sete al
add rsp, 0x60
pop rbx
ret
xor al, al
add rsp, 0x60
pop rbx
ret
Function at 0x140003ef0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003f24
cmp word [rcx], 0x5a4d
jne 0x140003f24
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003f24
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f24
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003e30
test eax, eax
jne 0x140003f40
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003ea0
test rax, rax
je 0x140003f35
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400046ef
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400045f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004590
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004a44
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b7c58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b7c54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004a92
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004a8a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004b79
inc ebx
add rax, 0x28
jmp 0x140004a6a
mov rcx, r12
call fcn.140005271
mov rbp, rax
test rax, rax
jne 0x140004ab1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400049e0
movsxd rbx, ebx
mov rax, qword [0x1409b7c58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000531f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b7c58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004b13
mov rax, qword [0x1409b7c58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400049e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004b73
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004b73
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 [0x1409b7c58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
invalid
invalid
xor dword [rdx - 0x66], ecx
Function at 0x140004fa0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b7cc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [rax - 0x75], ecx
sbb eax, 0x9b2ce2
test rbx, rbx
je 0x140004fec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
add dword [rax - 0x7b], ecx
invalid
je 0x140004fe6
test eax, eax
jne 0x140004fe6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004fbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400051a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400051c3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400051c3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400051c4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400051fe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400051f5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005200
inc r8d
add rax, 0x28
jmp 0x1400051dc
xor eax, eax
ret

Function at 0x140005271
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b2cb0]
mov r8, rcx
mov rcx, r9
call fcn.1400051a0
test eax, eax
je 0x14000529d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400051c4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140ec7079
Capabilities:
Get thread local storage value

Disassembly:
push rbx
mov rbx, qword [rsp + 8]
jmp 0x140f200dd
lea rbx, [rbx + 1]
mov qword [rsp + 8], rbx
movsx bx, r12b
lea rbx, [0x1409e5ac8]
jmp 0x140f2bdd8
mov rbx, qword [rbx]
jmp 0x140f31d57
lea rbx, [rbx - 0x49ceb4e4]
jmp 0x140f52ede
xchg qword [rsp], rbx
jmp fcn.140004fb6

Function at 0x140ee8ee5
Capabilities:
Get thread local storage value

Disassembly:
xchg qword [rsp], rdx
jmp 0x140ebaa22
lea rdx, [rdx + 0x4ba7eb93]
jmp 0x140f625c1
push rdx
movsx rdx, cx
cwd
cqo
lea rdx, [0x140ea92f3]
jmp 0x140f65d9e
pop rdx
jmp 0x1409fafbc
xchg qword [rsp], rdx
jmp fcn.140004fd3
mov rdx, qword [rdx]
jmp 0x140a08919

Function at 0x140f76967
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
stc
push rdi
xor rdi, 0xffffffffec0e5aaf
movsxd rdi, r12d
sub rsp, 0x20
movzx rdi, r9w
stc
clc
mov rbx, rdx
setp dil
inc di
rol dil, 0x13
mov rdi, rcx
test r14b, 0x13
test bx, di
test rcx, rcx
je 0x140f76b04
test rdx, rdx
jmp 0x140f769ab
je 0x140f76b04
cmp word [rcx], 0
jmp 0x140f769ba
je 0x140f76a5b
nop
setno al
rol ax, 0xb6
movzx eax, word [rbx]
cmp ax, 0x2a
je 0x140f76a85
cmp ax, 0x3c
jmp 0x140f769de
je 0x140f76a85
cmp ax, 0x3f
jmp 0x140f769ed
je 0x140f76a2c
cmp ax, 0x3e
jmp 0x140f769fc
je 0x140f76a2c
mov r8d, 1
mov rdx, rbx
cmovp cx, r11w
sete cl
movzx cx, dl
mov rcx, rdi
jmp 0x140f76a1f
call fcn.1409fc45c
test eax, eax
jne 0x140f76b04
add rdi, 2
cmc
stc
add rbx, 2
test dil, bl
cmc
cmp r9b, 0x83
cmp word [rdi], 0
jmp 0x140f76a47
jne 0x140f769c8
nop
movzx rax, bx
xor eax, 0xdfbdfa38
bsf ax, si
movzx eax, word [rbx]
cmp ax, 0x2a
je 0x140f76a77
cmp ax, 0x3c
jmp 0x140f76a71
jne 0x140f76b23
add rbx, 2
jmp 0x140f76a80
jmp 0x140f76a5b
cmp word [rbx + 2], 0
jmp 0x140f76a8f
jne 0x140f76ac0
mov al, 1
shr bx, cl
cmc
rol rdi, 0x1f
mov rbx, qword [rsp + 0x30]
shld di, r13w, 0x12
test rdi, rsi
bt di, r8w
add rsp, 0x20
xchg dil, dil
pop rdi
jmp 0x140f76abf
ret
cmp word [rdi], 0
jmp 0x140f76ac9
je 0x140f76b04
nop
bswap cx
movsx ecx, r13w
movzx edx, r13w
lea rdx, [rbx + 2]
mov cl, 0xa6
mov rcx, rdi
call fcn.140f76967
test al, al
jne 0x140f76a95
add rdi, 2
cmp word [rdi], 0
jmp 0x140f76afe
jne 0x140f76adb
xor al, al
btr bx, ax
mov rbx, qword [rsp + 0x30]
rcl di, cl
shr di, cl
add rsp, 0x20
mov edi, r10d
pop rdi
jmp 0x140f76b22
ret
xor eax, eax
cmp word [rbx], ax
mov rbx, qword [rsp + 0x30]
movzx edi, r13w
sete al
sbb dil, 7
dec dil
add rsp, 0x20
pop rdi
jmp 0x140f76b45
ret