joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010600
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x2200000
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001080b
mov eax, dword [str.___]
lea rcx, [rsp + 0x50]
cmp eax, dword [rbx]
je 0x14001068f
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
call fcn.14000ea30
jmp 0x14001069d
mov r8d, 0x104
mov rdx, rbx
call fcn.1400105a0
mov edx, 0x2f
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400106c7
lea rcx, [rax + 1]
mov byte [rax], 0x5c
mov edx, 0x2f
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x1400106b1
lea rax, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], bpl
jne 0x1400106d3
add ecx, ecx
mov dword [rsp + 0x28], 0x104
mov dword [rsp + 0x40], ecx
lea r8, [rsp + 0x50]
mov word [rsp + 0x16a], cx
mov r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x160], 0xa0000003
lea eax, [rcx + 0xc]
mov dword [rsp + 0x166], ebp
add cx, 2
mov word [rsp + 0x164], ax
mov word [rsp + 0x16c], cx
lea rax, [rsp + 0x170]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov word [rsp + 0x16e], bp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx r9d, word [rsp + 0x164]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x160]
mov qword [rsp + 0x30], rax
add r9d, 8
mov dword [rsp + 0x28], ebp
mov edx, 0x900a4
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140010812
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x48]
mov ecx, 0x1300
mov r9d, 0x409
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.could_not_set_junction_for___s_:__s_n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, rax
mov rdx, rbx
call fcn.14000ecc0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 0xffffffff
jmp 0x14001081d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140014dd0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x390
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140010ad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400142c0
xor al, al
add rsp, 0x28
ret
shr eax, 0xa
and al, 1
add rsp, 0x28
ret

Function at 0x140010ba0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov r14, rcx
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140010c15
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
call fcn.1400142c0
cmp ebx, 5
je 0x140010bee
lea eax, [rbx - 0x20]
cmp eax, 1
ja 0x140010c32
inc edi
cmp esi, 0x64
jge 0x140010c32
mov ecx, 0x186a0
call fcn.140014340
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140010bd0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 0xffffffff
jmp 0x140010c17

