joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002010
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140007f90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007f90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002080
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x1400021b0
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400020cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002155
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400020b0
mov rcx, rbx
call fcn.140002ad0
mov rdi, rax
test rax, rax
je 0x1400021d2
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002c10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400021b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000214e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002160
add dword [0x14000e0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000214e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002010
nop dword [rax]
xor esi, esi
jmp 0x1400020d8
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002010
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002010
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000279c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002793
test rsi, rsi
je 0x140002793
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002778
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002ad0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000abc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002af0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002af8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002af0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002af0
add rax, 0x28
cmp rax, r9
jne 0x140002b30
xor eax, eax
ret

Function at 0x140002b50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000abc0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002b6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002b78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002b6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002c10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000abc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002c2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002c38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001118b
Capabilities:
Hide thread from debugger

Disassembly:
jmp 0x140013380
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140028102]
call fcn.1400114dd
mov dword [rbp + 4], 0x11
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x64], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x88], rax
lea rdx, str.NtSetInformationThread
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x11
mov rcx, rax
call qword [rbp + 0x28]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x140013404
mov dword [rbp + 0x64], 1
mov eax, dword [rbp + 0x64]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001129e
Capabilities:
Get memory capacity

Disassembly:
jmp 0x1400138c0
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x140028102]
call fcn.1400114dd
mov qword [rbp + 8], 0x40000000
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x40
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x38], rax
jae 0x14001393c
mov dword [rbp + 0x134], 1
jmp 0x140013946
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x134]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001e270]
call fcn.140011429
mov eax, edi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011258
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400112a3
Capabilities:
Terminate process

Disassembly:
jmp 0x1400165e0
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 0x140011334
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
jmp 0x140012b20
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x140028102]
call fcn.1400114dd
mov qword [rbp + 8], 0
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0xf8]
call fcn.1400113ca
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x130]
call fcn.1400113ca
mov r8d, 0xb0
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400113ca
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rbp + 0xf8]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x130]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r8d, 0x10002
mov edx, dword [rbp + 0x10c]
mov ecx, dword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
mov edx, 0xffffffff
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
lea rcx, [rbp - 0x50]
lea rdx, [0x14001dfa0]
call fcn.140011429
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.140011258
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x140011361
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017930
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017950
xor al, al
jmp 0x1400179d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017963
xor al, al
jmp 0x1400179d1
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 0x14001798d
xor al, al
jmp 0x1400179d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400179a1
xor al, al
jmp 0x1400179d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400179b3
xor al, al
jmp 0x1400179d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400179cf
xor al, al
jmp 0x1400179d1
mov al, 1
add rsp, 0x38
ret

Function at 0x1400113a7
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
jmp 0x1400136b0
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140028102]
call fcn.1400114dd
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 2
jae 0x140013710
mov eax, 1
jmp 0x14001375b
mov dword [rbp + 0x60], 0x40
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rbp + 0x68]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 2
jae 0x140013759
mov eax, 1
jmp 0x14001375b
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001e170]
call fcn.140011429
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140011258
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret

Function at 0x1400113b1
Capabilities:
Check if process is running under wine

