joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442860
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4429ca
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x442878
cmp edx, ecx
jne 0x4429b8
nop dword [rax]
test rsi, rsi
jne 0x4429b8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4428d4
nop
call fcn.00460a00
xorps xmm15, xmm15
mov r14, qword [0x005a86e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00442760
mov rcx, qword [0x00555778]
mov rdx, qword [0x00555770]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x4429b3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x4429a8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00556210]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00556210], rbx
nop
mov edx, 1
lea rsi, [0x00556218]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x442997
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004b988b]
mov ebx, 0x28
call fcn.004340a0
mov rcx, rax
mov rax, rsi
call fcn.0045f060
call fcn.004326c0
lea rax, [0x004b8c4a]
mov ebx, 0x23
call fcn.004340a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ca00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00442860
Function at 0x44d5c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44d738
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44d5fc
test r8b, r8b
jne 0x44d5fc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44d60f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44d6f8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44d6e6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44d6dc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44d663
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44d6a6
mov eax, 1
cmp rax, rbx
ja 0x44d695
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045f120
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44d6d4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44d69d
mov r8d, eax
mov eax, r10d
jmp 0x44d668
mov rcx, rbx
call fcn.0045f060
xor eax, eax
mov rcx, rax
call fcn.0045f060
mov eax, r8d
mov rcx, rbx
call fcn.0045f120
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44d72e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44d6f1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44d615
mov eax, edx
mov rcx, rbx
call fcn.0045f060
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045f060
nop
int3
Function at 0x454e20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x454ed9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00454f20]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045c8c0
xorps xmm15, xmm15
mov r14, qword [0x005a86e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045ca00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00454e20
Function at 0x45eaa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40280f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.004090a0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ca00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027e0
cmp byte [0x005a850f], 0
je 0x45eab5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45bb00
jmp 0x4027e0

Function at 0x45eac0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005a87e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005a850f], 0
je 0x45eaf5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005a8b20]
aesenc xmm0, xmmword [0x005a8b30]
aesenc xmm0, xmmword [0x005a8b40]
movq rax, xmm0
ret
jmp 0x4092a0

Function at 0x45eb00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005a87e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005a850f], 0
je 0x45eb36
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005a8b20]
aesenc xmm0, xmmword [0x005a8b30]
aesenc xmm0, xmmword [0x005a8b40]
movq rax, xmm0
ret
jmp 0x409300

Function at 0x460520
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005a8aa0]
mov qword [rsp + 8], rdx
lea r8d, [0x005a8524]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045e9e0
add rsp, 0x30
ret

Function at 0x460a60
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460a8c
call fcn.0045e9e0
shl rcx, 3
add rcx, 0x1480
mov qword [0x005a86e0], rcx
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor r11, r11
push rsp
fxch st(3)
mov r11b, 0xba
pop r14
and r14w, 0xf5c0
fxsave64 [r14]
movabs r9, 0x1484511ec74d5c16
mov rbp, qword [r14 + 8]
dec r11
xor qword [rbp + r11*8 + 0x2c], r9
test r11, r11
jne 0x140004023
pop rsi
insd dword [rdi], dx
lahf
sbb eax, 0x72dc05d8
xor ecx, dword [rsp + rsi*4 + 0x75]
stosb byte [rdi], al
sbb dword [rbx - 0xfeae946], ecx
cmp byte ss:[rcx - 0x30], 0xc1
add bl, al
invalid
Function at 0x140002e80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400048a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400048a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003020
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002fc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f20
mov rcx, rbx
call fcn.140003940
mov rdi, rax
test rax, rax
je 0x140003042
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003027
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002fbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fd0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002fbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e80
nop dword [rax]
xor esi, esi
jmp 0x140002f48
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000360c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003603
test rsi, rsi
je 0x140003603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400035e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006aa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400039b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003960
add rax, 0x28
cmp rax, r9
jne 0x1400039a0
xor eax, eax
ret

