joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013d8b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r9d, byte [r8 + 0x10]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov rdi, rdx
movzx eax, byte [r8 + 0x11]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 0x12]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 0x13]
imul r9, rcx
xor r9, rax
imul r9, rcx
mov rcx, qword [r10 + 0x18]
and rdx, r9
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x14013d944
cmp rax, r8
jne 0x14013d93a
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x14013d94f
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x14013d94f
cmp rax, r8
jne 0x14013d94f
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov edx, 0x18
mov rbx, qword [r8]
mov qword [rax], rbx
mov rcx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
mov rcx, r8
dec qword [r10 + 0x10]
call fcn.1401812c4
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401416f0
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rsi
sub rsp, 0x48
movzx r8d, byte [rdx]
mov rbp, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov r9, rdx
movzx eax, byte [rdx + 1]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
mov rdx, qword [rbp + 8]
imul r8, rcx
xor r8, rax
imul r8, rcx
mov rcx, qword [rbp + 0x30]
and rcx, r8
mov r8, qword [rbp + 0x18]
mov rax, rcx
add rax, rax
add rcx, rcx
mov rax, qword [r8 + rax*8]
mov r10, qword [r8 + rcx*8]
lea r11, [r8 + rcx*8]
cmp r10, rdx
jne 0x14014176b
mov rcx, rdx
jmp 0x140141772
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140141784
mov ecx, dword [r9]
cmp dword [rax + 0x10], ecx
je 0x140141787
mov rax, qword [rax]
jmp 0x140141761
mov rax, rdx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x40], rdi
cmp rax, rdx
jne 0x140141811
mov rbx, qword [rdx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 8]
mov qword [rsp + 0x70], r9
lea rax, [rsp + 0x70]
lea r9, [0x140234c46]
mov qword [rsp + 0x20], rax
mov rdi, qword [rbx + 8]
mov rdx, rbx
mov r8, rdi
call fcn.14010bdf0
mov rdx, rax
movabs rcx, 0x492492492492491
mov rax, qword [rbp + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x140141826
inc rax
mov rcx, rbp
mov qword [rbp + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rdi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [rbp + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.14010c130
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rax, 0x18
mov rbx, qword [rsp + 0x68]
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.14015edd8
int3
Function at 0x140147fa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x20060
call fcn.140181ce0
sub rsp, rax
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rsp + 0x20050], rax
mov r9, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov r15, rcx
test r9, r9
je 0x140148109
xor esi, esi
cmp byte [rcx + 0x20], sil
je 0x140148020
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x140147ffe
lea eax, [rcx - 2]
cmp eax, 1
ja 0x14014801c
lea edx, [rsi + 2]
jmp 0x140148003
mov edx, 3
lea rax, [0x140236760]
mov r8d, 1
lea rcx, [rcx + rcx*2]
add rcx, rax
call fcn.1401b1e24
mov byte [r15 + 0x20], sil
movsxd r10, dword [r15]
cmp r10d, 7
ja case.default.0x14014803f
lea rcx, [0x140000000]
mov r9d, dword [rcx + r10*4 + 0x148134]
add r9, rcx
jmp r9
mov r9, qword [r15 + 8]
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.1401b1e24
mov rsi, rax
jmp 0x14014810b
lea rax, [rdi + rbx]
mov dword [rsp + 0x24], esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x28], si
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x20], r10d
call fcn.140147890
mov rax, qword [rsp + 0x40]
mov ebx, esi
cmp qword [rsp + 0x38], rax
ja 0x1401480ff
mov rdi, rsi
nop dword [rax + rax]
cmp dword [rsp + 0x24], esi
jne 0x1401480b5
movzx eax, word [rsp + 0x28]
inc ebx
mov word [rsp + rdi*2 + 0x50], ax
inc rdi
lea rcx, [rsp + 0x20]
call fcn.140147890
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
cmp ebx, 0x10000
je 0x1401480d6
cmp r14, rbp
jbe 0x1401480a0
mov r9, qword [r15 + 8]
lea rcx, [rsp + 0x50]
movsxd rdx, ebx
mov r8d, 1
add rdx, rdx
call fcn.1401b1e24
test rax, rax
je 0x140148109
mov ebx, esi
mov rdi, rsi
cmp r14, rbp
jbe 0x1401480a0
mov esi, 1
mov rax, rsi
jmp 0x14014810b
xor eax, eax
mov rcx, qword [rsp + 0x20050]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0x200a8]
add rsp, 0x20060
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14014f060
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x788]
sub rsp, 0x880
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rbx, rcx
call fcn.14014a020
mov r9d, 0x40
lea r8, str.Recovery_initiating
lea rdx, str.Notepad_will_attempt_to_save_any_unsaved_data._However__dataloss_is_very_likely.
mov rcx, qword [0x1402bf1e0]
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rsp + 0x70]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x38], xmm1
xor edi, edi
mov word [rsp + 0x28], di
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x14014f100
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140006d70
nop
mov r8d, 9
lea rdx, str.NRECOV
lea rcx, [rsp + 0x28]
call fcn.140006aa0
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x28]
call fcn.14008a980
test al, al
je 0x14014f21e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], di
mov r8d, 0x8a
lea rdx, str.Notepad_was_able_to_successfully_recover_some_unsaved_documents__or_nothing_to_be_saved_could_be_found._r_nYou_can_find_the_results_at_:_r_n
lea rcx, [rsp + 0x48]
call fcn.140006d70
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140006aa0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r9d, 0x40
lea r8, str.Recovery_success
mov rcx, qword [0x1402bf1e0]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14014f209
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014f204
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014f2bb
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
jmp 0x14014f240
mov r9d, InitCommonControls
lea r8, str.Recovery_failure
lea rdx, str.Unfortunatly__Notepad_was_not_able_to_save_your_work._We_are_sorry_for_any_lost_data.
mov rcx, qword [0x1402bf1e0]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14014f27e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014f279
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014f2b5
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1401813e0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
nop
int3
Function at 0x140152a10
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14012b160
call fcn.14000c990
cmp qword [rax + 0x32e60], 0
je 0x140152af7
mov rcx, qword [rbx + 0x18]
mov edx, 0x8ff
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov edx, 0x8fe
mov qword [rsp + 0x20], 0xc80014
mov r8d, 0x406
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
mov r9d, 1
mov qword [rsp + 0x20], 0x96
mov r8d, 0x405
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov edx, 0x8fe
mov qword [rsp + 0x20], 0
mov r8d, 0xf0
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 1
je 0x140152af7
mov rcx, qword [rbx + 0x18]
mov edx, 0x8fe
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_EnableWindow]
add rsp, 0x30
pop rbx
ret
Function at 0x14015acf0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14015ae2a
mov r8, rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140159570
mov rdi, rax
lea rbx, [rsi + 0x140]
xor ebp, ebp
cmp rbx, rax
je 0x14015ad88
mov rcx, rbx
call fcn.1400068d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14015adca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015adc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015ae4c
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14015adea
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015ae2a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14015ae01
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14015ae2a
cmp qword [rbx + 0x18], 8
jb 0x14015ae15
mov rbx, qword [rbx]
mov r9, rbx
xor r8d, r8d
mov edx, 0x835
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.1401a2d8c
int3
Function at 0x14015dca0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 8], rdi
jne 0x14015dcf4
lea rax, [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, qword [rcx]
lea r8, [0x14015e130]
xor edx, edx
xor ecx, ecx
call fcn.1401b5244
mov qword [rbx + 8], rax
mov ecx, 0x88
call fcn.140181288
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14015dd2b
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], esi
mov r9d, ebp
mov r8, r14
mov rdx, qword [rbx]
mov rcx, rax
call fcn.14015e300
mov rdi, rax
mov r8, rdi
mov rdx, qword [rbx + 8]
lea rcx, [0x14015dd60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_QueueUserAPC]

