joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.C:UserscarloDocumentsMalware_DevMy_shitty_try_at_Process_Hollowingcalc.exe
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140003300]
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001010
jmp 0x140001bba
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140001b0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003330]
mov r8d, eax
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001bba
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001b3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003340]
jmp 0x140001af0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001b81
cmp esi, dword [rsp + 0x40]
jne 0x140001b81
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140001bba
mov rcx, rbx
call fcn.140001390
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x140001bbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140003350]
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001bf0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400024fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400024fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400024fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400024fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400024fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400024fc
xor al, al
add rsp, 0x28
ret
Function at 0x14000a390
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000a430
jmp 0x14000a41f
jae 0x14000a4f0
cmp r8, 0x201
jae 0x14000a430
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000a488
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000a45f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001ff70
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000a4b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000a558
mov r8d, r14d
cmp r15, r8
jne 0x14000a410
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a585
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000a41f
jmp 0x14000a430
cmp rsi, r8
jb 0x14000a59f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000c340
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000a541
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140007c10
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000a529
jmp 0x14000a541
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140020980
jmp 0x14000a5b4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140020dd0
ud2
Function at 0x1400104d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140023ba0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140010514
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001057a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400105b1
test eax, eax
js 0x14001058b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400105a4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000c080
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140008650
mov ecx, 7
int 0x29
ud2
Function at 0x14001e1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001e25a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001e250
cmp r11, r10
ja 0x14001e2f1
cmp r10, rdx
ja 0x14001e303
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001e252
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001e230
jmp 0x14001e2c7
ja 0x14001e25a
mov r11, r10
cmp rax, r8
jne 0x14001e202
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001e2cb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001e2a0
mov r8, r10
sub ecx, r9d
jns 0x14001e2be
jmp 0x14001e2cd
cmp r10, rdx
je 0x14001e2d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001e2cd
xor al, 1
cmp r8, rdx
jne 0x14001e280
jmp 0x14001e2cd
xor eax, eax
jmp 0x14001e2cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140025a0b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140020980
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140020e50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140020dd0
int3
Function at 0x140007350
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov eax, dword [0x14005ee90]
mov rdi, rcx
imul eax, dword [0x14005fd74]
mov rbp, qword [0x140060a30]
cmp eax, edx
jne 0x1400073d6
cmp qword [0x14005d7d8], 0
je 0x1400073c9
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x14000739d
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x14005d7d8]
call fcn.140017c10
lea rcx, [0x14005d540]
mov qword [rdi + 0x2d8], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.140007570
test eax, eax
jne 0x1400073d6
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
lea rcx, [0x14005d540]
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1400073fe
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add rdi, 0x2e0
xor ebx, ebx
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 3
sub eax, 1
movsxd rcx, eax
js 0x140007440
mov rax, qword [rdi]
lea rdx, [rax + rcx*8]
mov rax, qword [rdx]
lea rdx, [rdx - 8]
cmp dword [rax + 8], 1
cmove rbx, rax
sub rcx, 1
jns 0x140007421
test rbx, rbx
je 0x140007440
mov rsi, qword [rbx]
jmp 0x140007444
xor ebx, ebx
xor esi, esi
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, qword [0x14005d7d8]
xor r8d, r8d
cmp dword [0x14005eeb8], r8d
mov eax, 4
mov r9, rsi
mov dword [rsp + 0x20], 0
cmovne r8d, eax
mov rcx, rbp
call fcn.1400168e0
mov rbp, rax
test rax, rax
je 0x140007504
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1400074a4
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x14005fd70]
mov ecx, 0x18
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
je 0x1400074da
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov qword [rbx], rbp
mov dword [rbx + 8], 0
mov dword [rbx + 0x10], esi
jmp 0x1400074dc
xor ebx, ebx
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x50], rbx
cmp rdx, qword [rdi + 0x10]
je 0x1400074f5
mov qword [rdx], rbx
add qword [rdi + 8], 8
jmp 0x140007540
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.14000a7b0
jmp 0x140007540
test rsi, rsi
je 0x14000754d
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x140007527
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x14005fd70]
mov dword [rbx + 8], 0
mov dword [rbx + 0x10], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
lea rcx, [0x14005d540]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [0x14005fd70]
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140024c90
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
mov rcx, rdi
call fcn.140024de0
mov edx, 0x6be
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCRibbonSlider::SetACCData]
mov qword [0x140060f90], rdi
xor ebx, ebx
call qword [sym.imp.mfc140u.dll_AfxFieldText]
xor r9d, r9d
lea rdx, [0x140024f00]
lea ecx, [rbx + 0xd]
mov r8, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
test rax, rax
mov qword [0x140060f88], rax
mov ecx, 1
cmovne ebx, ecx
mov dword [rdi + 0x1d8], ebx
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140028b40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rsp + 0x290], rax
test dword [rcx + 0x26c], 0x1000
mov rbx, rcx
movsd qword [rcx + 0x280], xmm1
jne 0x140028b7b
call fcn.1400291c0
mov eax, dword [rbx + 0x26c]
movsd xmm1, qword [rbx + 0x280]
test al, 0x40
je 0x140028ba5
movsd xmm0, qword [rbx + 0x2a0]
ucomisd xmm0, qword [0x140047078]
jp 0x140028ba1
je 0x140028ba5
mulsd xmm1, xmm0
mov r8d, dword [rbx + 0x2b0]
test r8d, r8d
jne 0x140028bc8
cvttsd2si ecx, xmm1
mov r8d, 0xa
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
jmp 0x140028c2e
mov ecx, dword [rbx + 0x2c0]
shr eax, 0xf
not eax
and eax, 1
cmp r8d, 6
jne 0x140028be9
cmp ecx, 0x2710
je 0x140028be9
mov ecx, 2
movsd xmm3, qword [rbx + 0x298]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.CrlUtl.dll_class_CrlPlatform::CrlStringT_wchar_t____cdecl_UNITConvToUnitAndStringEx_double__int__double__unsigned_int__int__int_]
mov rcx, rax
call qword [sym.imp.CrlPlatform.dll_public:_wchar_t_const____ptr64___cdecl_CrlPlatform::CrlStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.CrlPlatform.dll_public:_void___cdecl_CrlPlatform::CrlStringT_wchar_t_::destructor_void____ptr64]
mov rbx, qword [rbx + 0x328]
test rbx, rbx
je 0x140028c3e
mov rbx, qword [rbx + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
cmp rdi, 0x200
ja 0x140028c87
mov r8d, 0x100
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, edi
jne 0x140028c87
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140028c95
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140032200
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14002fca0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rbx
cmp dword [0x1400628d4], ebx
jne 0x14002fd63
mov eax, dword [0x1400628d0]
test eax, eax
jne 0x14002fd63
mov ecx, dword [0x1400628c8]
test ecx, ecx
je 0x14002fd03
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400628d0]
mov ecx, dword [0x1400628c8]
test eax, eax
jne 0x14002fd63
test ecx, ecx
jne 0x14002fd14
call fcn.14002fdf0
test eax, eax
je 0x14002fd2a
lea rdx, [rsp + 0x68]
mov rcx, qword [0x14005b078]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14002fd63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14002fd59
cmp eax, 0x78
je 0x14002fd59
cmp eax, 1
je 0x14002fd59
cmp eax, 0x32
je 0x14002fd59
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [0x1400628d0], 1
mov qword [rsp + 0x20], rbx
lea r9, [0x14002e5d0]
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp dword [0x1400628d4], 0
je 0x14002fd97
cmp dword [0x1400628d0], 0
jne 0x14002fdc5
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14002fdac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14002fdc5
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x2fc538c60
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc539d40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc539662
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc55c108]
test eax, eax
je 0x2fc5396fa
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc55c110]
mov qword [rbp - 8], rax
jmp 0x2fc5396de
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 0x2fc5396d2
cmp qword [rbp - 0x10], 0
je 0x2fc5396d2
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 0x2fc539698
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5396fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc539800
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 0x2fc539828
mov eax, 0
jmp 0x2fc539876
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 0x2fc539851
mov eax, 0
jmp 0x2fc539876
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 0x2fc539871
mov eax, 0
jmp 0x2fc539876
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc53987c
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 0x2fc5398fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5398f1
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 0x2fc5398f1
mov rax, qword [rbp - 8]
jmp 0x2fc53990f
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 0x2fc5398c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003c40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140003c63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x46
jb 0x140003c50
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140003c70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003ca4
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003c90
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003cd9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006a20
nop
cmp byte [rbx + 0xa], 0
je 0x140003d03
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x39]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003cf0
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003d38
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006a20
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140008cc0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003d8c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a978c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003dcc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003dc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a978c
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret