joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007830
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000d8f0
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.1400080f0
mov edx, 1
lea rcx, [0x140006cf0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [fcn.140015d90]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400079d8
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002450
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140007bc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007cb0
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000e4e0
test eax, eax
js 0x140007cb0
mov rcx, r12
call fcn.14000e580
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007cb0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007cb0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000e4e0
test eax, eax
js 0x140007cb0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140007cb0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007c9a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007cd0
mov rbx, r15
test rbx, rbx
jne 0x140007c80
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007c29
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007cb2
Function at 0x140008270
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000d8f0
sub rsp, rax
mov rsi, rcx
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140008370
xor ebx, ebx
lea rdi, [rsp + 0x60]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400082e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140008400
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call rdi
test eax, eax
jne 0x1400083a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400082c6
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x1400082c6
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x1400082cd
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x1400082cd
mov eax, 0xffffffff
jmp 0x140008356

Function at 0x140008a50
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test ecx, ecx
je 0x140008ac4
mov r11d, 3
lea rbx, [0x14001a780]
jmp 0x140008a78
add r11d, 1
sar ecx, 1
je 0x140008ac4
test cl, 1
je 0x140008a70
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x140008aab
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x140008a98
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x140008a98
add r11d, 1
sar ecx, 1
jne 0x140008a78
mov eax, r10d
pop rbx
ret
Function at 0x14000cb30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015d90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015d90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000cba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140023364]
mov rbx, rcx
test esi, esi
jle 0x14000ccd0
mov rax, qword [0x140023368]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000cbeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000cc75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000cbd0
mov rcx, rbx
call fcn.14000d610
mov rdi, rax
test rax, rax
je 0x14000ccf2
mov rax, qword [0x140023368]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d750
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140023368]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ccd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000cc6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000cc80
add dword [0x140023364], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140023368]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cc6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000cb30
nop dword [rax]
xor esi, esi
jmp 0x14000cbf8
mov rax, qword [0x140023368]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000cb30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000cb30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400233c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400233a0]
test rbx, rbx
je 0x14000d2dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000d2d3
test eax, eax
jne 0x14000d2d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d2b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000d610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001e660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d630
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000d68d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d684
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d630
add rax, 0x28
cmp rax, r9
jne 0x14000d670
xor eax, eax
ret

Function at 0x14000d690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001e660]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000d6af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000d6b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000d6af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000d750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001e660]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d76f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d778
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x43ad69
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x18], rdx
fld xword [rbp + 0x30]
fstp xword [rsp + 0x20]
call fcn.0043a231
mov dword [rbp - 0x2c], eax
mov r11d, dword [rbp - 0x2c]
mov dword [rbp - 0x28], r11d
mov r11d, dword [rbp - 0x28]
mov dword [rbp - 0x24], r11d
mov r11d, dword [rbp - 0x24]
mov dword [rbp - 0x30], r11d
cmp dword [rbp - 0x30], 0x40
je 0x43adb7
cmp dword [rbp - 0x30], 5
je 0x43adb7
cmp dword [rbp - 0x30], 7
je 0x43adb7
cmp dword [rbp - 0x30], 1
jne 0x43adbf
fld xword [rbp + 0x30]
jmp 0x43af99
fld xword [rbp + 0x30]
fstp xword [rbp - 0x10]
lea r11, [rbp - 8]
mov qword [rbp - 0x20], r11
jmp 0x43ae43
fld xword [rbp - 0x10]
fld xword [0x4619b0]
fucompi st(1)
fstp st(0)
jp 0x43aded
jne 0x43aded
fld xword [0x4619b0]
jmp 0x43af99
mov r11d, dword [rbp + 0x18]
or r11d, r11d
jle 0x43ae08
fld xword [0x4619a0]
fld xword [rbp - 0x10]
fmulp st(1)
fstp xword [rbp - 0x10]
dec dword [rbp + 0x18]
cmp dword [rbp + 0x18], 0
jge 0x43ae32
cmp dword [rbp + 0x18], 0xffffffc0
jge 0x43ae20
fld xword [0x4619b0]
jmp 0x43af99
fld xword [0x461990]
fld xword [rbp - 0x10]
fmulp st(1)
fstp xword [rbp - 0x10]
inc dword [rbp + 0x18]
mov r11d, dword [rbp + 0x18]
or r11d, r11d
jne 0x43ae43
fld xword [rbp - 0x10]
jmp 0x43af99
mov r11, qword [rbp - 0x20]
movzx r11d, word [r11]
and r11d, 0x7fff
mov dword [rbp - 0x34], r11d
mov r11d, dword [rbp - 0x34]
mov dword [rbp - 0x14], r11d
or dword [rbp - 0x34], 0
je 0x43adcf
mov r11d, dword [rbp - 0x14]
add r11d, dword [rbp + 0x18]
mov dword [rbp - 0x14], r11d
cmp dword [rbp - 0x14], 0x7fff
jle 0x43aef7
call fcn.0043ad60
fstp xword [rbp - 0x60]
fld xword [rbp - 0x60]
fstp xword [rbp - 0x50]
fld xword [rbp - 0x50]
sub rsp, 8
fstp qword [rsp]
movq xmm5, qword [rsp]
add rsp, 8
movsd qword [rbp - 0x40], xmm5
fld xword [rbp + 0x30]
fld xword [0x4619b0]
fucompi st(1)
fstp st(0)
jp 0x43aeb5
ja 0x43aeb7
jmp 0x43aedd
movq xmm5, qword [rbp - 0x40]
sub rsp, 0x10
mov dword [rsp], 0
mov dword [rsp + 4], 0x80000000
xorpd xmm5, xmmword [rsp]
add rsp, 0x10
movsd qword [rbp - 0x40], xmm5
movsd xmm5, qword [rbp - 0x40]
sub rsp, 8
movq qword [rsp], xmm5
fld qword [rsp]
add rsp, 8
jmp 0x43af99
mov r11, qword [rbp - 0x20]
mov qword [rbp - 0x40], r11
mov r11, qword [rbp - 0x40]
mov r10, qword [rbp - 0x40]
movzx r10d, word [r10]
and r10d, 0x8000
mov word [r11], r10w
cmp dword [rbp - 0x14], 1
jge 0x43af6f
cmp dword [rbp - 0x14], 0xffffffc0
jge 0x43af2b
fld xword [0x4619b0]
jmp 0x43af99
mov r11, qword [rbp - 0x20]
lea r11, [r11 - 2]
mov qword [rbp - 0x48], r11
mov r11, qword [rbp - 0x48]
mov r10, qword [rbp - 0x48]
movzx r10d, word [r10]
or r10d, 0x8000
mov word [r11], r10w
jmp 0x43af62
fld xword [0x461990]
fld xword [rbp - 0x10]
fmulp st(1)
fstp xword [rbp - 0x10]
inc dword [rbp - 0x14]
cmp dword [rbp - 0x14], 1
jl 0x43af50
mov dword [rbp - 0x14], 0
mov r11, qword [rbp - 0x20]
mov qword [rbp - 0x48], r11
mov r11, qword [rbp - 0x48]
mov r10, qword [rbp - 0x48]
movzx r10d, word [r10]
movzx r9d, word [rbp - 0x14]
and r9d, 0x7fff
or r10d, r9d
mov word [r11], r10w
fld xword [rbp - 0x10]
add rsp, 0x90
leave
ret
Function at 0x14000b520
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rcx, str.Checking_if_OS_is_modified
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000b610
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
lea r8d, [rax + 0x32]
lea rdx, str.__Failed_to_check_if_the_OS_is_modified__Error_31_
lea rcx, [rbp - 0x20]
call fcn.140002270
nop
lea rcx, [0x140053cb0]
call fcn.14000b8c0
lea rdx, str._X_
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000b78c
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b5fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b7a2
call fcn.140016434
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
mov r8d, 4
lea rdx, str.WinDefend
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
test rax, rax
jne 0x14000b6e0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov r8d, 0x43
lea rdx, str.__The_OS_is_likely_modified__the__WinDefend__service_doesnt_exist_
call fcn.140002270
nop
lea rcx, [0x140053cf0]
call fcn.14000b8c0
lea rdx, [0x14004bfac]
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000b783
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b6d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b7a8
call fcn.140016434
jmp 0x14000b783
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
lea r8d, [rax + 0x1d]
lea rdx, str.__The_OS_is_likely_unmodified
call fcn.140002270
nop
lea rcx, [0x140053ca0]
call fcn.14000b8c0
lea rdx, str.__
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000fbf0
lea rcx, [0x140054530]
call fcn.14000d570
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000b77a
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b775
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b79c
call fcn.140016434
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
call fcn.14001d19c
int3
call fcn.14001d19c
int3
call fcn.14001d19c
int3
Function at 0x140014058
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140014086
xor eax, eax
jmp 0x14001416c
cmp qword [rcx + 0x68], 0
je 0x140014097
call fcn.14000c800
jmp 0x14001416c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400140ae
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400140b0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400140e2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003c780
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140014166
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140014119
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140014142
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140024868
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140014166
cmp rsi, rbx
ja 0x140014120
test rsi, rsi
je 0x140014166
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140024868
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x1400146ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400146e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400146eb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140014734
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400406c0]
cmp byte [rcx + rax], 0
je 0x140014734
dec r8
sub rdx, 1
jne 0x14001471a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400171f8
Capabilities:
Parse pe header

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

Function at 0x140027604
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140027400
Function at 0x14002b760
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002b780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140023ab8
or eax, 0xffffffff
jmp 0x14002b782
xor eax, eax
add rsp, 0x28
ret
Function at 0x140030128
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140016cb0
sub rsp, rax
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002dbc0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140030177
mov rax, rbp
jmp 0x14003027f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x55790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140031248
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x55790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003027b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003027b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140031248
test rax, rax
js 0x14003027b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003027b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003026d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003026d
cmp byte [rcx], 0xd
jne 0x140030253
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140030262
cmp byte [rcx + 1], 0xa
jne 0x140030262
inc rcx
jmp 0x140030262
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x53480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140030235
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003027f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400163d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400304a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400304b6
mov al, 1
jmp 0x140030516
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400304c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140030514
mov ecx, dword [rcx + 0x18]
nop
call fcn.140035080
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030514
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140030514
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140030514
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140030516
xor al, al
add rsp, 0x20
pop rbx
ret