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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006cd0
sub rsp, rax
mov rax, qword [0x1400b0098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017754
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018e37
mov rax, rbp
jmp 0x140018f3f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb27e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019f08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb27e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018f3b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018f3b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019f08
test rax, rax
js 0x140018f3b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018f3b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018f2d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018f2d
cmp byte [rcx], 0xd
jne 0x140018f13
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018f22
cmp byte [rcx + 1], 0xa
jne 0x140018f22
inc rcx
jmp 0x140018f22
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb04a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018ef5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018f3f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006730
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140019160
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019176
mov al, 1
jmp 0x1400191d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019187
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400191d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001eab8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400191d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400191d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400191d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400191d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400192a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400b27e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400192ff
cmp word [rdx], r13w
jne 0x1400192ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019304
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019429
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001944a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001933d
mov rdx, r9
mov word [rbx], cx
jmp 0x140019364
cmp r9, r8
jae 0x140019374
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001931e
jmp 0x140019429
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001941e
cmp dword [rsp + 0x80], esi
je 0x14001941e
lea r8, [0x1400b27e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400193f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400193c6
mov word [rbx], r13w
jmp 0x140019426
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400193d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019426
cmp word [rsp + 0x70], r13w
jne 0x140019403
cmp rbx, r14
je 0x1400193c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019f10
cmp word [rsp + 0x70], r13w
je 0x140019429
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400b27e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019423
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019429
Function at 0x14001e080
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001e0b0
xor eax, eax
jmp 0x14001e173
mov rbp, rbx
cmp word [rax], si
je 0x14001e0d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e0bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e0b8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001c680
movsxd r14, eax
test eax, eax
jne 0x14001e113
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e0a9
mov rcx, r14
call fcn.14001a4f8
mov rdi, rax
test rax, rax
jne 0x14001e12c
xor ecx, ecx
call fcn.140016684
jmp 0x14001e108
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001c680
test eax, eax
jne 0x14001e15d
mov rcx, rdi
call fcn.140016684
jmp 0x14001e167
xor ecx, ecx
call fcn.140016684
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002100c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140016324
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400210ad
cmp ebx, dword [rsp + 0x30]
je 0x1400210a6
test esi, esi
je 0x1400210a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021081
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002108e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002106b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021092
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400210af
mov eax, 1
jmp 0x1400210af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140023d2c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000fbfc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140023db6
cmp byte [rbp - 0x21], r15b
je 0x140023db1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140023dec
call fcn.140016bd8
test eax, eax
jne 0x140023dd8
cmp byte [rbp - 0x21], r15b
je 0x140023dd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140023dec
cmp byte [rbp - 0x21], r15b
je 0x140023de9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400122a0
test eax, eax
jne 0x140023e8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fbfc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140023e2b
cmp byte [rbp - 0x21], r15b
je 0x140023e60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140023e60
call fcn.140016bd8
test eax, eax
jne 0x140023e4c
cmp byte [rbp - 0x21], r15b
je 0x140023e45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140023e60
cmp byte [rbp - 0x21], r15b
je 0x140023e5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400122a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140023e8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140023e8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023e9d
mov rcx, rdi
call fcn.140016684
cmp byte [rbp + 0x3f], r15b
je 0x140023eac
mov rcx, qword [rbp + 0x27]
call fcn.140016684
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400244f8
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.140019f10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019f10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140024648
cmp rax, 0xffffffffffffffff
je 0x140024648
xor edi, edi
test rbp, rbp
jle 0x1400245f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140016840
mov rbx, rax
test rax, rax
jne 0x140024580
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400245e9
mov edx, 0x8000
mov ecx, r14d
call fcn.140013678
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.140018660
cmp eax, 0xffffffff
je 0x1400245c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140024590
mov edx, r15d
mov ecx, r14d
call fcn.140013678
jmp 0x1400245e9
cmp byte [rsi + 0x38], dil
je 0x1400245e0
cmp dword [rsi + 0x34], 5
jne 0x1400245e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400245e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140016684
jmp 0x14002465c
jns 0x14002465c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019f10
cmp rax, 0xffffffffffffffff
jne 0x140024614
cmp byte [rsi + 0x30], dil
je 0x14002465c
mov edi, dword [rsi + 0x2c]
jmp 0x14002465c
mov ecx, r14d
call fcn.14001eab8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002465c
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 0x14002465c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140024655
mov eax, dword [rsi + 0x2c]
jmp 0x14002465a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019f10
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 0x140006018
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f1c0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1400071f8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007188
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020628]
jmp 0x140007234
cmp qword [rbx + 0x18], rdi
je 0x14000723b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000722b
jmp 0x140007255
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020628]
call fcn.140011fd8
lea rcx, [0x1400211f0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ah, 0xff
nop
mov ah, 0xff
invalid
mov bh, bh
sbb eax, 0x30ff8d6d
jge 0x14003f624
inc dword [rdi - 0x67]
mov edx, 0xc2a24dff
invalid
scasd eax, dword [rdi]
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401e58
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401d1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401da5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401d00
mov rcx, rbx
call fcn.00402970
test rax, rax
mov r12, rax
je 0x401e8d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402aa0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401e70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401d9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401e00
add dword [0x00408624], 1
cmp edi, 8
jae 0x401dd3
test dil, 4
jne 0x401e44
test edi, edi
je 0x401dc8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401e5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401dc8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401dec
jmp 0x401dc8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403040
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401dc8
xor esi, esi
jmp 0x401d27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401dc8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403040
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403040
nop
nop dword [rax]

Function at 0x4025e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402634
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 0x40262b
test rsi, rsi
je 0x40262b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402610
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405480]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4029dd
mov rcx, r8
call fcn.00402850
test eax, eax
je 0x4029dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029df
add rax, 0x28
cmp rax, r9
jne 0x4029c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402e70
Capabilities:
Get memory capacity

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x80], xmm7
movaps xmmword [rsp + 0x90], xmm8
movaps xmmword [rsp + 0xa0], xmm9
lea rdi, str._____Cycle:__d___Allocating..._r_n
xor esi, esi
movabs r13, 0x8000000000000000
call fcn.00401860
mov rbp, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea r12, [rsp + 0x30]
movss xmm8, dword [0x00405124]
movsd xmm7, qword [0x00405130]
movsd xmm6, qword [0x00405138]
movss xmm9, dword [0x00405128]
mov dword [rsp + 0x30], 0x40
mov rcx, r12
call rbp
mov rax, qword [rsp + 0x40]
test rax, rax
js 0x403020
pxor xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm8
comiss xmm0, dword [0x00405128]
jae 0x402fe1
cvttss2si rbx, xmm0
mov edx, esi
mov rcx, rdi
call sub.msvcrt.dll_printf
test rbx, rbx
js 0x403001
pxor xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm0, xmm7
comisd xmm0, xmm6
jae 0x402fd0
cvttsd2si rcx, xmm0
call fcn.004015d0
lea rcx, str.1._Allocated__lu_bytes___lu_MB____STRUCT_0x_x_.DATA0x_x_r_n
add esi, 1
mov rdx, qword [rax + 8]
mov rbx, rax
mov rax, qword [rax]
mov r9, rbx
mov r8, rdx
shr r8, 0x14
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_printf
mov rcx, rbx
call fcn.00401660
mov rcx, rbx
call fcn.004016e0
mov rcx, rbx
call fcn.00401770
cmp esi, 5
jne 0x402ee4
movaps xmm6, xmmword [rsp + 0x70]
xor eax, eax
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
subsd xmm0, xmm6
cvttsd2si rcx, xmm0
xor rcx, r13
jmp 0x402f4e
subss xmm0, xmm9
mov edx, esi
mov rcx, rdi
cvttss2si rbx, xmm0
call sub.msvcrt.dll_printf
xor rbx, r13
test rbx, rbx
jns 0x402f32
mov rax, rbx
and ebx, 1
pxor xmm0, xmm0
shr rax, 1
or rax, rbx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
jmp 0x402f3b
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2ss xmm0, rdx
addss xmm0, xmm0
jmp 0x402f08
Function at 0x403040
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00402d30
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.00402d30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140002b90
Capabilities:
Execute command

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x30
call fcn.1400047f0
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [0x140006ac0]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [str.a762c9598a374777a1d79ae18fa46b51]
movups xmmword [rax], xmm1
movups xmm0, xmmword [0x140006470]
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.140002410
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002c26
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000482c
lea rcx, str.Spoofed__otvor_hru_more
call fcn.140001110
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003bc0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x58
ret

Function at 0x140005144
Capabilities:
Parse pe header

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