joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp - 0x30], rcx
mov rax, rcx
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x70], rcx
lea rdx, str.SOFTWAREMicrosoftCryptography
lea rcx, [rbp + 0x48]
call fcn.1400a0900
lea rdx, str.MachineGuid
lea rcx, [rbp + 0x28]
call fcn.1400a0900
jmp 0x1400a069c
mov rcx, qword [rbp - 0x30]
mov byte [rbp + 0x27], 0
call fcn.14009aa00
lea rcx, [rbp + 0x48]
call fcn.14009b040
mov rdx, rax
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 0
jne 0x1400a0811
mov dword [rbp + 0x1c], 0
lea rcx, [rbp + 0x28]
call fcn.14009b040
mov rdx, rax
mov rcx, qword [rbp + 0x68]
xor eax, eax
mov r8d, eax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x1c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x1400a0802
cmp dword [rbp + 0x20], 1
jne 0x1400a07f3
lea rcx, [rbp - 8]
mov qword [rbp - 0x38], rcx
call fcn.1400a0970
mov r8, qword [rbp - 0x38]
mov eax, dword [rbp + 0x1c]
mov edx, eax
shr rdx, 1
mov rcx, rbp
call fcn.1400a0b00
jmp 0x1400a074e
mov rcx, rbp
xor eax, eax
mov edx, eax
call fcn.1400a0bd0
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x28]
call fcn.14009b040
mov r10, qword [rbp - 0x40]
mov rdx, rax
mov rcx, qword [rbp + 0x68]
xor eax, eax
mov r9d, eax
lea rax, [rbp + 0x1c]
mov r8, r9
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x1400a07e6
mov rcx, rbp
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x48], rdx
call fcn.1400a1100
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x10]
mov r8d, 1
call fcn.1400a1190
jmp 0x1400a07bf
mov rcx, rbp
lea rdx, [rbp - 0x20]
call fcn.1400a1460
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.1400a1040
jmp 0x1400a07e1
jmp 0x1400a07e6
mov rcx, rbp
call fcn.1400a14f0
jmp 0x1400a07fd
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a0802
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a0816
jmp 0x1400a0816
mov byte [rbp + 0x27], 1
test byte [rbp + 0x27], 1
jne 0x1400a082d
mov rcx, qword [rbp - 0x30]
call fcn.14009add0
lea rcx, [rbp + 0x28]
call fcn.14009add0
lea rcx, [rbp + 0x48]
call fcn.14009add0
mov rax, qword [rbp - 0x28]
add rsp, 0x100
pop rbp
ret
Function at 0x1400a49f0
Capabilities:
Get hostname

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x20], rcx
mov rax, rcx
mov qword [rbp - 0x28], rax
mov rax, rcx
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0x10
mov byte [rbp - 0x15], 0
mov eax, dword [rbp - 0x14]
mov edx, eax
xor r8d, r8d
call fcn.1400a4ad0
mov rcx, qword [rbp - 0x20]
xor eax, eax
mov edx, eax
call fcn.1400a4b50
mov rdx, rax
mov ecx, 5
lea r8, [rbp - 0x14]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, 0
jne 0x1400a4a86
lea rcx, str.function.cpp
lea rdx, str.YC1HL1rxWi2Q5qroMhNfEzUHRpNSsQ
call fcn.14019a010
jmp 0x1400a4a6c
mov rcx, qword [rbp - 0x20]
lea rdx, [0x1401ef888]
call fcn.1400a4b90
jmp 0x1400a4a81
jmp 0x1400a4a86
mov byte [rbp - 0x15], 1
test byte [rbp - 0x15], 1
jne 0x1400a4a9d
mov rcx, qword [rbp - 0x20]
call fcn.14009add0
mov rax, qword [rbp - 0x28]
add rsp, 0x50
pop rbp
ret
Function at 0x1400a57a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x18], 0
xor eax, eax
mov ecx, eax
xor edx, edx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jge 0x1400a57ee
mov qword [rbp + 0x30], 0
jmp 0x1400a5a17
xor eax, eax
mov r9d, eax
mov edx, 0xffffffff
xor eax, eax
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jge 0x1400a5850
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rbp + 0x30], 0
jmp 0x1400a5a17
lea rax, [rbp + 0x20]
lea rcx, [0x1401e0470]
xor edx, edx
mov r8d, 1
lea r9, [0x1401e0480]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jge 0x1400a5895
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rbp + 0x30], 0
jmp 0x1400a5a17
lea rdx, str.ROOTCIMV2
lea rcx, [rbp - 8]
mov qword [rbp - 0x28], rcx
call fcn.1400a0900
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x20], rax
call fcn.14009b040
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400a2af0
jmp 0x1400a58cb
lea rcx, [rbp - 0x10]
call fcn.1400a2b90
mov rcx, qword [rbp - 0x20]
mov rdx, rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov r8, rsp
lea r9, [rbp + 0x18]
mov qword [r8 + 0x40], r9
mov qword [r8 + 0x38], 0
mov qword [r8 + 0x30], 0
mov dword [r8 + 0x28], 0
mov qword [r8 + 0x20], 0
xor r8d, r8d
mov r9d, r8d
mov r8, r9
call rax
mov dword [rbp - 0x2c], eax
jmp 0x1400a5920
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x2c], eax
lea rcx, [rbp - 0x10]
call fcn.1400a30c0
cmp dword [rbp + 0x2c], 0
jge 0x1400a5965
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a594b
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rbp + 0x30], 0
mov dword [rbp - 0x14], 1
jmp 0x1400a5a09
mov rcx, qword [rbp + 0x18]
mov edx, 0xa
xor r8d, r8d
xor eax, eax
mov r9d, eax
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jge 0x1400a59e8
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a59bc
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a59ce
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rbp + 0x30], 0
mov dword [rbp - 0x14], 1
jmp 0x1400a5a09
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a59fa
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x30], rax
mov dword [rbp - 0x14], 1
lea rcx, [rbp - 8]
call fcn.14009add0
jmp 0x1400a5a17
mov rax, qword [rbp + 0x30]
add rsp, 0xc0
pop rbp
ret
Function at 0x1400a5a90
Capabilities:
Reference wmi statements

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov rax, rcx
mov qword [rbp - 0x20], rax
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x68], 0
lea rcx, [rbp + 0x48]
call fcn.14009aa00
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rbp + 0x28]
call fcn.1400a0900
jmp 0x1400a5ae7
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x28]
call fcn.14009b040
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400a2af0
jmp 0x1400a5b09
lea rcx, [rbp + 0x20]
call fcn.1400a2b90
mov qword [rbp - 0x38], rax
lea rdx, [0x1401eea6a]
lea rcx, [rbp + 0x18]
call fcn.1400a3460
jmp 0x1400a5b2b
lea rcx, [rbp + 0x18]
call fcn.1400a2b90
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x38]
mov rdx, rax
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
mov r9, rsp
lea r10, [rbp + 0x68]
mov qword [r9 + 0x28], r10
mov qword [r9 + 0x20], 0
mov r9d, 0x30
call rax
mov dword [rbp - 0x3c], eax
jmp 0x1400a5b6c
mov eax, dword [rbp - 0x3c]
mov dword [rbp + 0x74], eax
lea rcx, [rbp + 0x18]
call fcn.1400a30c0
lea rcx, [rbp + 0x20]
call fcn.1400a30c0
cmp dword [rbp + 0x74], 0
jge 0x1400a5be2
lea rcx, str.function.cpp
lea rdx, str.QzRLIG7gHyuG5qvsL19SGA
call fcn.14019a010
jmp 0x1400a5ba6
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a5bb8
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
mov rcx, qword [rbp - 0x28]
lea rdx, [0x1401ef888]
call fcn.1400a0900
jmp 0x1400a5bd6
mov dword [rbp + 0x14], 1
jmp 0x1400a5cea
mov qword [rbp + 8], 0
cmp qword [rbp + 0x68], 0
je 0x1400a5cac
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov rdx, rsp
lea r8, [rbp + 4]
mov qword [rdx + 0x20], r8
mov edx, 0xffffffff
mov r8d, 1
lea r9, [rbp + 8]
call rax
mov dword [rbp - 0x40], eax
jmp 0x1400a5c24
mov eax, dword [rbp - 0x40]
mov dword [rbp], eax
xor eax, eax
cmp eax, dword [rbp + 4]
jne 0x1400a5c3a
jmp 0x1400a5cac
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov rdx, rsp
mov qword [rdx + 0x28], 0
mov qword [rdx + 0x20], 0
lea rdx, str.Caption
xor r8d, r8d
lea r9, [rbp - 0x18]
call rax
mov dword [rbp - 0x44], eax
jmp 0x1400a5c70
mov eax, dword [rbp - 0x44]
mov dword [rbp], eax
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x48]
call fcn.1400a4b90
jmp 0x1400a5c88
mov rax, qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x18]
call rax
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a5ca7
jmp 0x1400a5bea
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a5cbe
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
jmp 0x1400a5cd0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0x48]
call fcn.1400a5710
mov dword [rbp + 0x14], 1
lea rcx, [rbp + 0x28]
call fcn.14009add0
lea rcx, [rbp + 0x48]
call fcn.14009add0
mov rax, qword [rbp - 0x20]
add rsp, 0x110
pop rbp
ret
Function at 0x1400a6720
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x420
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x398], 0xfffffffffffffffe
mov qword [rbp - 0x30], rcx
mov rax, rcx
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x390], rcx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x388], rax
mov rax, 0xffffffffffffffff
cmp qword [rbp + 0x388], rax
jne 0x1400a6795
lea rcx, str.function.cpp
lea rdx, str.RT5LIkvwLjaQqqXoKkMEThUdSYJMvE_dqbuV0ucYlQ
call fcn.14019a010
mov rcx, qword [rbp - 0x30]
call fcn.140002cd0
jmp 0x1400a690d
mov dword [rbp + 0x150], 0x238
mov rcx, qword [rbp + 0x388]
lea rdx, [rbp + 0x150]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 0
jne 0x1400a67d6
mov rcx, qword [rbp + 0x388]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x30]
call fcn.140002cd0
jmp 0x1400a690d
lea rcx, [rbp + 0x58]
mov edx, 3
mov r8d, 1
call fcn.1400a6980
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x17c]
call fcn.1400a6ad0
mov qword [rbp - 0x38], rax
jmp 0x1400a6803
mov rcx, qword [rbp - 0x38]
lea rdx, [0x1401ef886]
call fcn.1400a6ad0
jmp 0x1400a6818
mov rcx, qword [rbp + 0x388]
lea rdx, [rbp + 0x150]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 0
jne 0x1400a67ea
mov rcx, qword [rbp + 0x388]
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x38]
call fcn.1400a6ec0
jmp 0x1400a6856
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x40], rcx
call fcn.1400a76a0
mov rcx, qword [rbp - 0x40]
mov r9, rax
add r9, 0xffffffffffffffff
xor eax, eax
mov r8d, eax
lea rdx, [rbp + 0x18]
call fcn.1400a6f00
jmp 0x1400a6881
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x50], rcx
lea rdx, [rbp + 0x18]
mov qword [rbp - 0x58], rdx
call fcn.1400a7bb0
mov rcx, qword [rbp - 0x58]
call fcn.14009add0
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x48], rcx
call fcn.1400115e0
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x18]
call fcn.1400a7c60
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x20]
call fcn.1400a7d00
mov r9, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
lea rcx, [rbp - 8]
call fcn.1400a7d90
jmp 0x1400a68e0
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 8]
call fcn.140069df0
lea rcx, [rbp - 8]
call fcn.140001b80
lea rcx, [rbp + 0x38]
call fcn.14009add0
lea rcx, [rbp + 0x58]
call fcn.1400a7e50
jmp 0x1400a690d
mov rax, qword [rbp - 0x28]
add rsp, 0x420
pop rbp
ret
Function at 0x1401bda54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401bdb84
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401bdbeb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401bdbeb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401bdbeb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401bdbeb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401bdbeb
cmp dword [rcx + 0x84], 0xe
jbe 0x1401bdbeb
cmp dword [rcx + 0xf8], 0
je 0x1401bdbeb
mov ecx, ebx
call fcn.1401bdad0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401bdd04
cmp dword [rbp + 0x20], 0
je 0x1401bdc38
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401bdb2c
int3
Function at 0x140031690
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400317a2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14003177a
add rax, 1
cmp rax, 0x6b
je 0x140031797
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140031770
cmp edx, 0x6a
je 0x140031797
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14003178b