Function at 0x140183ab0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140183ac3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1401840d0
lea rdx, [0x14029fe08]
lea rcx, [rsp + 0x20]
call fcn.14019f1ec
int3

Function at 0x14018f820
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402c1918]
xor edx, edx
jmp fcn.140183ab0

Function at 0x1401901b0
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402c1918]
jmp fcn.140183ab0

Function at 0x14019bdf8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14019beb4]
mov r9, qword [r9 + 8]
jmp fcn.14018bcf4

Function at 0x14019be8c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14019bec4]
mov r9, qword [r9 + 8]
jmp fcn.14018bcf4

Function at 0x1401b2e14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401b2c40
Function at 0x1401bec04
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 0x1401be92a
call fcn.1401acca0
mov dword [rax], 0x16
call fcn.1401a2d6c
jmp 0x1401bea75
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401bea75
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401bea75
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401be959
lock or dword [rcx + 0x14], 0x10
jmp 0x1401bea75
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401be96d
call fcn.1401c27ec
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401be97d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401be980
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401bcf70
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401be380
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401bea63
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401bea11
mov rcx, rbx
call fcn.1401bcf70
cmp eax, 0xffffffff
je 0x1401be9fc
mov rcx, rbx
call fcn.1401bcf70
cmp eax, 0xfffffffe
je 0x1401be9fc
mov rcx, rbx
call fcn.1401bcf70
movsxd rdi, eax
lea r14, [0x1402c20f0]
mov rcx, rbx
sar rdi, 6
call fcn.1401bcf70
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401bea03
lea rdx, [0x1402a9d90]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401bea11
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401bea35
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401bea35
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401bea35
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401bea53
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401bea5e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401bea7a
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 0x1401be8f4
Function at 0x1400293ac
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.14001ca74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400294fc
cmp rax, 0xffffffffffffffff
je 0x1400294fc
xor edi, edi
test rbp, rbp
jle 0x1400294a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f3a0
mov rbx, rax
test rax, rax
jne 0x140029434
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002949d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a3a8
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.14001d750
cmp eax, 0xffffffff
je 0x14002947d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029444
mov edx, r15d
mov ecx, r14d
call fcn.14001a3a8
jmp 0x14002949d
cmp byte [rsi + 0x38], dil
je 0x140029494
cmp dword [rsi + 0x34], 5
jne 0x140029494
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002949d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b13c
jmp 0x140029510
jns 0x140029510
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca74
cmp rax, 0xffffffffffffffff
jne 0x1400294c8
cmp byte [rsi + 0x30], dil
je 0x140029510
mov edi, dword [rsi + 0x2c]
jmp 0x140029510
mov ecx, r14d
call fcn.140018864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029510
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 0x140029510
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029509
mov eax, dword [rsi + 0x2c]
jmp 0x14002950e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca74
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 0x1400018f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001942
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001942
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001942
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001942
cmp dword [rcx + 0x84], 0xe
jbe 0x140001942
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001944
xor al, al
add rsp, 0x28
ret
Function at 0x14000ae50
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd78]
test rcx, rcx
je 0x14000ae8b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ae7e
mov rcx, qword [0x14002dd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003cdd0], 0
je 0x14000af7e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028880]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400305a0]
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 0x14000af5f
test al, 0x10
je 0x14000af5f
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 0x14000af05
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 0x14000b570
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000be24
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f483
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f483
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f483
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f483
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f483
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f483
cmp dword [rcx + 0xf8], 0
je 0x14000f483
mov ecx, ebx
call fcn.14000f540
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f310
nop
cmp dword [rbp + 0x20], 0
je 0x14000f4d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f4dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f414