joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d710
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 0x14002d740
xor eax, eax
jmp 0x14002d803
mov rbp, rbx
cmp word [rax], si
je 0x14002d765
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002d74c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002d748
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.14002be20
movsxd r14, eax
test eax, eax
jne 0x14002d7a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002d739
mov rcx, r14
call fcn.1400250c0
mov rdi, rax
test rax, rax
jne 0x14002d7bc
xor ecx, ecx
call fcn.1400242cc
jmp 0x14002d798
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.14002be20
test eax, eax
jne 0x14002d7ed
mov rcx, rdi
call fcn.1400242cc
jmp 0x14002d7f7
xor ecx, ecx
call fcn.1400242cc
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 0x140030778
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140023f6c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140030819
cmp ebx, dword [rsp + 0x30]
je 0x140030812
test esi, esi
je 0x140030812
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400307ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400307fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400307d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400307fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003081b
mov eax, 1
jmp 0x14003081b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003402c
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.14001d460
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400340b6
cmp byte [rbp - 0x21], r15b
je 0x1400340b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400340ec
call fcn.1400245d0
test eax, eax
jne 0x1400340d8
cmp byte [rbp - 0x21], r15b
je 0x1400340d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400340ec
cmp byte [rbp - 0x21], r15b
je 0x1400340e9
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.14001ffb0
test eax, eax
jne 0x14003418c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001d460
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003412b
cmp byte [rbp - 0x21], r15b
je 0x140034160
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140034160
call fcn.1400245d0
test eax, eax
jne 0x14003414c
cmp byte [rbp - 0x21], r15b
je 0x140034145
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140034160
cmp byte [rbp - 0x21], r15b
je 0x14003415d
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.14001ffb0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003418c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003418f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003419d
mov rcx, rdi
call fcn.1400242cc
cmp byte [rbp + 0x3f], r15b
je 0x1400341ac
mov rcx, qword [rbp + 0x27]
call fcn.1400242cc
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 0x14002943c
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.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
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.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
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 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
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 0x140001c48
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140006018]
xor rax, rsp
mov qword [rsp + 0x230], rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
lea rbx, str.C:Program_Files_tomato_tomato.exe
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbx + rax*2 + 2]
jne 0x140002050
add rax, 2
cmp rax, 0x23
je 0x140002097
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbx + rax*2]
je 0x140002030
xor edx, edx
lea rcx, str.C:Program_Files_tomato
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.1400013f0
test eax, eax
je 0x14000208e
xor r9d, r9d
lea rdx, str.failed
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
call fcn.140001240
call qword [sym.imp.ole32.dll_CoUninitialize]
xor edx, edx
mov r8d, 0x40004
lea ecx, [rdx + 0x66]
call qword [sym.imp.WINMM.dll_PlaySoundW]
test eax, eax
jne 0x1400020d4
xor r9d, r9d
lea rdx, str.failed
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002490
add rsp, 0x240
pop rbx
ret
Function at 0x180001400
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x60]
lea rdx, str.SDL3.dll
call fcn.1800023c0
lea r8, str.SDL_PeepEvents
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.180003130
mov rcx, rax
mov rdx, qword [rax]
test rdx, rdx
je 0x180001459
add rdx, 3
mov qword [rax], rdx
test rdx, rdx
je 0x180001459
movsxd rax, dword [rdx]
add rdx, 4
add rdx, rax
mov qword [rcx], rdx
mov qword [rbx], rdx
lea rcx, [rsp + 0x60]
xor esi, esi
lea rdx, str.client.dll
mov qword [rbx + 8], rsi
mov byte [rbx + 0x10], sil
call fcn.1800023c0
mov edi, 0x5a4d
mov r8, qword [rax]
test r8, r8
je 0x1800014e4
cmp word [r8], di
jne 0x1800014e4
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
cmovne rdx, rsi
test rdx, rdx
je 0x1800014e4
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x1800014e4
nop dword [rax]
test dword [rcx + 0x24], 0x20000000
je 0x1800014db
cmp dword [rcx], 0x7865742e
jne 0x1800014db
cmp byte [rcx + 4], 0x74
je 0x180001613
add rcx, 0x28
cmp rcx, rdx
jne 0x1800014c0
xorps xmm6, xmm6
lea rdx, str.USER32.dll
lea rcx, [rsp + 0x68]
call fcn.1800023c0
lea r8, str.MessageBoxA
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.180003130
lea rdx, str.panorama.dll
lea rcx, [rsp + 0x60]
mov rax, qword [rax]
mov qword [rbx + 0x28], rax
movups xmmword [rbx + 0x18], xmm6
call fcn.1800023c0
mov r8, qword [rax]
test r8, r8
je 0x180001594
cmp word [r8], di
jne 0x180001594
movsxd rcx, dword [r8 + 0x3c]
add rcx, r8
cmp dword [rcx], 0x4550
cmovne rcx, rsi
test rcx, rcx
je 0x180001594
movzx eax, word [rcx + 0x14]
add rax, 0x18
add rax, rcx
movzx ecx, word [rcx + 6]
lea rcx, [rcx + rcx*4]
lea rdx, [rax + rcx*8]
cmp rax, rdx
je 0x180001594
nop dword [rax + rax]
test dword [rax + 0x24], 0x20000000
je 0x18000158b
cmp dword [rax], 0x7865742e
jne 0x18000158b
cmp byte [rax + 4], 0x74
je 0x180001631
add rax, 0x28
cmp rax, rdx
jne 0x180001570
xorps xmm6, xmm6
lea rdx, str.USER32.dll
lea rcx, [rsp + 0x68]
call fcn.1800023c0
lea r8, str.MessageBoxA
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.180003130
mov rax, qword [rax]
mov qword [rbx + 0x40], rax
lea rax, [rbx + 0x268]
movups xmmword [rbx + 0x30], xmm6
mov byte [rbx + 0xd0], sil
movaps xmm6, xmmword [rsp + 0x30]
mov byte [rbx + 0x130], sil
mov byte [rbx + 0x230], sil
mov byte [rbx + 0x260], sil
mov qword [rax], 0xf4240
mov qword [rax + 8], rsi
mov qword [rax + 0xf4240], rax
mov rax, rbx
mov byte [rbx + 0xf44b0], sil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rcx + 0xc]
add rax, r8
mov qword [rsp + 0x20], rax
mov eax, dword [rcx + 8]
mov qword [rsp + 0x28], rax
movdqu xmm6, xmmword [rsp + 0x20]
jmp 0x1800014e7
mov ecx, dword [rax + 0xc]
add rcx, r8
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 8]
mov qword [rsp + 0x28], rcx
movdqu xmm6, xmmword [rsp + 0x20]
jmp 0x180001597
Function at 0x1800023c0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword gs:[0x60]
mov rbp, rdx
mov r14, rcx
mov rsi, qword [rax + 0x18]
add rsi, 0x10
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x180002466
movzx ebx, word [rdi + 0x58]
xor eax, eax
shr rbx, 1
je 0x180002455
mov r10, qword [rdi + 0x60]
nop dword [rax]
nop dword [rax + rax]
movzx edx, word [r10]
movsx r11d, byte [rax + rbp]
movzx r9d, r11w
lea ecx, [rdx - 0x61]
cmp cx, 0x19
lea r8d, [rdx - 0x20]
lea ecx, [r9 - 0x61]
cmova r8w, dx
cmp cx, 0x19
lea edx, [r9 - 0x20]
cmova dx, r11w
cmp r8w, dx
jne 0x18000245e
test r11b, r11b
je 0x18000245e
inc rax
add r10, 2
cmp rax, rbx
jb 0x180002410
mov rax, qword [rdi + 0x30]
mov qword [r14], rax
jmp 0x18000246d
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x1800023f5
mov qword [r14], 0
mov rbx, qword [rsp + 0x10]
mov rax, r14
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret

Function at 0x180003130
Capabilities:
Parse pe header

Disassembly:
push rbx
push r13
sub rsp, 0x18
mov r11, qword [rcx]
xor r9d, r9d
mov r13, r8
mov rbx, rdx
test r11, r11
je 0x180003269
mov qword [rsp + 0x30], rbp
mov eax, 0x5a4d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
cmp word [r11], ax
jne 0x18000323e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
cmp dword [rax], 0x4550
cmovne rax, r9
test rax, rax
je 0x18000323e
add rax, 0x18
mov ecx, 0x20b
cmp word [rax], cx
jne 0x18000323e
test rax, rax
je 0x18000323e
cmp dword [rax + 0x6c], r9d
jbe 0x18000323e
lea r14, [rax + 0x70]
test r14, r14
je 0x18000323e
mov r15d, dword [r14]
mov r10d, r9d
mov edi, dword [r11 + r15 + 0x18]
lea rsi, [r11 + r15]
test edi, edi
je 0x18000323e
mov r12d, dword [rsi + 0x20]
nop dword [rax]
mov ebp, r10d
mov r8, r13
lea rax, [r12 + rbp*4]
mov eax, dword [rax + r11]
add rax, r11
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180003207
inc rax
test ecx, ecx
jne 0x1800031f4
test edx, edx
je 0x180003215
inc r10d
cmp r10d, edi
jb 0x1800031e0
jmp 0x18000323e
mov ecx, dword [rsi + 0x24]
add rcx, r11
movzx edx, word [rcx + rbp*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r11
mov r8d, dword [rcx + rdx*4]
cmp r8d, r15d
jb 0x18000323a
mov eax, r8d
sub eax, r15d
cmp eax, dword [r14 + 4]
jb 0x18000323e
lea r9, [r11 + r8]
mov qword [rbx], r9
mov rax, rbx
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rbx
ret
mov qword [rdx], r9
mov rax, rbx
add rsp, 0x18
pop r13
pop rbx
ret
Function at 0x14069e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14069e1df
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 0x14069e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069e06f
add dl, dl
jne 0x14069e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069e0f6
xor eax, eax
add dl, dl
jne 0x14069e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069e1ad
add dl, dl
jne 0x14069e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14069e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069e07e
mov eax, 1
add dl, dl
jne 0x14069e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069e0fb
sub eax, ebx
mov ebx, 1
jne 0x14069e14c
mov ecx, 1
add dl, dl
jne 0x14069e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14069e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069e15d
cmp eax, 0x7d00
jae 0x14069e19b
cmp eax, 0x500
jb 0x14069e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069e07e
cmp eax, 0x7f
ja 0x14069e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14069e1d2
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 0x14069e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002934c
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.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
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.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
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 0x180024200
Capabilities:
Parse pe header

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

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140001930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov ebx, edx
mov r11, rcx
test rcx, rcx
je 0x1400019e2
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add r10, rcx
mov r8d, dword [r8 + 0x18]
add rsi, rcx
test r8d, r8d
je 0x1400019e2
nop dword [rax]
mov eax, dword [r10]
mov ecx, 0x562a681
add rax, r11
movsx edx, byte [rax]
inc rax
test edx, edx
je 0x1400019b1
nop word [rax + rax]
imul ecx, ecx, 0x21
lea rax, [rax + 1]
add ecx, edx
movsx edx, byte [rax - 1]
test edx, edx
jne 0x1400019a0
cmp ecx, ebx
je 0x1400019d3
inc r9d
add r10, 4
cmp r9d, r8d
jb 0x140001980
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov eax, dword [rdi + rcx*4]
add rax, r11
jmp 0x1400019e4
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140002000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
xor r15d, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x238
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x140002072
mov rdi, qword [r14]
mov rbx, rdi
lea rsi, [rdi + rax*2]
jmp 0x14000207c
mov rbx, r14
lea rsi, [r14 + rax*2]
mov rdi, r14
cmp rbx, rsi
je 0x14000209a
sub rdi, rbx
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rbx + rdi], ax
add rbx, 2
cmp rbx, rsi
jne 0x140002084
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400021b8
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400049b0
nop
lea rdi, [rsp + 0x20]
mov r10, qword [rsp + 0x38]
cmp r10, 8
setae al
mov r8, qword [rsp + 0x20]
cmovae rdi, r8
lea rcx, [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
test al, al
je 0x1400020f1
mov rbx, r8
lea rsi, [r8 + rdx*2]
jmp 0x1400020fa
lea rsi, [rcx + rdx*2]
lea rbx, [rsp + 0x20]
cmp rbx, rsi
je 0x140002127
sub rdi, rbx
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rbx + rdi], ax
add rbx, 2
cmp rbx, rsi
jne 0x140002102
mov r10, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140002134
mov rcx, qword [r14]
lea r9, [rsp + 0x20]
cmp r10, 8
cmovae r9, r8
cmp rdx, qword [r14 + 0x10]
jne 0x1400021f1
test rdx, rdx
je 0x140002178
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx + r9]
cmp ax, word [rcx]
jne 0x1400021f1
add rcx, 2
sub rdx, 1
jne 0x140002160
mov r15d, dword [rsp + 0x48]
cmp r10, 8
jb 0x1400021b8
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400021b0
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000223b
mov rcx, r8
call fcn.140005994
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140005930
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp r10, 8
jb 0x140002228
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140002220
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000223b
mov rcx, r8
call fcn.140005994
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1400020a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3