joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013766
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140013801
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x94
call fcn.140018ff4
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jne 0x1400137d5
cmp dword [rsp + 0x28], 0
je 0x140013801
lea rdx, str.SetDefaultDllDirectories
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013801
mov ecx, 0xc00
call rax
lea rcx, str.restrict_DLL_directories
call fcn.140011192
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140015ae6
add rsp, 0xd0
pop rbx
ret

Function at 0x14001381a
Capabilities:
Create directory

Disassembly:
push rbx
mov eax, 0x17a0
call fcn.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140006a37
xor ecx, ecx
call fcn.1400175ef
lea r8, [rsp + 0x20]
lea rdx, str._s_dir_d
lea rcx, [0x140136720]
mov r9, rax
call fcn.14001697d
lea rdx, [0x140136720]
lea rcx, str.Temp_dir3:__S
call fcn.140011192
lea rcx, [0x140136720]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400138ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400409c8]
mov edx, eax
call fcn.140011192
inc ebx
cmp ebx, 0xa
jl 0x14001383d
lea rdx, [0x1400409c4]
mov ecx, 0x3f1
mov byte [0x140136720], 0
call fcn.140005384
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140015ae6
add rsp, 0x17a0
pop rbx
ret

Function at 0x1400138e6
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140013974
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140013974
lea ecx, [rax + 2]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret
Function at 0x140013af6
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, 0xbb80
mov rcx, rbx
call fcn.140015112
mov ecx, 0x2ee0
mov rdi, rax
call fcn.140015112
mov r8d, 0x1770
mov rdx, rax
mov ecx, 0x2714
mov rsi, rax
call fcn.1400048ef
lea rcx, str.native_lib_dir_is__S
mov rdx, rsi
call fcn.140011192
mov rcx, rsi
call fcn.140008d2f
lea r8, [0x140013ac6]
mov rdx, rsi
mov rcx, rdi
call fcn.140006f4d
mov rcx, rdi
call fcn.140015251
test rax, rax
je 0x140013b91
mov rcx, rdi
call fcn.140015251
cmp byte [rax + rdi - 1], 0x3b
je 0x140013b91
lea rdx, [0x14003d1fc]
mov rcx, rdi
call fcn.14001588c
mov rcx, rdi
call fcn.140015251
mov rcx, rdi
sub ebx, eax
call fcn.140015251
lea rcx, str.PATH
lea rdx, [rdi + rax]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rcx, str.PATH
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x140013be3
lea rcx, str.Setting_PATH__native_libs___S
mov rdx, rdi
call fcn.140011192
jmp 0x140013bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Setting_PATH__native_libs___S_failed_with_error__d
mov rdx, rdi
mov r8d, eax
call fcn.140011192
mov rcx, rdi
call fcn.140015251
lea rcx, [rax + 6]
call fcn.140015112
lea rdx, str.PATH_s
mov r8, rdi
mov rcx, rax
mov rbx, rax
call fcn.14001697d
mov rcx, rbx
call fcn.140019836
mov rcx, rbx
call fcn.140015678
mov rcx, rdi
call fcn.140015678
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140015678
Function at 0x140014c6b
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x4740
call fcn.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0x4730], rax
mov rsi, rcx
lea rcx, [rsp + 0xe0]
mov rdi, rdx
call fcn.14001595b
lea rcx, str..pack
call fcn.140015251
lea rbx, [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
sub rbx, rax
call fcn.140015251
xor ebp, ebp
mov rcx, rdi
mov byte [rax + rbx], bpl
call fcn.140005d05
cmp al, bpl
jne 0x140014cf1
lea rcx, str.pack_path_doesnt_exists
call fcn.140011192
jmp 0x140014e4e
lea rdx, str._s_binunpack200.exe
lea rcx, [rsp + 0x2fc0]
mov r8, rsi
call fcn.14001697d
lea r9, [rsp + 0xe0]
lea rdx, str._r___s____s_
lea rcx, [rsp + 0x1850]
mov r8, rdi
call fcn.14001697d
lea rdx, [rsp + 0x2fc0]
lea rcx, [0x14003d068]
call fcn.140011192
lea rdx, [rsp + 0x1850]
lea rcx, [0x14003d068]
call fcn.140011192
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
call fcn.140018ff4
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8, rbx
xor edx, edx
call fcn.140018ff4
lea ecx, [rbx - 0x67]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov dword [rsp + 0xac], ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x1850]
lea rcx, [rsp + 0x2fc0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x70], ebx
mov word [rsp + 0xb0], bp
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebp
jne 0x140014df4
lea rcx, str.could_not_create_unpack_process
call fcn.140011192
lea rdx, [0x1400410c0]
mov ecx, 0x3f1
call fcn.140005384
lea rcx, str.waiting_for_unpack200_to_finish
call fcn.140011192
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.unpack_done
call fcn.140011192
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, ebp
jne 0x140014e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140014e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_delete_packed_file__error__d_
mov edx, eax
call fcn.140011192
mov rcx, qword [rsp + 0x4730]
xor rcx, rsp
call fcn.140015ae6
mov rbx, qword [rsp + 0x4770]
add rsp, 0x4740
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014e73
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x3060
call fcn.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0x3050], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov r8, rcx
mov r9, rdx
lea rcx, [rsp + 0x170]
lea rdx, str._s_s.jar.pack
call fcn.14001697d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014feb
lea rcx, [rsp + 0x5c]
call fcn.140015251
lea rcx, [rsp + 0x5c]
lea rdx, str._s_s_.s
mov qword [rsp + 0x28], rcx
sub rax, 5
lea rcx, [rsp + 0x170]
mov r9, rbp
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.14001697d
lea rdx, [rsp + 0x170]
lea rcx, str.checking__S
call fcn.140011192
lea rcx, [rsp + 0x170]
call fcn.140005d05
test al, al
jne 0x140014fcc
cmp byte [rdi], al
jne 0x140014f6e
lea rcx, str.Unpacking_JRE
call fcn.140011192
lea rcx, str.Preparing_JRE_..._n
call fcn.14001a46a
call fcn.140017031
lea rcx, [rax + 0x30]
call fcn.140016e3b
mov byte [rdi], 1
lea rcx, [rsp + 0x5c]
call fcn.140015251
lea rcx, [rsp + 0x5c]
lea rdx, str._s_.s
mov qword [rsp + 0x20], rcx
lea r9, [rax - 5]
lea rcx, [rsp + 0x170]
mov r8, rbp
call fcn.14001697d
lea r9, [rsp + 0x170]
lea rdx, str._s_s.pack
lea rcx, [rsp + 0x18e0]
mov r8, rsi
call fcn.14001697d
lea rdx, [rsp + 0x18e0]
mov rcx, rsi
call fcn.140014c6b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140014edd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3050]
xor rcx, rsp
call fcn.140015ae6
mov rbx, qword [rsp + 0x3098]
add rsp, 0x3060
pop rdi
pop rsi
pop rbp
ret

