joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002915c
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.14001c754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400292ac
cmp rax, 0xffffffffffffffff
je 0x1400292ac
xor edi, edi
test rbp, rbp
jle 0x140029257
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f068
mov rbx, rax
test rax, rax
jne 0x1400291e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002924d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a088
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.14001d430
cmp eax, 0xffffffff
je 0x14002922d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400291f4
mov edx, r15d
mov ecx, r14d
call fcn.14001a088
jmp 0x14002924d
cmp byte [rsi + 0x38], dil
je 0x140029244
cmp dword [rsi + 0x34], 5
jne 0x140029244
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002924d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae1c
jmp 0x1400292c0
jns 0x1400292c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c754
cmp rax, 0xffffffffffffffff
jne 0x140029278
cmp byte [rsi + 0x30], dil
je 0x1400292c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400292c0
mov ecx, r14d
call fcn.140018540
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400292c0
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 0x1400292c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400292b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400292be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c754
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 0x140004000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x38
and rsp, 0xfffffffffffffff0
movabs rcx, 0x140004062
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
movabs rdx, 0x14000406b
mov rcx, rax
movabs rax, sym.imp.KERNEL32.dll_GetProcAddress
call qword [rax]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r9, rcx
movabs r8, 0x140004078
mov rdx, rcx
call rax
leave
jmp loc.140001000
Function at 0x140002c60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002c85
xor eax, eax
jmp 0x140002d82
cmp qword [rcx + 0x68], 0
je 0x140002c99
lfence
call fcn.1400034e0
jmp 0x140002d82
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140002cb0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002cb2
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x140002ce7
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140014f50
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002d79
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002d22
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140002d57
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14001a8ac
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140002d79
cmp rbp, r15
ja 0x140002d2d
test rbx, rbx
je 0x140002d79
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14001a8ac
mov rbp, rbx
sub rbp, rax
sub rdi, rbp
mov rax, rdi
lfence
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a4b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002a4e6
call fcn.14001b1f4
mov dword [rax], 0x16
call fcn.14001b080
jmp 0x14002a605
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a605
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a605
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002a515
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a605
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002a529
call fcn.14002b844
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400282fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002bd5c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002a5f3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002a5be
mov rcx, rsi
call fcn.1400282fc
cmp eax, edi
je 0x14002a5a9
mov rcx, rsi
call fcn.1400282fc
cmp eax, 0xfffffffe
je 0x14002a5a9
mov rcx, rsi
call fcn.1400282fc
movsxd rbx, eax
lea r14, [0x140054f40]
mov rcx, rsi
sar rbx, 6
call fcn.1400282fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a5b0
lea rdx, [0x140052410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a5be
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002a5e2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002a5e2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002a5e2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002a608
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002a620
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002a342
call fcn.14001b1f4
mov dword [rax], 0x16
call fcn.14001b080
jmp 0x14002a492
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a492
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a492
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002a371
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a492
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002a385
call fcn.14002b844
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14002a395
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14002a398
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400282fc
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002bd5c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002a480
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002a42b
mov rcx, rbx
call fcn.1400282fc
cmp eax, 0xffffffff
je 0x14002a416
mov rcx, rbx
call fcn.1400282fc
cmp eax, 0xfffffffe
je 0x14002a416
mov rcx, rbx
call fcn.1400282fc
movsxd rdi, eax
lea rsi, [0x140054f40]
mov rcx, rbx
sar rdi, 6
call fcn.1400282fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a41d
lea rdx, [0x140052410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a42b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002a44f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002a44f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002a44f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002a46d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14002a478
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14002a497
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14002a30c
Function at 0x14002b5c4
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.140013640
sub rsp, rax
mov rax, qword [0x140052060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400282fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002b613
mov rax, rbp
jmp 0x14002b71b
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 + 0x54f40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002c534
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x54f40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002b717
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 0x14002b717
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002c534
test rax, rax
js 0x14002b717
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002b717
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002b709
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002b709
cmp byte [rcx], 0xd
jne 0x14002b6ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002b6fe
cmp byte [rcx + 1], 0xa
jne 0x14002b6fe
inc rcx
jmp 0x14002b6fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x52460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002b6d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002b71b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012c30
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 0x14002b8b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140054f40]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002b90e
cmp word [rdx], r12w
jne 0x14002b90e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002b914
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002ba6f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002ba4a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002b94d
mov rcx, r9
jmp 0x14002b970
cmp r9, rdx
jae 0x14002b987
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002b931
jmp 0x14002ba6f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ba44
cmp dword [rsp + 0x80], edi
je 0x14002ba44
mov rdx, r14
lea r11, [0x140054f40]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002ba1d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002b9f0
mov word [rbx], r12w
jmp 0x14002ba6b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002b9f9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002ba6b
cmp word [rsp + 0x70], r12w
jne 0x14002ba2a
cmp rbx, rsi
je 0x14002b9ea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002c53c
cmp word [rsp + 0x70], r12w
je 0x14002ba6f
mov word [rbx], r13w
jmp 0x14002ba6b
lea r11, [0x140054f40]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002ba67
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002ba6f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003101c
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 0x1400310a3
mov rsi, rbx
cmp word [rax], bp
je 0x140031062
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003104c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140031048
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002caf8
mov rdi, rax
test rax, rax
je 0x140031090
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140014f50
mov rbp, rdi
xor ecx, ecx
call fcn.140029e8c
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 0x1400386d8
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.14002c53c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002c53c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140038828
cmp rax, 0xffffffffffffffff
je 0x140038828
xor edi, edi
test rbp, rbp
jle 0x1400387d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002a628
mov rbx, rax
test rax, rax
jne 0x140038760
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400387c9
mov edx, 0x8000
mov ecx, r14d
call fcn.14002677c
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.140029b7c
cmp eax, 0xffffffff
je 0x1400387a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140038770
mov edx, r15d
mov ecx, r14d
call fcn.14002677c
jmp 0x1400387c9
cmp byte [rsi + 0x38], dil
je 0x1400387c0
cmp dword [rsi + 0x34], 5
jne 0x1400387c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400387c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140029e8c
jmp 0x14003883c
jns 0x14003883c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002c53c
cmp rax, 0xffffffffffffffff
jne 0x1400387f4
cmp byte [rsi + 0x30], dil
je 0x14003883c
mov edi, dword [rsi + 0x2c]
jmp 0x14003883c
mov ecx, r14d
call fcn.140031b58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003883c
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 0x14003883c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140038835
mov eax, dword [rsi + 0x2c]
jmp 0x14003883a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002c53c
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 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140f55770
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5577a
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 0x140f557a3
pop rbp
sub rbp, 0x33
sub rbp, 0xf55770
sub rsp, 0x20
jmp 0x140f557c2
mov rax, 0xf55770
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7e5a4c24
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f557e1
jmp 0x140f557f8
add byte [rax], al
idiv dword [rsi + rax*2 - 0x325293a9]
insb byte [rdi], dx
lodsd eax, dword [rsi]
int 0xaf
scasd eax, dword [rdi]
lodsd eax, dword [rsi]
sbb byte [rsp], ah
and al, 0x6c
movsd dword [rdi], dword [rsi]
in eax, 0x2c
and eax, 0x256c2424
int 0x6c
jrcxz 0x140f557f2
and esp, dword [rsp]
and al, 0x6c
jrcxz 0x140f557fb
or al, 0x24
and al, 0x24
insb byte [rdi], dx
rol esi, cl
insb byte [rdi], dx
and eax, 0x28a5afe5
and al, 0x24
and al, 0x6c
and eax, 0x6c7474cc
pushfq
in al, 0xb2
add ah, byte [rsp]
and al, 0x24
and al, 0x6c
popfq
mov esp, esp
invalid
Function at 0x14000af40
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd98]
test rcx, rcx
je 0x14000af7b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af6e
mov rcx, qword [0x14002dd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002dda8], 0
je 0x14000b06e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288f8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400365d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b04f
test al, 0x10
je 0x14000b04f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000aff5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1400054b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400054e4
cmp word [rcx], 0x5a4d
jne 0x1400054e4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400054e4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400054e4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053f0
test eax, eax
jne 0x140005500
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005460
test rax, rax
je 0x1400054f5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005cb2
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005bb0
Capabilities:
Execute syscall

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

Function at 0x140006014
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140567078]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140567074]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006062
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000605a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006149
inc ebx
add rax, 0x28
jmp 0x14000603a
mov rcx, r12
call fcn.140006841
mov rbp, rax
test rax, rax
jne 0x140006081
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005fb0
movsxd rbx, ebx
mov rax, qword [0x140567078]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400068ef
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140567078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400060e3
mov rax, qword [0x140567078]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005fb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006143
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006143
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 [0x140567078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006143
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005fb0
inc dword [0x140567074]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006570
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405670e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405670c0]
test rbx, rbx
je 0x1400065bc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400065b6
test eax, eax
jne 0x1400065b6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000658e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006770
Capabilities:
Parse pe header

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

Function at 0x140006794
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400067ce
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400067c5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400067d0
inc r8d
add rax, 0x28
jmp 0x1400067ac
xor eax, eax
ret

Function at 0x140006841
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140561bd0]
mov r8, rcx
mov rcx, r9
call fcn.140006770
test eax, eax
je 0x14000686d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006794
xor eax, eax
add rsp, 0x28
ret