Function at 0x1400039c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400039df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400039e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400039df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003aa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x45ce40
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x45ce7d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x45cf0b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x45cea1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x45cf0b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45cee8
cmp ecx, 0x20b
je 0x45cec0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x45cf0b
cmp dword [rax + 0x84], 0xe
ja 0x45ced4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x45cf0b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x45cf0b
cmp dword [rax + 0x74], 0xe
ja 0x45cef9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x45cf0b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004831c8], 0xffffffffffffffff
mov qword [0x004831d0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00480c3c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00480c38]
mov dword [rcx], eax
call fcn.0045d0f0
cmp dword [0x00480640], 0
jne 0x45cf65
lea rcx, [fcn.0045d0f0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0045e6d0]
lea rcx, [0x0045e6c8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00480c34]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00480c30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0045e6c0]
lea rcx, [0x0045e668]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x45d006
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x45cff6
cmp al, 0x22
je 0x45cff6
jmp 0x45cfe0
cmp byte [r8], 0x22
jne 0x45d016
inc r8
mov qword [rsp + 0x30], r8
jmp 0x45d016
cmp byte [r8], 0x20
jbe 0x45d016
inc r8
mov qword [rsp + 0x30], r8
jmp 0x45d006
movzx eax, byte [r8]
test al, al
je 0x45d02c
cmp al, 0x20
ja 0x45d02c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x45d016
test byte [rsp + 0x8c], 1
je 0x45d041
movzx r9d, word [rsp + 0x90]
jmp 0x45d047
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00520000
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x45d063
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45d087
mov eax, edi
jmp 0x45d090
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x140002a00
Capabilities:
Parse pe header
Resolve function by parsing pe exports

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
xor r10d, r10d
mov r13, r8
mov r14, rdx
mov r9, rcx
test rcx, rcx
je 0x140002b14
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002b14
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140002b14
mov ecx, 0x20b
cmp word [rax + r9 + 0x18], cx
jne 0x140002a6b
mov r11d, dword [rax + r9 + 0x8c]
mov ecx, dword [rax + r9 + 0x88]
jmp 0x140002a75
mov r11d, dword [rax + r9 + 0x7c]
mov ecx, dword [rax + r9 + 0x78]
mov edx, ecx
xor r8d, r8d
add rdx, r9
mov eax, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x24]
mov r12d, dword [rdx + 0x20]
add r15, r9
mov esi, dword [rdx + 0x1c]
add r12, r9
add rsi, r9
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140002b0f
cmp r14, 0xffff
ja 0x140002ab6
movzx ebx, r8w
mov ecx, ebx
movzx eax, r14w
add ecx, dword [rdx + 0x10]
cmp eax, ecx
jmp 0x140002ae2
cmp r8d, dword [rdx + 0x18]
jae 0x140002b14
mov ecx, dword [r12 + r8*4]
mov rbp, r14
movzx ebx, word [r15 + r8*2]
add rcx, r9
sub rbp, rcx
movzx eax, byte [rcx]
movzx edi, byte [rcx + rbp]
sub eax, edi
jne 0x140002ae0
inc rcx
test edi, edi
jne 0x140002ace
test eax, eax
je 0x140002af0
inc r8d
cmp r8d, dword [rsp + 0x30]
jb 0x140002a9c
jmp 0x140002b0f
movzx eax, bx
mov r10d, dword [rsi + rax*4]
add r10, r9
cmp r10, rdx
jb 0x140002b0f
mov ecx, r11d
add rcx, rdx
cmp r10, rcx
ja 0x140002b0f
test r13, r13
je 0x140002b14
mov rax, r10
jmp 0x140002b16
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003508
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x1400096f0], r14
mov dword [rbp + 0x28], r14d
je 0x140003546
test rcx, rcx
je 0x140003681
mov eax, dword [0x1400096f8]
mov dword [rcx], eax
jmp 0x140003681
xorps xmm0, xmm0
lea r8, [0x140004110]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x140003572
add rax, rdx
sub rcx, 1
jne 0x140003561
jmp 0x14000358c
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
jne 0x1400035a5
xor eax, eax
jmp 0x140003688
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
jne 0x1400035da
lea r9, [0x140004130]
xor edx, edx
lea r8, [0x140004140]
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000359e
mov rdx, rax
xor ecx, ecx
mov r8d, 0x78787878
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1400039c0
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000366e
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x14000366e
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x140003638
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x140003648
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14000366e
jmp 0x140003625
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x1400096f0], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x1400096f8], eax
test rdi, rdi
je 0x14000366e
mov dword [rdi], eax
test rbx, rbx
je 0x140003681
mov edx, 0x78787878
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x1400096f0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140147540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
jmp 0x140147559
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
inc bl
rol bpl, 0xd0
shld bx, r8w, 0xe
mov qword [rax + 0x18], rsi
rol bh, cl
btc ebx, 0xe0
adc bx, 0xdf5
push rdi
or bl, r9b
push r14
cmovl ebp, edi
movsxd rbp, ebx
shr rbx, 0xf3
push r15
xadd bl, r15b
rcl r14b, 0xa9
shld r14w, r8w, 0xe0
sub rsp, 0x30
xadd r14b, r14b
sar bl, 0x1f
and dword [rax - 0x28], 0
setns bpl
movsxd rbx, ecx
mov r14d, r9d
bswap r15
movsx r15d, di
mov ebx, r8d
movzx r15d, bp
mov r15, rdx
bswap bp
mov rbp, rcx
jmp 0x1401475d1
call 0x14000d6d0
mov rdi, rax
test r14w, ax
test rax, rax
jmp 0x1401475e6
jne 0x1401475fa
mov ebx, dword [rsp + 0x70]
jmp 0x1401475f5
jmp 0x14014773a
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp sil, 0x94
cmc
stc
cmp ax, cx
je 0x14014762e
mov ecx, 0x20b
cmp ax, cx
jne 0x1401475ec
mov rsi, qword [rdi + 0x30]
jmp 0x140147629
jmp 0x140147631
mov esi, dword [rdi + 0x34]
mov r8d, 5
lea r9, [rsp + 0x20]
not dl
mov dl, 1
movsx cx, bpl
movsx ecx, bx
xchg rcx, rcx
mov rcx, rbp
jmp 0x140147653
call 0x14000e538
test rax, rax
jmp 0x140147661
je 0x140147729
mov ecx, dword [rsp + 0x20]
jmp 0x140147674
test ecx, ecx
jmp 0x14014767b
je 0x140147729
mov rdi, rbp
bts rdx, r13
rol edx, 0x19
sub dh, 0x8b
sub rdi, rsi
shld dx, r9w, 0x34
bsr rdx, r14
add rdi, r15
ror dx, 0x18
ror dh, cl
mov edx, dword [rax + 4]
cmp bp, 0x12e
stc
test edx, edx
je 0x1401475ec
sub ecx, edx
movsx r9d, r8w
xor r8w, r14w
btc r9w, bp
lea r8, [rax + 8]
movzx r9, cx
mov dword [rsp + 0x20], ecx
cmovs r9w, r12w
test sil, 0x3e
add edx, 0xfffffff8
adc cx, 0x6beb
mov ecx, dword [rax]
mov r9, rbx
mov r9, rdi
clc
test ch, 0xe3
jmp 0x1401476f2
lea rcx, [rcx + rbp]
shr edx, 1
jmp 0x1401476fd
call fcn.140002c3c
test rax, rax
je 0x1401475ec
mov ecx, dword [rsp + 0x20]
cmp bh, 0xb2
test spl, 0xf3
clc
test ecx, ecx
jmp 0x14014771e
jne 0x1401476a4
jmp 0x14014773a
test byte [rdi + 0x16], 1
movsx bp, dl
movzx r15w, r12b
cmovne ebx, r14d
mov rbp, qword [rsp + 0x58]
mov eax, ebx
bswap ebx
mov rbx, qword [rsp + 0x50]
sub sil, dl
movsx r15w, r12b
mov rsi, qword [rsp + 0x60]
bsr r15, r11
add rsp, 0x30
movsx di, bl
movzx di, r11b
movzx rdi, bx
pop r15
movsx r14w, cl
pop r14
sets dil
movzx rdi, bp
pop rdi
ret
Function at 0x140001530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140001644
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001644
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001644
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
test rax, rax
je 0x140001644
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000166c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001644
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov cl, byte [rdi]
test cl, cl
je 0x140001619
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000161b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001609
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001648
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400015d3
xor eax, eax
jmp 0x140001676
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140006110
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006163
mov rsi, rdx
mov rdi, rcx
mov r15d, 0xffffffff
cmp rsi, r15
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140006183
add rdi, rbx
sub rsi, rbx
jne 0x140006141
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140030100
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r9, str.success
lea r14, [rsp + 0x20]
mov rcx, r14
mov r8d, 0x20
call fcn.14003af40
mov rcx, r14
call fcn.14003b030
jmp 0x14000615b