joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071c50
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call fcn.140022cb0
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140071ca1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140071dce
xor esi, esi
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140022cb0
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140071cdc
mov r8, qword [rbx]
lea rax, [rbp + 0x190]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp + 0x190]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140071d15
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140071d15
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140071cf2
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x140071daf
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r9d, r9d
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004b054
test eax, eax
js 0x140071daf
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x140071d6d
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.14000e138
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call sub.KERNEL32.dll_WerRegisterFile
lea rcx, [rsp + 0x20]
call fcn.140007b58
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140071cbb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140020930
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007290c
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140072941
mov edi, 0x80004004
mov r8d, 0x277
mov ecx, edi
jmp 0x140072a48
lea rdi, [rbx + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14007296e
and qword [rbx + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066cb3.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.BITS
lea rax, str.URLMon
cmp byte [rbx + 0x175], 0
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using__ls
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cdc0
cmp byte [rbx + 0x175], 0
je 0x1400729d4
mov rcx, rbx
call fcn.140072a90
mov edi, eax
test eax, eax
jns 0x140072a54
mov r8d, 0x280
jmp 0x140072a46
cmp byte [rbx + 0x40], 0
je 0x140072a17
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using_WinHTTP_instead_of_URLMon
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cdc0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [case.0x140066cb3.0]
mov edi, eax
test eax, eax
jns 0x140072a54
mov r8d, 0x285
jmp 0x140072a46
call fcn.140055f4c
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x140072a2d
mov rdx, qword [rdx]
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call sub.urlmon.dll_URLOpenStreamW
mov edi, eax
test eax, eax
jns 0x140072a54
mov r8d, 0x289
mov ecx, eax
lea rdx, str.D:dbs_shodct0702_230403_1cmd_sclientonedriveSetupStandalonewebclientwebclient.cpp
call fcn.14004a29c
mov r9, rbx
lea r8, str.WebClient__p_:_Leaving_BeginDownloadAttempt__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a704
test edi, edi
jns 0x140072a82
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x78]
mov edx, edi
mov rcx, rbx
call qword [case.0x140066cb3.0]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140073410
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x14007355a
lea rbx, [rcx + 0xd0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007345c
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140073546
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea rsi, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0xf]
call fcn.14004a934
test eax, eax
js 0x140073527
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007349e
mov rdx, qword [rbx]
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400734ae
lea rcx, [rbp - 0x19]
call fcn.14000e138
nop
mov qword [rbp + 0x17], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.14000e3dc
mov qword [rbp + 0x37], 0xffffffff80000001
mov byte [rbp + 0x3f], dil
lea rcx, [rbp - 0x19]
call fcn.140007b58
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x140073508
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x80]
call qword [case.0x140066cb3.0]
nop
lea rcx, [rbp + 0x17]
call fcn.140007b58
nop
mov qword [rbp + 7], rsi
mov rcx, qword [rbp + 0xf]
mov qword [rbp + 0xf], rdi
test rcx, rcx
je 0x140073546
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066cb3.0]
nop
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140073553
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140020930
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140074764
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, r8
mov rsi, rcx
test rdx, rdx
jne 0x1400747a6
mov r8d, 0x155
mov ecx, 0x80004003
lea rdx, str.D:dbs_shodct0702_230403_1cmd_sclientonedriveSetupStandalonewebclientwebclient.cpp
mov edi, ecx
call fcn.14004a29c
jmp 0x140074814
test rbp, rbp
jne 0x1400747b3
mov r8d, 0x156
jmp 0x140074791
call fcn.140074518
mov edi, eax
test eax, eax
js 0x140074814
cmp qword [rsi + 0xe0], r14
je 0x140074802
lea rbx, [rsi + 0xd0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400747db
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140074802
cmp qword [rbx + 0x18], 8
jb 0x1400747ef
mov rbx, qword [rbx]
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r14w
jne 0x1400747f3
mov rdx, rbx
jmp 0x14007480c
xor r8d, r8d
lea rdx, [0x140308f40]
mov rcx, rbp
call fcn.14000e0cc
mov r9, rsi
lea r8, str.WebClient__p_:_Leaving_GetDownloadedData__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a704
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400748bc
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [r11 - 0x228]
xor edx, edx
call fcn.140022cb0
mov r8d, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140022cb0
mov edi, 0x104
lea rdx, [rsp + 0x230]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
jne 0x14007495d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400749fe
mov r8d, 0x541
lea rdx, str.D:dbs_shodct0702_230403_1cmd_sclientonedriveSetupStandalonewebclientwebclient.cpp
mov ecx, ebx
call fcn.14004a29c
jmp 0x1400749fe
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402c4cf8]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14007499e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400749fe
mov r8d, 0x542
jmp 0x14007494a
lea rax, [rsp + 0x20]
cmp word [rax], bp
je 0x1400749b2
add rax, 2
sub rdi, 1
jne 0x1400749a3
mov rax, rdi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdi, rdi
jne 0x1400749d2
mov r8d, 0x543
jmp 0x14007494a
mov rcx, rsi
call fcn.140073410
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bp
jne 0x1400749e3
lea rcx, [rsi + 0xd0]
lea rdx, [rsp + 0x20]
call fcn.14000e0cc
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140020930
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007f364
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x14007f371
mov rax, rdx
ret