Function at 0x140031b40
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140225220]
mov rcx, rsi
call fcn.140031400
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.14002ff60
mov ebx, dword [0x140225220]
test ebx, ebx
jne 0x140031bb0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f3e78], eax
cmp eax, 0xffffffff
je 0x1400cb786
mov dword [0x140225220], 1
mov rcx, r13
call fcn.140030280
test r12, r12
je 0x140031be2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400317c0
cmp ebx, 1
je 0x140031b91
mov ecx, 2
call qword [fcn.1400434f0]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140030280
test r12, r12
jne 0x140031b9e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140034b10
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400434f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400434f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140034b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14022df54]
mov r12, rcx
test ebx, ebx
jle 0x140034cb0
mov rax, qword [0x14022df58]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140034bcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140034c55
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140034bb0
mov rcx, r12
call fcn.140035600
mov rsi, rax
test rax, rax
je 0x140034cd2
mov rax, qword [0x14022df58]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140035730
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14022df58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034cb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034c4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034c60
add dword [0x14022df54], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14022df58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034b10
nop dword [rax]
xor ebx, ebx
jmp 0x140034bd8
mov rax, qword [0x14022df58]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034b10
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140034b10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035250
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14022dfc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14022dfa0]
test rbx, rbx
je 0x1400352ac
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400352a3
test r12, r12
je 0x1400352a3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035288
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140035600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14021c260]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140035620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140035628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140035620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140035675
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003566c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140035620
add rax, 0x28
cmp rax, r9
jne 0x140035658
xor eax, eax
ret

Function at 0x140035680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14021c260]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400356a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400356a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400356a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140035730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14021c260]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035750
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140035758
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140035f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x130
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x1400360d8
cmp byte [r12], 0
je 0x1400360b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400360f0
test al, 0x10
je 0x1400360b0
lea rsi, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x14003611f
lea rdx, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140036078
mov rcx, qword [rsp + 0x20]
lea rdi, [r12 + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x244], rcx
mov ecx, eax
mov r8, qword [rsi + rcx - 8]
mov qword [rdx + rcx - 8], r8
mov rcx, rdx
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [r12 + 0x244], 0
je 0x140036018
movzx ecx, byte [r12 + rbx + 0x243]
cmp cl, 0x5c
je 0x140036018
cmp cl, 0x2f
jne 0x1400360c0
nop dword [rax]
mov eax, 0x2a
mov ecx, 0x20
mov word [rdx + rbp], ax
lea rdx, [r12 + 0x130]
xor eax, eax
mov qword [r12 + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x240], 0
mov qword [r12 + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, r12
add rsp, 0x130
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test al, 4
jne 0x140036108
test eax, eax
je 0x140035fef
movzx ecx, byte [rsp + 0x20]
mov byte [rdx], cl
test al, 2
je 0x140035fef
mov ecx, eax
movzx r8d, word [rsi + rcx - 2]
mov word [rdx + rcx - 2], r8w
jmp 0x140035fef
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x140036060
mov ecx, 0x5c
mov rbp, rax
mov word [rdx + rbx], cx
jmp 0x140036018
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x140036060
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x140036060
mov ecx, dword [rsp + 0x20]
mov dword [rdx], ecx
mov ecx, eax
mov r8d, dword [rsi + rcx - 4]
mov dword [rdx + rcx - 4], r8d
jmp 0x140035fef
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x140036060
Function at 0x14004fde0
Capabilities:
Encode data using xor

Disassembly:
push r15
mov r10, rdx
mov r11, rcx
xor edx, edx
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rbx, r8
mov qword [r8], 0
mov qword [r8 + 8], 0
mov qword [r8 + 0x10], 0
mov qword [r8 + 0x18], 0
mov r8d, 0xc004
nop dword [rax]
mov eax, dword [r11 + rdx*4]
mov edi, dword [r10 + rdx*4 + 0xc00]
lea esi, [rax*8]
mov eax, dword [r10 + rdx*4]
lea eax, [rdi + rax*2]
imul eax, eax, 0x3001
sub esi, eax
mov eax, dword [r11 + rdx*4 + 0x400]
mov ebp, esi
mov r12d, esi
lea ecx, [rax*8]
mov eax, dword [r10 + rdx*4 + 0x400]
sar ebp, 0x1f
xor r12d, ebp
lea eax, [rdi + rax*2]
sub r12d, ebp
and ebp, 0xfffffff0
imul eax, eax, 0x3001
xor ebp, 0xfffe7ff8
sub ecx, eax
mov eax, dword [r11 + rdx*4 + 0x800]
lea r9d, [rax*8]
mov eax, dword [r10 + rdx*4 + 0x800]
lea eax, [rdi + rax*2]
imul eax, eax, 0x3001
imul edi, edi, 0x3001
sub r9d, eax
mov eax, dword [r11 + rdx*4 + 0xc00]
shl eax, 3
sub eax, edi
mov edi, r8d
sub edi, r12d
mov r12d, ecx
mov r15d, eax
sar edi, 0x1f
and edi, ebp
mov ebp, ecx
sar ebp, 0x1f
add edi, esi
mov esi, r8d
xor r12d, ebp
mov r14d, edi
sub r12d, ebp
and ebp, 0xfffffff0
sar r14d, 0x1f
sub esi, r12d
xor ebp, 0xfffe7ff8
mov r12d, r9d
sar esi, 0x1f
and esi, ebp
mov ebp, r9d
sar ebp, 0x1f
add esi, ecx
mov ecx, r8d
xor r12d, ebp
mov r13d, esi
sub r12d, ebp
sar r13d, 0x1f
sub ecx, r12d
and ebp, 0xfffffff0
xor edi, r14d
xor esi, r13d
xor ebp, 0xfffe7ff8
sar ecx, 0x1f
and ecx, ebp
mov ebp, r8d
add ecx, r9d
mov r9d, eax
sar r9d, 0x1f
mov r12d, ecx
xor r15d, r9d
sar r12d, 0x1f
sub r15d, r9d
and r9d, 0xfffffff0
xor ecx, r12d
sub ebp, r15d
xor r9d, 0xfffe7ff8
sar ebp, 0x1f
and ebp, r9d
mov r9d, edx
add ebp, eax
shr r9d, 3
mov r15d, ebp
sar r15d, 0x1f
lea eax, [r14 + r15 + 0x18008]
xor ebp, r15d
add eax, r13d
add eax, r12d
sub eax, ebp
sub eax, edi
sub eax, esi
sub eax, ecx
mov ecx, edx
shr eax, 0x1f
and ecx, 7
xor eax, 1
shl eax, cl
or byte [rbx + r9], al
add rdx, 1
cmp rdx, 0x100
jne 0x14004fe20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret