joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037d50
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140001f50
nop
lea rdx, [0x140101a80]
lea rcx, [rsp + 0x48]
call fcn.140001f50
nop
lea r8, [0x1401350a8]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.140002630
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140002520
nop
lea rcx, [rsp + 0x88]
call fcn.1400036b0
nop
lea rcx, [rsp + 0x48]
call fcn.1400036b0
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x48]
call fcn.140002ec0
nop
cmp qword [rax + 0x18], 8
jb 0x140037e0d
mov rax, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140037e3b
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400046b0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x80], 0xf
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], 0
mov eax, dword [rsp + 0x30]
cmp eax, 1
jle 0x140037f08
mov edi, 1
cmp eax, edi
jle 0x140037f08
mov ebx, edi
nop dword [rax]
cmp rbx, 1
je 0x140037ecb
lea rdx, [0x1400bbc60]
lea rcx, [rsp + 0xc8]
call fcn.140001fc0
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call fcn.140002520
nop
lea rcx, [rsp + 0xc8]
call fcn.1400036b0
mov rdx, qword [rsi + rbx*8]
lea rcx, [rsp + 0x88]
call fcn.140001fc0
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x68]
call fcn.140002520
nop
lea rcx, [rsp + 0x88]
call fcn.1400036b0
inc edi
inc rbx
cmp edi, dword [rsp + 0x30]
jl 0x140037e90
lea rcx, [rsp + 0x38]
call fcn.140006f40
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.140006f70
nop
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x68]
mov r8, rax
lea rdx, [0x140135088]
lea rcx, [rsp + 0x48]
call fcn.140011e70
nop
lea rcx, [rsp + 0x88]
call fcn.1400036b0
lea rcx, [rsp + 0x48]
call fcn.1400127b0
nop
lea rcx, [rsp + 0x50]
call fcn.140012ab0
nop
lea rcx, [rsp + 0x48]
call fcn.140012ab0
nop
lea rcx, [rsp + 0x68]
call fcn.1400036b0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400036b0
mov eax, 1
jmp 0x140037faf
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140038470
Capabilities:
Accept command line arguments

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov qword [0x140134cf0], rcx
xor eax, eax
movzx edx, al
lea rcx, [rbp - 0x35]
call fcn.140036610
nop
lea rax, [rbp + 0xf]
mov qword [rbp - 0x19], rax
xor ebx, ebx
mov qword [rbp + 0x47], rbx
lea rax, [rbp + 0xf]
mov qword [rbp - 0x11], rax
lea rax, [rbp + 0xf]
mov qword [rbp - 9], rax
lea rax, method.std::_Facet_base.virtual_8
mov qword [rbp + 0xf], rax
lea rax, [0x1400bbd50]
mov qword [rbp + 0xf], rax
lea rax, [0x140036a10]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 0xf]
mov qword [rbp + 0x47], rax
lea rcx, [rbp + 0xf]
call fcn.1400072d0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140001f50
nop
lea rcx, [rbp + 0xf]
call fcn.140037940
nop
lea rcx, [rbp + 0xf]
call fcn.1400036b0
cmp byte [0x140134cfd], bl
jne 0x140038545
call fcn.140036e40
test al, al
je 0x1400385b3
call fcn.140037d50
test eax, eax
sete bl
jmp 0x1400385b3
lea rdx, [0x140135088]
lea rcx, [rbp - 0x31]
call fcn.1400123d0
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 1]
call fcn.140036640
nop
lea rcx, [0x140135088]
call fcn.140038670
mov r8, rax
xor eax, eax
movzx edx, al
lea rcx, [rbp - 0x39]
call fcn.1400365e0
nop
mov rcx, r8
call fcn.1400389e0
nop
lea rcx, [rbp - 0x39]
call fcn.140036810
nop
lea rcx, [rbp - 1]
call fcn.140036860
nop
lea rcx, [rbp - 0x29]
call fcn.140012ab0
nop
lea rcx, [rbp - 0x31]
call fcn.140012ab0
nop
lea rcx, [rbp - 0x35]
call fcn.140036830
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret

Function at 0x1400396b0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rdx
movzx r9d, cx
movabs rax, 0x79baa6bb6398b6f7
shr ecx, 0x10
mul r8
mov rax, r8
mov rbx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x15b0
sub r8, rax
test r10, r10
jne 0x1400396f8
lea eax, [r10 + 1]
mov rbx, qword [rsp + 8]
ret
test rbx, rbx
je 0x1400397cc
xor edx, edx
cmp r8, 7
jbe 0x14003977a
lea r11d, [rdx + 7]
nop dword [rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
mov eax, r11d
cmp rax, r8
jb 0x140039710
mov eax, edx
cmp rax, r8
jae 0x140039797
movzx eax, byte [r10]
inc edx
add r9d, eax
inc r10
add ecx, r9d
mov eax, edx
cmp rax, r8
jb 0x140039781
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub rbx, r8
mov r8d, 0x15b0
jne 0x140039701
mov rbx, qword [rsp + 8]
shl ecx, 0x10
lea eax, [r9 + rcx]
ret
Function at 0x1400397e0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
mov r10, rdx
test rdx, rdx
jne 0x1400397ee
xor eax, eax
ret
not ecx
test r8, r8
je 0x140039834
lea r11, [0x1400bc1d0]
nop dword [rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
mov eax, ecx
shr ecx, 4
xor rax, r8
shr r8, 4
and eax, 0xf
mov edx, dword [r11 + rax*4]
xor edx, ecx
mov eax, edx
shr edx, 4
and eax, 0xf
xor rax, r8
mov ecx, dword [r11 + rax*4]
xor ecx, edx
sub r9, 1
jne 0x140039800
not ecx
mov eax, ecx
ret

Function at 0x14003a120
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test rcx, rcx
je 0x14003a260
mov r9, qword [rcx + 0x58]
test r9, r9
je 0x14003a260
cmp edx, dword [rcx + 0x10]
jae 0x14003a260
cmp dword [rcx + 0x14], 1
jne 0x14003a260
mov eax, edx
lea r8, [rax*4]
mov rax, qword [r9 + 0x20]
mov edi, dword [rax + r8]
add rdi, qword [r9]
je 0x14003a260
test rsi, rsi
je 0x14003a260
mov dword [rsi], edx
mov rax, qword [rcx + 0x58]
mov qword [rsp + 0x30], rbx
mov rcx, qword [rax + 0x20]
mov eax, dword [r8 + rcx]
mov dword [rsi + 4], eax
movzx eax, word [rdi + 4]
mov word [rsi + 8], ax
movzx eax, word [rdi + 6]
mov word [rsi + 0xa], ax
movzx eax, word [rdi + 8]
mov word [rsi + 0xc], ax
movzx eax, word [rdi + 0xa]
mov word [rsi + 0xe], ax
movzx edx, word [rdi + 0xe]
movzx ecx, word [rdi + 0xc]
call fcn.140039850
mov qword [rsi + 0x10], rax
lea rdx, [rdi + 0x2e]
mov eax, dword [rdi + 0x10]
mov ecx, 0x103
mov dword [rsi + 0x18], eax
mov eax, dword [rdi + 0x14]
mov qword [rsi + 0x20], rax
mov eax, dword [rdi + 0x18]
mov qword [rsi + 0x28], rax
movzx eax, word [rdi + 0x24]
mov word [rsi + 0x30], ax
mov eax, dword [rdi + 0x26]
mov dword [rsi + 0x34], eax
mov eax, dword [rdi + 0x2a]
mov qword [rsi + 0x38], rax
movzx eax, word [rdi + 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov ebx, ecx
lea rcx, [rsi + 0x44]
mov r8d, ebx
call fcn.140065980
mov byte [rbx + rsi + 0x44], 0
mov ecx, 0xff
movzx eax, word [rdi + 0x20]
cmp eax, ecx
cmovb ecx, eax
mov dword [rsi + 0x40], ecx
movzx edx, word [rdi + 0x1e]
mov ebx, ecx
add rdx, rdi
movzx ecx, word [rdi + 0x1c]
mov r8d, ebx
add rcx, 0x2e
add rdx, rcx
lea rcx, [rsi + 0x148]
call fcn.140065980
mov byte [rbx + rsi + 0x148], 0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140040690
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r15d, edx
mov r14, rcx
mov qword [rsp + 0x60], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
or rdi, 0xffffffffffffffff
mov qword [r11 - 0x70], rdi
lea rcx, [0x140135140]
call fcn.140043a20
nop
mov ebx, esi
mov dword [rsp + 0x50], ebx
nop dword [rax]
cmp ebx, 0x32
jge 0x140040740
cmp rdi, 0xffffffffffffffff
jne 0x14004074a
test ebx, ebx
jle 0x140040708
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call fcn.140040a20
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x1400406f0
cmp rdi, 0xffffffffffffffff
je 0x140040807
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, esi
mov dword [rsp + 0x54], ebx
cmp ebx, 0xa
jae 0x1400407b3
mov rdx, qword [r14 + 0x108]
mov rax, qword [rdx - 0x10]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400407a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, 1
mov dword [rsp + 0x40], esi
jmp 0x1400407b3
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x14004075d
test r15d, r15d
je 0x1400407c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140001f50
nop
lea rcx, [rsp + 0x78]
call fcn.1400479d0
nop
lea rcx, [rsp + 0x78]
call fcn.1400036b0
nop
jmp 0x140040807
xor edx, edx
mov r8d, 0x104
mov rcx, r14
call fcn.140065dd0
lea rcx, [r14 + 0x108]
call fcn.140044d30
lea rcx, [r14 + 0x110]
call fcn.140044d30
lea rcx, [0x140135140]
call fcn.140043de0
mov rbx, rax
nop
test rbx, rbx
je 0x14004088a
mov rdx, rbx
lea rcx, [0x140135140]
call fcn.140043e40
mov r15, rax
mov rcx, rbx
call fcn.140043dd0
test rax, rax
je 0x140040885
mov rcx, rbx
call fcn.140043dd0
cmp r14, rax
jne 0x140040885
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140135140]
call fcn.140043f40
jmp 0x14004088a
mov rbx, r15
jmp 0x140040840
mov qword [rsp + 0x68], r14
test r14, r14
je 0x1400408bb
lea rcx, [r14 + 0x110]
call fcn.1400446d0
nop
lea rcx, [r14 + 0x108]
call fcn.1400446d0
mov edx, 0x118
mov rcx, r14
call fcn.140063b20
nop
jmp 0x1400408c6
lea rcx, [0x140135140]
call fcn.140043f20
cmp rdi, 0xffffffffffffffff
je 0x1400408e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140041ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x450
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov rsi, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
test rcx, rcx
je 0x140041bd8
test rdx, rdx
je 0x140041bd8
test r9, r9
je 0x140041bd8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call fcn.140065dd0
lea rdx, [rsp + 0x40]
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140041b30
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140041bd8
mov eax, dword [rsp + 0x4a8]
mov dword [rsp + 0x30], edi
sub eax, 1
je 0x140041b82
sub eax, 3
je 0x140041bce
cmp eax, 3
jne 0x140041b8d
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140041bda
mov dword [rsp + 0x30], 4
jmp 0x140041b8d
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x450
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400420e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov r15, rdx
or r14, 0xffffffffffffffff
mov qword [rax - 0x60], r14
xor r13d, r13d
mov esi, r13d
mov qword [rax - 0x58], r13
mov r12d, r13d
mov qword [rax - 0x50], r13
test rdx, rdx
je 0x140042362
cmp byte [rdx], sil
je 0x140042362
lea rcx, [0x140135140]
call fcn.140043a20
nop
lea rdx, [0x140135140]
lea rcx, [rsp + 0x68]
call fcn.140043730
nop
lea rcx, [rsp + 0x68]
call fcn.140043e90
mov r9, rax
test rax, rax
je 0x140042193
mov r8, r15
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140042183
inc rax
test ecx, ecx
jne 0x140042170
test edx, edx
jne 0x140042191
mov rsi, r9
mov qword [rsp + 0x50], r9
jmp 0x140042193
jmp 0x140042150
test rsi, rsi
jne 0x14004230c
mov ebx, r13d
mov dword [rsp + 0x40], ebx
cmp ebx, 0x32
jge 0x1400421f5
cmp r14, 0xffffffffffffffff
jne 0x1400421ff
test ebx, ebx
jle 0x1400421bc
lea ecx, [r14 + 0x15]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r15
call fcn.140040a20
mov r14, rax
mov qword [rsp + 0x48], rax
jmp 0x1400421a3
cmp r14, 0xffffffffffffffff
je 0x14004230c
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [rax + 1]
mov ebx, ecx
call fcn.140063b18
mov r12, rax
mov qword [rsp + 0x58], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140065dd0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xb8]
mov r8d, edi
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400422fa
mov ecx, 0x118
call fcn.140036960
mov rsi, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x1400422a8
xor edx, edx
mov r8d, 0x118
mov rcx, rax
call fcn.140065dd0
mov rax, qword [0x1401319e0]
mov qword [rsi + 0x108], rax
mov rax, qword [0x1401319e0]
mov qword [rsi + 0x110], rax
jmp 0x1400422ab
mov rsi, r13
mov qword [rsp + 0x50], rsi
mov r8d, 0x103
mov rdx, r15
mov rcx, rsi
call fcn.14006f330
lea rcx, [rsi + 0x108]
mov rdx, r12
call fcn.140044800
mov rdx, r12
lea rcx, [rsi + 0x110]
call fcn.140044800
lea rcx, [rsi + 0x110]
call fcn.1400457f0
mov rdx, rsi
lea rcx, [0x140135140]
call fcn.140043960
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r14, 0xffffffffffffffff
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x68]
call fcn.1400437d0
nop
jmp 0x140042328
test r12, r12
je 0x140042336
mov rcx, r12
call fcn.140063b20
nop
jmp 0x140042342
lea rcx, [0x140135140]
call fcn.140043f20
cmp r14, 0xffffffffffffffff
je 0x14004235d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
jmp 0x140042364
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140042d40
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
lea rax, [r11 + 0x20]
mov rbx, r8
mov qword [r11 - 0x28], rax
xor r9d, r9d
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140042da6
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x140043ad0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140043b51
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x140043b32
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x40], 1
lea rdx, [0x14012d508]
lea rcx, [rsp + 0x40]
call fcn.140066028
int3
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x1400bd620]
mov qword [rax], rdx
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
jmp 0x140043b97
mov ecx, 0x20
call fcn.140063b18
test rax, rax
jne 0x140043b7a
mov dword [rsp + 0x40], 1
lea rdx, [0x14012d508]
lea rcx, [rsp + 0x40]
call fcn.140066028
int3
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rdx, [0x1400bd620]
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140044180
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
xor edx, edx
mov qword [rcx], rdx
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov dword [rcx + 0x5c], 0xc3d2e1f0
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov word [rcx + 0x48], dx
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov dword [rcx + 0x70], eax
ret
Function at 0x140046240
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x298
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp byte [rcx], 0
mov edi, edx
mov rbx, rcx
je 0x140046361
mov qword [rsp + 0x290], r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x104
lea rcx, [rsp + 0x170]
mov rdx, rbx
call fcn.140046120
mov edx, 0x5c
lea rcx, [rsp + 0x170]
call fcn.140064f8c
mov r14, rax
test rax, rax
je 0x140046359
test edi, edi
jne 0x140046347
mov qword [rsp + 0x2b8], rbp
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x2c0], rsi
lea rcx, [rsp + 0x170]
xor esi, esi
mov dword [rax + 1], 0x2a2e2a
mov ebp, esi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x14004632c
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x30]
shr ebx, 4
xor edx, edx
mov r8d, 0x140
not ebx
call fcn.140065dd0
lea eax, [rbp + 1]
and ebx, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove eax, ebp
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400462e5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
mov rbp, qword [rsp + 0x2b8]
setne sil
xor esi, 1
mov rsi, qword [rsp + 0x2c0]
je 0x140046359
lea rcx, [rsp + 0x170]
mov byte [r14], 0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x298
pop rdi
pop rbx
ret

Function at 0x140046480
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140065dd0
lea rdx, [rsp + 0x40]
mov byte [rbx], 0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
or r9d, 0xffffffff
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], edi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x1400465f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [0x140102c40]
mov rbx, rcx
call fcn.140044800
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400466d4
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.140065dd0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProductID
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400466c9
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140044800
lea r8, [0x140102c40]
mov rcx, rbx
lea rdx, [0x1400b8ea8]
call fcn.140045810
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x160
pop rbx
ret