Function at 0x140015251
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14001527a
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400152f9
test al, 7
jne 0x140015265
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14001528e
mov rdx, qword [rax - 8]
test dl, dl
je 0x140015323
test dh, dh
je 0x14001531d
shr rdx, 0x10
test dl, dl
je 0x140015317
test dh, dh
je 0x140015311
shr rdx, 0x10
test dl, dl
je 0x14001530b
test dh, dh
je 0x140015305
shr edx, 0x10
test dl, dl
je 0x1400152ff
test dh, dh
jne 0x14001528e
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret
Function at 0x140015a46
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, dword [r8]
mov rbx, rdx
mov r9, rcx
and r11d, 0xfffffff8
test byte [r8], 4
mov r10, rcx
je 0x140015a79
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
add r10, rcx
movsxd rcx, eax
and r10, rcx
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
add rcx, qword [rbx + 8]
test byte [rcx + 3], 0xf
je 0x140015aa1
movzx eax, byte [rcx + 3]
and eax, 0xfffffff0
cdqe
add r9, rax
xor r9, rdx
mov rcx, r9
add rsp, 0x20
pop rbx
jmp fcn.140015ae6

Function at 0x140015ae6
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401279c0]
jne 0x140015b08
rol rcx, 0x10
test cx, 0xffff
jne 0x140015b04
repz ret
ror rcx, 0x10
jmp 0x14001a893
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140137fc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1401380b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001a91f
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140137fc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001a941
mov rax, qword [rsp + 0x88]
mov qword [0x1401380b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140138058], rax
mov rax, qword [0x1401380b8]
mov qword [0x140137f30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140138040], rax
mov dword [0x140137f20], 0xc0000409
mov dword [0x140137f24], 1
mov rax, qword [0x1401279c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401279c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140137fb8], eax
mov ecx, 1
call fcn.14001a9ea
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140041670]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140137fb8], 0
jne 0x14001a9cc
mov ecx, 1
call fcn.14001a9ea
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140017b49
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140017b68
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017b6a
xor eax, eax
test eax, eax
je 0x140017b81
mov ecx, eax
call fcn.14001a010
or eax, 0xffffffff
jmp 0x140017b83
xor eax, eax
add rsp, 0x28
ret

Function at 0x140017b8b
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140017ba8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017baa
xor eax, eax
test eax, eax
je 0x140017bc1
mov ecx, eax
call fcn.14001a010
or eax, 0xffffffff
jmp 0x140017bc3
xor eax, eax
add rsp, 0x28
ret
Function at 0x140017c0d
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140017c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017c2e
xor eax, eax
test eax, eax
je 0x140017c45
mov ecx, eax
call fcn.14001a010
or eax, 0xffffffff
jmp 0x140017c47
xor eax, eax
add rsp, 0x28
ret

Function at 0x140017c4f
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140017c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017c6e
xor eax, eax
test eax, eax
je 0x140017c85
mov ecx, eax
call fcn.14001a010
or eax, 0xffffffff
jmp 0x140017c87
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400193ae
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400193cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400193cd
xor eax, eax
test eax, eax
je 0x1400193e4
mov ecx, eax
call fcn.14001a010
or eax, 0xffffffff
jmp 0x1400193e6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001ef65
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001feb0
nop
cmp dword [0x1401384f8], 1
je 0x14001f0b7
mov dword [0x1401384f4], 1
mov byte [0x1401384f0], r12b
test ebx, ebx
jne 0x14001f0a3
mov rcx, qword [0x140138ff0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001f090
mov rcx, qword [0x140138fe8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001f020
call fcn.14001a9fa
cmp qword [rdi], rax
jne 0x14001f020
jmp 0x14001effb
cmp rdi, rsi
jb 0x14001f090
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001a9fa
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140138ff0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140138fe8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001f06b
cmp r13, rax
je 0x14001f08b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001effb
lea rdx, [0x14003c580]
lea rcx, [0x14003c568]
call fcn.14001ee0a
lea rdx, [0x14003c590]
lea rcx, [0x14003c588]
call fcn.14001ee0a
nop
test r12d, r12d
je 0x14001f0ca
mov ecx, 8
call fcn.14001fd90
test r12d, r12d
jne 0x14001f0f9
mov dword [0x1401384f8], 1
lea ecx, [r12 + 8]
call fcn.14001fd90
mov ecx, r15d
call fcn.14001ed96
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001ef65

Function at 0x14001f113
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ef65
Function at 0x14001f11f
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001feb0
nop
cmp dword [0x1401384f8], 1
je 0x14001f0b7
mov dword [0x1401384f4], 1
mov byte [0x1401384f0], r12b
test ebx, ebx
jne 0x14001f0a3
mov rcx, qword [0x140138ff0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001f090
mov rcx, qword [0x140138fe8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001f020
call fcn.14001a9fa
cmp qword [rdi], rax
jne 0x14001f020
jmp 0x14001effb
cmp rdi, rsi
jb 0x14001f090
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001a9fa
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140138ff0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140138fe8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001f06b
cmp r13, rax
je 0x14001f08b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001effb
lea rdx, [0x14003c580]
lea rcx, [0x14003c568]
call fcn.14001ee0a
lea rdx, [0x14003c590]
lea rcx, [0x14003c588]
call fcn.14001ee0a
nop
test r12d, r12d
je 0x14001f0ca
mov ecx, 8
call fcn.14001fd90
test r12d, r12d
jne 0x14001f0f9
mov dword [0x1401384f8], 1
lea ecx, [r12 + 8]
call fcn.14001fd90
mov ecx, r15d
call fcn.14001ed96
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001ef65
Function at 0x1400212be
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push r14
sub rsp, 0x30
lea r14, [0x140128960]
mov edi, ecx
xor ebx, ebx
mov rax, r14
cmp ecx, dword [rax]
je 0x1400212f8
inc ebx
add rax, 0x10
cmp ebx, 0x17
jb 0x1400212e1
cmp ebx, 0x17
jae 0x140021500
mov ecx, 3
call fcn.140022d20
cmp eax, 1
je 0x1400214b3
mov ecx, 3
call fcn.140022d20
test eax, eax
jne 0x140021333
cmp dword [0x140127f90], 1
je 0x1400214b3
cmp edi, 0xfc
je 0x140021500
lea rdi, [0x140138790]
mov r13d, 0x314
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
mov rdx, r13
call fcn.14001a77b
test eax, eax
je 0x14002137b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b16
lea rdx, [0x1401387a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1401388ad], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400213d4
lea r8, str._program_name_unknown_
lea rcx, [0x1401387a9]
mov edx, 0x2fb
call fcn.14001a77b
test eax, eax
je 0x1400213d4
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b16
lea rcx, [0x1401387a9]
call fcn.140015251
inc rax
cmp rax, 0x3c
jbe 0x140021437
lea rcx, [0x1401387a9]
call fcn.140015251
lea rdx, [0x140138aa4]
lea r8, [0x140041d94]
lea rcx, [rax + rdi - 0x22]
mov r9d, 3
sub rdx, rcx
call fcn.14002a1c0
test eax, eax
je 0x140021437
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b16
lea r8, [0x140041d90]
mov rdx, r13
mov rcx, rdi
call fcn.14002a107
test eax, eax
je 0x140021466
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b16
movsxd r8, ebx
mov rdx, r13
mov rcx, rdi
add r8, r8
mov r8, qword [r14 + r8*8 + 8]
call fcn.14002a107
test eax, eax
je 0x140021499
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b16
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rdi
call fcn.14002a3b2
jmp 0x140021500
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
test rax, rax
je 0x140021500
cmp rax, 0xffffffffffffffff
je 0x140021500
movsxd rbx, ebx
add rbx, rbx
mov rcx, qword [r14 + rbx*8 + 8]
call fcn.140015251
mov rdx, qword [r14 + rbx*8 + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140022618
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001a9fa
xor ebx, ebx
mov rdi, rax
cmp qword [0x140138ae0], rbx
jne 0x140022728
lea rcx, [0x140041e80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140022837
lea rdx, [0x140041e70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022837
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140138ae0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140041e48]
mov rcx, rsi
mov qword [0x140138ae8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140138af0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140138b00], rax
test rax, rax
je 0x14002271c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140138af8], rax
jmp 0x14002272f
mov rax, qword [0x140138af8]
jmp 0x140022736
mov rax, qword [0x140138af8]
mov r11, qword [0x140138b00]
cmp rax, rdi
je 0x1400227bd
cmp r11, rdi
je 0x1400227bd
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140138b00]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400227bd
test rax, rax
je 0x1400227bd
call rsi
test rax, rax
je 0x1400227b4
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400227b4
test byte [rsp + 0x38], 1
jne 0x1400227bd
bts ebp, 0x15
jmp 0x14002280f
mov rcx, qword [0x140138ae8]
cmp rcx, rdi
je 0x14002280f
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002280f
call rax
mov rbx, rax
test rax, rax
je 0x14002280f
mov rcx, qword [0x140138af0]
cmp rcx, rdi
je 0x14002280f
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002280f
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140138ae0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140022837
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140022839
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret