joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400da358
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.1400ce5f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ce5f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400da4a8
cmp rax, 0xffffffffffffffff
je 0x1400da4a8
xor edi, edi
test rbp, rbp
jle 0x1400da453
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400cae70
mov rbx, rax
test rax, rax
jne 0x1400da3e0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400da449
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c6c10
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.1400ccb80
cmp eax, 0xffffffff
je 0x1400da429
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400da3f0
mov edx, r15d
mov ecx, r14d
call fcn.1400c6c10
jmp 0x1400da449
cmp byte [rsi + 0x38], dil
je 0x1400da440
cmp dword [rsi + 0x34], 5
jne 0x1400da440
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1400da449
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400c9634
jmp 0x1400da4bc
jns 0x1400da4bc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ce5f8
cmp rax, 0xffffffffffffffff
jne 0x1400da474
cmp byte [rsi + 0x30], dil
je 0x1400da4bc
mov edi, dword [rsi + 0x2c]
jmp 0x1400da4bc
mov ecx, r14d
call fcn.1400d38f0
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x1400da4bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x1400da4bc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400da4b5
mov eax, dword [rsi + 0x2c]
jmp 0x1400da4ba
mov eax, SafeArrayCopy
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ce5f8
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a940]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a950]
mov dword [rax], 1
mov rax, qword [0x14000a960]
mov dword [rax], 1
mov rax, qword [0x14000a8e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a930]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aa10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a9f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a890]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400015c4
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov r8d, 0x18
mov edx, 0
mov rcx, qword [rbp + 0x10]
call sym.memset
lea rax, [rbp - 0x20]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x20], 0x18
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x18], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0xa0]
mov rax, qword [rbp + 0x18]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x140001668
mov eax, 2
jmp 0x1400017d2
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x140001694
mov eax, 2
jmp 0x1400017d2
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0x20]
lea rax, [rbp - 0x98]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x1400016c6
mov eax, 2
jmp 0x1400017d2
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x1400016f2
mov eax, 2
jmp 0x1400017d2
lea rax, [rbp - 0x90]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x90], 0x68
mov rax, qword [rbp - 0xa0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0xa0]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x98]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x54], 0x101
mov word [rbp - 0x50], 0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, section..rdata
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x1400017a7
mov eax, 2
jmp 0x1400017d2
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x98]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0xf0
pop rbp
ret
Function at 0x140001903
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rcx, str.ws2_32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000195a
mov rax, qword [rbp - 8]
lea rdx, str.inet_addr
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14000d050], rax
mov rax, qword [0x14000d050]
test rax, rax
jne 0x14000195a
mov eax, 0
jmp 0x140001a65
lea rcx, str.iphlpapi.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400019d3
mov rax, qword [rbp - 8]
lea rdx, str.IcmpCreateFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14000d040], rax
mov rax, qword [rbp - 8]
lea rdx, str.IcmpSendEcho
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14000d048], rax
mov rax, qword [0x14000d040]
test rax, rax
je 0x1400019d3
mov rax, qword [0x14000d048]
test rax, rax
je 0x1400019d3
mov eax, 1
jmp 0x140001a65
lea rcx, str.ICMP.DLL
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001a49
mov rax, qword [rbp - 8]
lea rdx, str.IcmpCreateFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14000d040], rax
mov rax, qword [rbp - 8]
lea rdx, str.IcmpSendEcho
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14000d048], rax
mov rax, qword [0x14000d040]
test rax, rax
je 0x140001a49
mov rax, qword [0x14000d048]
test rax, rax
je 0x140001a49
mov eax, 1
jmp 0x140001a65
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.fallo_en_la_carga_de_funciones___u_
call sym.printf
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1400020f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000d0d4]
mov r12, rcx
test ebx, ebx
jle 0x140002220
mov rax, qword [0x14000d0d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000213c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400021c3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002120
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140002242
mov rax, qword [0x14000d0d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000d0d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002227
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400021bc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400021d0
add dword [0x14000d0d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000d0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400021bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140002147
mov rax, qword [0x14000d0d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400027c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000d140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d120]
test rbx, rbx
je 0x140002814
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000280b
test r12, r12
je 0x14000280b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400027f0
lea rcx, [0x14000d140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002a30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002a48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002a50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002a60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002aac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002aa3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x140002aae
add rax, 0x28
cmp rax, r9
jne 0x140002a90
xor eax, eax
ret

Function at 0x140002ab0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002b40
mov rdx, qword [0x14000a8e0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002b2e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002b2e
cmp word [rax + 0x18], 0x20b
jne 0x140002b2e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002b40
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002b19
add r12, 0x28
cmp r12, rsi
je 0x140002b40
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002b10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002b50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a8e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002bc5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002bbc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b70
add rax, 0x28
cmp rax, r9
jne 0x140002ba8
xor eax, eax
ret

Function at 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a8e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002bf0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002bf8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002bf0
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x140002c10
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a8e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002c30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002c38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002c30
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002c78
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002c6f
test rcx, rcx
je 0x140002c30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002c60
xor eax, eax
ret

Function at 0x140002c80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a8e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002ca0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002ca8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a8e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002ce0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002ce8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ce0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002ce0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d38
add rax, 0x28
cmp r9, rax
jne 0x140002d10
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002d50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a8e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002d72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002d80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002d72
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002d72
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002dcd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002de0
add rdx, 0x28
cmp r10, rdx
jne 0x140002db8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002def
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002dff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002dd6
test ecx, ecx
jg 0x140002de8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000332c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140003386
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400b38f0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140003370
cmp rdx, 2
jb 0x140003370
cmp byte [r10], r11b
jne 0x140003370
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x14000334e
jmp 0x1400033c7
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1400033c7
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400b38f0]
cmp dl, r11b
jne 0x1400033ab
cmp byte [r10], r11b
jne 0x1400033ab
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x140003399
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1400034fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x14000351c
and qword [r8], 0
lea rdx, [0x1400b347c]
call fcn.1400033d8
mov rbx, rax
test rax, rax
je 0x14000360d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003604
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003604
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003604
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003604
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140003604
mov rax, qword [0x1402c2240]
test rax, rax
je 0x1400035a1
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140003604
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1400035f1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402c2240]
test rax, rax
je 0x1400035e6
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000360d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400035ff
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000360f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005aec
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402c10c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd r8, dword [rcx + 0xe8]
mov r10d, 4
mov rax, qword [rcx + 0xf0]
mov r9d, r10d
mov dword [rsp + 0x20], edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x20]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1400b38f0]
xor ebx, dword [rax + rcx*4]
sub r9, 1
jne 0x140005b28
mov rcx, qword [0x1402c2240]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140005b66
movsxd r8, edx
mov ecx, ebx
mov edx, r10d
call fcn.140015b70
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009fef0
add rsp, 0x30
pop rbx
ret

Function at 0x1400147f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c40], 0
lea rbx, [rcx + 0x5c48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140014889
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x140014841
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140016aa8
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140003c0c
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c40]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1402c2238]
movsxd r8, eax
mov rax, qword [rdi + 0x5c50]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140014891
mov rcx, rbx
call fcn.140003c0c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140015070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1402c2240]
mov rbx, rcx
and dword [rax + 0x5ba4], 0
test rcx, rcx
je 0x1400150d9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1400150e4
lea rdx, [0x1400b3480]
mov rcx, rbx
mov rdi, rax
call fcn.1400033d8
mov rbx, rax
test rax, rax
je 0x1400150d9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140033a78
Capabilities:
Change the wallpaper
Delete file
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x20], 0
mov rbx, rdx
mov r8, rdx
xor r9d, r9d
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x140033b07
xor edx, edx
mov r9d, 3
mov r8, rbx
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140033ae4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Wallpaper_set_successfully.
call fcn.14003d02c
lea rdx, [0x14003d1b4]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x140033b09
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Failed_to_set_the_wallpaper.
call fcn.14003d02c
lea rdx, [0x14003d1b4]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
add rsp, 0x30
pop rbx
ret