joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x0101c380]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x38]
mov rbp, rcx
xor ebx, ebx
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rsi, rbx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100d833
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.0100d56c
mov rsi, qword [rsp + 0x30]
jmp 0x100d835
mov eax, ebx
mov r8d, 1
cmp eax, ebx
je 0x100d8f6
mov rdx, rsi
mov qword [rsp + 0x30], rdx
cmp rsi, rbx
je 0x100d8f6
lea rdi, [rsp + 0x50]
sub rdi, rbp
mov qword [rsp + 0x38], rdi
mov rcx, rbp
mov al, byte [rcx]
mov byte [rdi + rcx], al
add rcx, r8
cmp al, bl
jne 0x100d864
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
lea r9, [0x010064c0]
sub rdi, r8
xor ecx, ecx
mov al, byte [r9 + rcx]
mov byte [rdi + rcx], al
add rcx, r8
test al, al
jne 0x100d889
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
sub rdi, r8
xor ecx, ecx
mov al, byte [rdx + rcx + 8]
mov byte [rdi + rcx], al
add rcx, r8
test al, al
jne 0x100d8a9
lea rcx, [rsp + 0x50]
call fcn.0100d7c0
mov rdx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rdx]
mov r8d, 1
mov qword [rsp + 0x30], rdx
cmp rdx, rbx
jne 0x100d861
cmp rsi, rbx
je 0x100d8f6
mov rdi, qword [rsi]
mov rcx, rsi
call fcn.0101226c
mov rsi, rdi
cmp rdi, rbx
jne 0x100d8e3
lea rcx, [rsp + 0x50]
mov esi, 1
sub rcx, rbp
mov al, byte [rbp]
mov byte [rcx + rbp], al
add rbp, rsi
cmp al, bl
jne 0x100d903
lea rcx, [rsp + 0x50]
mov edx, 0x5c
call fcn.01014e78
mov rdi, rax
cmp rax, rbx
je 0x100d971
mov byte [rax], bl
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100d971
mov rcx, qword [rsp + 0x40]
lea rdx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x40]
cmp eax, ebx
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.0100f170
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100e86c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x0101c380]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x94
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rbx
call fcn.01012d10
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
cmp eax, ebx
jne 0x100e8bb
xor eax, eax
jmp 0x100ea62
mov edx, 2
cmp dword [rsp + 0x30], edx
jne 0x100ea09
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x100e8db
lea ebx, [rdx + 4]
jmp 0x100ea60
mov ecx, 5
cmp eax, ecx
jne 0x100e942
mov eax, dword [rsp + 0x28]
cmp eax, ebx
jne 0x100e8f4
lea ebx, [rcx + 2]
jmp 0x100ea60
cmp eax, 1
jne 0x100e901
lea ebx, [rax + 7]
jmp 0x100ea60
cmp eax, edx
jne 0x100ea60
call fcn.0100ea8c
mov ecx, 9
cmp ax, cx
jne 0x100e920
lea ebx, [rcx + 1]
jmp 0x100ea60
mov edi, 6
cmp ax, di
jne 0x100e932
lea ebx, [rdi + 5]
jmp 0x100ea60
cmp ax, bx
jne 0x100ea60
mov ebx, ecx
jmp 0x100ea60
mov edi, 6
cmp eax, edi
jne 0x100ea00
mov ecx, dword [rsp + 0x28]
cmp ecx, ebx
jne 0x100e98e
call fcn.0100ea8c
lea ecx, [rdi + 3]
cmp ax, cx
jne 0x100e96c
lea ebx, [rdi + 7]
jmp 0x100ea60
cmp ax, di
jne 0x100e97b
mov ebx, 0xe
jmp 0x100ea60
cmp ax, bx
jne 0x100ea60
mov ebx, 0xc
jmp 0x100ea60
cmp ecx, 1
jne 0x100e9cc
call fcn.0100ea8c
mov ecx, 9
cmp ax, cx
jne 0x100e9aa
lea ebx, [rcx + 7]
jmp 0x100ea60
cmp ax, di
jne 0x100e9b9
mov ebx, 0x11
jmp 0x100ea60
cmp ax, bx
jne 0x100ea60
mov ebx, 0xf
jmp 0x100ea60
cmp ecx, edx
jne 0x100e9fc
call fcn.0100ea8c
mov ecx, 9
cmp ax, cx
jne 0x100e9e4
lea ebx, [rcx + 0xa]
jmp 0x100ea60
cmp ax, di
jne 0x100e9f0
mov ebx, 0x14
jmp 0x100ea60
cmp ax, bx
jne 0x100ea60
mov ebx, 0x12
jmp 0x100ea60
ja 0x100ea02
cmp eax, edi
jbe 0x100ea60
mov ebx, 0x15
jmp 0x100ea60
cmp dword [rsp + 0x30], 1
jne 0x100ea60
cmp dword [rsp + 0x24], 4
jne 0x100ea60
mov eax, dword [rsp + 0x28]
cmp eax, ebx
jne 0x100ea36
mov al, byte [rsp + 0x35]
cmp al, 0x43
je 0x100ea32
cmp al, 0x42
je 0x100ea32
mov ebx, 1
jmp 0x100ea60
mov ebx, edx
jmp 0x100ea60
cmp eax, 0xa
jne 0x100ea55
cmp byte [rsp + 0x35], 0x41
jne 0x100ea47
lea ebx, [rax - 6]
jmp 0x100ea60
cmp word [rsp + 0x2c], 0xbb8
mov ebx, 3
jmp 0x100ea58
cmp eax, 0x5a
mov ecx, 5
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.0100f170
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x100ea8c
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x298
mov rax, qword [0x0101c380]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.01012d10
lea rcx, [rsp + 0x60]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100eb1c
and qword [rsp + 0x20], 0
lea r9, [0x01007120]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x170]
xor edx, edx
call fcn.01019a0c
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x01007130]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100eb1c
lea rcx, [rsp + 0x30]
call rax
mov r11w, word [rsp + 0x30]
jmp 0x100eb22
mov r11d, 0xffff
mov ax, r11w
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.0100f170
add rsp, 0x298
ret

Function at 0x100f170
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0101c380]
jne 0x100f18b
rol rcx, 0x10
test cx, 0xffff
jne 0x100f187
ret 0
ror rcx, 0x10
jmp 0x10108d8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0101e490]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x0101e588]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x101095d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0101e490]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x101097f
mov rax, qword [rsp + 0x88]
mov qword [0x0101e588], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0101e528], rax
mov rax, qword [0x0101e588]
mov qword [0x0101e400], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0101e510], rax
mov dword [0x0101e3f0], 0xc0000409
mov dword [0x0101e3f4], 1
mov rax, qword [0x0101c380]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0101c388]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01004b30]
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, 0x88
ret
Function at 0x100f440
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.01010c84
nop
cmp dword [0x0101dfbc], 1
je 0x100f4f3
mov dword [0x0101dfb8], 1
mov byte [0x0101df74], dil
test ebx, ebx
jne 0x100f4df
mov rcx, qword [0x0101ffb0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x0101ffa8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100f4cc
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100f4cc
mov rcx, qword [rbx]
test rcx, rcx
je 0x100f4ca
call rcx
jmp 0x100f4b2
lea rdx, [0x010044e0]
lea rcx, [0x010044c0]
call fcn.0100f290
lea rdx, [0x010044f0]
lea rcx, [0x010044e8]
call fcn.0100f290
nop
test edi, edi
je 0x100f501
mov ecx, 8
call fcn.01010b74
test edi, edi
jne 0x100f529
mov dword [0x0101dfbc], 1
lea ecx, [rdi + 8]
call fcn.01010b74
mov ecx, r12d
call fcn.0100f234
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x100f440

Function at 0x100f548
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.01010c84
nop
cmp dword [0x0101dfbc], 1
je 0x100f4f3
mov dword [0x0101dfb8], 1
mov byte [0x0101df74], dil
test ebx, ebx
jne 0x100f4df
mov rcx, qword [0x0101ffb0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x0101ffa8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100f4cc
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100f4cc
mov rcx, qword [rbx]
test rcx, rcx
je 0x100f4ca
call rcx
jmp 0x100f4b2
lea rdx, [0x010044e0]
lea rcx, [0x010044c0]
call fcn.0100f290
lea rdx, [0x010044f0]
lea rcx, [0x010044e8]
call fcn.0100f290
nop
test edi, edi
je 0x100f501
mov ecx, 8
call fcn.01010b74
test edi, edi
jne 0x100f529
mov dword [0x0101dfbc], 1
lea ecx, [rdi + 8]
call fcn.01010b74
mov ecx, r12d
call fcn.0100f234
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x100f440

Function at 0x100f558
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x100f440
Function at 0x100f5f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x0101c120]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x100f62a
inc edi
add rax, 0x10
cmp edi, 0x17
jb 0x100f61b
cmp edi, 0x17
jae 0x100f7d8
mov ebp, 3
mov ecx, ebp
call fcn.010117a8
cmp eax, 1
je 0x100f790
mov ecx, ebp
call fcn.010117a8
test eax, eax
jne 0x100f660
cmp dword [0x0101c100], 1
je 0x100f790
cmp ebx, 0xfc
je 0x100f7d8
lea rbx, [0x0101dfc0]
mov ebp, 0x314
lea r8, [0x01004b10]
mov rcx, rbx
mov rdx, rbp
call fcn.01011730
test eax, eax
je 0x100f6a3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
lea rdx, [0x0101dfd9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x0101e0dd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100f6f4
lea r8, [0x01004af8]
lea rcx, [0x0101dfd9]
mov edx, 0x2fb
call fcn.01011730
test eax, eax
je 0x100f6f4
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
lea r8, [0x0101dfd9]
mov rdx, rbp
mov rcx, rbx
call fcn.010116a0
test eax, eax
je 0x100f71f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
lea r8, [0x01004af0]
mov rdx, rbp
mov rcx, rbx
call fcn.010116a0
test eax, eax
je 0x100f74a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.010116a0
test eax, eax
je 0x100f779
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
lea rdx, [0x01004ac8]
mov r8d, 0x12010
mov rcx, rbx
call fcn.01011468
jmp 0x100f7d8
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
test rax, rax
je 0x100f7d8
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x100f7d8
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x100ff9c
Capabilities:
Query environment variable

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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r12d, r12d
mov rdi, rax
cmp rax, r12
je 0x1010075
mov rbx, rax
cmp word [rax], r12w
je 0x100ffe7
add rbx, 2
cmp word [rbx], r12w
jne 0x100ffd3
add rbx, 2
cmp word [rbx], r12w
jne 0x100ffd3
mov qword [rsp + 0x38], r12
sub rbx, rax
mov qword [rsp + 0x30], r12
sar rbx, 1
mov r8, rax
xor edx, edx
lea r9d, [rbx + 1]
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
cmp ebp, r12d
je 0x101006c
mov rcx, rbp
call fcn.010123b8
mov rsi, rax
cmp rax, r12
je 0x101006c
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r12d
jne 0x101005e
mov rcx, rsi
call fcn.0101226c
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x1010077
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x1010774
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10107c1
cmp rcx, 0xffffffffffffffff
je 0x10107c1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10107b9
cmp dword [rcx + 0x3c], edx
jl 0x10107b9
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10107b9
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10107c1
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1010cd0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1010d3b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x1010d5b
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x01004b40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x1011468
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.0101036c
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
mov rdi, rax
cmp qword [0x0101ebd8], rbp
jne 0x10115a0
lea rcx, [0x01004be8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x10114cc
xor eax, eax
jmp 0x1011680
lea rdx, [0x01004bd8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10114c5
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01004bc8]
mov rcx, rsi
mov qword [0x0101ebd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01004bb0]
mov rcx, rsi
mov qword [0x0101ebe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x0101ebe8], rax
call fcn.0100f2cc
test eax, eax
je 0x1011553
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
cmp dword [rsp + 0x88], 2
jne 0x10115a0
lea rdx, [0x01004b90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x0101ebf8], rax
test rax, rax
je 0x10115a0
lea rdx, [0x01004b78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x0101ebf0], rax
mov rcx, qword [0x0101ebf0]
cmp rcx, rdi
je 0x1011632
cmp qword [0x0101ebf8], rdi
je 0x1011632
call sub.KERNEL32.dll_DecodePointer
call rax
mov rsi, rax
test rax, rax
je 0x10115fd
mov rcx, qword [0x0101ebf8]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x10115fd
test byte [rsp + 0x40], 1
jne 0x1011632
lea rcx, [rsp + 0x30]
call fcn.0100f318
test eax, eax
je 0x101161f
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01010cd0
cmp dword [rsp + 0x30], 4
jb 0x101162c
bts ebx, 0x15
jmp 0x1011666
bts ebx, 0x12
jmp 0x1011666
mov rcx, qword [0x0101ebe0]
cmp rcx, rdi
je 0x1011666
call sub.KERNEL32.dll_DecodePointer
call rax
mov rbp, rax
test rax, rax
je 0x1011666
mov rcx, qword [0x0101ebe8]
cmp rcx, rdi
je 0x1011666
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x0101ebd8]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1013d20
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x0101c380]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1013e26
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1013dae
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x1013e26
mov eax, edx
not eax
and ecx, eax
je 0x1013dc9
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x1013e26
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x1013e26
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1013e26
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1013e26
mov eax, 1
jmp 0x1013e28
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.0100f170
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x180037b10
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, 0x28
call fcn.180090884
mov qword [rbp - 8], rax
mov rcx, rax
mov rdx, rbx
call fcn.180037d10
mov r9, qword [rbp - 8]
mov qword [r9 + 0x20], rdi
mov qword [rbp - 0x10], r9
lea rdi, [rsi + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x180037c70]
xor ecx, ecx
xor edx, edx
call fcn.1800a3e28
mov qword [rsi], rax
test rax, rax
je 0x180037b85
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov dword [rdi], 0
mov ecx, 6
call fcn.180091bd0
int3
Function at 0x18008e1d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x18008e2ea
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x18008e21b
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x18008e21b
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x18008e32d
cmp qword [rdi + 0x80], 0
je 0x18008e2ee
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x18008e255
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x18008e2f5
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x18008e30d
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x18008e2da
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.1800a6f18
cmp r15, rax
jne 0x18008e32b
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x18008e326
xor esi, esi
jmp 0x18008e32d
mov esi, 0xffffffff
jmp 0x18008e32d
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.1800a6750
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x18008e32d
cmp eax, 3
jne 0x18008e32b
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call fcn.1800a6750
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18008e770
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x18008e806
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18008e80d
mov r15, rsi
jmp 0x18008e7cb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.1800c1c50
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x18008e7fe
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18008e7e3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x18008e7a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18008e7fe
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x18008e7cb
sub rsi, r15
jmp 0x18008e8fa
xor esi, esi
jmp 0x18008e8fa
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18008e860
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x18008e860
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.1800c1c50
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x18008e871
jmp 0x18008e8f7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x18008e8f7
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x18008e8a0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x18008e8d3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1800a6b10
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x18008e8a0
jmp 0x18008e8f7
test r14, r14
je 0x18008e8f4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1800a6b10
sub r14, rax
jmp 0x18008e8f7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret