joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400626c4
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r9
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov r13, qword [rbp + 0xa0]
mov r14, qword [rbp + 0xa8]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140138ee0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
lea esi, [rax + 1]
mov dword [rbp - 0x54], esi
movzx eax, word [rbp + 0xb0]
mov word [rbp - 0x50], ax
test r14, r14
je 0x14006274f
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140062aa4
test al, al
je 0x1400628c9
mov r8, r15
lea rdx, [0x140354c04]
lea rcx, [rbp]
call fcn.140035218
nop
lea r8, [0x140354c04]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140035138
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140062792
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
call fcn.1400331fc
xor r15d, r15d
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 7
mov word [rbp], r15w
cmp qword [rdi + 0x10], r15
je 0x1400627d8
mov r8, rsi
lea rdx, [0x14035f530]
lea rcx, [rbp - 0x20]
call fcn.140031c78
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400627cd
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140031c78
mov ecx, esi
call fcn.1400e2070
test eax, eax
je 0x140062827
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, str.Executing:__ls
mov qword [rsp + 0x20], rax
mov r9d, 0x29
lea r8, str._ExecuteProcess
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonProcessCommon.cpp
mov ecx, esi
call fcn.1400323dc
cmp qword [rbx + 0x10], r15
jne 0x140062832
mov rbx, r15
jmp 0x14006283c
cmp qword [rbx + 0x18], 8
jb 0x14006283c
mov rbx, qword [rbx]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov eax, r15d
test r14, r14
setne al
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400628a8
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400628a8
mov qword [r12], rax
mov rax, qword [rsp + 0x60]
mov qword [r13], rax
jmp 0x1400628ab
mov sil, r15b
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400628c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
call fcn.1400331fc
mov al, sil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400629ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
and qword [rsp + 0x40], 0
mov edx, 0x10000
lea rcx, [rsp + 0x30]
call fcn.1400530cc
and dword [rsp + 0x60], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 0x10000
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140062a7e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140062a7e
lea rcx, [rdi + 0x10]
mov r8d, eax
mov rdx, rbx
call fcn.140062be0
nop
test rbx, rbx
je 0x140062a06
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
mov rcx, rbx
call fcn.1400331fc
jmp 0x140062a06
test rbx, rbx
je 0x140062a93
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
mov rcx, rbx
call fcn.1400331fc
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140062aa4
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
and qword [rax - 0x20], 0
lea r8, [rax - 0x28]
mov rdi, rdx
mov dword [rax - 0x28], 0x18
mov rbx, rcx
mov dword [rax - 0x18], 1
xor r9d, r9d
add rdx, 0x10
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140062b22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 5
mov dword [rsp + 0x68], eax
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x140062b98
lea rax, [rsp + 0x68]
mov r9d, 0x151
mov qword [rsp + 0x28], rax
lea rax, str.CreatePipe___Stdout__API_Fails_with_Error_Code:__lu
jmp 0x140062b7e
mov rcx, qword [rdi + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x20]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140062b9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 5
mov dword [rsp + 0x68], eax
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x140062b98
lea rax, [rsp + 0x68]
mov r9d, 0x159
mov qword [rsp + 0x28], rax
lea rax, str.CreatePipe___Stderr__API_Fails_with_Error_Code:__lu
lea r8, str._SetupRedirectHandles
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonProcessCommon.cpp
mov ecx, ebx
call fcn.140032100
xor al, al
jmp 0x140062bc9
mov rcx, qword [rdi + 0x18]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
and qword [rbx + 0x50], 0
mov al, 1
mov rcx, qword [rdi + 0x20]
mov qword [rbx + 0x60], rcx
mov rcx, qword [rdi + 0x10]
bts dword [rbx + 0x3c], 8
mov qword [rbx + 0x58], rcx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140062dac
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [rbx + 0x14], eax
jne 0x140062e07
mov rcx, qword [rbx]
test rcx, rcx
je 0x140062ddb
call qword [sym.imp.Cabinet.dll_FDIDestroy]
mov qword [rbx], rdi
test eax, eax
je 0x140062e07
xor edx, edx
lea ecx, [rdx + 1]
call fcn.14006344c
mov ecx, dword [0x1403d1700]
cmp ecx, 0xffffffff
je 0x140062e07
call qword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
jne 0x140062e07
lea rcx, str.TlsFree___failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rbx + 0x38]
cmp rdx, 8
jb 0x140062e22
mov rcx, qword [rbx + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.1400331fc
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], 7
mov word [rbx + 0x20], di
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140062e40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x14], eax
jne 0x140062ee9
mov ecx, dword [0x1403d1700]
cmp ecx, 0xffffffff
je 0x140062e6e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140062ee9
mov rdx, rbx
mov ecx, 1
call fcn.14006344c
test rax, rax
je 0x140062ee9
cmp qword [rbx], 0
jne 0x140062ee9
lea rax, [rbx + 8]
mov qword [rsp + 0x40], rax
lea rcx, [0x14006337c]
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x1400633b8]
mov qword [rsp + 0x30], rax
lea r9, [0x1400632dc]
mov qword [rsp + 0x28], rcx
lea r8, [0x1400631e8]
lea rcx, [0x14006332c]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1400631e0]
lea rcx, [0x1400631d0]
call qword [sym.imp.Cabinet.dll_FDICreate]
mov qword [rbx], rax
test rax, rax
je 0x140062ee9
mov eax, 1
jmp 0x140062eeb
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x14006344c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, ecx
mov ecx, dword [0x1403d1700]
cmp ecx, 0xffffffff
je 0x14006347c
test eax, eax
je 0x140063471
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006347c
mov ecx, dword [0x1403d1700]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140063484
Capabilities:
Set file attributes

Disassembly:
test rdx, rdx
je 0x14006356f
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
movzx esi, r9w
movzx ebp, r8w
mov rbx, rdx
cmp word [rdx], r14w
je 0x14006355d
mov qword [rax - 0x28], r14
lea r8d, [r14 + 1]
mov dword [rax - 0x30], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rax - 0x38], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14006355d
lea r8, [rsp + 0x68]
movzx edx, si
movzx ecx, bp
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x140063540
mov rcx, qword [rsp + 0x68]
mov eax, 0x100
mov qword [rsp + 0x60], rcx
test word [rsp + 0x80], ax
ja 0x14006352a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [rsp + 0x80]
mov rcx, rbx
and edx, 0x27
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400636e4
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
or rbx, 0xffffffffffffffff
mov ebp, r9d
mov esi, r8d
mov rdi, rdx
test rdx, rdx
je 0x140063751
bt r8d, 8
jae 0x140063723
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov r9d, 0x40
mov dword [rsp + 0x20], ebp
mov r8d, esi
mov rdx, rdi
call fcn.14014f410
mov rcx, qword [rsp + 0x40]
test eax, eax
cmovne rcx, rbx
mov rbx, rcx
mov rbp, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140063b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140063b80
test al, 0x10
ja 0x140063c12
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140138ee0
mov esi, 0x104
lea rcx, [rsp + 0x20]
mov edx, esi
mov r8, rbx
call fcn.1401475b8
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.14014789c
xor esi, esi
mov edx, 0x5c
cmp eax, 1
jle 0x140063bcc
cdqe
cmp word [rsp + rax*2 + 0x1e], dx
jne 0x140063bcc
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call fcn.140138df4
test rax, rax
jne 0x140063be2
mov eax, 0xf
jmp 0x140063c14
lea rdx, [rsp + 0x20]
mov word [rax], si
mov rcx, rdi
call fcn.140063b40
test eax, eax
jne 0x140063c14
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140063c12
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140063c14
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140063e88
Capabilities:
Read http header
Receive http response

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], r12
mov rax, qword [0x1403cd210]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rsi, rdx
mov r12, r9
mov rcx, rsi
xor edx, edx
mov r15, r8
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14006405c
and qword [rsp + 0x28], 0
lea rax, [rbp + 0xc]
mov ebx, 4
mov qword [rsp + 0x20], rax
lea r9, [rbp + 8]
mov dword [rbp + 0xc], ebx
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14006405c
and qword [rsp + 0x28], 0
lea rax, [rbp + 0x10]
lea r9, [rbp + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x10], ebx
mov edx, 0x20000005
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14006405c
mov eax, dword [rbp + 4]
test eax, eax
je 0x140064044
lea rcx, [rax + 0x10]
cmp rax, rcx
sbb rdx, rdx
and rdx, rcx
je 0x14006405c
cmp rdx, 0x400
ja 0x140063f90
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140063f6e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14011a9c0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x14006405c
mov dword [rbx], 0xcccc
jmp 0x140063fa6
mov rcx, rdx
call fcn.140147c44
mov rbx, rax
test rax, rax
je 0x140063faa
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14006405c
xor r14d, r14d
mov rdi, rbx
jmp 0x140063fe0
mov r8d, dword [rbp]
test r8d, r8d
je 0x140063ff7
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
add r14d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140063ff1
mov eax, dword [rbp]
add rbx, rax
lea rdx, [rbp]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140063fbb
cmp dword [rbp], 0
jne 0x140064031
cmp r14d, dword [rbp + 4]
jne 0x140064031
mov eax, dword [rbp + 8]
or r8, 0xffffffffffffffff
mov dword [r15], eax
inc r8
cmp byte [rdi + r8], 0
jne 0x140064007
mov rdx, rdi
mov rcx, r12
call fcn.14003b95c
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14006402d
call fcn.14013d394
mov al, 1
jmp 0x14006405e
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14006405c
call fcn.14013d394
jmp 0x14006405c
mov eax, dword [rbp + 8]
lea rdx, [0x140353ca8]
xor r8d, r8d
mov dword [r15], eax
mov rcx, r12
call fcn.14003b95c
xor al, al
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140119fe0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
mov r12, qword [rbp + 0x58]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop rbp
ret
Function at 0x14006426c
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
mov rcx, r9
cmp qword [r9 + 0x18], 8
jb 0x1400642aa
mov rcx, qword [r9]
mov qword [rsp + 0x20], 5
lea r9, str..com_
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140032448
mov rbx, rax
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r12w
lea r9, [rax - 4]
lea r8d, [r12 + 8]
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.1400328a0
nop
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r12w
lea r8, [rbx + 4]
or r9, 0xffffffffffffffff
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1400328a0
nop
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edi, [r12 + 1]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
test rax, rax
je 0x140064370
mov rdx, rax
call fcn.140063cdc
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x1400643d5
mov qword [r14 + 0x10], rbx
mov qword [r14 + 8], rax
lea r8, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae r8, qword [rbp - 0x29]
cmp qword [rsi + 0x18], 8
jb 0x140064388
mov rsi, qword [rsi]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [r14 + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x1400643d5
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, str.Content_type:_text_xml_r_n
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1400643d5
mov qword [r15], rbx
jmp 0x1400643d8
mov dil, r12b
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400643f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
call fcn.1400331fc
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r12w
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14006441f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
call fcn.1400331fc
mov al, dil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140067580
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x14006761b
test r8, r8
je 0x14006761b
cmp r9d, 1
jb 0x14006761b
sub r14, r8
mov r15d, r9d
mov al, byte [r14 + rdi]
mov rcx, rsi
xor byte [rsi + 0x239], al
call fcn.14005dcf8
mov bl, al
mov rcx, rsi
xor bl, byte [rsi + 0x239]
call fcn.14005dcf8
lea ebp, [rbx + rax]
mov ebx, 1
cmp dword [rsi + 0x220], ebx
jle 0x140067609
mov rcx, rsi
call fcn.14005dcf8
mov rcx, rsi
xor bpl, al
call fcn.14005dcf8
add bpl, al
inc ebx
cmp ebx, dword [rsi + 0x220]
jl 0x1400675e9
mov byte [rdi], bpl
inc rdi
sub r15, 1
jne 0x1400675b7
lea eax, [r15 + 1]
jmp 0x14006761d
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140068388
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rdx + 0x50]
mov r14, r8
mov r15, qword [rsp + 0x1d0]
mov rbp, rdx
mov r12, rcx
test rax, rax
je 0x1400683db
cmp dword [rdx + 8], 0
je 0x1400683db
mov r8, r15
mov edx, 4
mov rcx, r14
call rax
jmp 0x1400683e0
mov eax, 1
mov esi, dword [rsp + 0x1d8]
test esi, esi
je 0x1400684a7
test eax, eax
jne 0x1400684a7
xor edi, edi
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov edx, edi
and qword [rsp + 0x20], 0
mov rcx, r14
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
test eax, eax
jne 0x140068490
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140068497
mov r8, qword [rsp + 0x48]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], esi
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.140068388
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140068497
cmp eax, 0x103
je 0x1400684a5
inc edi
test ebx, ebx
je 0x1400683f9
mov eax, ebx
jmp 0x1400684a7
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400684cc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x70], rbx
mov rax, qword [0x1403cd210]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov r14, r9
mov r15, rdx
mov r12, rcx
xor esi, esi
mov dword [rbp], esi
test r9, r9
jne 0x140068516
lea eax, [rsi + 0x57]
jmp 0x14006854e
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and dword [rsp + 0x28], esi
and qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140068547
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006854e
mov esi, eax
mov dword [rbp], eax
xor eax, eax
test eax, eax
jne 0x14006865c
and qword [rbp + 8], 0
mov eax, esi
lea rcx, [rax + 0x10]
cmp rax, rcx
sbb rdx, rdx
and rdx, rcx
je 0x1400685d6
cmp rdx, 0x400
ja 0x1400685b2
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140068588
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14011a9c0
sub rsp, rax
lea rbx, [rsp + 0x40]
mov qword [rbp + 0x10], rbx
test rbx, rbx
je 0x1400685d8
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x10], rbx
jmp 0x1400685d8
mov rcx, rdx
call fcn.140147c44
mov rbx, rax
mov qword [rbp + 0x18], rax
test rax, rax
je 0x1400685d8
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x1400685d8
xor ebx, ebx
mov qword [rbp + 8], rbx
jmp 0x1400685f6
test rbx, rbx
jne 0x140068600
lea eax, [rbx + 0xe]
jmp 0x14006865c
mov r8d, esi
xor edx, edx
mov rcx, rbx
call fcn.140138ee0
lea r9, [rbp]
mov r8, rbx
mov rdx, r14
mov ecx, 3
call fcn.14005f824
mov esi, eax
test eax, eax
jne 0x140068649
mov eax, dword [rbp]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rsi + 1]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14006865a
call fcn.14013d394
mov eax, esi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.140119fe0
mov rbx, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x140068cb8
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
xor r15d, r15d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140068edc
cmp r15w, word [rcx]
je 0x140068edc
test rdx, rdx
je 0x140068edc
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
mov r14d, r15d
call fcn.140138ee0
xorps xmm0, xmm0
lea rdx, str._s___
xorps xmm1, xmm1
lea rcx, [rbp + 0x3b0]
mov r8, rbx
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x180], xmm1
call fcn.14006aa80
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call fcn.140138ee0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140068ece
mov r12d, 0x104
cmp dword [rsp + 0x30], 0x10
jne 0x140068e71
cmp r15w, word [rsp + 0x5c]
je 0x140068e71
lea rdx, str._u__u__u__u
lea rcx, [rsp + 0x5c]
cmp r15w, word [rbp + 0x1a0]
jne 0x140068dfe
lea rax, [rbp + 0x19c]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x194]
lea rax, [rbp + 0x198]
lea r8, [rbp + 0x190]
mov qword [rsp + 0x20], rax
call fcn.14006ab00
cmp eax, 4
jne 0x140068e71
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x1a0]
call fcn.1401475b8
jmp 0x140068e71
lea rax, [rbp + 0x18c]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x184]
lea rax, [rbp + 0x188]
lea r8, [rbp + 0x180]
mov qword [rsp + 0x20], rax
call fcn.14006ab00
cmp eax, 4
jne 0x140068e71
mov rax, r15
mov ecx, dword [rbp + rax + 0x180]
cmp ecx, dword [rbp + rax + 0x190]
jne 0x140068e4d
add rax, 4
cmp rax, 0x10
jl 0x140068e31
jmp 0x140068e71
jbe 0x140068e71
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x1a0]
call fcn.1401475b8
movups xmm0, xmmword [rbp + 0x180]
movups xmmword [rbp + 0x190], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140068d87
cmp r15w, word [rbp + 0x1a0]
je 0x140068ec9
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call fcn.1401475b8
lea r8, [0x140353ca4]
mov rdx, r12
mov rcx, rsi
call fcn.140147c4c
lea r8, [rbp + 0x1a0]
mov rdx, r12
mov rcx, rsi
call fcn.140147c4c
mov r14d, 1
test rdi, rdi
je 0x140068ed7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, r14d
jmp 0x140068ede
xor eax, eax
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret