joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006cae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
mov qword [rbp + 0x27], 7
mov rsi, rdx
mov qword [rbp + 0xf], rbx
mov rdi, rcx
mov qword [rbp + 0x1f], rbx
lea rdx, str.__record.created
lea r8d, [rbx + 0x10]
lea rcx, [rbp + 0xf]
call fcn.140025e70
cmp qword [rbp + 0x27], 8
lea rcx, [rbp + 0xf]
mov rax, qword [rbp + 0x1f]
movabs r9, 0xcbf29ce484222325
cmovae rcx, qword [rbp + 0xf]
lea rdx, [rax + rax]
test rdx, rdx
je 0x14006cb73
movabs r8, 0x100000001b3
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rbx
xor r9, rax
imul r9, r8
cmp rbx, rdx
jb 0x14006cb60
lea r8, [rbp + 0xf]
mov rcx, rsi
lea rdx, [rbp - 0x19]
call fcn.140034130
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x14006cb90
mov rbx, qword [rsi + 8]
lea rcx, [rbp + 0xf]
call fcn.140025de0
cmp rbx, qword [rsi + 8]
je 0x14006cc51
call fcn.140246304
cmp qword [rbx + 0x48], 8
lea rcx, [rbx + 0x30]
jb 0x14006cbb6
mov rcx, qword [rcx]
lea rax, [rbp + 0xb]
mov qword [rsp + 0x38], rax
lea r9, [rbp - 5]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
lea rax, [rbp + 3]
mov qword [rsp + 0x28], rax
lea rdx, str._4d__2d__2d__2d:_2d:_2dZ
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
call fcn.1400698d0
cmp eax, 6
jne 0x14006cc30
mov eax, dword [rbp - 9]
lea rcx, [rbp + 0xf]
add eax, 0xfffff894
mov dword [rbp + 0x23], eax
mov eax, dword [rbp - 5]
dec eax
mov dword [rbp + 0x1f], eax
mov eax, dword [rbp - 1]
mov dword [rbp + 0x1b], eax
mov eax, dword [rbp + 3]
mov dword [rbp + 0x17], eax
mov eax, dword [rbp + 7]
mov dword [rbp + 0x13], eax
mov eax, dword [rbp + 0xb]
mov dword [rbp + 0xf], eax
call fcn.140286428
imul rax, rax, 0x989680
jmp 0x14006cc8d
mov ecx, 5
call fcn.140096b00
test eax, eax
je 0x14006cc88
mov r9d, 0x4a
lea rax, str.Could_not_parse___record.created._Using_current_time
lea ecx, [r9 - 0x45]
jmp 0x14006cc70
mov ecx, 1
call fcn.140096b00
test eax, eax
je 0x14006cc88
mov r9d, 0x52
lea rax, str.Could_not_find___record.created._Using_current_time
lea ecx, [r9 - 0x51]
lea r8, str.Intel::Analytics::CCommonUtilities::GetRecordCreatedTime
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT_f8b799d6_918f_4a8b_891d_64cf6ddaa9f4ClientAnalyticsCommon_srcCAUtilitiesCommonUtilities.cpp
call fcn.1400262e0
call fcn.140246304
mov qword [rdi], rax
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ed90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r12d, r9d
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov r13, qword [rsp + 0x100]
lea rdx, str.GetLastErrorMessage
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x14006ee02
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14006ee02
add rcx, 2
cmp rcx, 0x14
jne 0x14006ede0
jmp 0x14006ee17
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0x10
jb 0x14006ee11
mov rcx, qword [rsi + 8]
mov qword [rsi + 0x18], rbx
mov byte [rcx], bl
lea rax, vtable.McAfee::Script::ScriptVariable.0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], rbx
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140043b70
nop
lea rcx, [rsp + 0x38]
call fcn.1400437b0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x14006ee70
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140025e70
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
movabs r9, 0xcbf29ce484222325
mov rax, qword [rsp + 0x48]
lea rdx, [rax + rax]
test rdx, rdx
je 0x14006eed3
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
xor r9, rax
imul r9, r8
inc rbx
cmp rbx, rdx
jb 0x14006eec0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
lea rcx, [rsi + 0x28]
call fcn.140034130
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x14006eef3
mov rbx, qword [rsi + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140025de0
cmp rbx, qword [rsi + 0x30]
jne 0x14006ef10
mov rdx, rdi
mov rcx, rsi
call fcn.14006ea20
jmp 0x14006ef52
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x90], r12d
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x14006ef75
mov rax, qword [rcx]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov rdx, r15
mov rax, qword [rax + 0x10]
call qword [case.0x1400ac8a1.0]
xor eax, eax
jmp 0x14006ef52
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140269300
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.140245dd0
int3
Function at 0x140073780
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14007393e
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140033ff0
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140073907
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140073873
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400738f6
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x1400738b0
mov r10, qword [rax]
cmp r10, rcx
je 0x1400738aa
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400738f6
mov r8, rax
cmp r10, rax
je 0x1400738d2
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140073918
cmp r10, rax
jne 0x1400738c0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140073820
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400738f6
lea rcx, str.invalid_hash_bucket_count
call fcn.140245e14
int3
Function at 0x140073aa0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x168], rdx
xor esi, esi
test rdx, rdx
je 0x140073ccd
cmp si, word [rdx]
je 0x140073ccd
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140073b3e
mov edi, esi
mov qword [rsp + 0x170], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, esi
mov r12d, esi
jmp 0x140073c0d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
jne 0x140073b68
mov rdi, rsi
mov qword [rsp + 0x170], rsi
test rbx, rbx
je 0x140073c00
jmp 0x140073bf7
lea ecx, [rax + 1]
lea rdx, [0x1402e7374]
call fcn.14026a000
mov r15, rax
mov r12, rax
test rax, rax
je 0x140073b4f
mov dword [rsp + 0x160], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x160]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140073bd4
mov eax, dword [rsp + 0x160]
cmp eax, edi
jne 0x140073bd4
mov byte [rax + r12], 0
mov rdi, r12
mov qword [rsp + 0x170], r12
test rbx, rbx
je 0x140073c06
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140073c06
mov rdi, rsi
mov qword [rsp + 0x170], rsi
mov edx, 1
mov rcx, r15
call fcn.140269844
mov r15, rsi
mov r12, rsi
test rbx, rbx
je 0x140073c06
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, rsi
mov r15, rsi
mov rbx, 0xffffffffffffffff
test r12, r12
jne 0x140073c3f
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
test r15, r15
je 0x140073c37
lea edx, [r12 + 1]
mov rcx, r15
call fcn.140269844
mov rax, r14
jmp 0x140073d1a
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14004abe0
nop
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
mov rdx, qword [rsp + 0x50]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140073c75
mov r8, rbx
mov rcx, r14
call fcn.140025e70
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140073ca0
call fcn.1402767a0
nop
mov edx, 1
mov rcx, r15
call fcn.140269844
mov rax, r14
jmp 0x140073d1a
mov ecx, 5
call fcn.140096b00
test eax, eax
je 0x140073d04
lea rax, str.Empty_file_name_was_passed
mov qword [rsp + 0x20], rax
mov r9d, 0x56
lea r8, str.McAfee::Script::CFileUtility::ReadFile
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptCommon_srcFileUtility.cpp
lea ecx, [r9 - 0x51]
call fcn.1400262e0
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
mov rax, r14
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140074ad0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov r14, rcx
mov esi, edx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140074aee
mov edx, esi
call qword [sym.imp.USER32.dll_KillTimer]
mov r8, qword [r14 + 0x68]
movabs r9, 0x100000001b3
movabs rax, 0xcbf29ce484222325
movzx edx, sil
xor rdx, rax
mov eax, esi
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x10
imul rdx, r9
xor rdx, rcx
movzx ecx, al
imul rdx, r9
mov rax, rsi
shr rax, 0x18
xor rdx, rcx
mov rcx, qword [r14 + 0x40]
imul rdx, r9
xor rdx, rax
mov rax, rdx
imul rax, r9
and r8, rax
shl r8, 4
add r8, qword [r14 + 0x50]
mov rax, qword [r8 + 8]
cmp rax, rcx
je 0x140074ce4
mov r8, qword [r8]
cmp esi, dword [rax + 0x10]
je 0x140074b76
cmp rax, r8
je 0x140074ce4
mov rax, qword [rax + 8]
cmp esi, dword [rax + 0x10]
jne 0x140074b64
test rax, rax
cmove rax, rcx
cmp rax, rcx
je 0x140074ce4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], rdi
mov rdi, qword [rax + 0x28]
test rdi, rdi
je 0x140074baa
lock inc dword [rdi + 8]
mov rdi, qword [rax + 0x28]
mov rcx, qword [r14 + 0x40]
imul rdx, r9
mov r9, qword [r14 + 0x50]
mov ebp, 0xffffffff
and rdx, qword [r14 + 0x68]
mov r8, rdx
add r8, r8
mov r10, qword [r9 + r8*8 + 8]
mov rbx, r10
cmp r10, rcx
je 0x140074c91
mov rax, qword [r9 + r8*8]
cmp esi, dword [r10 + 0x10]
je 0x140074bf2
nop dword [rax]
cmp rbx, rax
je 0x140074c91
mov rbx, qword [rbx + 8]
cmp esi, dword [rbx + 0x10]
jne 0x140074be0
test rbx, rbx
je 0x140074c91
add rdx, rdx
mov rax, qword [r9 + rdx*8]
cmp r10, rbx
jne 0x140074c22
cmp rax, rbx
jne 0x140074c17
mov qword [r9 + rdx*8], rcx
mov qword [r9 + r8*8 + 8], rcx
jmp 0x140074c2e
mov rcx, qword [rbx + 8]
mov qword [r9 + r8*8 + 8], rcx
jmp 0x140074c2e
cmp rax, rbx
jne 0x140074c2e
mov rax, qword [rbx]
mov qword [r9 + rdx*8], rax
mov rcx, qword [rbx]
dec qword [r14 + 0x48]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x140074c84
mov eax, ebp
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140074c84
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
mov eax, ebp
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140074c84
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
mov edx, 0x30
mov rcx, rbx
call fcn.140269844
mov rbx, qword [rsp + 0x50]
test rdi, rdi
je 0x140074cd0
mov eax, ebp
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140074cd0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
lock xadd dword [rdi + 0xc], ebp
cmp ebp, 1
jne 0x140074cd0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
mov rbp, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140074cf0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov r10, rcx
movzx r9d, dl
movabs rax, 0xcbf29ce484222325
xor r9, rax
movabs r11, 0x100000001b3
imul r9, r11
mov eax, edx
sar eax, 8
movzx r8d, al
xor r9, r8
imul r9, r11
mov eax, edx
sar eax, 0x10
movzx ecx, al
xor r9, rcx
imul r9, r11
mov eax, edx
sar eax, 0x18
movzx ecx, al
xor r9, rcx
imul r9, r11
mov r8, qword [r10 + 0x68]
and r8, r9
shl r8, 4
add r8, qword [r10 + 0x50]
mov rax, qword [r8 + 8]
mov rcx, qword [r10 + 0x40]
cmp rax, rcx
je 0x140074ea1
mov r8, qword [r8]
nop dword [rax]
cmp edx, dword [rax + 0x10]
jne 0x140074e93
test rax, rax
cmove rax, rcx
cmp rax, rcx
je 0x140074ea1
movzx ecx, byte [rax + 0x18]
mov byte [rsp + 0x40], cl
mov rbx, qword [rax + 0x28]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x140074dac
lock inc dword [rbx + 8]
mov rbx, qword [rax + 0x28]
mov qword [rsp + 0x70], rbx
mov rdi, qword [rax + 0x20]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140074dc8
lock inc dword [rbx + 8]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
cmp cl, 1
jne 0x140074de8
mov rax, qword [r10]
mov rcx, r10
mov rax, qword [rax + 0x18]
call qword [case.0x1400ac8a1.0]
nop
mov rax, qword [rdi]
lea rdx, str.OnTimeout
mov rcx, rdi
mov rax, qword [rax + 0x40]
call qword [case.0x1400ac8a1.0]
nop
jmp 0x140074e07
mov edi, 0xffffffff
test rbx, rbx
je 0x140074e49
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140074e49
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140074e49
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
nop
test rbx, rbx
je 0x140074e83
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140074e83
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140074e83
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
mov eax, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
cmp rax, r8
je 0x140074ea1
mov rax, qword [rax + 8]
jmp 0x140074d70
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14007ec30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14007eca5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14007eca5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14007ec95
nop
cmp rbx, rcx
jae 0x14007eca5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14007ec80
cmp rbx, rcx
jae 0x14007eca5
cmp word [rbx], 0
je 0x14007eca5
mov rax, rbx
jmp 0x14007eca7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007fc20
Capabilities:
Convert ip address from string
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, 2
mov rdi, rdx
mov rbx, rcx
mov edx, esi
mov ecx, esi
lea r8d, [rsi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x38], rax
test rcx, rcx
je 0x14007fc74
cmp rcx, 0xffffffffffffffff
je 0x14007fc74
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rbx + 0x38]
cmp rax, 0xffffffffffffffff
jne 0x14007fd2c
cmp word [rbx + 8], 0
jne 0x14007fd2c
lea rdx, str.127.0.0.1
mov ecx, esi
lea r8, [rsp + 0x48]
mov qword [rsp + 0x40], rdx
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x14007fce8
lea ecx, [rax + 5]
call fcn.140096b00
test eax, eax
je 0x14007fd2c
lea rax, [rsp + 0x40]
mov r9d, reloc.WS2_32.dll_getservbyport
mov qword [rsp + 0x28], rax
lea rax, str.Invalid_IP_Address_Format:__hs
lea r8, str.McAfee::Script::CSimpleIPv4UDPPacketSender::setServerAddr
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptScriptablePluginsLoggingPlugin_srcSimpleIPv4UDPPacketSender.cpp
mov ecx, 5
call fcn.14003ad30
jmp 0x14007fd2c
cmp eax, 0xffffffff
jne 0x14007fd12
lea ecx, [rax + 6]
call fcn.140096b00
test eax, eax
je 0x14007fd2c
lea rax, [rsp + 0x40]
mov r9d, 0x3d
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_set_the_server_address_to__hs
jmp 0x14007fcc9
mov ecx, 0x202
mov word [rbx + 8], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0xa], ax
mov eax, dword [rsp + 0x48]
mov dword [rbx + 0xc], eax
mov r8d, dword [rdi + 8]
lea rax, [rbx + 8]
mov rdx, qword [rdi]
lea rsi, [rdi + 8]
mov rcx, qword [rbx + 0x38]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x14007fda3
lea ecx, [rax + 6]
call fcn.140096b00
test eax, eax
je 0x14007fd9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov r9d, 0x4d
lea r8, str.McAfee::Script::CSimpleIPv4UDPPacketSender::sendBuffer
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptScriptablePluginsLoggingPlugin_srcSimpleIPv4UDPPacketSender.cpp
lea rax, str.Failed_to_send_datagram__Last_Error:_0x_08X
mov qword [rsp + 0x20], rax
call fcn.14007f2f0
xor al, al
jmp 0x14007fde9
mov rbx, qword [rsi]
movsxd rdi, eax
mov qword [rsp + 0x48], rdi
cmp rdi, rbx
jae 0x14007fde7
mov ecx, 1
call fcn.140096b00
test eax, eax
je 0x14007fde7
lea rax, [rsp + 0x40]
sub rbx, rdi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], rbx
call fcn.14007fe10
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140269300
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140080760
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x10], rbx
je 0x140080841
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140080841
test rdx, rdx
je 0x140080829
test r8, r8
je 0x140080832
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
lea rax, vtable.McCryptoLib::CWinError.0
mov qword [rsp + 0x30], rax
mov rax, qword [0x1403125f8]
call qword [case.0x1400ac8a1.0]
test eax, eax
je 0x140080839
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
mov ecx, eax
call fcn.140080248
mov qword [rsp + 0x28], rax
lea r8, str.E:BT380bd788_2e5a_4012_9f79_903f61b85e9bCoreTechMcCryptoLib_srcwindowswin_hmac.cpp
lea rax, str.McCryptoLib::CMcCryptoHMACWin::AddToHash
mov r9d, 0x99
lea rdx, str.__S:__d____S___s:_Error_trying_to_encrypt_data
mov qword [rsp + 0x20], rax
mov ecx, 2
call fcn.140091700
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 8]
call qword [case.0x1400ac8a1.0]
mov ebx, eax
jmp 0x14008083d
test r8, r8
je 0x140080798
mov eax, 0x8000000a
jmp 0x140080846
mov byte [rdi + 8], 1
mov eax, ebx
jmp 0x140080846
mov eax, 0x8000000d
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140081ab0
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rax, rdx
mov rbx, rcx
je 0x140081acb
xor al, al
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], r8d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
mov qword [rbx + 8], rax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140081ce0
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140081d2e
cmp qword [rbx + 0x18], 0
jne 0x140081d2e
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
mov qword [rbx + 0x18], rax
setne al
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x140081d40
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140081d54
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x140081dc0
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140081dd4
xor al, al
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
sete al
add rsp, 0x28
ret