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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov rbp, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x40], rcx
lea r15, [rsp + 0x3a]
mov ecx, 0x7fffffff
cmp rax, rcx
cmovb rcx, rax
mov qword [rsp + 0x48], rcx
lea rdi, [rsp + 0x30]
mov rdx, qword [rbp + 0x20]
mov rcx, rdi
mov r8, qword [rsp + 0x58]
call fcn.1400d41ea
mov r12b, byte [rsp + 0x39]
cmp r12b, 3
je 0x1400d4646
mov r13, qword [rsp + 0x30]
cmp r12b, 2
je 0x1400d4654
mov bl, byte [rsp + 0x38]
movzx eax, word [r15 + 4]
mov word [rsp + 0x24], ax
mov eax, dword [r15]
mov dword [rsp + 0x20], eax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1400d4564
mov rsi, rbp
jmp 0x1400d4566
xor esi, esi
mov rcx, rsi
lea rdx, str.C:Users_tuxis.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.27.0_srciopoll_evented.rs
call fcn.14005147a
mov rcx, qword [rsi + 8]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400d4666
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov rcx, r14
call fcn.1400309fc
cmp al, 0xd
jne 0x1400d45fa
mov rax, qword [rsi]
test rax, rax
je 0x1400d45fa
mov rcx, qword [rax]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x1400d4698
add rcx, 0x10
mov r8, qword [rax + 8]
mov r9b, byte [rax + 0x18]
call fcn.14004d928
mov rsi, rax
xor ecx, ecx
call fcn.14004c3b5
test rsi, rsi
je 0x1400d45fa
mov ecx, 1
mov rdx, r14
call fcn.14004da4e
mov r14, rsi
mov rcx, r14
call fcn.1400a401c
cmp al, 0xd
jne 0x1400d4677
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x30], r13
mov byte [rsp + 0x38], bl
mov byte [rsp + 0x39], r12b
movzx eax, word [rsp + 0x24]
mov word [r15 + 4], ax
mov eax, dword [rsp + 0x20]
mov dword [r15], eax
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call fcn.1400d3f88
lea rcx, [rsp + 0x60]
call fcn.1400ce6ac
jmp 0x1400d4514
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400d4687
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], r13
jmp 0x1400d4687
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400d4687
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], r14
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x1400d929f
Capabilities:
Hash data using sha1 via x86 extensions

Disassembly:
mov rcx, qword [rcx]
add qword [rcx], r8
add rcx, 8
jmp 0x1400a0c26
Function at 0x14072a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14072a237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14072a0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a0c7
add dl, dl
jne 0x14072a0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a14e
xor eax, eax
add dl, dl
jne 0x14072a0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a205
add dl, dl
jne 0x14072a10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072a142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072a0d6
mov eax, 1
add dl, dl
jne 0x14072a15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a153
sub eax, ebx
mov ebx, 1
jne 0x14072a1a4
mov ecx, 1
add dl, dl
jne 0x14072a186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072a193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072a1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072a1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a1b5
cmp eax, 0x7d00
jae 0x14072a1f3
cmp eax, 0x500
jb 0x14072a1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
cmp eax, 0x7f
ja 0x14072a1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072a22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14072a0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x140
mov rax, qword gs:[0x60]
mov esi, ecx
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test ecx, ecx
jne 0x140001039
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x158], rdi
test rbx, rbx
je 0x140001105
mov ebp, 0x104
nop word [rax + rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1400010f9
cmp word [rbx + 0x48], bp
jae 0x1400010f9
mov r8, rbp
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140001d20
xor r9d, r9d
cmp word [rdi], r9w
je 0x1400010d1
xor r10d, r10d
mov r11, rdi
xor eax, eax
nop word [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 + 0x20]
movzx ecx, al
lea edx, [r8 - 0x41]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + r10 + 0x30], cl
mov rdi, qword [rbx + 0x50]
mov r10d, r9d
lea rax, [r9 + r9]
cmp word [rax + rdi], 0
jne 0x1400010a0
mov rcx, rdi
mov byte [rsp + r9 + 0x30], 0
call fcn.1400014f0
cmp eax, esi
je 0x1400011d2
lea rcx, [rsp + 0x30]
call fcn.1400014f0
cmp eax, esi
je 0x1400011d2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400011af
lea rbx, str.C:UsersMALDEV01Desktop_scratchMaldevAcademyLdr.1_mainMaldevAcademyLdr.1_mainLoaderApiHashing.c
mov edx, 0x5c
mov rcx, rbx
call fcn.140001d50
test rax, rax
je 0x140001155
mov edx, 0x5c
mov rcx, rbx
call fcn.140001d50
lea rbx, [rax + 1]
mov r9, rbx
mov dword [rsp + 0x20], 0x84
mov r8d, esi
lea rdx, str.____GetModuleHandleH_Failed:_Module_Of_Hash_0x_08X_Was_Not_Found____s._d_n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbp, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400011b1
Function at 0x1400014f0
Capabilities:
Hash data using djb2

Disassembly:
movsx edx, byte [rcx]
mov eax, 0x1505
test edx, edx
je 0x140001510
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001500
ret

Function at 0x140001d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov r13, rcx
test r8b, 0xf
jne 0x140001ead
mov r15, rbx
shr r15, 4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi], rax
mov rdi, rax
test rax, rax
je 0x140001ead
lea rsi, [r13 + 0xf0]
test r15, r15
je 0x140001e99
mov qword [rsp + 0x60], rbp
mov rbx, rsi
mov qword [rsp + 0x68], r12
lea rbp, [rax + 0xf]
lea r12, [rsi + 0xf]
sub rbx, rax
nop dword [rax]
mov r8d, 0x10
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140001cb0
mov r9, r14
mov r8, rdi
mov edx, 0xe
mov rcx, r13
call fcn.140001f10
cmp rdi, r12
ja 0x140001e52
cmp rbp, rsi
jb 0x140001e52
mov rax, rdi
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140001e40
jmp 0x140001e62
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rdi], xmm1
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140001cb0
add rdi, 0x10
add rbp, 0x10
sub rbx, 0x10
add r14, 0x10
sub r15, 1
jne 0x140001e00
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x70]
xor al, al
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x100402570
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
test rcx, rcx
je 0x1004027c0
call sub.cygwin1.dll_strlen
lea ecx, [rax + 0x40]
mov rsi, rax
movsxd rcx, ecx
call sub.cygwin1.dll_malloc
mov r12, rax
test esi, esi
jle 0x1004027cd
mov rdx, rbx
mov rcx, rax
lea r8, [rsi + 1]
call sub.cygwin1.dll_memcpy
mov edx, 0x5c
mov rcx, r12
call sub.cygwin1.dll_strchr
test rax, rax
je 0x1004025e6
nop dword [rax + rax]
mov byte [rax], 0x2f
lea rcx, [rax + 1]
mov edx, 0x5c
call sub.cygwin1.dll_strchr
test rax, rax
jne 0x1004025d0
movsxd rdi, esi
lea rcx, [0x1004065ff]
movsx edx, byte [rbx + rdi - 1]
add rdi, r12
call sub.cygwin1.dll_strchr
test rax, rax
je 0x100402810
cmp byte [0x10040b011], 0
jne 0x1004027ef
xor ebp, ebp
lea rbx, [0x100405028]
lea rsi, [0x1004065fc]
call sub.cygwin1.dll_getpid
mov r9, rsi
lea rdx, str.connector__u__s.log
mov rcx, rdi
mov r8d, eax
call sub.cygwin1.dll_sprintf
mov rcx, r12
mov r8d, 0x180
mov edx, 0x601
call sub.cygwin1.dll_open
mov dword [rbx], eax
mov ecx, eax
test eax, eax
jns 0x1004026b8
cmp byte [0x10040b011], 0
jne 0x1004027a0
lea rsi, [0x100406665]
lea rbx, [0x100405024]
cmp ebp, 1
jne 0x1004026a8
mov eax, dword [0x100405024]
test eax, eax
js 0x10040268c
mov ecx, 1
call fcn.100401090
mov rcx, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.100402a50
mov ebp, 1
jmp 0x100402623
mov edx, 0x180
call sub.cygwin1.dll_fchmod
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
test rax, rax
je 0x100402658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov r14d, eax
mov r9d, eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r13d, eax
test eax, eax
jle 0x100402658
movsxd rcx, eax
call sub.cygwin1.dll_malloc
mov r15, rax
test rax, rax
je 0x100402781
xor edx, edx
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov r8, rsi
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100402781
mov ecx, dword [rbx]
movsxd r8, eax
mov rdx, r15
call sub.cygwin1.dll_write
mov ecx, dword [rbx]
mov r8d, 0xc
lea rdx, str._n___________n
call sub.cygwin1.dll_write
mov rcx, r15
call fcn.100402a50
cmp byte [0x10040b011], 0
je 0x100402665
nop word cs:[rax + rax]
mov ebx, dword [rbx]
call sub.cygwin1.dll_getpid
mov r8, r12
lea rcx, str.PID:_u_fopen___s_____i_r_n
mov edx, eax
mov r9d, ebx
call fcn.1004012a0
jmp 0x100402665
mov ecx, 0x40
call sub.cygwin1.dll_malloc
mov r12, rax
mov edx, 0x2f2e
mov byte [r12 + 2], 0
lea rdi, [r12 + 2]
cmp byte [0x10040b011], 0
mov word [r12], dx
je 0x100402613
call sub.cygwin1.dll_getpid
mov r8, r12
lea rcx, str.PID:_u_creating_logs_in:__s_r_n
mov edx, eax
call fcn.1004012a0
jmp 0x100402613
add esi, 1
mov byte [rdi], 0x2f
movsxd rsi, esi
lea rdi, [r12 + rsi]
jmp 0x100402606
Function at 0x140001080
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x2c8
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x140003300]
xor ecx, ecx
cmp dword [0x140005018], 2
movups xmm0, xmmword [0x1400032e0]
mov dword [rsp + 0x60], eax
movups xmm1, xmmword [0x1400032f0]
movzx eax, word [0x140003304]
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x64], ax
movups xmmword [rsp + 0x50], xmm1
jl 0x140001234
movdqa xmm5, xmmword [0x140003310]
lea rdx, [rsp + 0x40]
movdqa xmm4, xmmword [0x140003340]
mov eax, 5
movdqa xmm7, xmmword [str.::::]
movdqa xmm9, xmmword [0x140003330]
movd xmm6, eax
mov eax, 0x1f
movd xmm8, eax
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x10
jl 0x140001140
cmp ecx, 0x13
jge 0x140001273
movsxd rax, ecx
lea r8, [rsp + 0x40]
lea r8, [r8 + rax*2]
mov eax, 0x8d3dcb09
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x3a
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x32
xor word [r8 - 2], ax
cmp ecx, 0x13
jl 0x140001240
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x70]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400012ee
call fcn.140001000
nop
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
mov ecx, 1
call qword [sym.imp.USER32.dll_BlockInput]
call fcn.140001020
jmp 0x1400012d0
call fcn.140001000
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
mov ecx, 1
call qword [sym.imp.USER32.dll_BlockInput]
call fcn.140001020
jmp 0x1400012f3
Function at 0x140001e3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e86
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e88
xor al, al
add rsp, 0x28
ret
Function at 0x1400012c0
Capabilities:
Create thread
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400056a0
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, str._WinDir_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rbx
lea r8, str._s_system32_s
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400013f0
mov rcx, qword [0x140028030]
test rcx, rcx
je 0x140001350
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400013b3
mov qword [0x140028048], rdi
lea rax, [rsp + 0x30]
xor edi, edi
mov qword [0x140028040], rax
mov qword [rsp + 0x28], rdi
lea r8, [0x140001020]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140028030], rax
test rax, rax
je 0x1400013b3
mov edx, 0xc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400013b3
cmp dword [0x140028038], edi
mov qword [0x140028030], rdi
je 0x1400013b3
xor eax, eax
jmp 0x1400013c4
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400046a0
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
Function at 0x140001750
Capabilities:
Create directory
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, r8
mov edi, edx
mov esi, ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400056a0
xor r15d, r15d
mov ecx, 0x104
mov dword [rsp + 0x40], r15d
xor bl, bl
call fcn.140009630
mov r14, rax
test rax, rax
jne 0x1400017c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_Allocation_failed__error_code___d
call fcn.140001650
jmp 0x14000190a
xor edx, edx
mov r8d, 0x104
mov rcx, r14
call fcn.1400056a0
mov r8d, 0x104
lea rcx, str._programdata_BroadcomHostStorage_
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.Host_Storage_location_set_successfully.
call fcn.140001650
xor edx, edx
mov rcx, r14
call fcn.140009638
cmp eax, 0xffffffff
jne 0x140001817
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001902
mov r9, r14
mov dword [rsp + 0x20], esi
lea r8, str._s_d.bcm
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400016f0
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 2
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001881
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile_failed__error_code___d
call fcn.140001650
jmp 0x1400018f9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400018b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WriteFile_failed___error_code___d
call fcn.140001650
jmp 0x1400018f4
mov ebx, dword [rsp + 0x40]
cmp ebx, edi
jae 0x1400018e6
nop dword [rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rbp
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [rsp + 0x40]
cmp ebx, edi
jb 0x1400018c0
lea rcx, str.Writing_into_Hard_drive_successfully_completed
mov bl, 1
call fcn.140001650
test rsi, rsi
je 0x140001902
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14000961c
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400046a0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001940
Capabilities:
Get file size
Query environment variable
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x278
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r13d, r13d
mov ecx, 0x104
mov dword [rsp + 0x40], r13d
mov r12, r8
mov r14, rdx
xor bl, bl
call fcn.140009630
mov rbp, rax
test rax, rax
jne 0x1400019a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_Allocation_failed__error_code___d
call fcn.140001650
jmp 0x140001b2e
xor edx, edx
mov qword [rsp + 0x2c8], rsi
mov r8d, 0x104
mov rcx, rbp
call fcn.1400056a0
mov r8d, 0x104
lea rcx, str._programdata_BroadcomHostStorage_
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.Host_Storage_location_set_successfully.
call fcn.140001650
mov r9, rbp
mov dword [rsp + 0x20], edi
lea r8, str._s_d.bcm
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400016f0
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile_failed__error_code___d
call fcn.140001650
jmp 0x140001b15
xor edx, edx
mov qword [rsp + 0x270], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [rax + 1]
mov r15d, ecx
call fcn.140009630
mov qword [r14], rax
test rax, rax
jne 0x140001a85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memeory_Allocation_failed__error_code___d
call fcn.140001650
jmp 0x140001b08
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1400056a0
mov rdx, qword [r14]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed__error_code___d
call fcn.140001650
jmp 0x140001b08
mov ebx, dword [rsp + 0x40]
cmp ebx, edi
jae 0x140001af6
nop dword [rax]
mov r8d, edi
mov edx, ebx
add rdx, qword [r14]
lea r9, [rsp + 0x40]
sub r8d, ebx
mov qword [rsp + 0x20], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [rsp + 0x40]
cmp ebx, edi
jb 0x140001ad0
lea rcx, str.Objects_Retrieved_Successfully
mov dword [r12], edi
mov bl, 1
call fcn.140001650
mov r15, qword [rsp + 0x270]
test rsi, rsi
je 0x140001b1e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call fcn.14000961c
mov rsi, qword [rsp + 0x2c8]
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400046a0
add rsp, 0x278
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140002bd0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140027da8]
mov word [0x140027da4], cx
test rax, rax
je 0x140002c26
mov rax, qword [0x140027da8]
test rax, rax
je 0x140002c26
lea rcx, str.Destroy_host_control_thread_n
call fcn.140001650
mov rcx, qword [0x140027da8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140027da8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140027da8], 0
mov qword [rsp + 0x28], 0
lea r9, [0x140027da4]
lea r8, [0x140002fc0]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140027da8], rax
mov rax, qword [0x140027da8]
test rax, rax
jne 0x140002c75
lea rcx, str.Host_storage_thread_creation_failed_n
call fcn.140001650
xor al, al
add rsp, 0x38
ret
lea rcx, str.Created_host_storage_thread_n
call fcn.140001650
mov al, 1
add rsp, 0x38
ret