Function at 0x140010e60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
test rax, rax
je 0x140010f69
mov edx, Ordinal_64
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140010f60
mov byte [rax], 0
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx + 1], 0
jne 0x140010ea0
test rcx, rcx
je 0x140010ec4
lea rdx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x140010f60
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [str.msvcrt]
test rax, rax
je 0x140010f4c
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov ebx, ebp
lea rsi, str.msvcrt
nop
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x140010f35
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140010f35
lea rdx, [0x140023d18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010f2a
mov rcx, rdi
call rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x140010ef0
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x140010f80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, 0xffffffffffffffff
mov rsi, rcx
mov rcx, rbx
nop dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140010fa0
add rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400110c4
mov r8, rsi
lea rdx, [0x140023d20]
mov rcx, rax
call fcn.14000eb20
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
test rax, rax
je 0x1400110bb
mov edx, Ordinal_64
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400110b2
mov byte [rax], 0
nop
inc rbx
cmp byte [rax + rbx + 1], 0
jne 0x140011000
test rbx, rbx
je 0x140011024
lea rdx, [rax + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x1400110b2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [str.msvcrt]
test rax, rax
je 0x1400110a7
mov qword [rsp + 0x30], rbp
lea rsi, str.msvcrt
xor ebp, ebp
mov ebx, ebp
nop dword [rax]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x140011095
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140011095
lea rdx, [0x140023d18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001108a
mov rcx, rdi
call rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x140011050
mov rbp, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
jmp 0x1400110bb
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140012cf0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140012d10
lea rcx, [rbx + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140012d4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xc
lea eax, [rsi - 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rax + 1]
mov byte [rax], 0x22
mov r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
mov word [rsi + rbx + 1], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rsi
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, qword [rsp + 0x38]
mov dword [rax], ebx
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140013040
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x100
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xaa
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], Ordinal_91
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9d, [rdi + 3]
mov edx, 0x20001004
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x140013104
lea ecx, [rdi + 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14001317d
mov r8d, dword [rsp + 0x30]
test r8d, r8d
jne 0x1400130f0
mov ecx, dword [str.utf8]
mov dword [rax], ecx
movzx ecx, byte [0x140018344]
mov byte [rax + 4], cl
jmp 0x14001317d
lea rdx, str.CP_u
mov rcx, rbx
call fcn.14000eb20
mov rax, rbx
jmp 0x14001317d
mov edx, 0x2e
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
mov rbx, rax
test rax, rax
je 0x1400131b1
mov qword [rsp + 0x118], rsi
inc rbx
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140013130
lea rcx, [rdi + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140013175
lea rdx, str.0123456789
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov rcx, rsi
cmp rax, rdi
jne 0x14001319e
mov r8, rbx
lea rdx, str.CP_s
call fcn.14000eb20
mov rax, rsi
mov rsi, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140014dd0
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop rdi
ret
sub rcx, rbx
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400131a1
jmp 0x140013172
jmp 0x14001317d
Function at 0x1400132c0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x70
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xor r15d, r15d
mov rbp, rcx
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400132f0
cmp rax, 2
jb 0x140013351
movzx ecx, byte [rcx]
cmp cl, 0x2f
jne 0x140013338
cmp byte [rsi + 1], cl
jne 0x140013338
lea rcx, [rsi + 2]
lea rdx, [0x14001bdf0]
call sub.VCRUNTIME140.dll_strstr
mov rbp, rax
test rax, rax
jne 0x140013351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
lea eax, [rbp - 1]
jmp 0x14001344b
cmp byte [rsi + 1], 0x3a
jne 0x140013351
lea eax, [rcx - 0x61]
cmp al, 0x19
jbe 0x14001334d
sub cl, 0x41
cmp cl, 0x19
ja 0x140013351
lea rbp, [rsi + 2]
mov qword [rsp + 0x98], rbx
xor ecx, ecx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__umask]
movzx r14d, ax
mov ecx, r14d
and ecx, 0xff3f
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__umask]
cmp byte [rbp], 0x2f
lea rbx, [rbp + 1]
mov edi, r15d
mov r12d, 0x4000
cmovne rbx, rbp
mov ebp, 0xf000
movzx eax, byte [rbx]
test al, al
jne 0x1400133ac
mov byte [rbx], r15b
jmp 0x1400133bd
cmp al, 0x2f
jne 0x140013410
mov byte [rbx], r15b
test edi, edi
jne 0x1400133c2
cmp byte [rbx + 1], r15b
jne 0x1400133cb
mov edi, 1
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__umask]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140010af0
test eax, eax
jne 0x1400133fc
movzx eax, word [rsp + 0x26]
and ax, bp
cmp ax, r12w
je 0x140013409
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test edi, edi
je 0x140013419
mov dword [rax], 0x11
jmp 0x14001341f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
js 0x14001341f
test edi, edi
jne 0x140013410
mov byte [rbx], 0x2f
inc rbx
test edi, edi
je 0x1400133a0
jmp 0x140013425
mov dword [rax], 0x14
mov r15d, 0xffffffff
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__umask]
mov r14, qword [rsp + 0x60]
mov eax, r15d
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014dd0
add rsp, 0x70
pop r15
pop rsi
pop rbp
ret
Function at 0x140014010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140014038
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 2
xor eax, eax
add rsp, 0x20
pop rbx
ret
test al, 0x10
jne 0x140014050
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x14
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x120
mov qword [rsp + 0x30], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140014081
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, qword [rsp + 0x30]
mov dword [rax], 0xc
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140014090
add rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x1400140d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rdi
mov dword [rax], 0xc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400140d0
mov rcx, qword [rdi]
mov rax, 0xffffffffffffffff
mov rdx, rcx
nop
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400140f0
cmp byte [rax + rcx - 1], 0x2f
je 0x14001413c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140014110
cmp byte [rax + rcx - 1], 0x5c
je 0x14001413c
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140014125
movzx eax, word [0x140024d9c]
mov word [rcx], ax
mov rdx, qword [rdi]
dec rdx
nop
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140014140
movzx eax, word [0x140024da0]
mov word [rdx], ax
xor eax, eax
mov dword [rdi + 8], eax
mov word [rdi + 0xc], ax
mov rax, rdi
mov qword [rdi + 0x118], 0xffffffffffffffff
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140014180
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x118]
cmp rcx, 0xffffffffffffffff
jne 0x1400141d1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbx + 0x118], rax
cmp rax, 0xffffffffffffffff
jne 0x140014207
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jmp 0x1400141e4
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140014207
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400141f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
xor eax, eax
jmp 0x140014247
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400142c0
xor eax, eax
jmp 0x140014247
lea rax, [rsp + 0x4c]
lea rdx, [rbx + 0x10]
sub rdx, rax
lea rcx, [rsp + 0x4c]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014220
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax + 0x10], 0
jne 0x140014235
mov word [rbx + 0xe], ax
lea rax, [rbx + 8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140014dd0
add rsp, 0x170
pop rbx
ret

Function at 0x140014550
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, qword [rsp + 0x50]
mov qword [rbx], rax
test rax, rax
je 0x140014584
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
cmp qword [rbx], 0
je 0x140014584
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140002de8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140002e21
xor eax, eax
jmp 0x140002f43
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140002e5b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140002e5b
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140002f43
cmp qword [rbx + 0x80], 0
je 0x140002f41
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002e96
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002eb9
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14000e19c
cmp eax, edi
cmovne edi, esi
jmp 0x140002f41
lea r8, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
js 0x140002f41
cmp eax, 1
jle 0x140002f07
cmp eax, 3
jne 0x140002f41
movsx ecx, byte [rbp - 0x30]
jmp 0x140002ea3
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140002f31
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14000f204
cmp r14, rax
jne 0x140002f41
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x140002f43
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005f00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400037f9
cmp byte [rcx + 0x71], 0
je 0x1400037f9
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400037bb
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400037bf
sub eax, 1
je 0x1400037c3
sub eax, 2
je 0x1400037f9
xor al, al
jmp 0x1400037fb
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400037f0
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14000f204
cmp rdi, rax
jne 0x1400037bb
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400037fb
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005f00
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400043b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0xf0
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140008260
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
mov esi, 1
lea rax, [rsp + 0x70]
mov dword [rsp + 0xac], esi
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x10
xor ecx, ecx
and dword [rsp + 0x20], 0
mov word [rsp + 0xb0], si
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000445b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
jmp 0x14000445d
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140005f00
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rsi
ret
Function at 0x140004480
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r13
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov qword [rsp + 0x38], rax
mov r13, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004548
lea rcx, str.test
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400044fd
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str._kl_
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.keylogger_save_OK__n
call fcn.140001278
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x200
call fcn.140008260
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x200
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400045e1
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str._kl_
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400045e1
cmp dword [rsp + 0x50], 0x200
ja 0x1400045e1
lea rdx, [rsp + 0x60]
lea rcx, str.keylogger_getValue:__s__n
call fcn.140001278
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004637
mov rcx, qword [rsp + 0x58]
lea rdx, str._kl_
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140004637
lea rcx, str.keylogger_delete_OK__n
call fcn.140001278
mov al, 1
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140005f00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r13, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret