joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400685d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
cmp byte [rcx], 0x23
mov r12, rdx
mov esi, ebx
sete sil
mov rdi, rcx
cmp esi, ebx
je 0x140068600
inc rdi
cmp byte [rdi], 0x23
mov bpl, bl
jne 0x14006861e
mov bpl, byte [rdi + 1]
cmp bpl, bl
jne 0x140068618
xor eax, eax
jmp 0x1400686c4
inc esi
add rdi, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [rax + rax*2]
movsxd rdx, ecx
mov rcx, r12
call fcn.140061314
mov r11, qword [r12]
mov r8d, ebx
mov byte [r11], bl
mov r13, r11
mov cl, bl
jmp 0x140068664
mov al, byte [rdi]
cmp al, 0x3d
jne 0x1400686dd
cmp cl, bl
jle 0x140068661
mov byte [r11], r8b
mov cl, bl
inc r11
mov r8d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x140068648
mov rcx, r13
mov byte [r11], bl
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, ebx
je 0x1400686c0
movsxd r8, eax
mov r9, rbx
cmp r8, rbx
jle 0x1400686c0
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
inc ebx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
lea rax, [0x140119ba8]
mov al, byte [rcx + rax]
xor al, byte [r9 + r13]
xor al, bpl
mov byte [r9 + r13], al
inc r9
cmp r9, r8
jl 0x140068683
mov rax, qword [r12]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
cmp al, 0x2b
jne 0x1400686e5
mov al, bl
jmp 0x140068703
cmp al, 0x2f
jne 0x1400686ed
mov al, 1
jmp 0x140068703
cmp al, 0x39
ja 0x1400686f5
add al, 0xd2
jmp 0x140068703
cmp al, 0x5a
ja 0x1400686fd
add al, 0xcb
jmp 0x140068703
cmp al, 0x7a
ja 0x140068708
add al, 0xc5
movzx edx, al
jmp 0x14006870b
or edx, 0xffffffff
cmp edx, ebx
jl 0x140068611
shl edx, cl
or r8d, edx
add cl, 6
cmp cl, 8
jge 0x140068730
cmp cl, bl
jle 0x140068661
cmp byte [rdi], bl
jne 0x140068661
mov byte [r11], r8b
inc r11
shr r8d, 8
add cl, 0xf8
jmp 0x14006871b
Function at 0x140068740
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14b, r8b
mov r15, rdx
mov r12, rcx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x50]
mov ebp, eax
mov r13d, eax
xor sil, sil
call fcn.140061234
test r14b, r14b
jne 0x140068876
mov eax, 0x14
lea rcx, [rsp + 0x50]
cmp ebp, eax
cmovl r13d, eax
lea eax, [r13 + 4]
movsxd rbx, eax
mov rdx, rbx
call fcn.140061314
mov rdi, qword [rsp + 0x50]
mov r8, rbx
mov rcx, rdi
xor edx, edx
call fcn.1400f78a0
lea r11d, [rbp + 1]
mov rdx, r12
movsxd r8, r11d
mov rcx, rdi
call fcn.14001cecc
test ebp, ebp
jle 0x1400687e3
mov rax, rbp
add sil, sil
add sil, byte [r12]
inc r12
sub rax, 1
jne 0x1400687d3
mov al, sil
mov ecx, ebp
xor r12d, r12d
shr al, 5
sar ecx, 2
lea r11, [0x140000000]
add cl, al
mov al, sil
shr sil, 2
shl al, 3
movsxd r10, r13d
mov r9d, r12d
add cl, al
mov r8, r12
add cl, sil
add cl, bpl
movzx eax, cl
cdq
and edx, 0x3f
add eax, edx
and eax, 0x3f
sub eax, edx
cmp r10, r12
movsxd rcx, eax
mov sil, byte [rcx + r11 + 0x119b60]
jle 0x140068871
mov eax, 0x66666667
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
inc r9d
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
mov al, byte [rcx + r11 + 0x119ba8]
xor al, byte [r8 + rdi]
xor al, sil
mov byte [r8 + rdi], al
inc r8
cmp r8, r10
jl 0x140068833
mov ebp, r13d
jmp 0x140068879
xor r12d, r12d
lea eax, [rbp + rbp*2 + 0x10]
mov rcx, r15
movsxd rdx, eax
call fcn.140061610
mov rbx, qword [r15]
mov word [rbx], r12w
add rbx, 2
mov word [rbx], r12w
cmp byte [rdi], r12b
je 0x14006898c
cmp r14b, r12b
jne 0x1400688bd
mov eax, 0x23
mov word [rbx], ax
mov word [rbx + 2], ax
movzx eax, sil
mov word [rbx + 4], ax
add rbx, 6
movsxd r8, r13d
mov r9b, 8
mov word [rbx], r12w
movzx edx, byte [rdi]
add r8, rdi
lea r10, [0x140000000]
inc rdi
mov cl, r9b
cmp cl, 6
jge 0x1400688e9
cmp cl, r12b
jle 0x140068946
cmp rdi, r8
jne 0x140068949
mov al, dl
and al, 0x3f
cmp r14b, r12b
je 0x1400688ff
movzx eax, al
mov al, byte [rax + r10 + 0x119b60]
jmp 0x140068926
cmp al, r12b
jne 0x140068908
mov al, 0x2b
jmp 0x140068926
cmp al, 1
jne 0x140068910
mov al, 0x2f
jmp 0x140068926
cmp al, 0xc
jae 0x140068918
add al, 0x2e
jmp 0x140068926
cmp al, 0x26
jae 0x140068920
add al, 0x35
jmp 0x140068926
cmp al, 0x40
jae 0x140068926
add al, 0x3b
movzx eax, al
shr edx, 6
mov word [rbx], ax
add rbx, 2
add cl, 0xfa
jns 0x1400688da
mov eax, 0x3d
mov word [rbx], ax
add rbx, 2
jmp 0x1400688da
cmp rdi, r8
jae 0x14006897c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
add cl, r9b
or edx, eax
cmp rdi, r8
jae 0x14006897c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
add cl, r9b
or edx, eax
cmp rdi, r8
jae 0x14006897c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
or edx, eax
add cl, r9b
cmp cl, r12b
jg 0x1400688da
mov word [rbx], r12w
mov rbx, qword [r15]
lea rcx, [rsp + 0x50]
call fcn.140058d88
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140068be4
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x380
mov r12, rcx
lea rcx, [rax + 0x10]
call fcn.140058d58
xor r13d, r13d
lea rdx, [rsp + 0x3b8]
lea r8d, [r13 + 5]
lea rcx, [0x14011b3a8]
call fcn.140060e34
lea ecx, [r13 + 1]
movzx ebx, r13b
cmp al, r13b
cmovne ebx, ecx
lea rcx, [rsp + 0x3c8]
call fcn.140061510
mov rax, qword [rsp + 0x3b8]
lea edi, [r13 + 0x3d]
lea rsi, [0x140112150]
cmp di, word [rax]
je 0x140068c85
lea r8, [rsp + 0x3c8]
lea rdx, [rsp + 0x3b8]
mov r9d, edi
mov rcx, r12
mov word [rsp + 0x20], r13w
call fcn.140052520
mov qword [rsp + 0x3b8], rax
cmp di, word [rax]
jne 0x140068c9c
add rax, 2
mov rcx, rax
mov qword [rsp + 0x3b8], rax
call fcn.14001b428
mov rsi, rax
mov rcx, qword [rsp + 0x3c8]
cmp word [rcx], r13w
je 0x140068d5f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x134]
xor edx, edx
mov r8d, 0x24c
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x130], r13d
movsxd rbp, eax
call fcn.1400f78a0
cmp ebp, r13d
jle 0x140068d85
mov eax, 0x5c
cmp ax, word [rsi + rbp*2 - 2]
je 0x140068d01
mov eax, 0x2f
cmp ax, word [rsi + rbp*2 - 2]
jne 0x140068d85
mov rdi, qword [rsp + 0x3b8]
cmp ebp, 0x20e
jge 0x140068d1c
mov rcx, rsi
call fcn.140068a24
mov rdi, rax
lea rcx, [rsp + 0x60]
mov rdx, rdi
mov word [rsp + 0x60], r13w
call fcn.1400dcf94
mov rdx, qword [rsp + 0x3c8]
lea r8, [rsp + 0x60]
mov rcx, r12
call fcn.140060828
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x140068d5a
cmp rcx, 0xffffffffffffffff
je 0x140068d5a
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x3c8]
call fcn.140058d88
mov rbx, qword [rsp + 0x3b0]
xor eax, eax
add rsp, 0x380
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rsp + 0x130]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400f6c34
mov rdi, r13
cmp qword [rsp + 0x40], r13
je 0x140068d1c
test byte [rsp + 0x130], 0x10
jne 0x140068d09
bt dword [rsp + 0x130], 0xa
jb 0x140068de0
cmp bl, r13b
jg 0x140068de0
mov edi, dword [rsp + 0x14c]
mov eax, dword [rsp + 0x150]
shl rdi, 0x20
or rdi, rax
jmp 0x140068d1c
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x50]
mov r9d, 7
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x20], r13
call fcn.140003764
mov rbx, qword [rsp + 0x50]
cmp rbx, r13
je 0x140068d09
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x140068d1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140068d1c
Function at 0x14006a5ec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
xor r8d, r8d
call fcn.14005a2ec
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
Function at 0x14006b8fc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax + 0x20], 0
mov dword [rax - 0x48], 0x80
mov rdi, rdx
mov rdx, rcx
mov rbp, r8
mov dword [rax - 0x50], 3
and qword [rax - 0x58], 0
lea rcx, [rax + 0x20]
mov r9d, 1
mov r8d, 0x80000000
call fcn.140003764
mov rbx, qword [rsp + 0x98]
test rbx, rbx
jne 0x14006b967
xor eax, eax
jmp 0x14006ba4c
and qword [rsp + 0x98], 0
lea r13, [rsp + 0x98]
test rdi, rdi
cmovne r13, rdi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r14d, r14d
test rbp, rbp
setne r14b
mov esi, eax
mov qword [r13], rsi
test r14d, r14d
je 0x14006b9d5
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp], rax
test rax, rax
jne 0x14006b9c7
cmp rbx, 0xffffffffffffffff
je 0x14006b960
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006b960
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
jmp 0x14006ba0b
mov rcx, qword [0x1401312f8]
lea r8, [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14006b9fd
lea ecx, [rax + 2]
call fcn.140060fc0
cmp eax, 4
je 0x14006b9d5
mov dword [rdi + 4], 0xaa55
mov qword [rdi], rsi
add rdi, 8
test rdi, rdi
je 0x14006b9b6
mov r8d, dword [r13]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test r14d, r14d
je 0x14006ba3a
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp rbx, 0xffffffffffffffff
je 0x14006ba49
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14006c4bc
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
mov rbx, rdx
mov rsi, rcx
mov edi, 0x104
mov rdx, rdi
mov rcx, rbx
call fcn.140061610
mov r11, qword [rbx]
xor ebp, ebp
mov word [r11], bp
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebp
mov edi, eax
jle 0x14006c52a
mov rcx, qword [rbx]
cmp word [rcx], bp
jne 0x14006c52a
lea ecx, [rax + 2]
movsxd rdx, ecx
mov rcx, rbx
call fcn.140061610
mov rdx, qword [rbx]
lea r8d, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006c680
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
xor edi, edi
mov esi, edx
mov eax, 3
cmp edx, edi
jge 0x14006c785
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14006c6b1
mov eax, 0xffdf
and cx, ax
mov r8d, 0x3a
mov word [rsp + 0x40], cx
mov word [rsp + 0x50], cx
lea edx, [r8 + 0x22]
mov word [rsp + 0x42], r8w
mov word [rsp + 0x52], r8w
lea eax, [rdx - 0x2e]
mov word [rsp + 0x44], dx
mov word [rsp + 0x48], dx
mov word [rsp + 0x4a], dx
mov word [rsp + 0x4e], dx
mov qword [rsp + 0x30], rdi
lea r8d, [rax - 0x2b]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], edi
mov word [rsp + 0x46], di
mov word [rsp + 0x4c], ax
mov word [rsp + 0x54], di
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14006c72f
mov eax, 1
jmp 0x14006c86f
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbp
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
lea rcx, [rsp + 0x40]
cmovne esi, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp esi, 0xffffffff
je 0x14006c725
xor r8d, r8d
mov edx, eax
mov ecx, esi
mov dword [rsp + 0x2a8], edi
call fcn.1400604ec
cmp eax, edi
je 0x14006c725
lea rcx, [rsp + 0x2a8]
xor r8d, r8d
mov edx, eax
mov dword [rsp + 0x2b8], edi
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x2b0], edi
mov dword [rsp + 0x2a8], eax
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov r8d, dword [rsp + 0x2a8]
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x2b8]
xor r9d, r9d
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov ebx, dword [rsp + 0x2b8]
mov esi, 1
shr ebx, 0xe
mov ebp, 0x208
and bl, 1
mov ecx, dword [rsp + 0x2a8]
mov word [rsp + 0x70], di
mov dword [rsp + 0x20], edi
mov r9d, ebp
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x2b0]
cmp bl, dil
je 0x14006c82f
call qword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x14006c835
call qword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, edi
jne 0x14006c842
cmp dword [rsp + 0x2b0], edi
je 0x14006c862
lea rcx, [0x1401310e0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc8
call fcn.14001f27c
inc esi
cmp esi, 3
jg 0x14006c865
jmp 0x14006c802
mov dil, 1
neg dil
sbb eax, eax
not eax
and eax, 2
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e724
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov ebp, r8d
lea r8, [rax - 0x28]
xor r12d, r12d
mov r9d, 0x2001b
mov dword [rax - 0x78], 4
mov qword [rax - 0x28], r12
call fcn.14005a00c
cmp eax, r12d
jne 0x14006e923
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
test bpl, 1
je 0x14006e792
mov rcx, qword [rsp + 0x70]
lea rdx, [0x140111598]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [rsp + 0xb8]
cmp ecx, dword [rsp + 0x60]
mov edi, eax
cmovb ecx, dword [rsp + 0x60]
mov dword [rsp + 0xb8], ecx
lea edx, [rcx*4 + 8]
lea rcx, [rsp + 0x78]
call fcn.140061584
cmp edi, r12d
jne 0x14006e90c
mov rbx, qword [rsp + 0x78]
test bpl, 4
je 0x14006e894
mov esi, dword [rsp + 0x64]
dec esi
cmp esi, r12d
jl 0x14006e894
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r12d
je 0x14006e875
mov edi, eax
jmp 0x14006e88f
cmp word [rbx], r12w
je 0x14006e88f
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x14006e82d
test bpl, 2
je 0x14006e90c
mov esi, dword [rsp + 0x68]
dec esi
cmp esi, r12d
jl 0x14006e90c
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r12d
je 0x14006e8ed
mov edi, eax
jmp 0x14006e907
cmp word [rbx], r12w
je 0x14006e907
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [0x1401313d0]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x14006e8a5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.140058d88
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14006e93c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rdi, r8
lea rcx, [rsp + 0x78]
or r8, 0xffffffffffffffff
call fcn.14006cf48
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rbx, qword [rax]
mov rdx, rdi
call fcn.14006cf48
lea rdx, str._r_nRegSetDHCP__s__s__r_n
lea rcx, [0x1401310e0]
mov r9, qword [rax]
mov r8, rbx
call fcn.140018674
lea rcx, [rsp + 0x78]
call fcn.140058d88
lea rcx, [rsp + 0x30]
call fcn.140058d88
mov rax, qword [str.0.0.0.0]
mov rcx, qword [rsi]
lea r11, [rsp + 0x38]
mov r9d, 4
lea rdx, str.EnableDHCP
mov qword [r11], rax
mov al, byte [0x14011b628]
mov dword [rsp + 0x28], r9d
mov byte [r11 + 8], al
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
mov ebx, 9
lea rax, [rsp + 0x38]
lea rdx, str.IPAddress
lea r9d, [rbx - 2]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
lea rax, [rsp + 0x38]
lea r9d, [rbx - 2]
lea rdx, str.SubnetMask
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
lea rbx, [0x140112200]
lea rdx, str.DefaultGateway
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test rdi, rdi
je 0x14006eaa4
cmp byte [rdi], 0x2d
cmovne rbx, rdi
cmp byte [rdi], 0
je 0x14006eaa4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, str.NameServer
mov r9d, 1
movsxd rcx, eax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x1400715cc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor edi, edi
cmp byte [0x1401316c4], dil
jne 0x1400717ec
lea rcx, [rsp + 0x48]
mov edx, 0x1122
call fcn.140061584
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x80]
mov qword [rsi], rdi
mov word [rsi], di
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x90]
lea r8, str.TIPSDUMMY
lea rdx, str.SOFTWAREPELOGON
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x80], 0x1ffe
mov qword [rsp + 0x98], rsi
mov r12, rsi
mov qword [rsp + 0x20], rsi
call fcn.14005a158
mov ebp, edi
cmp eax, edi
sete bpl
mov eax, ebp
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x80]
mov dword [rsp + 0x80], ecx
mov eax, ecx
shr rax, 1
mov word [rsi + rax*2], di
cmp word [rsi], di
jne 0x1400717d2
lea rdx, [rsi + 0x2000]
mov r8d, 0x104
xor ecx, ecx
mov word [rsi + 0x2000], di
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str..USRCFG.INI
lea rcx, [rsi + 0x2000]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x80
lea r9d, [rdi + 7]
lea rdx, [rsi + 0x2000]
lea rcx, [rsp + 0x40]
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call fcn.140003764
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x88], edi
lea r9, [rsp + 0x88]
mov rcx, rbx
mov r8d, 0x1ffe
mov rdx, rsi
mov word [rsi], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x88]
shr r11d, 1
mov eax, 0xffe
cmp r11d, eax
cmova r11d, eax
movsxd rax, r11d
mov dword [rsp + 0x88], r11d
mov word [rsi + rax*2], di
mov eax, 0xfeff
cmp ax, word [rsi]
jne 0x140071757
add rsi, 2
mov qword [rsp + 0x98], rsi
cmp word [rsi], di
je 0x1400717be
lea rcx, [rsp + 0x98]
call fcn.140058d58
mov rsi, qword [rsp + 0x98]
mov edx, 0xa
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x98]
call fcn.140058fec
mov r8d, edx
lea rdx, str.TIPSDUMMY:
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
mov rax, qword [rsp + 0x98]
je 0x1400717ad
cmp word [rax], di
jne 0x14007175c
jmp 0x1400717be
cmp word [rax], di
je 0x1400717b5
mov word [rax], di
lea r12, [rsi + 0x14]
mov ebp, 1
cmp rbx, rdi
je 0x1400717d2
cmp rbx, 0xffffffffffffffff
je 0x1400717d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
mov rcx, r12
setne dil
mov edx, edi
call fcn.140071510
lea rcx, [rsp + 0x48]
call fcn.140058d88
mov rax, qword [0x1401320a0]
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007245c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov eax, 1
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x30]
xor ebp, ebp
mov edx, 0x100000
mov rdi, r9
mov r15d, r8d
mov r12d, eax
mov ebx, eax
mov word [rsp + 0x40], bp
call fcn.140061584
cmp rdi, rbp
jne 0x1400724ce
lea rdx, [rsp + 0x40]
mov ecx, 0x104
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdi, [rsp + 0x40]
mov ebx, eax
cmp eax, ebp
je 0x14007264e
mov eax, 0xe0000000
mov esi, 0xa0000000
cmp r12d, ebp
cmovne esi, eax
xor r9d, r9d
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 3]
mov rcx, r13
mov edx, esi
mov dword [rsp + 0x298], ebp
mov dword [rsp + 0x20], ebp
call qword [0x140131438]
mov rbp, rax
test rax, rax
jne 0x140072560
cmp r12d, 1
jne 0x14007254d
lea rax, [rsp + 0x298]
mov r12d, 2
btr esi, 0x1e
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, esi
mov rcx, r13
call qword [0x140131438]
mov rbp, rax
test rax, rax
je 0x140072510
xor r13d, r13d
cmp rbp, r13
jne 0x140072563
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
jmp 0x140072563
xor r13d, r13d
cmp ebx, r13d
je 0x140072640
mov rdx, rdi
mov rcx, rbp
call qword [0x140131440]
mov ebx, eax
cmp eax, r13d
jne 0x14007258a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rbp
call qword [0x140131448]
mov rsi, rax
cmp rax, r13
jne 0x1400725a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
cmp ebx, r13d
je 0x140072632
mov eax, 0x600
mov edi, 0x400
cmp r12d, r13d
cmove edi, eax
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140131450]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
jne 0x140072632
bt edi, 0xa
jae 0x140072607
cmp eax, 0x57
jne 0x140072607
btr edi, 0xa
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140131450]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
je 0x1400725dc
cmp ebx, r13d
jne 0x140072632
cmp r12d, 2
jne 0x14007262c
bts edi, 9
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140131450]
mov ebx, eax
cmp eax, r13d
jne 0x140072632
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rsi, r13
je 0x140072640
mov rcx, rsi
call qword [0x140131458]
cmp rbp, r13
je 0x14007264e
mov rcx, rbp
call qword [0x140131458]
lea rcx, [rsp + 0x30]
call fcn.140058d88
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret