joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebx, edx
mov rdi, rcx
mov ebp, 1
mov ecx, 0x4b000
mov edx, ebp
call fcn.140003164
mov ecx, 0x202
lea rdx, [rsp + 0x30]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea r14d, [rbp + 1]
xor r8d, r8d
mov ecx, r14d
mov edx, ebp
call qword [sym.imp.WS2_32.dll_socket]
movzx ecx, bx
mov word [rsp + 0x20], r14w
mov rbp, rax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov rdx, rdi
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
lea r8d, [r14 + 0xe]
mov rcx, rbp
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
mov r8d, 0x4b000
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400010c7
add ebx, eax
cmp ebx, 0x4b000
jl 0x14000109e
movsxd rax, ebx
mov rcx, rbp
mov byte [rax + rsi], 0
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, rsi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400014d0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400042c8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000415b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000415b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000415b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000415b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000415b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000415b
cmp dword [rcx + 0xf8], 0
je 0x14000415b
mov ecx, ebx
call fcn.1400041fc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140003fec
cmp dword [rbp + 0x20], 0
je 0x1400041a8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400041b0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400040f4
Function at 0x14001128a
Capabilities:
Terminate process

Disassembly:
jmp 0x140014de0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001132a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016150
xor al, al
jmp 0x1400161d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016163
xor al, al
jmp 0x1400161d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001618d
xor al, al
jmp 0x1400161d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400161a1
xor al, al
jmp 0x1400161d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400161b3
xor al, al
jmp 0x1400161d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400161cf
xor al, al
jmp 0x1400161d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1429030b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.142903237
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 0x1429030e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429030c7
add dl, dl
jne 0x1429030ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14290314e
xor eax, eax
add dl, dl
jne 0x1429030fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142903205
add dl, dl
jne 0x14290310e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14290311b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142903128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142903135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x142903142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1429030d6
mov eax, 1
add dl, dl
jne 0x14290315e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14290316b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142903153
sub eax, ebx
mov ebx, 1
jne 0x1429031a4
mov ecx, 1
add dl, dl
jne 0x142903186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142903193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14290317b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429030d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1429031c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429031cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429031b5
cmp eax, 0x7d00
jae 0x1429031f3
cmp eax, 0x500
jb 0x1429031ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429030d6
cmp eax, 0x7f
ja 0x1429031f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429030d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14290322a
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 0x1429030d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x21e1e80
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x021ff040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x21e1ebf
mov rcx, qword [rdx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rdx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xorps xmm0, xmm0
mov ebp, dword [rsp + 0x38]
movdqu xmmword [rsp + 0x40], xmm0
mov rdi, r15
mov qword [rsp + 0x50], r15
test rbp, rbp
je 0x21e1f54
cmp rbp, 0x1000
jb 0x21e1f27
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x21e2000
call fcn.021e37ec
test rax, rax
je 0x21e1ffa
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x21e1f32
mov rcx, rbp
call fcn.021e37ec
mov rbx, rax
mov qword [rsp + 0x40], rbx
lea rdi, [rbx + rbp]
mov qword [rsp + 0x50], rdi
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.021f25d0
mov qword [rsp + 0x48], rdi
jmp 0x21e1f59
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x21e1f66
mov rcx, qword [rsi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 0x40000001
mov edx, dword [rsi + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov r8d, dword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
mov rdx, rbx
mov rcx, r14
call fcn.021e1ab0
nop
test rbx, rbx
je 0x21e1fd6
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x21e1fcb
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x21e1ffa
mov rdx, rdi
mov rcx, rbx
call fcn.021e3a68
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.021e3530
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.021e9ebc
int3
call fcn.021e12b0
int3
Function at 0x21e2510
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x021ff040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
test eax, eax
jne 0x21e2584
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [r14 + 0xa]
lea rdx, str.Error404
mov rcx, rdi
call fcn.021e1ab0
jmp 0x21e264d
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x21e25a2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.021e1ab0
nop
lea rcx, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
cmp rbp, 0xf
cmova rcx, rsi
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x21e2678
lea rdx, [0x021fbb1b]
call fcn.021f3010
test eax, eax
jne 0x21e2678
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [rax + 0xa]
lea rdx, str.Error400
mov rcx, rdi
call fcn.021e1ab0
nop
cmp rbp, 0xf
jbe 0x21e264d
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x21e2645
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x21e26d9
mov rcx, rsi
call fcn.021e3a68
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.021e3530
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x21e2690
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.021e1ab0
nop
cmp rbp, 0xf
jbe 0x21e264d
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x21e2645
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x21e2645
call fcn.021e9ebc
int3
Function at 0x21e26e0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x021ff040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x28], 0x10
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xorps xmm0, xmm0
test eax, eax
jne 0x21e274e
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [r14 + 0xa]
lea rdx, str.Error404
mov rcx, rdi
call fcn.021e1ab0
jmp 0x21e2817
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x21e2770
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.021e1ab0
nop
lea rcx, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
cmp rbp, 0xf
cmova rcx, rsi
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x21e283c
lea rdx, [0x021fbb1b]
call fcn.021f3010
test eax, eax
jne 0x21e283c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [rax + 0xa]
lea rdx, str.Error400
mov rcx, rdi
call fcn.021e1ab0
nop
cmp rbp, 0xf
jbe 0x21e2817
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x21e280f
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x21e2899
mov rcx, rsi
call fcn.021e3a68
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.021e3530
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x50]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x21e2850
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.021e1ab0
nop
cmp rbp, 0xf
jbe 0x21e2817
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x21e280f
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x21e280f
call fcn.021e9ebc
int3

Function at 0x21e3dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x21e3e16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x21e3e16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x21e3e16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x21e3e16
cmp dword [rcx + 0x84], 0xe
jbe 0x21e3e16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x21e3e18
xor al, al
add rsp, 0x28
ret

Function at 0x21eab34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x21ea930
Function at 0x21ed204
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x21ed28b
mov rsi, rbx
cmp word [rax], bp
je 0x21ed24a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x21ed234
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x21ed230
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.021ebc20
mov rdi, rax
test rax, rax
je 0x21ed278
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.021f2990
mov rbp, rdi
xor ecx, ecx
call fcn.021ebbe4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x21f22f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x21f2318
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x21f2318
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003a60
Capabilities:
Get hostname
Get session user name

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18008b900]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
lea rdx, [0x18007bb80]
mov rcx, qword [rsp + 0x70]
call fcn.180003520
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0x10
mov dword [rsp + 0x28], 0x10
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x180003b15
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.180003860
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x180003b15
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x180003b15
lea rdx, str.User_:
mov rcx, qword [rsp + 0x70]
call fcn.180003860
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.180003970
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180071ed0
add rsp, 0x68
ret
Function at 0x180006820
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x18008b900]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x18000685d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180006864
mov al, 1
jmp 0x1800069bc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1800074f0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1800074f0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.180007500
movzx eax, al
test eax, eax
je 0x1800068b9
xor al, al
jmp 0x1800069bc
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180006929
cmp dword [rsp + 0x30], 1
je 0x180006935
cmp dword [rsp + 0x30], 3
je 0x1800069aa
jmp 0x1800069ba
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x180006981
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x180006981
xor al, al
jmp 0x1800069bc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18000699b
mov dword [rsp + 0x34], 1
jmp 0x1800069a3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1800069bc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1800069bc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180071ed0
add rsp, 0xa8
ret
Function at 0x18001de20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x18001de45
xor eax, eax
jmp 0x18001e00b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18001de6e
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x18001e00b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x18001df0d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180003490
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1800041e0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x18001dffb
mov rcx, qword [rsp + 0x70]
call fcn.180006e40
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x18001dfae
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x18001dfac
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x18001e00b
jmp 0x18001df33
cmp qword [rsp + 0x20], 0
jbe 0x18001dffb
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x18001e010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x18001e049
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18001e137
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x18001e0df
cmp qword [rsp + 0x20], 0
jle 0x18001e0df
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x18001e089
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1800041e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x18001e127
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x18001e127
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x18001eab0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x18001eb65
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax]
test eax, eax
je 0x18001eb65
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x18001eb5b
mov eax, dword [rsp + 0x50]
jmp 0x18001ebc5
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x58], 0
je 0x18001ebc1
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x58], rax
je 0x18001ebc1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret