joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cf78
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 0x14003cfaa
call fcn.140035334
mov dword [rax], socket
call fcn.1400351f8
jmp 0x14003d0c9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003d0c9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003d0c9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003cfd9
lock or dword [rcx + 0x14], 0x10
jmp 0x14003d0c9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003cfed
call fcn.14003fec4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400364cc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14003bae8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14003d0b7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003d082
mov rcx, rsi
call fcn.1400364cc
cmp eax, edi
je 0x14003d06d
mov rcx, rsi
call fcn.1400364cc
cmp eax, 0xfffffffe
je 0x14003d06d
mov rcx, rsi
call fcn.1400364cc
movsxd rbx, eax
lea r14, [0x14005cee0]
mov rcx, rsi
sar rbx, 6
call fcn.1400364cc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14003d074
lea rdx, [0x14005b360]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003d082
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14003d0a6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14003d0a6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14003d0a6
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 0x14003d0cc
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 0x14003e8cc
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 0x14003e8fc
xor eax, eax
jmp 0x14003e9bf
mov rbp, rbx
cmp word [rax], si
je 0x14003e921
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003e908
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003e904
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.140038d08
movsxd r14, eax
test eax, eax
jne 0x14003e95f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003e8f5
mov rcx, r14
call fcn.140036910
mov rdi, rax
test rax, rax
jne 0x14003e978
xor ecx, ecx
call fcn.140035c88
jmp 0x14003e954
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.140038d08
test eax, eax
jne 0x14003e9a9
mov rcx, rdi
call fcn.140035c88
jmp 0x14003e9b3
xor ecx, ecx
call fcn.140035c88
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 0x14003e9dc
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 0x14003ea63
mov rsi, rbx
cmp word [rax], bp
je 0x14003ea22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003ea0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003ea08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140036910
mov rdi, rax
test rax, rax
je 0x14003ea50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140045d50
mov rbp, rdi
xor ecx, ecx
call fcn.140035c88
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 0x1400444e0
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.14003b598
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003b598
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140044630
cmp rax, 0xffffffffffffffff
je 0x140044630
xor edi, edi
test rbp, rbp
jle 0x1400445db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140035d60
mov rbx, rax
test rax, rax
jne 0x140044568
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400445d1
mov edx, 0x8000
mov ecx, r14d
call fcn.140034b8c
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.14004254c
cmp eax, 0xffffffff
je 0x1400445b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140044578
mov edx, r15d
mov ecx, r14d
call fcn.140034b8c
jmp 0x1400445d1
cmp byte [rsi + 0x38], dil
je 0x1400445c8
cmp dword [rsi + 0x34], 5
jne 0x1400445c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400445d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140035c88
jmp 0x140044644
jns 0x140044644
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003b598
cmp rax, 0xffffffffffffffff
jne 0x1400445fc
cmp byte [rsi + 0x30], dil
je 0x140044644
mov edi, dword [rsi + 0x2c]
jmp 0x140044644
mov ecx, r14d
call fcn.140037e88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140044644
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140044644
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004463d
mov eax, dword [rsi + 0x2c]
jmp 0x140044642
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003b598
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 0x140045500
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045528
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045528
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140059670
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005967d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005968d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140059675
lea eax, [rcx + 1]
jmp 0x14005969b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400596ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140059694
sub eax, 3
jb 0x1400596ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005971d
sar eax, 1
movsxd rbp, eax
jb 0x140059704
jmp 0x1400596dc
add ebx, ebx
jne 0x1400596da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140059704
inc ecx
add ebx, ebx
jne 0x1400596ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140059704
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400596fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400596ec
add ecx, 2
jmp 0x140059709
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140059632
jmp 0x14005967d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140059769
cmp rsi, rcx
jae 0x140059771
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140059750
cmp al, 0x8f
ja 0x140059750
cmp byte [rsi - 2], 0xf
je 0x140059756
sub al, 0xe8
cmp al, 1
ja 0x14005973a
cmp rsi, rcx
jae 0x140059771
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140059740
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140059771
lodsb al, byte [rsi]
jmp 0x140059750
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x57000]
mov eax, dword [rdi]
or eax, eax
je 0x1400597da
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68440]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005977e
jns 0x1400597b3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400597bd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400597d4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005979e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140059814
cmp al, 0xef
ja 0x140059806
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400597e6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400597f5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140059868
sub rsp, 0xffffffffffffff80
jmp 0x14000cdb0
Function at 0x140001401
Capabilities:
Terminate process

Disassembly:
jmp 0x14000e1b0
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]
nop
add rsp, 0x28
ret

Function at 0x1400014a1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ac30
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
cmp qword [rsp + 0x30], 0
jne 0x14000ac46
xor eax, eax
jmp 0x14000acad
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000ac61
xor eax, eax
jmp 0x14000acad
mov dword [rsp + 8], 0x400
mov rax, qword [rsp]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x400
jle 0x14000ac82
xor eax, eax
jmp 0x14000acad
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x14000aca8
xor eax, eax
jmp 0x14000acad
mov rax, qword [rsp + 0x10]
add rsp, 0x20
pop rdi
ret

Function at 0x1400014d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ece0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000ed00
xor al, al
jmp 0x14000ed81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000ed13
xor al, al
jmp 0x14000ed81
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 0x14000ed3d
xor al, al
jmp 0x14000ed81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14000ed51
xor al, al
jmp 0x14000ed81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14000ed63
xor al, al
jmp 0x14000ed81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000ed7f
xor al, al
jmp 0x14000ed81
mov al, 1
add rsp, 0x38
ret
Function at 0x14000154b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14000a920
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14000a956
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
lea rcx, str._SystemRoot_SysWoW64_notepad.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
jmp 0x14000a96e
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
lea rcx, str._SystemRoot__system32_notepad.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14000a920
Capabilities:
Query environment variable

Disassembly:
jmp 0x14000a920
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14000a956
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
lea rcx, str._SystemRoot_SysWoW64_notepad.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
jmp 0x14000a96e
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
lea rcx, str._SystemRoot__system32_notepad.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14000ac30
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ac30
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
cmp qword [rsp + 0x30], 0
jne 0x14000ac46
xor eax, eax
jmp 0x14000acad
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000ac61
xor eax, eax
jmp 0x14000acad
mov dword [rsp + 8], 0x400
mov rax, qword [rsp]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x400
jle 0x14000ac82
xor eax, eax
jmp 0x14000acad
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x14000aca8
xor eax, eax
jmp 0x14000acad
mov rax, qword [rsp + 0x10]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c5a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400016fe
movzx eax, al
test eax, eax
jne 0x14000c5c0
mov ecx, 7
call fcn.1400015dc
nop
mov byte [rsp + 0x20], 0
call fcn.14000160e
mov byte [rsp + 0x21], al
cmp dword [0x14001c4f0], 1
jne 0x14000c5e4
mov ecx, 7
call fcn.1400015dc
nop
jmp 0x14000c63c
cmp dword [0x14001c4f0], 0
jne 0x14000c637
mov dword [0x14001c4f0], 1
lea rdx, [0x140015770]
lea rcx, [0x140015440]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x14000c618
mov eax, 0xff
jmp 0x14000c741
lea rdx, [0x140015330]
lea rcx, [section..rdata]
call sub.ucrtbased.dll__initterm
mov dword [0x14001c4f0], 2
jmp 0x14000c63c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400015c8
call fcn.1400014fb
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14000c699
mov rcx, qword [rsp + 0x30]
call fcn.1400012b2
movzx eax, al
test eax, eax
je 0x14000c699
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140022020]
nop
call fcn.140001541
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000c6cd
mov rcx, qword [rsp + 0x38]
call fcn.1400012b2
movzx eax, al
test eax, eax
je 0x14000c6cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.14000c7f0
mov dword [rsp + 0x28], eax
call fcn.1400014d3
movzx eax, al
test eax, eax
jne 0x14000c6ec
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000c6fb
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140001271
mov eax, dword [rsp + 0x28]
jmp 0x14000c741
add rsp, 0x68
ret
Function at 0x140002cb8
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x14000d168]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140002d29
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140002d29
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140002d07
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x140009cc8]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140001720
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140002d93
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140002e4f
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x140009c78]
call fcn.140002ad0
mov esi, eax
jmp 0x140002e52
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140002b74
mov esi, eax
test eax, eax
jns 0x140002dc9
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140002a98
jmp 0x140002e52
lea r8, [0x140009cd0]
lea rcx, [rsp + 0x30]
call fcn.140001720
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140002df8
mov edx, 0xd4
jmp 0x140002d79
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002b74
mov esi, eax
test eax, eax
jns 0x140002e2e
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140002a98
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140002e92
jmp 0x140002e52
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140002ea4
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140002e64
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140002eb6
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140006f30
lea r11, [rsp + 0x250]
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
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140002ae8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140002ae8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140002ae8
int3
Function at 0x140005274
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14000d168]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140004c40
mov edx, 0x10000
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400053d7
call fcn.140004c14
mov rdi, rax
and rdi, 0xfffffffffffff000
mov rdx, rbx
lea r11, [rbx + 0x10000]
cmp rbx, r11
jae 0x140005337
mov r9, r11
sub r9, rbx
mov r14d, 0x1000
cmp r9, r14
jle 0x14000530b
mov r8, r14
jmp 0x140005313
mov r8, r11
sub r8, rdx
je 0x14000532c
mov r10, rdi
mov rcx, rdx
sub rcx, rdi
mov al, byte [r10]
mov byte [rcx + r10], al
inc r10
sub r8, 1
jne 0x140005316
add rdx, r14
sub r9, r14
cmp rdx, r11
jb 0x140005301
lea rdx, [rbx + 0xfbd8]
lea rcx, [rdx + 8]
and dword [rcx], 0
mov dword [rdx + 0xc], 0xfbc0
mov eax, edx
sub eax, ebx
add eax, 0x14
mov dword [rdx + 0x10], eax
mov dword [rdx + 0x14], 0x19
mov eax, edx
sub eax, ebx
add eax, 0x1c
mov dword [rdx + 0x18], eax
mov word [rdx + 0x1c], 0x25ff
mov dword [rdx + 0x1e], 0xffffffde
lea rax, [0x140004c30]
mov qword [rdx], rax
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlAddFunctionTable]
test al, al
jne 0x1400053a3
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
xor ebx, ebx
test rbx, rbx
je 0x1400053d7
and dword [rbx + 0xfbc8], 0
and qword [rbx + 0xfbc0], 0
and qword [rbx + 0xfbd0], 0
mov eax, 0x3ef
lea rcx, [rbx + 0xfc00]
mov byte [rcx], 0
inc rcx
sub rax, 1
jne 0x1400053cb
mov ecx, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
cmp byte [rsp + 0x50], 0
je 0x140005412
and dword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov rcx, rax
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 - 2]
mov rax, qword [0x14000d970]
call qword [0x140008fb0]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006f30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140005504
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [0x14000d900]
jmp 0x14000555b
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
dec qword [0x14000d910]
test rsi, rsi
jne 0x14000551c
and qword [0x14000d900], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400072c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000730c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007304
cmp dword [rcx + 0x3c], edx
jl 0x140007304
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007304
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000730c
mov rax, rdx
add rsp, 0x18
ret