joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140184350
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001fcd
sub rsp, rax
mov rax, qword [0x14022d528]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140232240]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14018455d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1401844a9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401844a9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140184489
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140184418
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14018451d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14018457c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140184558
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14018457c
jmp 0x1401843ee
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14000394f
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x26c01b120
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x26c01b190
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x26c03d064]
mov rbx, rcx
test esi, esi
jle 0x26c01b2c0
mov rax, qword [0x26c03d068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x26c01b1db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x26c01b265
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x26c01b1c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x26c01b2e2
mov rax, qword [0x26c03d068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x26c03d068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x26c01b2c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x26c01b25e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x26c01b270
add dword [0x26c03d064], 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 [0x26c03d068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x26c01b25e
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 esi, esi
jmp 0x26c01b1e8
mov rax, qword [0x26c03d068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x26c01b660
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x26c03d0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x26c03d080]
test rbx, rbx
je 0x26c01b6bc
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 eax, eax
jne 0x26c01b6b3
test rsi, rsi
je 0x26c01b6b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x26c01b698
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 0x26c01b8d0
Capabilities:
Parse pe header

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

Function at 0x26c01b900
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x26c01b94d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x26c01b944
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x26c01b94f
add rax, 0x28
cmp rax, r9
jne 0x26c01b930
xor eax, eax
ret

Function at 0x26c01b950
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x26c01b9e0
mov rdx, qword [0x26c034f50]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x26c01b9ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x26c01b9ce
cmp word [rax + 0x18], 0x20b
jne 0x26c01b9ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x26c01b9e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x26c01b9b9
add rbx, 0x28
cmp rbx, rdi
je 0x26c01b9e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x26c01b9b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x26c01ba70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x26c034f50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x26c01ba8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x26c01ba98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x26c01ba8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x26c01bab0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x26c034f50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x26c01bad0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x26c01bad8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x26c01bad0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x26c01bb20
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x26c01bb17
test rcx, rcx
je 0x26c01bad0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x26c01bb08
xor eax, eax
ret

Function at 0x26c01bb30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x26c034f50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x26c01bb4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x26c01bb58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x26c034f50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x26c01bb90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x26c01bb98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x26c01bb90
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x26c01bb90
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x26c01bbe4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x26c01bbf0
add rdx, 0x28
cmp r9, rdx
jne 0x26c01bbd0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x26c034f50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x26c01bc22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x26c01bc30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x26c01bc22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x26c01bc22
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x26c01bc22
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x26c01bc85
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x26c01bc98
add rdx, 0x28
cmp rdx, r10
jne 0x26c01bc70
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x26c01bca7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x26c01bcb7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x26c01bc8e
test ecx, ecx
jg 0x26c01bca0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x26c01bd90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x26c01bdc0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x26c01be00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x26c01be30
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x26c01be48
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x26c01c7f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x26c03d120], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x26c03d128], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x26c01c840
lea rdx, [0x26c01c700]
mov ecx, eax
mov dword [0x26c03d118], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x26c01c848
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x26c01c837
call sym.abort
nop
nop
Function at 0x26c01c850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x26c034d10]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x26c01c888
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x26c01c8f0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x26c01c900
mov esi, dword [0x26c03d118]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x26c01c970
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x26c01c9b8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x26c01c877
mov rcx, rbx
call fcn.26c01c750
mov qword [rsi + r12*8 + 8], rax
jmp 0x26c01c877
call fcn.26c01c750
mov qword [rbx + 0x10], rax
jmp 0x26c01c877
mov r10d, dword [rsi]
test r10d, r10d
je 0x26c01ca1a
mov r9d, dword [0x26c031040]
test r9d, r9d
je 0x26c01ca48
lock add dword [0x26c03d120], 1
jne 0x26c01ca7c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x26c01ca27
mov eax, dword [rsi]
test eax, eax
je 0x26c01c891
lock sub dword [0x26c03d120], 1
js 0x26c01c891
mov rcx, qword [0x26c03d128]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x26c01c891
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x26c01caa3
mov qword [rax], rdi
mov ecx, dword [0x26c03d118]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x26c01c8cb
call r13
jmp 0x26c01c8cb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x26c01caa3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x26c01c993
call fcn.26c01c7f0
mov dword [0x26c031040], 1
mov edx, dword [rsi]
test edx, edx
jne 0x26c01c91c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x26c01c891
mov rax, qword [0x26c03d110]
lea r12, [rax + 1]
mov qword [0x26c03d110], r12
mov qword [rbx + 0x10], r12
jmp 0x26c01c937
lock add dword [0x26c031044], 1
je 0x26c01ca01
mov r8d, dword [0x26c031040]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x26c031040]
test r8d, r8d
jne 0x26c01ca10
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x26c01ca70
jmp 0x26c01ca10
mov rcx, qword [0x26c03d128]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x26c01c92a
lock sub dword [0x26c03d120], 1
jmp 0x26c01c92a
call sym.abort
nop
nop dword [rax]
Function at 0x26c021ab0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x26c021af8
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x26c03db20], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x26c021ade

Function at 0x26c023790
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x26c0311a0], 0
jne 0x26c023896
mov byte [0x26c0311a0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x26c02386c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x26c02385d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x26c032461]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x26c023858
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x26c023827
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x26c02392b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x26c023891
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x26c023891
Function at 0x26c02ac40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x26c02ac68
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x26c02acb0
cdqe
add rsi, rax
sub rbx, rax
jne 0x26c02ac80
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x26c02acbc
call rbp
cmp dword [rax], 4
je 0x26c02ac80
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

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

Disassembly:
lea rcx, [0x26c0311c0]
jmp sym.__emutls_get_address

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

Disassembly:
lea rcx, [0x26c0311c0]
jmp sym.__emutls_get_address
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov eax, dword [r8 + 0x20]
test eax, eax
je 0x140001083
mov esi, dword [r8 + 0x24]
lea r10, [rcx + rax]
mov ebp, dword [r8 + 0x1c]
add rsi, rcx
mov ebx, dword [r8 + 0x18]
add rbp, rcx
xor r9d, r9d
test ebx, ebx
je 0x140001083
nop
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001073
inc rax
test ecx, ecx
jne 0x140001060
test edx, edx
je 0x14000109a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001050
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + r9*2]
mov eax, dword [rbp + rcx*4]
add rax, r11
jmp 0x140001085
Function at 0x1400010b0
Capabilities:
Access peb ldr_data
Encode data using xor
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012d3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140001156
nop dword [rax]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14000114e
lea rdx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001343
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140001130
mov rbx, rsi
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rdx, str.ZwAllocateVirtualMemory
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x50], 0x3dbf7
mov rdi, rax
call section..text
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x40]
lea rcx, [r8 - 1]
call rax
lea r9, [0x140005040]
mov r8d, esi
mov rdx, r9
lea r10, [0x140042c38]
mov rax, rsi
nop dword [rax]
nop dword [rax + rax]
cmp rax, 4
lea rdx, [rdx + 1]
mov rcx, rsi
cmovne rcx, rax
inc r8d
movzx eax, byte [rcx + r10]
xor byte [rdx - 1], al
lea rax, [rcx + 1]
cmp r8d, 0x3dbf7
jb 0x1400011d0
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x40]
test rdx, rdx
je 0x140001225
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
mov byte [r8], al
lea r8, [r8 + 1]
sub rdx, 1
jne 0x140001210
lea rdx, str.NtProtectVirtualMemory
mov rcx, rbx
call section..text
lea rdx, [rsp + 0x5c]
mov r9d, 0x20
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call rax
lea rdx, str.TpAllocWait
mov qword [rsp + 0x48], rsi
mov rcx, rbx
call section..text
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
call rax
lea rdx, str.TpSetWait
mov rcx, rbx
call section..text
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
call rax
lea rdx, str.NtWaitForSingleObject
mov rcx, rbx
call section..text
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rax
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001360
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001110
mov rax, qword [rsp + 0x60]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp rax, 0x28
jg 0x140001110
mov eax, 1
jmp 0x1400012b4
mov rbx, qword [rbx + 0x20]
jmp 0x140001159
Function at 0x140001c3c
Capabilities:
Parse pe header

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