joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140091cf0
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, [0x1400de3c0]
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 0x140091d4e
cmp word [rdx], r12w
jne 0x140091d4e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140091d54
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140091eaf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140091e8a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140091d8d
mov rcx, r9
jmp 0x140091db0
cmp r9, rdx
jae 0x140091dc7
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 0x140091d71
jmp 0x140091eaf
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 0x140091e84
cmp dword [rsp + 0x80], edi
je 0x140091e84
mov rdx, r14
lea r11, [0x1400de3c0]
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 0x140091e5d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140091e30
mov word [rbx], r12w
jmp 0x140091eab
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 0x140091e39
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140091eab
cmp word [rsp + 0x70], r12w
jne 0x140091e6a
cmp rbx, rsi
je 0x140091e2a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400916bc
cmp word [rsp + 0x70], r12w
je 0x140091eaf
mov word [rbx], r13w
jmp 0x140091eab
lea r11, [0x1400de3c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140091ea7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140091eaf
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 0x1400988fc
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 0x140098983
mov rsi, rbx
cmp word [rax], bp
je 0x140098942
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009892c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140098928
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008dcc0
mov rdi, rax
test rax, rax
je 0x140098970
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009d880
mov rbp, rdi
xor ecx, ecx
call fcn.14008dc84
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 0x14009cb40
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.1400916bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400916bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009cc90
cmp rax, 0xffffffffffffffff
je 0x14009cc90
xor edi, edi
test rbp, rbp
jle 0x14009cc3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140090170
mov rbx, rax
test rax, rax
jne 0x14009cbc8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009cc31
mov edx, 0x8000
mov ecx, r14d
call fcn.14008cfcc
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.1400910f4
cmp eax, 0xffffffff
je 0x14009cc11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009cbd8
mov edx, r15d
mov ecx, r14d
call fcn.14008cfcc
jmp 0x14009cc31
cmp byte [rsi + 0x38], dil
je 0x14009cc28
cmp dword [rsi + 0x34], 5
jne 0x14009cc28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x14009cc31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008dc84
jmp 0x14009cca4
jns 0x14009cca4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400916bc
cmp rax, 0xffffffffffffffff
jne 0x14009cc5c
cmp byte [rsi + 0x30], dil
je 0x14009cca4
mov edi, dword [rsi + 0x2c]
jmp 0x14009cca4
mov ecx, r14d
call fcn.140098f48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009cca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x14009cca4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009cc9d
mov eax, dword [rsi + 0x2c]
jmp 0x14009cca2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400916bc
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 0x14009d450
Capabilities:
Parse pe header

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

Function at 0x141c27058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141c271df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141c27089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c2706f
add dl, dl
jne 0x141c27096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c270f6
xor eax, eax
add dl, dl
jne 0x141c270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c271ad
add dl, dl
jne 0x141c270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c2707e
mov eax, 1
add dl, dl
jne 0x141c27106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c27113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c270fb
sub eax, ebx
mov ebx, 1
jne 0x141c2714c
mov ecx, 1
add dl, dl
jne 0x141c2712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c2713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c27123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c2707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c27168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c27175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c2715d
cmp eax, 0x7d00
jae 0x141c2719b
cmp eax, 0x500
jb 0x141c27196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c2707e
cmp eax, 0x7f
ja 0x141c2719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c2707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c271d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141c2707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000e370
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000e37d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000e38d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000e375
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000e3a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000e392
sub eax, 3
jb 0x14000e3bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000e3f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000e3e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000e3e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000e3d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000e332
jmp 0x14000e37d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3c00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000e442
cmp rsi, rcx
jae 0x14000e44a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000e429
cmp al, 0x8f
ja 0x14000e429
cmp byte [rsi - 2], 0xf
je 0x14000e42f
sub al, 0xe8
cmp al, 1
ja 0x14000e413
cmp rsi, rcx
jae 0x14000e44a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000e419
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000e44a
lodsb al, byte [rsi]
jmp 0x14000e429
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb000]
mov eax, dword [rdi]
or eax, eax
je 0x14000e4a7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe1dc]
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 0x14000e457
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 0x14000e4a1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000e477
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 0x14000e4e1
cmp al, 0xef
ja 0x14000e4d3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000e4b3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000e4c2
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 0x14000e535
sub rsp, 0xffffffffffffff80
jmp 0x140003ed0
Function at 0x140011041
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140016380
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x140028040]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14002f0f4]
call fcn.1400117f8
xor edx, edx
mov ecx, 2
call fcn.1400113c0
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400163e9
xor al, al
jmp 0x14001645d
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400114f6
test eax, eax
jne 0x14001640f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14001645d
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x5c]
call fcn.140011339
movzx eax, al
test eax, eax
je 0x140016440
mov rax, qword [rbp + 0x428]
mov ecx, dword [rbp + 0x38]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14001645d
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011712
test eax, eax
jne 0x14001640f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140023080]
call fcn.1400116bd
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400113d9
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x14001147e
Capabilities:
Terminate process

Disassembly:
jmp 0x14001ae80
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 0x140011596
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c1d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c1f0
xor al, al
jmp 0x14001c271
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c203
xor al, al
jmp 0x14001c271
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 0x14001c22d
xor al, al
jmp 0x14001c271
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c241
xor al, al
jmp 0x14001c271
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c253
xor al, al
jmp 0x14001c271
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c26f
xor al, al
jmp 0x14001c271
mov al, 1
add rsp, 0x38
ret
Function at 0x140001f76
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.14010c140
mov rcx, rax
lea rax, [0x1401b413e]
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001ff5
lea rax, [0x1401b4148]
mov rdx, rax
mov rax, qword [0x140c89560]
mov rcx, rax
call fcn.1401a79c0
mov rcx, rax
mov rax, qword [rbp + 0x28]
mov rdx, rax
call fcn.1401a7d70
mov rcx, rax
mov rax, qword [0x140c89540]
mov rdx, rax
call fcn.140173010
jmp 0x1400020c2
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.140001bf1
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.14010b3a0
test al, al
je 0x140002053
lea rax, [0x1401b41a0]
mov rdx, rax
mov rax, qword [0x140c89500]
mov rcx, rax
call fcn.1401a76b0
mov rcx, rax
mov rax, qword [0x140c89530]
mov rdx, rax
call fcn.140156de0
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ebx, 0
jmp 0x140002096
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.14010b360
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140186f90
mov rdx, qword [rbp - 8]
mov r9, rdx
mov r8, rbx
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ebx, 1
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.14018a090
cmp ebx, 1
jmp 0x1400020c2
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x1400020c9
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x2fc], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x2f0], rax
cmp qword [rbp + 0x2f0], 0xffffffffffffffff
je 0x1400021bb
mov dword [rbp - 0x50], 0x130
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x2f0]
mov rdx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
setne al
test al, al
je 0x1400021a8
lea rax, [rbp - 0x50]
lea rdx, [rax + 0x2c]
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
lea rax, [rbp + 0xe0]
lea rdx, [0x1401b41c2]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
sete al
test al, al
je 0x14000218c
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x2fc], eax
jmp 0x1400021a8
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x2f0]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
jne 0x14000212a
mov rax, qword [rbp + 0x2f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0x2fc]
add rsp, 0x380
pop rbp
ret
Function at 0x1400027de
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14010c140
mov rdx, rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
call rax
test eax, eax
sete al
test al, al
je 0x1400028b1
lea rax, [0x1401b4410]
mov rdx, rax
mov rax, qword [0x140c89560]
mov rcx, rax
call fcn.1401a79c0
mov rcx, rax
mov rax, qword [0x140c89540]
mov rdx, rax
call fcn.140173010
jmp 0x1400028f0
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe8
pop rdi
pop rbp
ret
Function at 0x1400028fa
Capabilities:
Enumerate system firmware tables

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r8d, 0
mov edx, 0
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x20], 0
cmp dword [rbp - 0x14], 0
jne 0x140002936
mov eax, 1
jmp 0x140002abd
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002956
mov eax, 1
jmp 0x140002abd
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x20]
mov r8d, edx
mov rdx, rax
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140002990
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 1
jmp 0x140002abd
mov byte [rbp - 1], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
jmp 0x140002a66
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2f], 0
mov dword [rbp - 0x2c], 0
mov rax, qword [rbp - 0x28]
lea rdx, [rax + 0xa]
lea rax, [rbp - 0x2f]
mov r8d, 6
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, [0x1401b4450]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140002a12
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 0
jmp 0x140002abd
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x140002a3b
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, [0x1401b4455]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140002a3b
mov byte [rbp - 1], 1
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x10]
mov eax, eax
test rax, rax
jne 0x140002a5d
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 0
jmp 0x140002abd
add dword [rbp - 8], 1
add qword [rbp - 0x10], 1
mov eax, dword [rbp - 0x14]
shr eax, 2
mov eax, eax
cmp qword [rbp - 0x10], rax
jb 0x1400029a8
cmp dword [rbp - 8], 7
jg 0x140002a91
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 0
jmp 0x140002abd
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x140002aac
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 0
jmp 0x140002abd
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400fa070
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x14000f62d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
call fcn.1400d4d01
test eax, eax
jne 0x14000f7ff
mov ecx, 5
call fcn.14000a92c
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000a987
cmp dword [rbp + 0x10], 0
jle 0x14000f678
cmp qword [rbp + 0x18], 0
jne 0x14000f693
mov dword [0x140cc4220], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000a9e6
jmp 0x14000f800
mov eax, dword [0x140cc4220]
test eax, eax
jne 0x14000f723
mov ecx, 0
call fcn.14000a38d
mov qword [rbp - 0x18], rax
mov rax, qword [0x140c81660]
mov rdx, qword [0x140c81668]
mov qword [0x140cc4220], rax
mov qword [0x140cc4228], rdx
cmp qword [rbp - 0x18], 0
jne 0x14000f6ee
mov r8d, 0x2c
mov edx, 0
lea rax, [0x140cc4230]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14000f706
mov rax, qword [rbp - 0x18]
lea r8, [0x140cc4230]
mov edx, 0x2c
mov rcx, rax
call fcn.14000a104
mov eax, dword [0x140cc4250]
mov dword [0x140cc425c], eax
mov dword [0x140cc4250], 0
mov byte [0x140cc42a0], 0
movzx eax, byte [0x140cc42a0]
movzx eax, al
cmp dword [rbp + 0x10], eax
jg 0x14000f785
mov eax, dword [rbp + 0x10]
movsxd rcx, eax
movzx eax, byte [0x140cc42a0]
movzx eax, al
sub eax, dword [rbp + 0x10]
cdqe
lea rdx, [rax + 0x40]
lea rax, [0x140cc4220]
add rdx, rax
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movzx eax, byte [0x140cc42a0]
mov edx, dword [rbp + 0x10]
sub eax, edx
mov byte [0x140cc42a0], al
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000a9e6
jmp 0x14000f800
movzx eax, byte [0x140cc42a0]
test al, al
je 0x14000f7cb
movzx eax, byte [0x140cc42a0]
movzx edx, al
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x140cc4260]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movzx eax, byte [0x140cc42a0]
movzx eax, al
sub dword [rbp + 0x10], eax
movzx eax, byte [0x140cc42a0]
movzx eax, al
add qword [rbp - 8], rax
mov eax, dword [0x140cc4250]
add eax, 1
mov dword [0x140cc4250], eax
lea rax, [0x140cc4220]
mov rdx, rax
lea rax, [0x140cc4260]
mov rcx, rax
call fcn.14000f1bb
mov byte [0x140cc42a0], 0x40
jmp 0x14000f723
nop
add rsp, 0x40
pop rbp
ret