joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eb180
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400eb328
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400eb1e5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400eb1e5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400eb1e5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400eb21c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400eb272
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400eb272
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400eb272
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400eb272
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400eb272
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400eac30
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400eb2d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400c71c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400eb000
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400eb320
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400c71c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400eca90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401b21c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400ecb25
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400ecb86
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400c71c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ffba0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400ecc41
sub ecx, 1
je 0x1400eccb4
sub ecx, 1
je 0x1400ecbf0
cmp ecx, 1
je 0x1400ecbd3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401183a8]
call fcn.1400c71c0
jmp 0x1400eccb4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400ec7c0
test eax, eax
je 0x1400eccb4
jmp 0x1400ecb5a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400eccb4
sub rax, rsi
cmp rax, rbp
jae 0x1400eccb4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400c7340
jmp 0x1400eccb4
cmp r8d, 4
jle 0x1400eccb4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400eccb4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400c70e0
mov esi, eax
test eax, eax
je 0x1400ecc93
mov edx, 5
mov rcx, rbx
call fcn.1400ed780
mov eax, esi
jmp 0x1400ecb5a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400d5bb0
mov rcx, r14
call fcn.1400d5e90
test eax, eax
je 0x1400ecb58
mov edx, 5
mov rcx, rbx
call fcn.1400ed780
mov eax, Ordinal_45
jmp 0x1400ecb5a
Function at 0x1400ffa50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ffa92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ffad9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ffb32
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ffaf0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ffb73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140117ff2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140117ff3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ffb40
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140100ae8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140100d9a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140100d9f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140100de8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140100de8
dec r8
sub rdx, 1
jne 0x140100dce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1805c7059
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp], 0x7fa235f5
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
call fcn.180c87304
push rdi
push r9
pushfq
movabs r9, 0x2748245947ab6757
mov rdi, r9
xor r9d, edi
sub r9w, r9w
mov rdi, qword [rsp + 0x10]
mov qword [rsp + 0x10], 0xffffffff8a499b98
js 0x1805c7072
call int.180710d3b
lodsd eax, dword [rsi]
cmp eax, 0xc757c133
cmp dword fs:[rsi - 0x50], 0x49
mov edi, 0xa027e9a
invalid
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x1400f7048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x1400f7050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.1400c8c40
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x140134638], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x1400f7068]
mov rdx, qword [0x1400f7070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x1400f7058]
mov rdx, qword [0x1400f7060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, 1
je 0x140001224
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x1400f7008]
mov rax, qword [rax]
test rax, rax
je 0x14000123f
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call rax
call fcn.1400c75e0
lea rcx, [0x1400c7b80]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x1400f7040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400c75d0
movsxd rdi, dword [0x140134624]
lea rcx, [rdi*8 + 8]
call sub.mozglue.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x140134628]
xor r15d, r15d
nop word cs:[rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.mozglue.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.ntdll.dll_memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x140134628], rsi
call fcn.1400c7420
mov rax, qword [0x140134630]
mov rcx, qword [0x1400f7018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x140134624]
mov rdx, qword [0x140134628]
mov r8, qword [0x140134630]
call fcn.1400013a0
mov dword [0x14013463c], eax
cmp dword [0x14013461c], 0
je 0x140001344
cmp byte [0x140134638], 0
jne 0x140001338
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14013463c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400013a0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, qword [0x1400f74a8]
call fcn.1400c7420
mov rax, qword [rbx]
xor rax, rbp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400013fd
mov rdi, rax
mov ecx, dword [rbp - 4]
mov rdx, rax
call fcn.140001430
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001402
mov esi, 0x7f
mov rax, qword [rbp]
xor rax, rbp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x14000141c
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1400c8850
int3
Function at 0x140001750
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rbx, qword [0x1400f74a8]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x140135210]
test al, al
je 0x14000186e
cmp qword [0x1401372e8], 0
je 0x1400017c2
mov rax, qword [rsp + 0x230]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x1400018b7
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 0x104
ja 0x140001805
mov rdi, rax
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000181b
mov eax, eax
mov ecx, 0x105
sub rcx, rdi
cmp rcx, rax
jbe 0x14000181b
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x140001809
mov r14, rax
jmp 0x14000181e
xor eax, eax
jmp 0x14000184e
lea r14, [rax + 1]
cmp r14, rcx
jae 0x14000181b
mov word [rsp + rax*2 + 0x20], 0x5c
jmp 0x14000181e
xor r14d, r14d
lea rcx, [rsp + r14*2]
add rcx, 0x20
mov rdx, rsi
mov r8, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
add rdi, r14
mov word [rsp + rdi*2 + 0x20], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x1400018b7
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140135210]
call fcn.1400c6e84
test eax, eax
je 0x140001783
lea rcx, [0x1400f71ba]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400f71cc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401372e8], rax
lea rcx, [0x140135210]
call fcn.1400c6f5f
jmp 0x140001783
call fcn.1400c8850
int3
Function at 0x140002850
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1400c80bc
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x10048], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000292d
test rbx, rbx
je 0x1400028bc
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000292d
test rdi, rdi
je 0x140002919
mov r12d, 0x10000
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x10000
mov r9, r14
call r13
test eax, eax
je 0x140002919
cmp dword [rsp + 0x34], 0x10000
jne 0x140002919
lea rax, [r12 + 0x10000]
cmp r12, rdi
mov r12, rax
jb 0x1400028e0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x10048]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140002953
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140004410
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x40], r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x68], 0
je 0x140004499
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140004499
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rax + rdx]
mov qword [rsp + 0x58], rcx
cmp dword [rax + rdx], 0x4550
jne 0x140004499
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140004499
mov edx, dword [rcx + 0x50]
cmp edx, 0x148
jae 0x1400044e1
mov byte [rsi + 0x10], 1
lea rax, [0x1400f75b0]
mov qword [rsi], rax
movabs rax, 0x800700c1000000c5
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0xb0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000468f
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8d, [rdx - 1]
add rax, r8
mov qword [rsp + 0x60], rax
mov eax, dword [rcx + 0x84]
cmp eax, 0x10
mov r8d, 0x10
cmovb r8d, eax
cmp r8d, 2
jb 0x140004511
cmp dword [rcx + 0x90], edx
setae byte [rsp + 0x68]
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.1400198b0
movzx eax, byte [rsp + 0xa0]
test al, al
je 0x140004546
mov byte [rsi + 0x10], al
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi], xmm0
jmp 0x1400044b5
mov r14, qword [rsp + 0x110]
cmp byte [r14 + 0x18], 0
je 0x140004565
lea rcx, str.DisableThirdPartyModuleBlocking
call fcn.1400046a0
test al, al
je 0x14000459c
mov r9, qword [0x1400f8178]
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 0xc0000000
call fcn.14001a160
cmp byte [rsp + 0x88], 0
je 0x1400045b3
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x1400044b5
cmp byte [r14 + 0x18], 0
je 0x14000467f
test byte [r14], 1
je 0x1400045da
mov r14, qword [r14 + 0x10]
jmp 0x1400045de
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
xor r9d, r9d
call fcn.140003f30
xor ecx, ecx
call fcn.1400197a0
jmp 0x1400044b5
add r14, 2
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, r14
call fcn.140015530
lea rcx, [rsp + 0x78]
mov rdx, r15
mov r8d, ebx
call fcn.140019aa0
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0xa0], al
test al, al
je 0x14000465e
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x90], xmm0
mov byte [rsi + 0x10], al
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x1400044b5
call sub.mozglue.dll_free
jmp 0x1400044b5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x140004565
call sub.mozglue.dll_free
jmp 0x140004565
mov dword [0], 0x30f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.1400c8850
int3
Function at 0x1400046a0
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rdi, qword [0x1400f74a8]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 4
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r14, [rsp + 0x4c]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000002
mov r8, rsi
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400047c4
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000002
mov r8, rsi
mov r9d, 0x48
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400047cb
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000001
mov r8, rsi
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400047c4
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000001
mov r8, rsi
mov r9d, 0x48
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400047cb
xor eax, eax
jmp 0x1400047d4
cmp dword [rsp + 0x4c], 1
jmp 0x1400047d1
cmp qword [rsp + 0x40], 1
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
mov rdx, qword [rdi]
cmp rdx, rcx
jne 0x1400047ee
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
int3

Function at 0x140004800
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
mov rdi, rcx
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140004930
lea rcx, [rsp + 0x100]
mov rdx, rsi
call fcn.140004a70
lea rdx, str.Tor_Browser_Launcher
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x1400048eb
mov rsi, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
lea r15, [rax + 8]
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov ebp, dword [rdi + 0xc]
mov dword [rbx], ebp
mov eax, dword [rdi + 8]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov rdx, qword [rdi]
mov r8, r14
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call sub.mozglue.dll_free
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x48]
call fcn.140004b90
mov rax, qword [rsp + 0x118]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000491b
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140005cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rbp, qword [0x1400f74a8]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 0
lea r13, [rsp + 0x48]
mov qword [rsp + 0x30], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, r14
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140005d25
cmp eax, 2
jne 0x140005da1
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
jmp 0x140005e75
mov r15d, dword [rsp + 0x48]
add r15, r15
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, r14
mov r8, rbx
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140005dcc
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x68
mov dword [rsi + 0xc], ecx
jmp 0x140005e6d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
jmp 0x140005e75
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
movabs rax, 0x4e0049004d
mov qword [rsp + 0x5e], rax
mov dword [rsp + 0x4c], 0x20
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x4c]
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140005e57
lea rbx, [rsp + 0x50]
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea r14, [rsp + 0x4c]
lea r15, [rsp + 0x40]
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
nop dword [rax]
mov r8d, 0xb
mov rcx, rax
mov rdx, rbx
call r13
test eax, eax
je 0x140005e5c
xor r12d, r12d
xor ecx, ecx
mov rdx, r14
mov r8, r15
call rbp
test rax, rax
jne 0x140005e30
jmp 0x140005e5f
xor r12d, r12d
jmp 0x140005e66
mov r12b, 1
mov rbp, qword [0x1400f74a8]
mov byte [rsi + 0x10], 0
mov byte [rsi], r12b
mov rcx, rdi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x140005e9a
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3