Function at 0x140086178
Capabilities:
Encode data using xor

Disassembly:
mov r11d, 1
lea rax, vtable.._AV___Ref_count_obj2_V__mersenne_twister_engine__K_0EA__0BDI__0JM__0BP__0_EKPNJAKFFGJJOGBH__0BN__0FFFFFFFFFFFFFFFF__0BB__0HBNGHPPPONKGAAAA__0CF__0_IBBCAAAAAAAAA__0CL__0FIFBPECNEMJFHPCN__std___std__.0
mov qword [rcx], rax
lea r9, [rcx + 0x20]
mov dword [rcx + 8], r11d
movabs rax, 0x5555555555555555
mov dword [rcx + 0xc], r11d
mov r10d, VarR8Pow
mov r8d, dword [rdx]
mov edx, r11d
mov qword [rcx + 0x1398], rax
mov qword [rcx + 0x18], r8
mov rax, r8
shr rax, 0x3e
xor rax, r8
movabs r8, 0x5851f42d4c957f2d
imul r8, rax
add r8, rdx
add rdx, r11
mov qword [r9], r8
lea r9, [r9 + 8]
cmp rdx, r10
jb 0x1400861b5
mov dword [rcx + 0x10], r10d
mov rax, rcx
ret

Function at 0x1400a9e58
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 2
jb 0x1400a9e65
mov rax, rdx
ret

Function at 0x1400bcd6c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400c0c34
mov cl, al
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400bcd8c

Function at 0x1400bcd8c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov bpl, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor edi, edi
call fcn.140022cb0
mov al, bpl
lea rdx, [rsp + 0x20]
neg al
sbb r8d, r8d
xor r9d, r9d
and r8d, 0xa
xor ecx, ecx
add r8d, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor r8d, r8d
lea rdx, [0x140308f40]
mov rcx, rsi
mov ebx, eax
call fcn.14000e0cc
test ebx, ebx
jne 0x1400bce06
mov edi, 0x80004005
jmp 0x1400bce67
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x1400bce12
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000e0cc
mov r8d, 1
lea rdx, [0x140308ed8]
mov rcx, rsi
call fcn.14000dcfc
test bpl, bpl
lea rax, [0x1402bf728]
lea rdx, str.MicrosoftOneDrive
cmovne rdx, rax
inc rbx
cmp word [rdx + rbx*2], di
jne 0x1400bce53
mov r8, rbx
mov rcx, rsi
call fcn.14000dcfc
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140020930
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bd510
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0xa0]
mov rdi, r8
mov rbp, qword [rsp + 0xa8]
test rsi, rsi
jne 0x1400bd54a
mov eax, 0x80070057
jmp 0x1400bd5e2
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x1400bd563
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bd5e0
cmp qword [rdi + 0x18], 8
jb 0x1400bd592
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bd5d5
mov eax, dword [rsp + 0x38]
sub eax, 3
neg eax
sbb ebx, ebx
and ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020930
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400bd5f8
Capabilities:
Query or enumerate registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp fcn.1400bd604

Function at 0x1400bd708
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x90]
mov rdi, r8
test rsi, rsi
jne 0x1400bd739
mov eax, 0x80070057
jmp 0x1400bd7ea
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x1400bd752
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], 8
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bd7e8
cmp qword [rdi + 0x18], 8
jb 0x1400bd789
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bd7dd
cmp dword [rsp + 0x3c], 0xb
jne 0x1400bd7d8
mov rax, qword [rsp + 0x40]
xor ebx, ebx
mov qword [rsi], rax
jmp 0x1400bd7dd
mov ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140020930
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c34e0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
neg byte [rsp + 0xa8]
mov rsi, r9
mov rbx, r8
sbb eax, eax
and eax, 0xfffe00fc
add eax, 0x20006
cmp qword [rdx + 0x18], 8
jb 0x1400c351a
mov rdx, qword [rdx]
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400c3594
cmp qword [rbx + 0x10], 0
jne 0x1400c3556
xor ebx, ebx
jmp 0x1400c3560
cmp qword [rbx + 0x18], 8
jb 0x1400c3560
mov rbx, qword [rbx]
mov eax, dword [rsp + 0xa0]
mov r9d, 3
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020930
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400c37d0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
neg byte [rsp + 0xa0]
mov rsi, r9
mov rbx, r8
sbb eax, eax
and eax, 0xfffe00fc
add eax, 0x20006
cmp qword [rdx + 0x18], 8
jb 0x1400c380a
mov rdx, qword [rdx]
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400c3881
cmp qword [rbx + 0x10], 0
jne 0x1400c3846
xor ebx, ebx
jmp 0x1400c3850
cmp qword [rbx + 0x18], 8
jb 0x1400c3850
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
mov r9d, VariantTimeToDosDateTime
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020930
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f1bb8
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x18], 8
movzx ebp, dx
mov rdx, rcx
mov rdi, r8
mov rbx, rcx
jb 0x1400f1be9
mov rdx, qword [rcx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor edx, edx
mov rsi, rax
test rax, rax
je 0x1400f1c56
cmp qword [rbx + 0x18], 8
jb 0x1400f1c05
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x50], rbx
jb 0x1400f1c14
mov rdi, qword [rdi]
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 2
mov dword [rsp + 0x30], edx
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
movzx edx, bp
mov qword [rsp + 0x58], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140020930
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140142198
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14012b840
sub rsp, rax
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004195c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401421e7
mov rax, rbp
jmp 0x1401422ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x37a660]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140046808
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x37a660]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401422eb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401422eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140046808
test rax, rax
js 0x1401422eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401422eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401422dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401422dd
cmp byte [rcx], 0xd
jne 0x1401422c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401422d2
cmp byte [rcx + 1], 0xa
jne 0x1401422d2
inc rcx
jmp 0x1401422d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35f960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401422a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401422ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140020930
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140144c60
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140046810
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140046810
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140144db0
cmp rax, 0xffffffffffffffff
je 0x140144db0
xor edi, edi
test rbp, rbp
jle 0x140144d5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400391d0
mov rbx, rax
test rax, rax
jne 0x140144ce8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140144d51
mov edx, 0x8000
mov ecx, r14d
call fcn.1400302c0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140043714
cmp eax, 0xffffffff
je 0x140144d31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140144cf8
mov edx, r15d
mov ecx, r14d
call fcn.1400302c0
jmp 0x140144d51
cmp byte [rsi + 0x38], dil
je 0x140144d48
cmp dword [rsi + 0x34], 5
jne 0x140144d48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140144d51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003880c
jmp 0x140144dc4
jns 0x140144dc4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140046810
cmp rax, 0xffffffffffffffff
jne 0x140144d7c
cmp byte [rsi + 0x30], dil
je 0x140144dc4
mov edi, dword [rsi + 0x2c]
jmp 0x140144dc4
mov ecx, r14d
call fcn.14003ceb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140144dc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140144dc4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140144dbd
mov eax, dword [rsi + 0x2c]
jmp 0x140144dc2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140046810
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140154994
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x788]
sub rsp, 0x888
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rbp + 0x770], rax
cmp byte [0x14037ecd0], 0
mov rsi, rdx
movsxd rbx, ecx
je 0x140154ae8
mov r12d, 0x800
lea rcx, [rsp + 0x70]
mov r8d, r12d
xor edx, edx
call fcn.140022cb0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rcx, str._EWID
movsx edi, byte [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x6e]
movzx edx, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x6a]
movzx r11d, word [rsp + 0x68]
movzx ebx, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
lea rdx, str._04u__02u__02u__02u:_02u:_02u._03u_T_u___c____s_
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call fcn.140153f10
movsxd rsi, eax
lea rbx, [rsp + 0x70]
mov edi, r12d
lea r14, [rbp + 0x7d8]
sub rdi, rsi
add rbx, rsi
call fcn.14001c8d8
mov r9, qword [rbp + 0x7d0]
mov r8, rdi
mov qword [rsp + 0x28], r14
mov rdx, rbx
and qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.140036bfc
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [r12 - 2]
add esi, eax
movsxd rax, esi
cmp rax, rcx
cmova rax, rcx
mov byte [rsp + rax + 0x70], 0xa
lea eax, [rsi + 1]
movsxd rcx, eax
lea eax, [r12 - 1]
cmp rcx, rax
ja 0x140154ad8
mov rax, rcx
cmp rcx, r12
jae 0x140154b07
lea rcx, [rsp + 0x70]
mov byte [rsp + rax + 0x70], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140020930
add rsp, 0x888
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140021144
int3