joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400065d8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rcx, str.kernelbase.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140006634
lea rdx, str.GetTempPath2A
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140006634
mov rdx, rdi
mov ecx, 0x104
call fcn.14000a010
mov edi, eax
jmp 0x14000664f
mov rdx, rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
mov edi, eax
test rbx, rbx
je 0x14000665e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140006674
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000f670]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400066c8
mov al, byte [r9 + rcx]
test al, al
je 0x1400066c8
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400066a9
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.14000899c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000671a
test al, 0x10
jne 0x14000671a
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x14000672d
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f70
add rsp, 0x148
ret
Function at 0x1400070c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x170], rax
and dword [rsp + 0x50], 0
mov rbx, rcx
mov esi, 1
test rcx, rcx
jne 0x140007101
xor eax, eax
jmp 0x1400072b3
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov rdx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x140007246
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000ed68], 0
mov edi, dword [rsp + 0x50]
jne 0x1400071b1
mov eax, dword [0x14000febc]
test sil, al
je 0x1400071b1
test al, 2
jne 0x1400071b1
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1400071b1
mov dword [0x14000febc], edi
test dword [0x14000fec4], 0x800
je 0x1400071c5
mov dword [0x14000f5a4], edi
jmp 0x14000720f
cmp dword [0x14000f5a0], 0
jne 0x140007205
movzx ecx, word [0x14000fed8]
mov ebx, dword [0x14000fedc]
call fcn.14000351c
cmp ebx, eax
jne 0x140007205
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1400071f7
test sil, dil
jne 0x140007205
test dword [0x14000fec4], 0x200
je 0x14000720f
jmp 0x1400071bd
mov dword [0x14000f5a4], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x14000fec4], 0x400
je 0x1400072b1
cmp dword [rsp + 0x50], 0
jge 0x1400072b1
jmp 0x1400072af
call fcn.1400065b0
mov dword [0x14000f5a4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c4
xor ecx, ecx
call fcn.140006208
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140008f70
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007c98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007d34
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007d7e
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007cfe
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call fcn.14000a010
mov rcx, rbx
test eax, eax
je 0x140007d6e
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.1400036b0
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x140007cca
jmp 0x140007d8a
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007d8a
mov dword [0x14000f5a4], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f70
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400080dc
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
movzx edx, al
test eax, eax
mov r9d, esi
cmovns r9d, edx
cmp r9d, 6
jb 0x140008154
lea rcx, [0x14000b880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140008154
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140008154
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call fcn.14000a010
mov rdx, rbx
mov dword [0x14000f5a4], esi
mov rcx, rdi
call fcn.140005840
test eax, eax
je 0x140008210
call fcn.140004744
mov ebx, eax
call fcn.140004424
test ebx, ebx
je 0x140008210
cmp byte [0x14000ed7a], sil
jne 0x140008210
mov edi, dword [0x14000febc]
test dil, 1
je 0x140008210
test dil, 2
jne 0x1400081be
cmp dword [0x14000f5a0], esi
jne 0x1400081be
movzx ecx, word [0x14000fed8]
mov ebx, dword [0x14000fedc]
call fcn.14000351c
cmp ebx, eax
je 0x140008210
test dil, 4
jne 0x1400081ef
mov dword [rsp + 0x28], 4
lea r8, [0x14000b760]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140006208
cmp eax, 6
jne 0x140008210
cmp word [0x14000fed8], si
jne 0x14000820b
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x140008210
call fcn.1400033f0
mov rcx, qword [0x14000e890]
test rcx, rcx
je 0x140008228
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000f5a4]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140008520
Capabilities:
Create directory

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 r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r13, [0x14000f0a0]
mov rsi, rcx
mov ebx, edx
mov rax, r13
lea rcx, [0x14000f5a0]
lea edi, [r15 + 1]
cmp dword [rax], edi
je 0x14000856a
add r15d, edi
add rax, 0x20
cmp rax, rcx
jl 0x14000855a
cmp r15d, 0x28
jne 0x14000859d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e888]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDICopy
call fcn.140006208
or rax, 0xffffffffffffffff
jmp 0x140008756
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x1400085f4
test ebx, 0x10b
jne 0x140008594
movsxd rdx, r15d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000f5c0]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000f5c8]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x140008753
test bl, 8
je 0x140008602
or rcx, 0xffffffffffffffff
jmp 0x14000872d
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140008638
bt ebx, 0xa
jae 0x140008626
mov ebx, edi
jmp 0x140008648
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140008648
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000872d
cmp ebx, 3
je 0x14000872d
cmp byte [rsi], 0
je 0x140008701
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r14d, r14d
cmp al, 0x3a
jne 0x1400086a5
cmp byte [rdi], 0x5c
jne 0x1400086a5
lea rdi, [rsi + 3]
jmp 0x1400086b4
cmp byte [rsi], 0x5c
jne 0x1400086b8
cmp al, 0x5c
jne 0x1400086b8
mov r14d, 2
mov al, byte [rdi]
jmp 0x1400086fd
lea rdi, [rsi + 1]
jmp 0x1400086fd
cmp al, 0x5c
jne 0x1400086e9
cmp byte [rdi - 1], 0x3a
je 0x1400086e9
test r14d, r14d
je 0x1400086d2
dec r14d
jmp 0x1400086e9
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x1400086be
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r15d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x14000874f
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x140008753
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140008ce0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
lea rcx, [rbp - 0x65]
mov r8d, 0x90
call sub.msvcrt.dll_memset
mov esi, dword [0x14000e27c]
xor edi, edi
mov qword [rbp - 0x71], rdi
mov dword [rbp - 0x75], edi
mov dword [rbp - 0x79], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140008e8a
lea rcx, [rbp - 0x69]
mov dword [0x14000e27c], edi
mov dword [rbp - 0x69], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008e84
lea esi, [rdi + 1]
cmp dword [rbp - 0x59], esi
jne 0x140008e84
cmp dword [rbp - 0x65], 4
jne 0x140008e84
cmp dword [rbp - 0x61], 0xa
jae 0x140008e84
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008e84
lea rax, [rbp - 0x71]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008e84
mov rcx, qword [rbp - 0x71]
lea rax, [rbp - 0x79]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x75]
lea rax, [rbp + 0x37]
xor r8d, r8d
lea rdx, [0x14000b760]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x71]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008e84
lea r8, [rbp + 0x37]
mov al, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x140008e2a
movsx eax, byte [r8]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008e50
mov al, byte [r8]
sub al, 0x20
cmp byte [r8], 0x61
movzx edx, al
movzx eax, byte [r8]
cmovl edx, eax
movsx ecx, dl
lea eax, [rcx - 0x41]
cmp eax, 5
ja 0x140008e64
shl edi, 4
add edi, 0xffffffc9
add edi, ecx
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov r8, rax
jmp 0x140008e13
lea rax, [rbp + 0x37]
cmp r8, rax
je 0x140008e84
and edi, 0x3ff
cmp edi, esi
je 0x140008e7c
cmp edi, 0xd
jne 0x140008e84
mov dword [0x14000e27c], esi
jmp 0x140008e8a
mov esi, dword [0x14000e27c]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008f70
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1408150b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140815237
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 0x1408150e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408150c7
add dl, dl
jne 0x1408150ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14081514e
xor eax, eax
add dl, dl
jne 0x1408150fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140815205
add dl, dl
jne 0x14081510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14081511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140815128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140815135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140815142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408150d6
mov eax, 1
add dl, dl
jne 0x14081515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14081516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140815153
sub eax, ebx
mov ebx, 1
jne 0x1408151a4
mov ecx, 1
add dl, dl
jne 0x140815186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140815193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14081517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408150d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408151c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408151cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408151b5
cmp eax, 0x7d00
jae 0x1408151f3
cmp eax, 0x500
jb 0x1408151ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408150d6
cmp eax, 0x7f
ja 0x1408151f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408150d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14081522a
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 0x1408150d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001450
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 0xfffffaaa
movsx ecx, byte [rcx]
test ecx, ecx
je 0x1400014fc
xor eax, ecx
lea r8, [r8 + 1]
mov edx, eax
mov ecx, eax
shl ecx, 0x1f
sar ecx, 0x1f
and ecx, 0x77073096
shl edx, 0x18
sar edx, 0x1f
and edx, 0xedb88320
xor edx, ecx
mov ecx, eax
shl ecx, 0x1d
sar ecx, 0x1f
and ecx, 0x76dc419
xor edx, ecx
mov ecx, eax
shl ecx, 0x19
sar ecx, 0x1f
and ecx, 0x76dc4190
xor edx, ecx
mov ecx, eax
shl ecx, 0x1a
sar ecx, 0x1f
and ecx, 0x3b6e20c8
xor edx, ecx
mov ecx, eax
shl ecx, 0x1e
sar ecx, 0x1f
and ecx, 0xee0e612c
xor edx, ecx
mov ecx, eax
shl ecx, 0x1b
sar ecx, 0x1f
and ecx, 0x1db71064
xor edx, ecx
mov ecx, eax
shl ecx, 0x1c
sar ecx, 0x1f
and ecx, 0xedb8832
xor edx, ecx
mov ecx, eax
shr ecx, 8
mov eax, edx
xor eax, ecx
movsx ecx, byte [r8]
test ecx, ecx
jne 0x140001463
not eax
ret
Function at 0x140028974
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.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
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.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
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 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
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 0x140029bd0
Capabilities:
Parse pe header

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

Function at 0x140bc71f4
Capabilities:
Encode data using base64

Disassembly:
bswap ecx
xadd qword [rsp + rcx*2 + 8], rbx
ror esi, 3
movsx edx, bl
mov qword [rsp + rcx], r11
push rcx
lea esi, [rcx + rsi + 0x17b9f337]
bswap esi
add qword [rsp + rcx + 0x10], rbp
xor dword [rsp + rcx*2 + 0x10], esi
add ax, 0x130f
setbe byte [rsp + rcx + 9]
mov rbp, qword [rsp + rcx*4 + 0x10]
add ecx, dword [rsp + rcx + 0xc]
push rbx
xor rbx, qword [rsp + rcx*2 + 9]
movsxd rsi, esi
imul r11, rbx
xor r11w, dx
adc r8, rsi
pop rcx
pop r11
pop rdx
pop rcx
jmp fcn.140b93ded
Function at 0x1403258e0
Capabilities:
Parse pe header

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

Function at 0x1400111db
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140012bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c10
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c23
xor al, al
jmp 0x140012c91
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 0x140012c4d
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c61
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012c73
xor al, al
jmp 0x140012c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012c8f
xor al, al
jmp 0x140012c91
mov al, 1
add rsp, 0x38
ret
Function at 0x180001330
Capabilities:
Read file on windows

