joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011bbc0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14016d180]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14011bc1e
cmp word [rdx], r12w
jne 0x14011bc1e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14011bc24
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14011bd7f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14011bd5a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14011bc5d
mov rcx, r9
jmp 0x14011bc80
cmp r9, rdx
jae 0x14011bc97
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14011bc41
jmp 0x14011bd7f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011bd54
cmp dword [rsp + 0x80], edi
je 0x14011bd54
mov rdx, r14
lea r11, [0x14016d180]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14011bd2d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14011bd00
mov word [rbx], r12w
jmp 0x14011bd7b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14011bd09
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14011bd7b
cmp word [rsp + 0x70], r12w
jne 0x14011bd3a
cmp rbx, rsi
je 0x14011bcfa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140124b0c
cmp word [rsp + 0x70], r12w
je 0x14011bd7f
mov word [rbx], r13w
jmp 0x14011bd7b
lea r11, [0x14016d180]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14011bd77
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14011bd7f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401242d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140124302
call fcn.1400dc36c
mov dword [rax], 0x16
call fcn.1400dc188
jmp 0x140124421
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140124421
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140124421
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140124331
lock or dword [rcx + 0x14], 0x10
jmp 0x140124421
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140124345
call fcn.140128fec
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140120c10
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14011c164
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14012440f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401243da
mov rcx, rsi
call fcn.140120c10
cmp eax, edi
je 0x1401243c5
mov rcx, rsi
call fcn.140120c10
cmp eax, 0xfffffffe
je 0x1401243c5
mov rcx, rsi
call fcn.140120c10
movsxd rbx, eax
lea r14, [0x14016d180]
mov rcx, rsi
sar rbx, 6
call fcn.140120c10
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401243cc
lea rdx, [0x140169550]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401243da
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401243fe
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401243fe
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401243fe
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140124424
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401260a4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140124b0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140124b0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401261f4
cmp rax, 0xffffffffffffffff
je 0x1401261f4
xor edi, edi
test rbp, rbp
jle 0x14012619f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140121d80
mov rbx, rax
test rax, rax
jne 0x14012612c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140126195
mov edx, 0x8000
mov ecx, r14d
call fcn.140119654
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14011d250
cmp eax, 0xffffffff
je 0x140126175
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14012613c
mov edx, r15d
mov ecx, r14d
call fcn.140119654
jmp 0x140126195
cmp byte [rsi + 0x38], dil
je 0x14012618c
cmp dword [rsi + 0x34], 5
jne 0x14012618c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140126195
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14011f0d0
jmp 0x140126208
jns 0x140126208
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140124b0c
cmp rax, 0xffffffffffffffff
jne 0x1401261c0
cmp byte [rsi + 0x30], dil
je 0x140126208
mov edi, dword [rsi + 0x2c]
jmp 0x140126208
mov ecx, r14d
call fcn.140125c40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140126208
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140126208
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140126201
mov eax, dword [rsi + 0x2c]
jmp 0x140126206
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140124b0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14012da68
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14012da98
xor eax, eax
jmp 0x14012db5b
mov rbp, rbx
cmp word [rax], si
je 0x14012dabd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14012daa4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14012daa0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140127a38
movsxd r14, eax
test eax, eax
jne 0x14012dafb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14012da91
mov rcx, r14
call fcn.14011f10c
mov rdi, rax
test rax, rax
jne 0x14012db14
xor ecx, ecx
call fcn.14011f0d0
jmp 0x14012daf0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140127a38
test eax, eax
jne 0x14012db45
mov rcx, rdi
call fcn.14011f0d0
jmp 0x14012db4f
xor ecx, ecx
call fcn.14011f0d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14012db78
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 0x14012dbff
mov rsi, rbx
cmp word [rax], bp
je 0x14012dbbe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012dba8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012dba4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011f10c
mov rdi, rax
test rax, rax
je 0x14012dbec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cccc0
mov rbp, rdi
xor ecx, ecx
call fcn.14011f0d0
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 0x140132208
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140132228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dc2e0
or eax, 0xffffffff
jmp 0x14013222a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14013781c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400dd798
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401378a6
cmp byte [rbp - 0x21], r15b
je 0x1401378a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401378dc
call fcn.140122a44
test eax, eax
jne 0x1401378c8
cmp byte [rbp - 0x21], r15b
je 0x1401378c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401378dc
cmp byte [rbp - 0x21], r15b
je 0x1401378d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401085a0
test eax, eax
jne 0x14013797c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400dd798
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14013791b
cmp byte [rbp - 0x21], r15b
je 0x140137950
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140137950
call fcn.140122a44
test eax, eax
jne 0x14013793c
cmp byte [rbp - 0x21], r15b
je 0x140137935
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140137950
cmp byte [rbp - 0x21], r15b
je 0x14013794d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401085a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14013797c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013797f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14013798d
mov rcx, rdi
call fcn.14011f0d0
cmp byte [rbp + 0x3f], r15b
je 0x14013799c
mov rcx, qword [rbp + 0x27]
call fcn.14011f0d0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140017cbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017ae8
Function at 0x1800029f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002a18
xor eax, eax
lea r8, [0x180002930]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003f90
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003e77
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003dd4
mov rax, qword [0x18002a008]
cmp qword [rsp + 0x20], rax
ja 0x180003dd4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003d96
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003e03
jmp 0x180003e77
cmp dword [rsp + 0x50], 0x10000
jne 0x180003e5a
cmp qword [rsp + 0x48], 0x10000
jb 0x180003e5a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003e48
mov rax, qword [rsp + 0x28]
jmp 0x180003e79
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003e72
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003f90
mov qword [rsp + 0x20], rax
jmp 0x180003d96
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003e80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180003fd0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003f83
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003edb
mov rax, qword [0x18002a008]
cmp qword [rsp + 0x20], rax
ja 0x180003edb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003e9d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003f0a
jmp 0x180003f83
cmp dword [rsp + 0x50], 0x10000
jne 0x180003f61
cmp qword [rsp + 0x48], 0x10000
jb 0x180003f61
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003f4f
mov rax, qword [rsp + 0x28]
jmp 0x180003f85
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003f7e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003fd0
mov qword [rsp + 0x20], rax
jmp 0x180003e9d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004020
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800045b0
mov qword [rsp + 0x28], 0
cmp qword [0x18002a318], 0
jne 0x180004068
cmp qword [0x18002a310], 0
je 0x180004068
mov rax, qword [0x18002a310]
mov qword [0x18002a318], rax
cmp qword [0x18002a318], 0
je 0x18000410e
mov rax, qword [0x18002a318]
cmp qword [rax + 0x10], 0
je 0x18000410e
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000410e
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000410e
mov rax, qword [0x18002a318]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800040d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800040db
xor eax, eax
jmp 0x180004289
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004289
mov rax, qword [0x18002a310]
mov qword [0x18002a318], rax
jmp 0x180004130
mov rax, qword [0x18002a318]
mov rax, qword [rax + 8]
mov qword [0x18002a318], rax
cmp qword [0x18002a318], 0
je 0x18000417d
cmp qword [0x18002a318], 0
je 0x18000417b
mov rax, qword [0x18002a318]
cmp qword [rax + 0x10], 0
je 0x18000417b
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000417b
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000417b
jmp 0x1800040ac
jmp 0x18000411e
mov rcx, qword [rsp + 0x60]
call fcn.1800061e0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004290
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004287
mov rax, qword [rsp + 0x48]
mov qword [0x18002a318], rax
mov rax, qword [0x18002a318]
mov dword [rax], 0x52727464
mov rax, qword [0x18002a318]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002a318]
mov rcx, qword [0x18002a310]
mov qword [rax + 8], rcx
mov rax, qword [0x18002a318]
mov qword [0x18002a310], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002a318]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004238
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004272
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000422e
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800040ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x140e50d24
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e50d2e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e50d57
pop rbp
sub rbp, 0x33
sub rbp, 0xe50d24
sub rsp, 0x20
and byte [rax], al
add byte [rax], al
jmp 0x140e50d76
mov rax, 0xe50d24
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x78e80db8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e50d95
jmp 0x140e50dac
lock xor dword [rcx + 0x33], edx
xor dword [rax + rdi*4 + 0x39f0b8b8], eax
jns 0x140e50d69
mov ecx, 0xb9f0b8b8
push rcx
invalid
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400013a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xe0
mov esi, edx
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SoftwareIDTAEAPO
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400015c8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x110]
lea r9, [rsp + 0x118]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x140011fd8]
xor r8d, r8d
mov qword [rsp + 0x100], rbp
mov dword [rsp + 0x110], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ebp, [rdi + 1]
test eax, eax
jne 0x14000144e
cmp dword [rsp + 0x110], 0x44
jne 0x14000144e
cmp dword [rsp + 0x40], 0xaeaeaeae
jne 0x14000144e
test dword [rsp + 0x58], 0xfffffee0
cmove edi, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1400015c0
lea rcx, [rsp + 0x90]
mov rdx, rbx
mov r8d, 0x44
call fcn.14000cf50
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8d, 0x44
call fcn.14000cf50
or r9d, 0xffffffff
lea rdx, str.LoadFiltersInfo_successful
mov rcx, rbx
or r8d, r9d
mov dword [rsp + 0x20], 0
call fcn.140001970
test esi, esi
je 0x1400015c0
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1400015c0
mov edx, dword [rsp + 0x44]
cmp edx, dword [rsp + 0x94]
je 0x1400014d5
mov r8, qword [rbx + 0x90]
xor ecx, ecx
call rax
mov edx, dword [rsp + 0x48]
cmp edx, dword [rsp + 0x98]
je 0x1400014ee
mov r8, qword [rbx + 0x90]
mov ecx, ebp
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x4c]
cmp edx, dword [rsp + 0x9c]
je 0x14000150a
mov r8, qword [rbx + 0x90]
mov ecx, 2
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x50]
cmp edx, dword [rsp + 0xa0]
je 0x140001526
mov r8, qword [rbx + 0x90]
mov ecx, 3
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x54]
cmp edx, dword [rsp + 0xa4]
je 0x140001542
mov r8, qword [rbx + 0x90]
mov ecx, 4
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x60]
cmp edx, dword [rsp + 0xb0]
je 0x14000155e
mov r8, qword [rbx + 0x90]
mov ecx, 6
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x64]
cmp edx, dword [rsp + 0xb4]
je 0x14000157a
mov r8, qword [rbx + 0x90]
mov ecx, 7
call qword [rbx + 0x48]
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x68], eax
je 0x1400015a4
xor edx, edx
mov rcx, rbx
call fcn.1400025d0
test eax, eax
je 0x1400015a4
mov r8, qword [rbx + 0x90]
xor edx, edx
lea ecx, [rdx + 8]
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x6c]
cmp edx, dword [rsp + 0xbc]
je 0x1400015c0
mov r8, qword [rbx + 0x90]
mov ecx, 9
call qword [rbx + 0x48]
mov rbp, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400015e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbp, rdx
or r9d, 0xffffffff
lea rdx, str.Start_WriteService
or r8d, r9d
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], 1
call fcn.140001970
mov rcx, rsi
call fcn.140001700
test rax, rax
mov rdi, rax
jne 0x14000164d
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140001700
test rax, rax
mov rdi, rax
je 0x1400016b6
lea rcx, [rsp + 0x48]
mov rdx, rbp
mov r8d, 0x44
mov dword [rsp + 0x40], 0xae0ae0ae
mov dword [rsp + 0x44], 1
call fcn.14000cf50
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x88
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400016a2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
lea rdx, str.WriteService_successful
jne 0x1400016bd
lea rdx, str.WriteService_failed
or r9d, 0xffffffff
mov rcx, rsi
mov dword [rsp + 0x20], 0
or r8d, r9d
call fcn.140001970
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140003f10
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret