joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009a64c
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 0x18009a67c
xor eax, eax
jmp 0x18009a73f
mov rbp, rbx
cmp word [rax], si
je 0x18009a6a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009a688
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009a684
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.180096220
movsxd r14, eax
test eax, eax
jne 0x18009a6df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009a675
mov rcx, r14
call fcn.180091178
mov rdi, rax
test rax, rax
jne 0x18009a6f8
xor ecx, ecx
call fcn.180090214
jmp 0x18009a6d4
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.180096220
test eax, eax
jne 0x18009a729
mov rcx, rdi
call fcn.180090214
jmp 0x18009a733
xor ecx, ecx
call fcn.180090214
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 0x18009a75c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18009a7e3
mov rsi, rbx
cmp word [rax], bp
je 0x18009a7a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18009a78c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18009a788
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180091178
mov rdi, rax
test rax, rax
je 0x18009a7d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180072ed0
mov rbp, rdi
xor ecx, ecx
call fcn.180090214
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a265c
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.18007d040
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800a26e6
cmp byte [rbp - 0x21], r15b
je 0x1800a26e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800a271c
call fcn.180090518
test eax, eax
jne 0x1800a2708
cmp byte [rbp - 0x21], r15b
je 0x1800a2700
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800a271c
cmp byte [rbp - 0x21], r15b
je 0x1800a2719
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.180086514
test eax, eax
jne 0x1800a27bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007d040
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800a275b
cmp byte [rbp - 0x21], r15b
je 0x1800a2790
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800a2790
call fcn.180090518
test eax, eax
jne 0x1800a277c
cmp byte [rbp - 0x21], r15b
je 0x1800a2775
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800a2790
cmp byte [rbp - 0x21], r15b
je 0x1800a278d
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.180086514
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800a27bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800a27bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800a27cd
mov rcx, rdi
call fcn.180090214
cmp byte [rbp + 0x3f], r15b
je 0x1800a27dc
mov rcx, qword [rbp + 0x27]
call fcn.180090214
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 0x1800a363c
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.180092a0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180092a0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a378c
cmp rax, 0xffffffffffffffff
je 0x1800a378c
xor edi, edi
test rbp, rbp
jle 0x1800a3737
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18009019c
mov rbx, rax
test rax, rax
jne 0x1800a36c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a372d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a34c4
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.180094378
cmp eax, 0xffffffff
je 0x1800a370d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a36d4
mov edx, r15d
mov ecx, r14d
call fcn.1800a34c4
jmp 0x1800a372d
cmp byte [rsi + 0x38], dil
je 0x1800a3724
cmp dword [rsi + 0x34], 5
jne 0x1800a3724
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a372d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180090214
jmp 0x1800a37a0
jns 0x1800a37a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180092a0c
cmp rax, 0xffffffffffffffff
jne 0x1800a3758
cmp byte [rsi + 0x30], dil
je 0x1800a37a0
mov edi, dword [rsi + 0x2c]
jmp 0x1800a37a0
mov ecx, r14d
call fcn.18009e2f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a37a0
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 0x1800a37a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a3799
mov eax, dword [rsi + 0x2c]
jmp 0x1800a379e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180092a0c
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 0x1800a3dc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a3de8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a3de8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100405ee0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
lea rcx, [0x1004064b0]
call 0x100405ee0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100405f00
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100405f10
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100405f20
xor r8d, r8d
xor edx, edx
xor ecx, ecx
add rsp, 0x28
jmp 0x100405f30
xor dl, byte [rbx + 0x52329f32]
xor bh, byte [rax + 0x32]
wait
xor bl, byte [rsi - 0x5acd68ce]
xor dl, byte [rdx + 0x32]
pop rdx
xor ch, byte [rdx + 0x68326a32]
xor bl, byte [rbx + 0x32]
xor dh, byte [rdx]
jb 0x100405f31
movsd dword [rdi], dword [rsi]
xor bl, byte [rdx - 0x61cd68ce]
xor bl, byte [rsi + 0x64326532]
xor ah, byte [rax + 0x32]
xchg esi, eax
xor bl, byte [rsi + 0x5e329e32]
xor bl, byte [rdi + 0x32]
xor ah, byte fs:[rbx + 0x32]
push 0x32
invalid
jg 0x100405f65
xor ebx, edi
xor sil, byte [rbx - 0x59]
fild word [rdx + 0x32]
jae 0x100405ede
cmpsb byte [rsi], byte [rdi]
movabs eax, dword [0x323b32723265a67b]
xor ah, byte ss:[rcx]
invalid
xor dh, byte [rdx]
wait
push rax
invalid
Function at 0x14004c780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14004c79e
cmp qword [rsp + 0x68], 0
jne 0x14004c7a5
xor eax, eax
jmp 0x14004c8d1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x14004c846
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14004c8cf
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14004c88e
inc rax
test dl, dl
jne 0x14004c87b
xor eax, eax
jmp 0x14004c893
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14004c8ca
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x14004c8d1
jmp 0x14004c83e
xor eax, eax
add rsp, 0x58
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x140002270]
call fcn.140001010
movdqa xmm1, xmmword [str.AAAAAAAAAAAAAAAA_]
lea rbx, [0x140003040]
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rax + rbx]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
movdqu xmm0, xmmword [rax + rbx + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx + 0x10], xmm0
movdqu xmm0, xmmword [rax + rbx + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx + 0x20], xmm0
movdqu xmm0, xmmword [rax + rbx + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx + 0x30], xmm0
add rax, 0x40
cmp rax, 0x340
jb 0x1400010a0
cmp rax, 0x37e
jae 0x1400010ff
nop
xor byte [rax + rbx], 0x41
inc rax
cmp rax, 0x37e
jb 0x1400010f0
lea rcx, [0x140002284]
call fcn.140001010
xor ecx, ecx
mov edx, 0x37e
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001145
lea rcx, [0x140002288]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea eax, [rdi + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov eax, 6
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rax, 1
jne 0x140001150
movups xmm0, xmmword [rbx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rdx + 0x60], xmm0
mov rax, qword [rbx + 0x70]
mov qword [rdx + 0x70], rax
mov eax, dword [rbx + 0x78]
mov dword [rdx + 0x78], eax
movzx eax, word [rbx + 0x7c]
mov word [rdx + 0x7c], ax
call rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001af4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013930
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ca0
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014cb3
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014cdd
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014cf1
xor al, al
jmp 0x140014d21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d03
xor al, al
jmp 0x140014d21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d1f
xor al, al
jmp 0x140014d21
mov al, 1
add rsp, 0x38
ret
Function at 0x6d7d2120
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d22a8
mov rax, qword [0x6d7f35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d216c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d21f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d2150
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d22dd
mov rax, qword [0x6d7f35e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d22c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d21ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d2250
add dword [0x6d7f35e4], 1
cmp edi, 8
jae 0x6d7d2223
test dil, 4
jne 0x6d7d2294
test edi, edi
je 0x6d7d2218
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d22af
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 0x6d7d2218
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 0x6d7d223c
jmp 0x6d7d2218
add rsi, qword [0x6d7f35e8]
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 0x6d7d21ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d2218
xor esi, esi
jmp 0x6d7d2177
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d2218
mov rax, qword [0x6d7f35e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d2a30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f38a0]
test rbx, rbx
je 0x6d7d2a84
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 0x6d7d2a7b
test rsi, rsi
je 0x6d7d2a7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d2a60
lea rcx, [0x6d7f38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d2cc0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d2cd0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d2ce0
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 0x6d7d2d21
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d2d18
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d2d23
add rax, 0x28
cmp rax, r9
jne 0x6d7d2d04
xor eax, eax
ret

Function at 0x6d7d2dc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f01f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d2e2d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d2e2d
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 0x6d7d2e2d
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 0x6d7d2e24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d2e2f
add rax, 0x28
cmp rax, r9
jne 0x6d7d2e10
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d2f30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d2f50
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d2f48
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 0x6d7d2fad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d2fa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d2fb4
add rax, 0x28
cmp rax, r9
jne 0x6d7d2f90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d2fd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d303e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d303e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d303e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d303e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d3035
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d3045
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d3020
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d3058
jmp 0x6d7d303e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d3066
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d303e
test r9d, r9d
jg 0x6d7d3050
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d33a0
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rdi, 0xc9bf6971e247114c
fcmovbe st(0), st(4)
mov r10, rsp
and r10w, 0xf6b0
xor r15, r15
mov r15b, 0x5b
fxsave64 [r10]
mov r9, qword [r10 + 8]
dec r15
xor qword [r9 + r15*8 + 0x26], rdi
test r15, r15
jne 0x140004023
sbb byte [rax - 2], bl
stosb byte [rdi], al
int1
or cl, dl
invalid