Disassembly:
mov rax, r9
mov r9, qword [rcx + 8]
mov r10, r8
mov r11, rdx
test r9, r9
jne 0x180001345
xor eax, eax
ret
mov r8, rax
mov rdx, r10
mov rcx, r11
jmp fcn.1800bff68

Function at 0x180001360
Capabilities:
Write file on windows

Disassembly:
mov rax, r9
mov r9, qword [rcx + 8]
mov r10, r8
mov r11, rdx
test r9, r9
jne 0x180001375
xor eax, eax
ret
mov r8, rax
mov rdx, r10
mov rcx, r11
jmp fcn.1800c0124

Function at 0x1800059b0
Capabilities:
Delete file

Disassembly:
add rcx, 0x10
jmp 0x18000c690
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r8
mov rbx, rcx
call fcn.180011c10
test al, al
jne 0x18000c6d2
mov eax, 0x80004005
jmp 0x18000c764
lea rdx, [rbx + 0x80]
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.180003570
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.180071140
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180012ea0
nop
cmp qword [rsp + 0x48], 8
jb 0x18000c738
mov rcx, qword [rsp + 0x30]
call fcn.1800bf8b4
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x70], 8
jb 0x18000c762
mov rcx, qword [rsp + 0x58]
call fcn.1800bf8b4
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800bf8d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret