joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e818
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1050
call fcn.1400132c0
sub rsp, rax
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call fcn.140014f40
mov r9, rbx
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14000ad4c
lea rax, [rsp + 0x38]
neg edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
sbb rcx, rcx
lea rdx, [rsp + 0x40]
add rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
je 0x14000e8ae
cmp eax, 2
sete bl
jmp 0x14000e911
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x840]
mov dword [rsp + 0x30], 0x800
lea rdx, [0x14004173c]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000e8e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000e913
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x840]
sub rdx, rsi
movzx eax, word [rsi]
movzx ecx, word [rsi + rdx]
sub eax, ecx
jne 0x14000e90c
add rsi, 2
test ecx, ecx
jne 0x14000e8f9
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013330
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000f594
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea r8, [0x140042968]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140024bf0
xor ebx, ebx
test eax, eax
jne 0x14000f68c
mov rcx, qword [rsp + 0x30]
call fcn.140025c90
cmp qword [0x140077230], rbx
je 0x14000f5ff
lea eax, [rbx + 1]
jmp 0x14000f68e
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x14000f68c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14000f7c0
nop
lea rdx, str.JavaDeployReg.log
lea rcx, [rsp + 0x28]
call fcn.14000f7c0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.14000f880
nop
lea rcx, [rsp + 0x28]
call fcn.14000fde8
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14000f663
mov rdx, qword [rax]
jmp 0x14000f666
mov rdx, rbx
lea r8, [0x140041c74]
lea rcx, [0x140077230]
call fcn.140018048
test eax, eax
sete bl
lea rcx, [rsp + 0x20]
call fcn.14000fde8
mov eax, ebx
jmp 0x14000f68e
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140013330
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret
Function at 0x14000f8ec
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000f912
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000fc9c
jmp 0x14000f979
cmp byte [0x140077248], 0
jne 0x14000f956
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f946
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140077240], rax
jmp 0x14000f94d
mov rax, qword [0x140077240]
mov byte [0x140077248], 1
jmp 0x14000f95d
mov rax, qword [0x140077240]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000f973
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x14000f979
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000fc9c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000fcff
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fd13
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000fd13
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14000fd18
cmp dword [rcx + 8], 0
je 0x14000fd13
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000fd18
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ff48
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400132c0
sub rsp, rax
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 0x800
lea rcx, [rbp + 0x780]
mov r8d, esi
xor edx, edx
call fcn.140014f40
call fcn.140004888
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x780]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov qword [rsp + 0x28], r15
mov r9, r12
mov rcx, qword [rax]
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
call fcn.14001cde4
test eax, eax
cmovs eax, r12d
test eax, eax
jns 0x14000ffe1
mov word [rbp + 0xf7e], r15w
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call fcn.140014f40
mov ebx, 0x20
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.14000fe94
lea r8, [0x140044b6c]
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400296d8
mov r8, rsi
lea rcx, [rbp - 0x80]
xor edx, edx
call fcn.140014f40
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140010026
cmp rax, 6
jbe 0x140010053
add rax, 0xfffffffffffffffa
lea rdx, str.__08x_
lea rcx, [rdi + rax*2]
call fcn.14002b550
test eax, eax
mov eax, 1
je 0x140010056
mov eax, r15d
lea rcx, [rsp + 0x40]
mov r14, r12
inc r14
cmp word [rcx + r14*2], r15w
jne 0x14001005e
test eax, eax
lea rcx, [0x140044b8c]
lea rdi, str.Error:
cmove rdi, rcx
lea rsi, [r14 + r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x780]
mov edx, 0x3ff
mov qword [rsp + 0x38], r9
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rdi
lea r9, str.P:_04d_T:_04d__s_s
mov dword [rsp + 0x28], ebx
sub rdx, r14
add rcx, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140004898
mov rcx, qword [rbp + 0x776]
test eax, eax
movabs rdx, 0x2e002e002e
mov r8, rsi
cmovs rcx, rdx
lea rdx, [rsp + 0x40]
mov qword [rbp + 0x776], rcx
lea rcx, [rbp - 0x80]
call fcn.140014ae0
lea rcx, [rbp - 0x80]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x1400100fc
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
mov dword [rcx], eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140013330
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x1400107e4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.1400119a8
test eax, eax
jne 0x140010818
mov dword [rsp + 0x28], 1
lea r8, str.http:__java.com_inst_dl_redirect
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret
Function at 0x14001089c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3f70]
mov eax, 0x4070
call fcn.1400132c0
sub rsp, rax
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r15d, 0x1000
lea rcx, [rsp + 0x60]
mov r8d, r15d
xor edx, edx
xor edi, edi
call fcn.140014f40
mov r8d, r15d
lea rcx, [rbp + 0xf60]
xor edx, edx
call fcn.140014f40
lea rax, [rsp + 0x48]
mov r14d, 0x800
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r14d
lea rdx, [0x140046c30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010a6f
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x140010a52
lea rax, [rsp + 0x60]
mov rdx, r14
lea r9, [0x140046c90]
mov qword [rsp + 0x20], rax
lea r8, [0x140046cf0]
lea rcx, [rbp + 0xf60]
call fcn.14000ad4c
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010a31
mov r8, r15
lea rcx, [rbp + 0x1f60]
xor edx, edx
call fcn.140014f40
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1f60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RuntimeLib
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010a31
cmp dword [rsp + 0x40], eax
jbe 0x140010a31
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x2f60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140046d40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov edx, edi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010956
lea rdx, [rbp + 0x2f60]
mov rcx, rbx
call fcn.14000f7c0
mov rax, rbx
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.140013330
lea r11, [rsp + 0x4070]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011198
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov qword [rax + 0x18], rbx
mov rsi, rcx
call fcn.1400115d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
lea ebp, [rax*2 + 2]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400111fc
xor eax, eax
jmp 0x140011231
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov edi, 1
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140011224
mov ebx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140011508
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x20], 1
mov qword [rax - 0x18], rbx
mov rdi, rdx
mov rsi, rcx
call fcn.140024c10
test rax, rax
je 0x140011551
mov edx, dword [rsp + 0x60]
mov r8, rax
mov rcx, rdi
call fcn.140029758
test eax, eax
jne 0x14001157c
lea eax, [rbx + 1]
jmp 0x1400115b9
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140011580
xor eax, eax
jmp 0x1400115b9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400115ac
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400117b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x2f70]
mov eax, 0x3070
call fcn.1400132c0
sub rsp, rax
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rbp + 0x2f60], rax
mov r14d, edx
mov rsi, rcx
mov r12d, 0x1000
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov r8d, r12d
xor edx, edx
mov edi, ebx
call fcn.140014f40
mov r8d, r12d
lea rcx, [rbp + 0xf60]
xor edx, edx
call fcn.140014f40
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x800
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140048980]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011966
xor edx, edx
jmp 0x140011935
lea rax, [rsp + 0x60]
mov edx, 0x800
lea r9, [0x1400489f0]
mov qword [rsp + 0x20], rax
lea r8, [0x140048958]
lea rcx, [rbp + 0xf60]
call fcn.14000ad4c
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011929
mov r8, r12
lea rcx, [rbp + 0x1f60]
xor edx, edx
call fcn.140014f40
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1f60]
mov dword [rsp + 0x40], 0x800
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140048968]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011929
cmp dword [rsp + 0x40], ebx
jbe 0x140011929
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x1400489d8]
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc edi
mov dword [rsp + 0x40], 0x800
mov edx, edi
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140011850
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x14001196a
test rax, rax
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x2f60]
xor rcx, rsp
call fcn.140013330
mov rbx, qword [rsp + 0x30b0]
add rsp, 0x3070
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011c24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x1040
call fcn.1400132c0
sub rsp, rax
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
je 0x140011ca9
lea rax, [0x140048d80]
mov edx, 0x400
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [0x140048db0]
lea rcx, [rsp + 0x830]
call fcn.140012550
test eax, eax
jle 0x140011ca9
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011ca5
test al, 0x10
jne 0x140011ca5
mov ebx, 1
mov eax, ebx
jmp 0x140011cab
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140013330
add rsp, 0x1040
pop rbx
ret

Function at 0x140025f90
Capabilities:
Parse pe header

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

Function at 0x140026890
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400268b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140026a70
or eax, 0xffffffff
jmp 0x1400268b2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140030970
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14003094d
call fcn.140026ae0
mov dword [rax], socket
call fcn.140029364
or eax, 0xffffffff
jmp 0x14003096a
sub dword [rcx + 0x10], 1
jns 0x14003095c
add rsp, 0x28
jmp fcn.140036da8
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14003092c
Function at 0x140036f14
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 0x140036c3a
call fcn.140026ae0
mov dword [rax], socket
call fcn.140029364
jmp 0x140036d85
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140036d85
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140036d85
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140036c69
lock or dword [rcx + 0x14], 0x10
jmp 0x140036d85
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140036c7d
call fcn.14003d338
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140036c8d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140036c90
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14003021c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400353ec
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140036d73
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140036d21
mov rcx, rbx
call fcn.14003021c
cmp eax, 0xffffffff
je 0x140036d0c
mov rcx, rbx
call fcn.14003021c
cmp eax, 0xfffffffe
je 0x140036d0c
mov rcx, rbx
call fcn.14003021c
movsxd rdi, eax
lea r14, [0x140077db0]
mov rcx, rbx
sar rdi, 6
call fcn.14003021c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140036d13
lea rdx, [0x140061880]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140036d21
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140036d45
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140036d45
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140036d45
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140036d63
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140036d6e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140036d8a
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 0x140036c04
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14003f390]
mov dword [rax], 1
mov rax, qword [0x14003f3a0]
mov dword [rax], 1
mov rax, qword [0x14003f3b0]
mov dword [rax], 1
mov rax, qword [0x14003f380]
mov dword [rax], 1
mov rax, qword [0x14003f230]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140006eae
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140006ede
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x140006ee3
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140010c5c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret