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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140048ea0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140024dcf
cmp word [rdx], r13w
jne 0x140024dcf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140024dd4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140024f05
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140024f26
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140024e0d
mov rdx, r9
mov word [rbx], cx
jmp 0x140024e34
cmp r9, r8
jae 0x140024e44
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140024dee
jmp 0x140024f05
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], si
mov r8d, r12d
mov dword [rsp + 0x80], esi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024efa
cmp dword [rsp + 0x80], esi
je 0x140024efa
lea r8, [0x140048ea0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140024ed2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140024ea2
mov word [rbx], r13w
jmp 0x140024f02
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140024eaf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140024f02
cmp word [rsp + 0x70], r13w
jne 0x140024edf
cmp rbx, r14
je 0x140024e9c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140025a08
cmp word [rsp + 0x70], r13w
je 0x140024f05
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140048ea0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140024eff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140024f05
Function at 0x1400270d8
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 0x14002715f
mov rsi, rbx
cmp word [rax], bp
je 0x14002711e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140027108
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140027104
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400223e4
mov rdi, rax
test rax, rax
je 0x14002714c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140014480
mov rbp, rdi
xor ecx, ecx
call fcn.140021ccc
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 0x140029cf8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140029d6b
cmp word [rcx], si
je 0x140029d6b
lea rdx, [0x140038e78]
call fcn.14002d010
test eax, eax
je 0x140029d6b
lea rdx, [0x140038e90]
mov rcx, rbx
call fcn.14002d010
test eax, eax
jne 0x140029d61
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140029d88
mov eax, dword [rsp + 0x30]
jmp 0x140029d9a
mov rcx, rbx
call fcn.140021bf0
jmp 0x140029d9a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140029d8c
xor eax, eax
jmp 0x140029d9a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140029d9a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140029dac
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140022080
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140029e4f
cmp edi, dword [rsp + 0x30]
je 0x140029e48
test ebp, ebp
je 0x140029e48
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140029e24
sub dx, 0x61
cmp dx, 0x19
ja 0x140029e30
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140029e11
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140029e34
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140029e51
mov eax, 1
jmp 0x140029e51
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e6b8
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.140025a08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140025a08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e808
cmp rax, 0xffffffffffffffff
je 0x14002e808
xor edi, edi
test rbp, rbp
jle 0x14002e7b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400224fc
mov rbx, rax
test rax, rax
jne 0x14002e740
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e7a9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001bde0
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.14002411c
cmp eax, 0xffffffff
je 0x14002e789
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e750
mov edx, r15d
mov ecx, r14d
call fcn.14001bde0
jmp 0x14002e7a9
cmp byte [rsi + 0x38], dil
je 0x14002e7a0
cmp dword [rsi + 0x34], 5
jne 0x14002e7a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x14002e7a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140021ccc
jmp 0x14002e81c
jns 0x14002e81c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140025a08
cmp rax, 0xffffffffffffffff
jne 0x14002e7d4
cmp byte [rsi + 0x30], dil
je 0x14002e81c
mov edi, dword [rsi + 0x2c]
jmp 0x14002e81c
mov ecx, r14d
call fcn.140027684
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e81c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x14002e81c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e815
mov eax, dword [rsi + 0x2c]
jmp 0x14002e81a
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140025a08
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 0x14005dc10
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
cmp byte [0x140170271], 0
mov qword [0x140170278], rcx
je 0x14005dc41
lea r8, [0x140145894]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
or eax, 0xffffffff
jmp 0x14005dc6a
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005e018
cmp al, 1
jne 0x14005dc66
add rsp, 0x28
jmp 0x14005e2b4
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
je 0x14005e320
mov dword [0x1401705bc], eax
jmp 0x14005e3e5
mov rdx, qword [rsp + 0x50]
lea r8, [0x140148fc0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
jne 0x14005e3cd
cmp qword [rsp + 0x38], r14
jne 0x14005e370
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e43e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005e41d
mov dword [0x1401705cc], r14d
lea rcx, [0x140170340]
call fcn.14005d718
mov ebx, eax
mov dword [0x1401705bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005e3e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005e3f7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005e436
test al, 1
jne 0x14005e3b8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005e43b
jmp 0x14005e3b8
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401705cc], r14d
test eax, eax
jne 0x14005e3bf
lea rax, [0x1401703a8]
mov dword [0x1401705cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005e570]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005e492
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e3cb
mov ebx, dword [0x1401705bc]
jmp 0x14005e3d3
Function at 0x1400cd874
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x49]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov r8d, 0x100
mov r14d, 0xf
dec r8d
movsxd rax, r8d
movzx ecx, byte [rax + rbx]
mov eax, ecx
shr rcx, 4
and rax, r14
inc dword [rbp + rax*4 - 0x49]
inc dword [rbp + rcx*4 - 0x49]
test r8d, r8d
jne 0x1400cd8be
cmp dword [rbp - 0x49], 0x1ff
jge 0x1400cd929
movaps xmm1, xmmword [rbp - 0x39]
mov r8d, r14d
movaps xmm0, xmmword [rbp - 0x49]
movaps xmmword [rbp + 7], xmm1
movaps xmm1, xmmword [rbp - 0x19]
movaps xmmword [rbp + 0x27], xmm1
movaps xmmword [rbp - 9], xmm0
movaps xmm0, xmmword [rbp - 0x29]
psrldq xmm1, 0xc
movd edx, xmm1
movaps xmmword [rbp + 0x17], xmm0
jmp 0x1400cd924
sar edx, 1
sub r8d, 1
je 0x1400cd950
movsxd rax, r8d
add edx, dword [rbp + rax*4 - 0x49]
test dl, 1
je 0x1400cd915
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp edx, 1
jne 0x1400cd929
xor edx, edx
lea rax, [rbp - 0x45]
mov rcx, r14
add dword [rax], edx
mov edx, dword [rax]
lea rax, [rax + 4]
sub rcx, 1
jne 0x1400cd95e
movsxd r11, dword [rbp - 0xd]
mov edx, 0x2000
lea r9d, [rdx - 0x10]
movsxd rax, r9d
sar rax, 5
movzx r8d, byte [rax + rbx]
shr r8d, 4
test r8d, r8d
je 0x1400cd9a9
mov edx, dword [rbp + r8*4 - 0x49]
movzx ecx, r9w
dec edx
movsxd rax, edx
or cx, r8w
mov dword [rbp + r8*4 - 0x49], edx
mov word [rdi + rax*2], cx
lea edx, [r9 - 0x10]
movsxd rax, edx
sar rax, 5
movzx r8d, byte [rax + rbx]
and r8d, r14d
je 0x1400cd9d6
mov ecx, dword [rbp + r8*4 - 0x49]
dec ecx
movsxd rax, ecx
mov dword [rbp + r8*4 - 0x49], ecx
or r8w, dx
mov word [rdi + rax*2], r8w
test edx, edx
jne 0x1400cd975
mov r9d, 0x800
mov rbx, r11
mov edx, r9d
mov r8, r14
mov r15d, 0x8000
mov r10d, r9d
cmp edx, r9d
jle 0x1400cda10
sub edx, 2
dec r9d
movzx ecx, dx
movsxd rax, r9d
or cx, r15w
mov word [rdi + rax*2], cx
cmp edx, r10d
jg 0x1400cd9f7
mov edx, dword [rbp + r8*4 - 9]
sub edx, 1
js 0x1400cda38
or eax, 0xffffffff
sub eax, edx
add r11d, eax
dec rbx
dec r9d
sub edx, 1
movsxd rcx, r9d
movzx eax, word [rdi + rbx*2]
mov word [rdi + rcx*2], ax
jns 0x1400cda22
dec r8
mov edx, r10d
cmp r8, 0xa
jg 0x1400cd9ef
mov ebx, 0x400
mov r8d, ebx
cmp r10d, r9d
jle 0x1400cda6a
sub edx, 2
dec r8d
movzx ecx, dx
movsxd rax, r8d
or cx, r15w
mov word [rdi + rax*2], cx
cmp edx, r9d
jg 0x1400cda51
movsxd r9, r11d
test r11d, r11d
jle 0x1400cda9f
dec r9
mov edx, ebx
mov r10d, r8d
movzx r11d, word [rdi + r9*2]
mov ecx, r11d
and ecx, r14d
sar edx, cl
sub r10d, edx
dec r8d
movsxd rcx, r8d
mov word [rdi + rcx*2], r11w
cmp r8d, r10d
jne 0x1400cda8a
test r9, r9
jg 0x1400cda72
mov eax, 1
jmp 0x1400cd92b
Function at 0x14013b310
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1401714c4], 0
mov rbx, rcx
movups xmm0, xmmword [0x140151210]
movdqu xmmword [rcx], xmm0
je 0x14013b345
mov ecx, dword [0x1401714c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14013b345
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14013d7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x14013d853
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x140171580]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14013d85d
lea edi, [rax + 0xe]
jmp 0x14013d904
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
mov ecx, r12d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x14013d8af
cmp ecx, 0x80000005
je 0x14013d8af
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x14013d8e3
test rbp, rbp
je 0x14013d8d2
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x14013d8cd
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14013d8d2
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14013d8e3
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14013d904
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14013d904
mov rcx, qword [0x140171580]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013e2a0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0xee85b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xee85bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xee85cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xee85b5
lea eax, [rcx + 1]
jmp 0xee85db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xee85ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xee85d4
sub eax, 3
jb 0xee860e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xee865d
sar eax, 1
movsxd rbp, eax
jb 0xee8644
jmp 0xee861c
add ebx, ebx
jne 0xee861a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xee8644
inc ecx
add ebx, ebx
jne 0xee862a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xee8644
call r11
adc ecx, ecx
add ebx, ebx
jne 0xee863d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xee862c
add ecx, 2
jmp 0xee8649
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00ee8572
jmp 0xee85bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xadc000]
mov eax, dword [rdi]
or eax, eax
je 0xee86b9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xae8000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xee8669
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xee86b3
mov qword [rbx], rax
add rbx, 8
jmp 0xee8689
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xee86fd
cmp al, 0xef
ja 0xee86e5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xee86c5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xee86d4
mov eax, dword [rdi]
add rdi, 4
jmp 0xee86d4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xee8751
sub rsp, 0xffffffffffffff80
jmp 0x469120
Function at 0x140027db0
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.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
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.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
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 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
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 0x140001000
Capabilities:
Power down monitor

Disassembly:
sub rsp, 0x28
mov edx, 0x112
mov r9d, 2
mov r8d, 0xf170
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001004

Function at 0x14000191c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004410]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004420]
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004400]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a