joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d10
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140018129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140003620
mov rsi, rax
test rax, rax
je 0x140001f11
mov rax, qword [0x14001e320]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rsi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140007c00
mov rdi, rax
test rax, rax
jne 0x140001d88
mov edi, 0xffffffff
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.14000e4b0
test eax, eax
js 0x140001ec0
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ee0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rdi, rax
bswap edx
mov qword [rbx], rdi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, edi
mov dword [rbx + 0x2c], ecx
mov dword [0x140022040], ecx
mov rcx, rsi
call fcn.14000e4b0
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140001f1b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ea0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov edi, eax
test eax, eax
jne 0x140001f00
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001d70
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r8
jb 0x140001e70
jmp 0x140001d70
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002410
jmp 0x140001d6b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002410
jmp 0x140001d6b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002410
jmp 0x140001d6b
lea rcx, str.Error_on_file._n
call fcn.1400023b0
jmp 0x140001d6b
mov edi, 0xffffffff
jmp 0x140001d78
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002410
jmp 0x140001d6b
Function at 0x140006e80
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000db60
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140008250
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140006ec8
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140008080
mov rcx, rax
test rax, rax
je 0x140006eb6
cmp byte [rax], 0
je 0x140006eb6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140006f70
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008250
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400072b0
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000db60
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140008250
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
mov rcx, r12
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000731c
cmp ax, 0x5c
jne 0x140007370
lea rdx, [0x14001a47a]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000e100
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140007388
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x14001a476]
mov rcx, r12
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000731c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.1400073f0
jmp 0x1400073cf
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.1400073f0
mov rdx, rbx
mov rcx, r14
call fcn.14000e1d0
test eax, eax
je 0x1400073b0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140007347

Function at 0x1400073f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000db60
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001a47e]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140007430
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001a482]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007421
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140007490
call fcn.140008530
test eax, eax
jne 0x1400074b8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008080
mov rcx, rbx
call fcn.1400072b0
jmp 0x140007421
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140007421
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140007421
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140007421
Function at 0x140007700
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000db60
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001a51c]
call fcn.140003620
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400075e0
mov rdi, rax
test rbx, rbx
je 0x1400077f9
test rax, rax
je 0x1400077ec
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x1400077e8
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140007798
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007750
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x1400077c1
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x1400077b9
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007750
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x1400077c6
test rbx, rbx
je 0x1400077f9
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140007806
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x1400077d6
Function at 0x140007870
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000db60
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.140008250
mov edx, 1
lea rcx, [0x140006d30]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [fcn.140015d00]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007a18
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002450
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140007c00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007cf0
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000e4b0
test eax, eax
js 0x140007cf0
mov rcx, r12
call fcn.14000e550
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007cf0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007cf0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000e4b0
test eax, eax
js 0x140007cf0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140007cf0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007cda
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007d10
mov rbx, r15
test rbx, rbx
jne 0x140007cc0
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007c69
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007cf2

Function at 0x1400084e0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140022300]
test rax, rax
je 0x14000851a
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.1400023b0
mov eax, 0xffffffff
jmp 0x140008515
Function at 0x14000cda0
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.140015d00
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.140015d00
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 0x14000ce10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140023384]
mov rbx, rcx
test esi, esi
jle 0x14000cf40
mov rax, qword [0x140023388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ce5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000cee5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ce40
mov rcx, rbx
call fcn.14000d880
mov rdi, rax
test rax, rax
je 0x14000cf62
mov rax, qword [0x140023388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d9c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140023388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000cf47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000cede
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000cef0
add dword [0x140023384], 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 [0x140023388]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cede
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000cda0
nop dword [rax]
xor esi, esi
jmp 0x14000ce68
mov rax, qword [0x140023388]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000cda0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000cda0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d4f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400233e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400233c0]
test rbx, rbx
je 0x14000d54c
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 rsi, rsi
je 0x14000d543
test eax, eax
jne 0x14000d543
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d528
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 0x14000d880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001e6f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d8a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d8a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d8a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000d8fd
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 0x14000d8f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d8a0
add rax, 0x28
cmp rax, r9
jne 0x14000d8e0
xor eax, eax
ret

Function at 0x14000d900
Capabilities:
Parse pe header

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

Function at 0x14000d9c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001e6f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d9df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d9e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x413de0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x413ded
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x413dfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x413de5
lea eax, [rcx + 1]
jmp 0x413e0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x413e1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x413e04
sub eax, 3
jb 0x413e3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x413e8d
sar eax, 1
movsxd rbp, eax
jb 0x413e74
jmp 0x413e4c
add ebx, ebx
jne 0x413e4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x413e74
inc ecx
add ebx, ebx
jne 0x413e5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x413e74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x413e6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x413e5c
add ecx, 2
jmp 0x413e79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00413da2
jmp 0x413ded
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x413ed9
cmp rsi, rcx
jae 0x413ee1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x413ec0
cmp al, 0x8f
ja 0x413ec0
cmp byte [rsi - 2], 0xf
je 0x413ec6
sub al, 0xe8
cmp al, 1
ja 0x413eaa
cmp rsi, rcx
jae 0x413ee1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x413eb0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x413ee1
lodsb al, byte [rsi]
jmp 0x413ec0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11000]
mov eax, dword [rdi]
or eax, eax
je 0x413f3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x14318]
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 0x413eee
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 0x413f38
mov qword [rbx], rax
add rbx, 8
jmp 0x413f0e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1af]
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
mov byte [fcn.00413fc1], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00413fc1
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x413fb1
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x1800106f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r14, r9
mov r15, rdx
mov r13, rcx
mov r12, qword [rbp + 0x70]
mov rax, qword [rcx]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], 0
je 0x180010730
mov qword [rbp - 0x10], rax
mov rdi, rax
jmp 0x180010779
mov ecx, dword [r14]
nop word cs:[rax + rax]
nop dword [rax]
mov rdi, rbx
mov ebx, dword [rbx + 0x20]
xor esi, esi
cmp ebx, ecx
setae sil
xor edx, edx
cmp ecx, ebx
setb dl
test r8b, r8b
cmovne edx, esi
mov ebx, edx
xor bl, 1
movzx ebx, bl
shl rbx, 4
mov rbx, qword [rdi + rbx]
cmp byte [rbx + 0x19], 0
je 0x180010740
mov qword [rbp - 0x10], rdi
test dl, dl
je 0x1800107b2
cmp rdi, qword [rax]
je 0x180010790
lea rcx, [rbp - 0x10]
call fcn.180010870
mov r8b, 1
mov rax, qword [rbp - 0x10]
jmp 0x1800107b8
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 8]
mov rcx, r13
mov r8b, 1
mov r9, rdi
mov qword [rbp - 0x18], r13
call fcn.18000ffe0
jmp 0x1800107dd
xor r8d, r8d
mov rax, rdi
mov eax, dword [rax + 0x20]
cmp eax, dword [r14]
jae 0x1800107eb
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 8]
mov rcx, r13
mov r9, rdi
mov qword [rbp - 0x18], r13
call fcn.18000ffe0
mov rax, qword [rbp - 8]
mov qword [r15], rax
mov byte [r15 + 8], 1
jmp 0x180010809
lea rcx, [rbp - 8]
mov r8d, 1
mov rdx, r12
call fcn.180001e70
mov rax, qword [rbp - 0x10]
mov qword [r15], rax
mov byte [r15 + 8], 0
mov rax, r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180023a70
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r15, r9
mov r12, rdx
mov r14, rcx
mov r9, qword [rcx]
mov rdi, qword [r9 + 8]
cmp byte [rdi + 0x19], 0
je 0x180023aaa
mov qword [rbp - 0x18], r9
mov rbx, r9
jmp 0x180023aeb
mov rcx, qword [r15]
nop dword [rax]
mov rbx, rdi
mov rdi, qword [rdi + 0x20]
xor esi, esi
cmp rdi, rcx
setae sil
xor edx, edx
cmp rcx, rdi
setb dl
test r8b, r8b
cmovne edx, esi
mov eax, edx
xor al, 1
movzx eax, al
shl rax, 4
mov rdi, qword [rbx + rax]
cmp byte [rdi + 0x19], 0
je 0x180023ab0
mov qword [rbp - 0x18], rbx
test dl, dl
je 0x180023b1b
cmp rbx, qword [r9]
je 0x180023b02
lea rcx, [rbp - 0x18]
call fcn.1800242a0
mov r8b, 1
mov rax, qword [rbp - 0x18]
jmp 0x180023b21
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 0x10]
mov rcx, r14
mov r8b, 1
mov r9, rbx
call fcn.180023ba0
jmp 0x180023b3e
xor r8d, r8d
mov rax, rbx
mov rcx, qword [rax + 0x20]
cmp rcx, qword [r15]
jae 0x180023b4e
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 0x10]
mov rcx, r14
mov r9, rbx
call fcn.180023ba0
mov rax, qword [rbp - 0x10]
mov qword [r12], rax
mov byte [r12 + 8], 1
jmp 0x180023b58
mov qword [r12], rax
mov byte [r12 + 8], 0
mov rax, r12
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret

Function at 0x1800325c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r15, r9
mov r14, rdx
mov r13, rcx
mov r12, qword [rbp + 0x70]
mov rax, qword [rcx]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], 0
je 0x180032600
mov qword [rbp - 0x10], rax
mov rsi, rax
jmp 0x18003264c
mov rcx, qword [r15]
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rbx
mov rbx, qword [rbx + 0x20]
xor edi, edi
cmp rbx, rcx
setae dil
xor edx, edx
cmp rcx, rbx
setb dl
test r8b, r8b
cmovne edx, edi
mov ebx, edx
xor bl, 1
movzx ebx, bl
shl rbx, 4
mov rbx, qword [rsi + rbx]
cmp byte [rbx + 0x19], 0
je 0x180032610
mov qword [rbp - 0x10], rsi
test dl, dl
je 0x180032685
cmp rsi, qword [rax]
je 0x180032663
lea rcx, [rbp - 0x10]
call fcn.180032770
mov r8b, 1
mov rax, qword [rbp - 0x10]
jmp 0x18003268b
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 8]
mov rcx, r13
mov r8b, 1
mov r9, rsi
mov qword [rbp - 0x18], r13
call fcn.180031e70
jmp 0x1800326b1
xor r8d, r8d
mov rax, rsi
mov rax, qword [rax + 0x20]
cmp rax, qword [r15]
jae 0x1800326bf
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 8]
mov rcx, r13
mov r9, rsi
mov qword [rbp - 0x18], r13
call fcn.180031e70
mov rax, qword [rbp - 8]
mov qword [r14], rax
mov byte [r14 + 8], 1
jmp 0x1800326e7
lea rcx, [r12 + 0x28]
call fcn.18002df50
lea rcx, [rbp - 8]
mov r8d, 1
mov rdx, r12
call fcn.180028940
mov rax, qword [rbp - 0x10]
mov qword [r14], rax
mov byte [r14 + 8], 0
mov rax, r14
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret