joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e8240
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1404280e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e827a
xor eax, eax
jmp 0x1400e82ed
xor edx, edx
mov qword [rsp + 0x280], rsi
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400e82da
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400e82d6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400e82b0
jmp 0x1400e82da
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402fecd0
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x1400ec730
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1402fecf8
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400f1a00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400ec78d
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140104168
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1404280e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rdi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov esi, dword [rbx + 0x14]
mov eax, esi
mov r14d, dword [rbx + 4]
cmp esi, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14010429b
cmp esi, r14d
mov eax, r14d
cmovg eax, esi
cmp r9d, eax
jg 0x14010429b
cmp esi, r14d
jne 0x1401041fe
sub rbx, 0x10
jmp 0x1401042e5
mov edx, dword [rdi + 0x88]
xor r9d, r9d
cmp esi, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x14010425e
mov eax, dword [rdi + 4]
mov ecx, eax
neg ecx
cmp esi, r14d
jge 0x14010422c
dec eax
add eax, esi
and eax, ecx
sub eax, esi
jmp 0x140104232
and ecx, esi
mov eax, esi
sub eax, ecx
cmp eax, dword [rdi + 8]
setge r10b
test edx, edx
je 0x14010424c
mov dl, r10b
mov rcx, rdi
call fcn.140103a04
test al, al
jne 0x140104297
mov r8b, r10b
mov edx, r9d
mov rcx, rdi
call fcn.140103938
test al, al
jne 0x140104297
mov ecx, dword [rdi + 0x60]
lea r9, [0x140103b20]
mov eax, dword [rdi + 0x64]
mov r8, rbx
mov dword [rsp + 0x28], eax
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rdi
cmp esi, r14d
jge 0x14010428a
call fcn.140103dc4
jmp 0x14010428f
call fcn.140103f38
test al, al
je 0x1401041f5
mov al, 1
jmp 0x1401042ff
mov eax, dword [rbx + 8]
lea r8, [rbx + 0x10]
mov ecx, dword [r8]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], esi
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [rsi + r9]
mov dword [r8], eax
mov eax, ecx
sar eax, 1
sar edx, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0xc], edx
mov dword [rbx + 0x14], eax
mov rbx, r8
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1401042f6
mov ebp, dword [rbx]
jmp 0x1401041c1
mov dword [rdi + 0x58], ebp
xor al, al
mov dword [rdi + 0x5c], r14d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402fecd0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140104328
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x350
mov rax, qword [0x1404280e0]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov r14d, dword [rsp + 0x398]
mov rdi, rcx
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x5c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x390]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3a0]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r14d
mov esi, dword [rbx + 0x1c]
mov ecx, esi
mov ebp, dword [rbx + 4]
cmp esi, ebp
mov r8d, dword [rbx + 0x14]
mov eax, r8d
mov edx, dword [rbx + 0xc]
cmovg ecx, ebp
cmp r8d, edx
cmovg eax, edx
cmp eax, ecx
jl 0x140104478
cmp esi, ebp
mov eax, ebp
cmovg eax, esi
cmp r8d, edx
cmovg edx, r8d
cmp edx, eax
jg 0x140104478
cmp esi, ebp
jne 0x1401043de
sub rbx, 0x18
jmp 0x140104484
mov edx, dword [rdi + 0x88]
xor r9d, r9d
cmp esi, ebp
setg r9b
inc r9d
cmp edx, r9d
je 0x14010443c
mov eax, dword [rdi + 4]
mov ecx, eax
neg ecx
cmp esi, ebp
jg 0x14010440a
dec eax
add eax, esi
and eax, ecx
sub eax, esi
jmp 0x140104410
and ecx, esi
mov eax, esi
sub eax, ecx
cmp eax, dword [rdi + 8]
setge r10b
test edx, edx
je 0x14010442a
mov dl, r10b
mov rcx, rdi
call fcn.140103a04
test al, al
jne 0x140104474
mov r8b, r10b
mov edx, r9d
mov rcx, rdi
call fcn.140103938
test al, al
jne 0x140104474
mov ecx, dword [rdi + 0x60]
lea r9, [fcn.140103b78]
mov eax, dword [rdi + 0x64]
mov r8, rbx
mov dword [rsp + 0x28], eax
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rdi
cmp esi, ebp
jg 0x140104467
call fcn.140103dc4
jmp 0x14010446c
call fcn.140103f38
test al, al
je 0x1401043d5
mov al, 1
jmp 0x14010449f
mov rcx, rbx
call fcn.140103b78
add rbx, 0x18
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x140104496
mov r14d, dword [rbx]
jmp 0x140104396
mov dword [rdi + 0x58], r14d
xor al, al
mov dword [rdi + 0x5c], ebp
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1402fecd0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401047d0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
lea r15d, [r14 + 1]
mov dword [rcx + 0x3c], r14d
mov esi, r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x14010491e
movzx r10d, r14w
mov edi, r14d
mov r8, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + r8]
call fcn.1401044c8
test al, al
jne 0x1401049b6
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1401048ad
cmp edx, dword [rbx + 0x60]
jl 0x1401048ad
cmp edx, dword [rbx + 0x64]
jg 0x1401048ad
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1401048ad
mov rax, qword [rbx + 0x70]
mov cl, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x1401048ad
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1401048d0
test byte [r9 + 0x18], 8
je 0x1401048d0
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1401048e1
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.140103a04
test al, al
jne 0x1401049b6
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x140104904
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
add esi, r15d
add rdi, 2
add r10w, r15w
cmp esi, eax
jl 0x140104836
movzx r11d, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp r11w, r15w
jbe 0x1401049bb
test rdx, rdx
je 0x1401049bb
lea rdi, [rdx + 8]
cmp r11w, r15w
jbe 0x140104952
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x140104955
mov r10, r14
mov qword [rdi], r10
test byte [rdx + 0x18], 8
mov r10d, dword [rdx + 0x20]
mov r8d, r10d
mov eax, dword [rdx + 0x1c]
je 0x140104970
dec r10d
add r10d, eax
jmp 0x140104987
sub r8d, eax
add r8d, r15d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.140103a98
test al, al
jne 0x1401049b6
lea edx, [r10 + 1]
mov rcx, rbx
call fcn.140103a98
test al, al
jne 0x1401049b6
mov rdx, qword [rdi]
mov eax, 0xffff
add r11w, ax
je 0x1401049bf
jmp 0x14010493a
mov al, r15b
jmp 0x1401049ca
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14014fbd8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
je 0x14014fc5d
lea rdi, [0x1403fa820]
not r9d
cmp r8d, 8
jb 0x14014fc34
mov edx, r8d
shr rdx, 3
add r8d, 0xfffffff8
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
sub rbx, 1
jne 0x14014fc10
sub rdx, 1
jne 0x14014fc07
test r8d, r8d
je 0x14014fc57
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
add r8d, 0xffffffff
jne 0x14014fc39
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rdi, qword [rsp + 0x10]
ret

Function at 0x14015dc80
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402ff7c0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140172630
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402ff7c0
sub rsp, rax
cmp dword [0x140429aa0], 0
jne 0x1401726ea
xor edx, edx
mov dword [0x140429aa0], 1
mov r8d, 0x198
lea rcx, [0x140429ab0]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [0x140429ab0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401726ea
call fcn.140159230
lea r8, str.BIO_sock_init
mov edx, 0x92
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140159350
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140159450
call fcn.140159230
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140159350
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.140159450
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x140172700
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402ff7c0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x140172762
call fcn.140159230
lea r8, str.BIO_socket_ioctl
mov edx, 0xcf
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140159350
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140159450
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x1401734b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1402ff7c0
sub rsp, rax
mov rax, qword [0x1404280e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140429c50], 0
lea rax, [0x140172e00]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140173260]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140172da0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x140173689
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14017367f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1401735ac
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14017360e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140173677
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14017360e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140173677
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x140173666
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140173620
mov rax, qword [rsp + 0x28]
mov qword [0x140422598], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1404225a8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1404225b8], rax
jmp 0x14017366f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140429c50], 1
mov rax, rbp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1402fecd0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1401736c0
Capabilities:
Resolve dns

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
mov eax, 0x870
call fcn.1402ff7c0
sub rsp, rax
mov rax, qword [0x1404280e0]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor r15d, r15d
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, r15d
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rbp, [r15 - 1]
mov rcx, r14
mov qword [r13], r15
mov rsi, r13
mov byte [rdi], r15b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x1401738c1
cmp word [rax + 0x10], 2
jne 0x1401737e7
cmp word [rax + 0x12], 4
jne 0x1401737e7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x1401737e2
nop word [rax + rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140173930
mov qword [rsi], rax
test rax, rax
je 0x1401738b9
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1401737b0
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
cmp qword [r13], r15
jne 0x140173861
mov rax, rbp
inc rax
cmp byte [rdi + rax], r15b
jne 0x140173806
test rax, rax
je 0x1401738db
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140173834
inc rax
test ecx, ecx
jne 0x140173821
test edx, edx
je 0x1401738db
inc r12d
cmp r12d, 0x10
je 0x1401738db
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x140173771
cmp dword [rsp + 0x8c0], r15d
je 0x1401738f1
nop
cmp byte [rdi + rbp + 1], r15b
lea rbp, [rbp + 1]
jne 0x140173870
lea rdx, [rbp + 1]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140173897
mov rbx, r15
jmp 0x1401738a7
mov r8, rdi
lea rdx, [rbp + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], r15
jne 0x1401738f1
mov r15d, 8
jmp 0x1401738f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x1401738eb
sub ecx, 1
je 0x1401738e3
sub ecx, 1
jne 0x1401738eb
mov r15d, 0x2afb
jmp 0x1401738f1
mov r15d, 0x2afa
jmp 0x1401738f1
mov r15d, 0x2af9
mov eax, r15d
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1402fecd0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140188eb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402ff7c0
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x140188efa
call fcn.140159230
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.140159350
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.140159450
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
movzx ebx, byte [r8]
and ebx, 0x80
test rdx, rdx
je 0x140188f10
mov dword [rdx], ebx
cmp r9, 1
jne 0x140188f36
test r10, r10
je 0x140188f27
movzx eax, byte [r8]
test ebx, ebx
je 0x140188f25
neg al
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
xor r11d, r11d
mov eax, r11d
test cl, cl
jne 0x140188f51
mov eax, 1
mov r11d, eax
jmp 0x140189011
cmp cl, 0xff
jne 0x14018905a
mov eax, 1
lea rcx, [r9 - 1]
mov edx, r11d
cmp r9, rax
jbe 0x140188fff
cmp rcx, 8
jb 0x140188ff0
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop dword [rax]
nop dword [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r8 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x140188f90
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x140188fff
nop dword [rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x140188ff0
test edx, edx
mov eax, r11d
setne al
test edx, edx
setne r11b
test edx, edx
je 0x14018905a
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp ebx, ecx
jne 0x14018905a
call fcn.140159230
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.140159350
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.140159450
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov ecx, eax
sub r9, rcx
test r10, r10
je 0x1401890ad
neg ebx
lea rax, [r11 + r8]
sbb r11d, r11d
movzx r11d, r11b
mov ecx, r11d
and ecx, 1
test r9, r9
je 0x1401890ad
lea r8, [rax + r9]
mov rdx, r8
sub rdx, r8
add rdx, r9
nop dword [rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, r11d
add ecx, eax
mov byte [r10 + rdx], cl
shr ecx, 8
test rdx, rdx
jne 0x140189090
mov rbx, qword [rsp + 0x20]
mov rax, r9
add rsp, 0x28
ret
Function at 0x1401890c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
xor r10d, r10d
xor r11b, r11b
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x1401891d8
test rdx, rdx
je 0x1401891d8
movzx eax, byte [rcx]
test r8d, r8d
jne 0x140189105
cmp al, 0x7f
jbe 0x1401891d0
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1401891e0
mov r11b, 0xff
cmp al, 0x80
jbe 0x14018911d
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1401891e0
jne 0x1401891d0
mov eax, 1
lea rcx, [rdx - 1]
cmp rdx, rax
jbe 0x1401891bf
cmp rcx, 8
jb 0x1401891b0
and ecx, 7
mov r8, rdx
sub r8, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop word [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm2, xmm1
cmp rax, r8
jb 0x140189150
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd r10d, xmm2
cmp rax, rdx
jae 0x1401891bf
nop word [rax + rax]
movzx ecx, byte [rax + rbx]
inc rax
or r10d, ecx
cmp rax, rdx
jb 0x1401891b0
neg r10d
sbb r11b, r11b
movzx r11d, r11b
mov r10d, r11d
and r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1401891e0
mov eax, 1
mov rdx, r10
test rsi, rsi
je 0x14018924a
mov rcx, qword [r9]
test rcx, rcx
je 0x14018924a
mov qword [rsp + 0x10], rdi
mov edi, r10d
movzx r8d, r11b
add rdi, rcx
and r8d, 1
mov byte [rcx], r11b
test rdx, rdx
je 0x140189242
lea r10, [rbx + rdx]
mov r9, r10
sub r9, r10
add r9, rdx
nop word [rax + rax]
movzx edx, byte [r10 - 1]
lea r10, [r10 - 1]
dec r9
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rdi + r9], r8b
shr r8d, 8
test r9, r9
jne 0x140189220
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret

Function at 0x140189440
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402ff7c0
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.1401890c0

Function at 0x140196a90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402ff7c0
sub rsp, rax
lea rcx, [0x140429f90]
add rsp, 0x28
jmp fcn.14015dae0
Function at 0x1401c8c80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
mov eax, 0x20
call fcn.1402ff7c0
sub rsp, rax
mov r14, rcx
call fcn.140174500
xor esi, esi
movsxd rbp, eax
test eax, eax
mov eax, esi
jle 0x1401c8cac
lea eax, [rbp - 1]
cdqe
lea rdx, str.cryptopropertyproperty_parse.c
mov r8d, 0x121
lea rcx, [rax + rax*2]
lea rcx, [rcx*8 + 0x20]
call fcn.140158940
mov rbx, rax
test rax, rax
je 0x1401c8d3d
mov rcx, r14
mov qword [rsp + 0x48], r15
call fcn.1401746e0
and dword [rbx + 4], 0xfffffffe
mov r15, rbp
test ebp, ebp
jle 0x1401c8d33
mov qword [rsp + 0x40], rdi
lea rdi, [rbx + 0x14]
mov edx, esi
mov rcx, r14
call fcn.140174730
inc esi
lea rdi, [rdi + 0x18]
movups xmm0, xmmword [rax]
movups xmmword [rdi - 0x24], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rdi - 0x14], xmm1
mov eax, dword [rbx + 4]
mov ecx, eax
or ecx, dword [rdi - 0x18]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [rbx + 4], ecx
sub r15, 1
jne 0x1401c8cf5
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rax, rbx
mov dword [rbx], ebp
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret