joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ffed2257fb4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
rdtsc
shl rdx, 0x20
or rax, rdx
cdqe
mov qword [0x7ffed2285490], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
and eax, 0x80000000
lea rbp, [0x7ffed2240000]
mov dword [0x7ffed2282c70], eax
cmp dword [0x7ffed2285540], ebx
jne 0x7ffed2258012
lea rcx, [0x7ffed2285498]
call fcn.7ffed2257d70
cmp eax, ebx
jl 0x7ffed2258204
mov dword [0x7ffed2285540], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movsxd rdx, dword [0x7ffed224003c]
mov rdi, qword [rsp + 0x28]
mov edx, dword [rdx + rbp + 0x50]
mov r8d, 0x80000000
lea rcx, [0x7ffed2240000]
lea rax, [rdi + r8]
add rdx, rcx
cmp rdx, rax
jb 0x7ffed225804d
lea rdi, [rdx - 0x80000000]
lea rdx, [rdi + 0xffff]
mov rdi, qword [rsp + 0x30]
and rdx, 0xffffffffffff0000
lea rax, [rdi - 0x80000000]
mov qword [0x7ffed2285488], rdx
cmp rcx, rax
jbe 0x7ffed225807c
mov qword [0x7ffed2285480], rdi
jmp 0x7ffed2258086
add rcx, r8
mov qword [0x7ffed2285480], rcx
mov word [0x7ffed2285480], bx
mov rax, qword [0x7ffed2285480]
sub rax, rdx
shr rax, 0x10
mov qword [0x7ffed22854c0], rax
mov eax, ebx
cmp eax, ebx
jl 0x7ffed2258204
mov rax, qword [0x7ffed2285a10]
mov edi, 0x100
cmp rax, rdi
jae 0x7ffed22580f5
lea rax, [rax + rax*4]
lea rcx, [rbp + rax*8 + 0x42c80]
call fcn.7ffed2257d70
cmp eax, ebx
mov edx, eax
jl 0x7ffed22580ee
mov rax, qword [0x7ffed2285a10]
inc rax
mov qword [0x7ffed2285a10], rax
cmp rax, rdi
jb 0x7ffed22580bd
cmp edx, ebx
jge 0x7ffed22580f5
mov eax, edx
jmp 0x7ffed2258204
mov eax, dword [0x7ffed227d854]
cmp eax, ebx
je 0x7ffed225818f
mov edx, dword [0x7ffed227d850]
mov eax, dword [0x7ffed227d854]
lea rsi, [0x7ffed2285a08]
imul edx, eax
lea r9, [rsp + 0x78]
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, ebx
jne 0x7ffed2258151
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x54f
cmp eax, ebx
cmove eax, ecx
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x7ffed2258191
mov eax, dword [0x7ffed227d854]
mov r8, rbx
cmp eax, ebx
jbe 0x7ffed225818f
mov edi, dword [0x7ffed227d850]
mov ecx, dword [0x7ffed227d850]
xor eax, eax
mov dword [rbp + r8*4 + 0x45570], 0xc32d
imul rdi, r8
add rdi, rsi
inc r8
rep stosb byte [rdi], al
mov eax, dword [0x7ffed227d854]
cmp r8, rax
jb 0x7ffed225815e
mov ecx, ebx
cmp ecx, ebx
jge 0x7ffed2258199
mov eax, ecx
jmp 0x7ffed2258204
mov ecx, dword [0x7ffed2285510]
cmp ecx, ebx
je 0x7ffed22581eb
mov edx, dword [0x7ffed2285508]
lea rdi, [0x7ffed2285538]
lea rax, [rdx + rbp + 0x45538]
mov qword [0x7ffed2285518], rdi
mov qword [0x7ffed2285520], rax
mov eax, dword [0x7ffed228550c]
add rdx, rax
add rcx, rdx
lea rax, [rdx + rbp + 0x45538]
add rcx, rdi
mov qword [0x7ffed2285528], rax
mov qword [0x7ffed2285530], rcx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
call fcn.7ffed2257dec
cmp dword [rsp + 0x70], ebx
cmovl ebx, dword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ffed2273e74
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x7ffed2273eb0
mov eax, 0x80004005
jmp 0x7ffed2273f54
lea rax, [rsp + 0x48]
mov r9d, 0x2000000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r11d, eax
test eax, eax
jne 0x7ffed2273f44
jmp 0x7ffed2273eeb
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.7ffed2273e74
test eax, eax
jne 0x7ffed2273f2a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ffed2273ed8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r11d, eax
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call int.7ffed2241000
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret
Function at 0x7ffed2274024
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, qword [rsp + 0x300]
mov rbx, rdx
mov rsi, r8
lea rdx, [rsp + 0x40]
mov r8d, 0x27
mov rbp, r9
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov r13d, 0x104
lea r9, [rsp + 0x40]
lea r8, str.CLSID_ls
lea rcx, [rsp + 0x90]
mov rdx, r13
call fcn.7ffed2244c34
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x7ffed22740b0
or eax, 0x80070000
jmp 0x7ffed2274222
lea r8, [0x7ffed227ab48]
lea rcx, [rsp + 0x90]
mov r9, rbx
mov rdx, r13
call fcn.7ffed2244c34
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, [rsp + 0x90]
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
test eax, eax
je 0x7ffed2274109
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0x80070000
mov eax, ebx
jmp 0x7ffed2274222
lea r8, [0x7ffed227ab48]
lea rcx, [rsp + 0x90]
mov r9, rdi
mov rdx, r13
call fcn.7ffed2244c34
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x7ffed22740f1
lea r8, [0x7ffed227ab48]
lea rcx, [rsp + 0x90]
mov r9, rsi
mov rdx, r13
call fcn.7ffed2244c34
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x90]
lea eax, [rax + rax + 2]
lea r8d, [rbx + 1]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
test eax, eax
je 0x7ffed22741a5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
jmp 0x7ffed22740f6
lea r8, [0x7ffed227ab48]
lea rcx, [rsp + 0x90]
mov r9, rbp
mov rdx, r13
call fcn.7ffed2244c34
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.ThreadingModel
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call int.7ffed2241000
add rsp, 0x2b0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x7ffed227554c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x7ffed22755b7
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x7ffed22755d7
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x14002934c
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.14001ca14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f340
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a348
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.14001d6f0
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a348
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b0dc
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca14
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018804
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca14
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 0x14142bba4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14142bbae
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14142bbd7
pop rbp
sub rbp, 0x33
sub rbp, 0x142bba4
sub rsp, 0x20
jmp 0x14142bbf6
mov rax, 0x142bba4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xeb35e9
xor byte [rax], dl
inc rax
dec rcx
jne 0x14142bc15
jmp 0x14142bc2c
movabs eax, dword [0xe9e9e9d560620060]
movabs eax, dword [0xe8a1e9e9e8e12868]
add byte [rcx - 0x161ad6d2], ah
jmp 0x16c715e32
Function at 0x14044dae0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14044daed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14044dafd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14044dae5
lea eax, [rcx + 1]
jmp 0x14044db0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14044db1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14044db04
sub eax, 3
jb 0x14044db3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14044db8d
sar eax, 1
movsxd rbp, eax
jb 0x14044db74
jmp 0x14044db4c
add ebx, ebx
jne 0x14044db4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14044db74
inc ecx
add ebx, ebx
jne 0x14044db5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14044db74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14044db6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14044db5c
add ecx, 2
jmp 0x14044db79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14044daa2
jmp 0x14044daed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2bb200
mov dl, 0x71
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14044dbdd
cmp rsi, rcx
jae 0x14044dbe5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14044dbc4
cmp al, 0x8f
ja 0x14044dbc4
cmp byte [rsi - 2], 0xf
je 0x14044dbca
sub al, 0xe8
cmp al, 1
ja 0x14044dbae
cmp rsi, rcx
jae 0x14044dbe5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14044dbb4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14044dbe5
lodsb al, byte [rsi]
jmp 0x14044dbc4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x445000]
mov eax, dword [rdi]
or eax, eax
je 0x14044dc4e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x44d1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14044dbf2
jns 0x14044dc27
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14044dc31
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14044dc48
mov qword [rbx], rax
add rbx, 8
jmp 0x14044dc12
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14044dc92
cmp al, 0xef
ja 0x14044dc7a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14044dc5a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14044dc69
mov eax, dword [rdi]
add rdi, 4
jmp 0x14044dc69
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14044dce6
sub rsp, 0xffffffffffffff80
jmp 0x1400490e0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14003a310]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14003a320]
mov dword [rax], 1
mov rax, qword [0x14003a330]
mov dword [rax], 1
mov rax, qword [0x14003a2b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14003a300]
mov dword [0x140042020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14003a410]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14003a3f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14003a230]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140009926
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140009956
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_2
mov rcx, rax
jmp 0x14000995b
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140014b24
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x140036788]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_7
call sym.nimErrorFlag_5
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x140042100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, [0x140036fa0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x140014cb1
mov qword [rbp - 0x50], 0xac6
lea rax, [0x140036788]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140014be8
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140014c01
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x140014d42
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9096
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140014d41
mov qword [rbp - 0x50], 0x10
lea rax, [0x140036fa0]
mov qword [rbp - 0x48], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140014c86
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140014ca4
call sym.raiseOverflow
jmp 0x140014d42
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x140014bb6
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x140036788]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x140036f39]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x140042100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014d42
nop
call sym.popFrame_7
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x140027810
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140027880
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140042534]
mov r12, rcx
test ebx, ebx
jle 0x1400279b0
mov rax, qword [0x140042538]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400278cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140027955
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400278b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400279d2
mov rax, qword [0x140042538]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140042538]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400279b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002794e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140027960
add dword [0x140042534], 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 [0x140042538]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002794e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400278d8
mov rax, qword [0x140042538]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140027f50
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400425a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140042580]
test rbx, rbx
je 0x140027fac
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 0x140027fa3
test r12, r12
je 0x140027fa3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140027f88
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 0x1400281e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400281f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140028200
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140028210
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140028255
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14002824c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140028257
add rax, 0x28
cmp rax, r9
jne 0x140028238
xor eax, eax
ret

Function at 0x140028260
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400282f0
mov rdx, qword [0x14003a2b0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400282de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400282de
cmp word [rax + 0x18], 0x20b
jne 0x1400282de
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400282f0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400282c9
add r12, 0x28
cmp r12, rsi
je 0x1400282f0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400282c0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140028300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003a2b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140028320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140028328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140028320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140028375
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 0x14002836c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140028320
add rax, 0x28
cmp rax, r9
jne 0x140028358
xor eax, eax
ret

Function at 0x140028380
Capabilities:
Parse pe header

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