joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002eb0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rcx
mov qword [rcx + 0x18], 0xffffffffffffffff
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002f06
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.WINSOCKET_FAILED_TO_LOAD_n
call fcn.140005440
jmp 0x140002faf
mov ebx, 2
lea r8, [rsp + 0x24]
mov ecx, ebx
mov word [rsp + 0x20], bx
lea rdx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_InetPtonW]
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_htons]
lea edx, [rbx - 1]
mov ecx, ebx
lea r8d, [rbx + 4]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x140002f60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.WINSOCKET_FAILED_TO_LOAD_2_n
call fcn.140005440
jmp 0x140002faf
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140002fd5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.COULD_NOT_CONNECT_TO_HOST
call fcn.140005440
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140005400]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [rdi + 0x21], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp eax, 0xffffffff
jne 0x140002fd1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.WINSOCKET_FAILED_DISCONNECT_n
call fcn.140005440
xor al, al
jmp 0x140002fdb
mov byte [rdi + 0x21], 1
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140018ad0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1e0
pop rdi
ret
Function at 0x1400037a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140003a20
nop
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
cmp r8, 0x10
cmovae rdx, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400037f0
cmp byte [rdi + 0x21], 0
jne 0x140003877
lea rdx, str.Couldnt_send_msg_becasue_socket_wasnt_alive_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005440
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140003850
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000384b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003948
call fcn.140018b34
movdqa xmm0, xmmword [0x14001db80]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
lea rcx, [rbx + 8]
movzx edx, byte [rbx]
call fcn.140001340
nop
xor al, al
jmp 0x140003976
lea rdx, [rsp + 0x38]
cmp r8, 0x10
cmovae rdx, rcx
xor r9d, r9d
mov r8d, eax
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jg 0x140003907
lea rdx, str.Couldnt_Send_MSG_n
call fcn.140005440
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400038e5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003948
call fcn.140018b34
movdqa xmm0, xmmword [0x14001db80]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
lea rcx, [rbx + 8]
movzx edx, byte [rbx]
call fcn.140001340
nop
jmp 0x140003974
lea rdx, str.Send_MSG_n
call fcn.140005440
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140003954
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000394f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000394f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b34
movdqa xmm0, xmmword [0x14001db80]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
lea rcx, [rbx + 8]
movzx edx, byte [rbx]
call fcn.140001340
nop
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018ad0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400157e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140015808
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001582e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140015830
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140015889
test ecx, ecx
jle 0x140015869
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140015889
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140015889
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400158b0
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 0x1400158d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400158e8
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 0x140015904
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140015906
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140015942
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400159de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001597d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400159be
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400159de
cmp rbx, rax
ja 0x140015990
test rbx, rbx
je 0x1400159de
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140015e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140015e3d
xor eax, eax
jmp 0x140015fa9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015e77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140015e77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140015fa9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140015f9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015eba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140015ee5
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 0x140015fa1
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 0x140015f54
sub eax, 1
je 0x140015f54
cmp eax, 2
jne 0x140015f9c
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 0x140015fa1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140015f82
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 0x140015f9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140015fa1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140018ad0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140016310
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400163e3
cmp byte [rcx + 0x71], 0
je 0x1400163e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400163df
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 0x1400163a4
sub eax, 1
je 0x1400163a8
cmp eax, 2
jne 0x1400163df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400163d6
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 0x1400163df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001638c
xor al, al
jmp 0x14001638c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x60
pop rbx
ret
Function at 0x140017c50
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], recv
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea r15d, [rbp - 6]
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140017cad
mov rcx, qword [rdx]
mov r8, rcx
jmp 0x140017cb0
mov r8, rdx
mov r14, rcx
mov r13, qword [rdx + 0x10]
add r13, r8
cmp rcx, r13
je 0x140017db1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140017d56
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140017d3d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140017d32
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140017d4c
mov rcx, rbx
call fcn.140005e00
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140017d00
inc r14
cmp r14, r13
jne 0x140017cd0
cmp r15d, 0xfffffffa
jle 0x140017db1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140017da9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140017d9e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140017db1
mov rcx, rbx
call fcn.140005e00
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140017df9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140017de5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140017ddd
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x140017df0
mov r9b, 0x3d
mov rcx, rbx
call fcn.140005e00
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140017dc0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140018340
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400183c4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001b630]
cmp byte [rcx + rax], 0
je 0x1400183c4
dec r8
sub rdx, 1
jne 0x1400183aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140019584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400195ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400195ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400195ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400195ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400195ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400195d0
xor al, al
add rsp, 0x28
ret
Function at 0x18000104c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
and qword [rsp + 0x58], 0
lea rax, [rbp + 0x80]
and qword [rsp + 0x50], 0
mov r15, rdx
and qword [rsp + 0x48], 0
mov rdi, rcx
and qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800011b5
xor esi, esi
cmp dword [rbp + 0x80], esi
jbe 0x1800011b5
lea rax, [rbp + 0x88]
mov dword [rsp + 0x60], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rbp + 0x88], 4
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x64]
mov edx, esi
mov qword [rsp + 0x28], rax
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1800011a7
cmp dword [rsp + 0x64], 4
jne 0x1800011a7
mov r14d, dword [rsp + 0x68]
xor ecx, ecx
cmp dword [rdi], ecx
jbe 0x180001142
mov rdx, qword [rdi + 8]
cmp dword [rdx + rcx*4], r14d
je 0x1800011a7
inc ecx
cmp ecx, dword [rdi]
jb 0x180001136
mov eax, dword [rdi + 4]
cmp dword [rdi], eax
jne 0x18000119b
add eax, 0x10
mov ebx, eax
shl rbx, 2
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov r9, rax
shl r8, 2
call fcn.18000196c
mov rbx, qword [rdi + 8]
mov qword [rdi + 8], r9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], r14d
inc dword [rdi]
inc esi
cmp esi, dword [rbp + 0x80]
jb 0x1800010c7
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800012c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x140
and qword [rsp + 0x58], 0
lea rax, [rax + 0x18]
and qword [rsp + 0x50], 0
mov r14, rdx
and qword [rsp + 0x48], 0
mov rdi, rcx
and qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov rcx, r14
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180001499
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ebp, ebp
mov rsi, rax
cmp dword [rsp + 0x170], ebp
jbe 0x180001485
lea rax, [rsp + 0x178]
mov dword [rsp + 0x60], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov edx, ebp
mov rcx, r14
mov dword [rsp + 0x178], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001476
cmp dword [rsp + 0x64], 1
jne 0x180001476
mov rdx, rsi
mov rcx, rdi
call fcn.180001554
test eax, eax
jne 0x180001476
test rsi, rsi
je 0x180001476
mov eax, dword [rdi + 4]
cmp dword [rdi], eax
jne 0x18000142f
add eax, 0x10
mov ebx, eax
shl rbx, 3
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 0x10]
mov r9, rax
shl r8, 3
call fcn.18000196c
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], r9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rbx, eax
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rdi]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rsi
mov dword [rdi], eax
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
inc ebp
cmp ebp, dword [rsp + 0x170]
jb 0x18000135d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180001b34
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x60]
mov edi, edx
mov ebx, ecx
xor esi, esi
mov r8, qword [rax + 0x18]
mov r11, qword [r8 + 0x20]
mov r8, r11
mov r9, qword [r8 + 0x50]
test r9, r9
je 0x180001b98
movzx r10d, word [r8 + 0x48]
mov edx, esi
jmp 0x180001b8e
movsx ecx, byte [r9]
mov eax, 0xffff
add r10w, ax
ror edx, 0xd
cmp byte [r9], 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add edx, eax
inc r9
test r10w, r10w
jne 0x180001b6f
cmp edx, ebx
je 0x180001bb2
mov r8, qword [r8]
cmp r8, r11
jne 0x180001b5d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r9, qword [r8 + 0x20]
mov ebx, esi
movsxd rax, dword [r9 + 0x3c]
mov r8d, dword [rax + r9 + 0x88]
add r8, r9
mov edx, dword [r8 + 0x20]
mov ecx, dword [r8 + 0x24]
add rdx, r9
add rcx, r9
cmp dword [r8 + 0x18], esi
jbe 0x180001ba0
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180001bf3
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180001be6
cmp r11d, edi
je 0x180001c11
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180001bdb
jmp 0x180001ba0
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180001ba2

Function at 0x180003458
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
cmp edx, 1
jne 0x1800034ef
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x1800034eb
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003930
test eax, eax
jne 0x1800034eb
call fcn.180003878
test eax, eax
je 0x1800034eb
cmp dword [0x18001ecf0], 0
jne 0x1800034f8
and qword [rsp + 0x28], 0
lea r8, [0x180001c28]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x18001ecf0], 1
xor ecx, ecx
mov qword [0x18001ece8], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001ec90], rax
call fcn.180001eb4
jmp 0x1800034f8
xor eax, eax
jmp 0x1800034fd
test edx, edx
jne 0x1800034f8
call fcn.1800037ac
mov eax, 1
add rsp, 0x240
pop rbx
ret