Disassembly:
jmp 0x140013a60
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140028102]
call fcn.1400114dd
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140013a9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140013abe
lea rdx, str.wine_get_unix_file_name
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140013ab9
xor eax, eax
jmp 0x140013abe
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400114ba
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400135f0
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x140028102]
call fcn.1400114dd
mov qword [rbp + 8], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x3e8
xor edx, edx
mov rcx, rax
call qword [rbp + 0x28]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14001366f
xor eax, eax
jmp 0x140013674
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14016f440
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14016f44d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14016f45d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14016f445
lea eax, [rcx + 1]
jmp 0x14016f46b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14016f47e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14016f464
sub eax, 3
jb 0x14016f49e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14016f4ed
sar eax, 1
movsxd rbp, eax
jb 0x14016f4d4
jmp 0x14016f4ac
add ebx, ebx
jne 0x14016f4aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14016f4d4
inc ecx
add ebx, ebx
jne 0x14016f4ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14016f4d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14016f4cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14016f4bc
add ecx, 2
jmp 0x14016f4d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14016f402
jmp 0x14016f44d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf3e00
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14016f539
cmp rsi, rcx
jae 0x14016f541
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14016f520
cmp al, 0x8f
ja 0x14016f520
cmp byte [rsi - 2], 0xf
je 0x14016f526
sub al, 0xe8
cmp al, 1
ja 0x14016f50a
cmp rsi, rcx
jae 0x14016f541
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14016f510
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14016f541
lodsb al, byte [rsi]
jmp 0x14016f520
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16c000]
mov eax, dword [rdi]
or eax, eax
je 0x14016f5aa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x173e5c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14016f54e
jns 0x14016f583
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14016f58d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14016f5a4
mov qword [rbx], rax
add rbx, 8
jmp 0x14016f56e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14016f5e4
cmp al, 0xef
ja 0x14016f5d6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14016f5b6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14016f5c5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14016f638
sub rsp, 0xffffffffffffff80
jmp 0x140016220
Function at 0x14026d0a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14026d0ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14026d0bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14026d0a5
lea eax, [rcx + 1]
jmp 0x14026d0cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14026d0de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14026d0c4
sub eax, 3
jb 0x14026d0fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14026d14d
sar eax, 1
movsxd rbp, eax
jb 0x14026d134
jmp 0x14026d10c
add ebx, ebx
jne 0x14026d10a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14026d134
inc ecx
add ebx, ebx
jne 0x14026d11a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14026d134
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14026d12d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14026d11c
add ecx, 2
jmp 0x14026d139
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14026d062
jmp 0x14026d0ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x178e00
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14026d199
cmp rsi, rcx
jae 0x14026d1a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14026d180
cmp al, 0x8f
ja 0x14026d180
cmp byte [rsi - 2], 0xf
je 0x14026d186
sub al, 0xe8
cmp al, 1
ja 0x14026d16a
cmp rsi, rcx
jae 0x14026d1a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14026d170
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14026d1a1
lodsb al, byte [rsi]
jmp 0x14026d180
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x267000]
mov eax, dword [rdi]
or eax, eax
je 0x14026d1fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x26d058]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14026d1ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14026d1f8
mov qword [rbx], rax
add rbx, 8
jmp 0x14026d1ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14026d242
cmp al, 0xef
ja 0x14026d22a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14026d20a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14026d219
mov eax, dword [rdi]
add rdi, 4
jmp 0x14026d219
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14026d296
sub rsp, 0xffffffffffffff80
jmp 0x1401618c4
Function at 0x1800011e0
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x480], rbx
mov rax, qword [0x18007f130]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x20], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180002290
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], 0
jge 0x1800012a6
or eax, 0xffffffff
jmp 0x1800012c2
lea rdx, [0x1800682ac]
call fcn.18003452c
test rax, rax
jne 0x1800012bc
or eax, 0xffffffff
jmp 0x1800012c2
sub rax, qword [rbx]
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180001d70
nop
mov rdx, rax
mov rcx, rbx
call fcn.180001f80
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800012ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1800682b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1800682b0]
mov rcx, rbx
call fcn.180002500
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800340f0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
Function at 0x180001350
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [0x1800682c0]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1800013bd
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1800029b0
test rax, rax
je 0x1800013da
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180002430
jmp 0x1800013da
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.180002290
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1800011e0
nop
mov rdx, rax
lea rcx, [rsi + 0x30]
call fcn.180001f80
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180001420
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000143f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, qword [rsi + 0x30]
lea rdx, [0x1800682c8]
mov ecx, 0x68
call fcn.1800310e0
test eax, eax
je 0x18000150a
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180001506
mov edx, 2
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x38], rax
xor r8d, r8d
mov rdx, qword [rsi + 0x30]
lea rcx, [rsp + 0x88]
call fcn.18002cfd0
nop
mov r9, qword [rsi]
mov r8, qword [rax]
lea rdx, str.AdShowPath
lea rcx, str.Share
call fcn.18001d540
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800014ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 1
jmp 0x18000150c
xor eax, eax
jmp 0x18000150c
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001550
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
xor esi, esi
mov rax, qword [rcx]
cmp dword [rax - 0x10], esi
jne 0x18000157d
xor eax, eax
jmp 0x18000165d
call fcn.180001350
mov ecx, 0x50
call fcn.180034140
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800015fa
mov ecx, 8
call fcn.180034140
test rax, rax
je 0x1800015ad
mov qword [rax], rdi
jmp 0x1800015b0
mov rax, rsi
mov qword [rdi], rax
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x28], rsi
mov qword [rdi + 0x30], rsi
mov dword [rdi + 0x38], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0x40], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0x48], rax
jmp 0x1800015fd
mov rdi, rsi
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.1800023a0
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x28]
call fcn.1800079b0
test eax, eax
je 0x18000165b
mov rcx, qword [rbx + 0x28]
call fcn.180009220
test eax, eax
je 0x18000163c
mov esi, 1
jmp 0x18000165b
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18000164b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret