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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000a8f3
cmp byte [rcx + 0x71], 0
je 0x14000a8f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000a8ef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a8b4
sub eax, 1
je 0x14000a8b8
cmp eax, 2
jne 0x14000a8ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f7a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000a8e6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000a8ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a89c
xor al, al
jmp 0x14000a89c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f7a0
add rsp, 0x60
pop rbx
ret
Function at 0x14000ef00
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000ef3a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000ef3f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000ef88
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012660]
cmp byte [rcx + rax], 0
je 0x14000ef88
dec r8
sub rdx, 1
jne 0x14000ef6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000f578
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000efa0
mov ebx, eax
test eax, eax
jne 0x14000f5a8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000f60b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f602
test al, 0x10
je 0x14000f602
bt eax, 0xa
jae 0x14000f5fb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000f61c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000f5f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000f5f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14000f602
and dword [rsp + 0x3c], 0
jmp 0x14000f607
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140010314
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001035e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001035e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001035e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001035e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001035e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010360
xor al, al
add rsp, 0x28
ret
Function at 0x14000d600
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d667
cmp rax, rbx
jne 0x14000d65a
mov ebx, 1
mov esi, ebx
jmp 0x14000d66c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d63f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d684
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000d6f0
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d6e5
mov dword [0x140016c68], ebx
lea r15, [0x140010ba8]
lea rdi, [0x140010b90]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d6d7
test eax, eax
jne 0x14000d6db
cmp qword [rdi], r14
je 0x14000d6cc
mov rax, qword [rdi]
mov rcx, qword [0x140010b48]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d6ae
test eax, eax
je 0x14000d6eb
mov eax, 0xff
jmp 0x14000d846
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d717
lea rdx, [0x140010b88]
lea rcx, [0x140010b50]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000d725
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000d758
lea rcx, [0x140016c80]
call fcn.14000dcb0
test eax, eax
je 0x14000d758
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b48]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000d771
mov eax, 0xff
jmp 0x14000d846
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000d7f7
test ax, ax
je 0x14000d78c
test edx, edx
jne 0x14000d7f7
sub ax, bx
cmp ax, di
ja 0x14000d7a2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000d78c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001a28
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000d7e0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000d7f5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000d846
cmp ax, 0x22
jne 0x14000d80b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000d77a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a8000
add rsp, 0x28
jmp 0x14000d600
Function at 0x180001010
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp edx, 1
jne 0x180001065
mov qword [rsp + 0x40], rbx
call fcn.18000b49c
mov rbx, qword [rax]
call fcn.18000b494
mov rdx, rbx
mov qword [0x180027ef0], rdi
mov ecx, dword [rax]
call fcn.180001070
xor eax, eax
lea r8, [0x1800016f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180001c60
Capabilities:
Access peb ldr_data
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov rdx, qword [rax + 0x60]
mov rdi, qword [rdx + 0x18]
mov r8, qword [rdi + 0x10]
lea r10, [rdi + 0x10]
cmp r8, r10
je 0x180001cd1
mov r11, qword [rcx + 0x30]
nop
cmp qword [r8 + 0x30], r11
jne 0x180001cb9
mov rax, qword [r8 + 0x50]
mov r9, qword [rbx + 0x50]
sub r9, rax
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x180001cb5
add rax, 2
test ecx, ecx
jne 0x180001ca1
test edx, edx
je 0x180001cc3
mov r8, qword [r8]
cmp r8, r10
jne 0x180001c90
jmp 0x180001cd1
mov rax, qword [r8 + 8]
mov rcx, qword [r8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov r8, qword [rdi + 0x20]
lea r10, [rdi + 0x20]
cmp r8, r10
je 0x180001d23
mov r11, qword [rbx + 0x30]
cmp qword [r8 + 0x20], r11
jne 0x180001d0b
mov rax, qword [r8 + 0x40]
mov r9, qword [rbx + 0x50]
sub r9, rax
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x180001d07
add rax, 2
test ecx, ecx
jne 0x180001cf3
test edx, edx
je 0x180001d15
mov r8, qword [r8]
cmp r8, r10
jne 0x180001ce2
jmp 0x180001d23
mov rax, qword [r8 + 8]
mov rcx, qword [r8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov r8, qword [rdi + 0x30]
lea r10, [rdi + 0x30]
cmp r8, r10
je 0x180001d80
mov r11, qword [rbx + 0x30]
cmp qword [r8 + 0x10], r11
jne 0x180001d68
mov rax, qword [r8 + 0x30]
mov r9, qword [rbx + 0x50]
sub r9, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x180001d64
add rax, 2
test ecx, ecx
jne 0x180001d50
test edx, edx
je 0x180001d72
mov r8, qword [r8]
cmp r8, r10
jne 0x180001d34
jmp 0x180001d80
mov rax, qword [r8 + 8]
mov rcx, qword [r8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov edx, 0xa5dee2e3
mov ecx, 0x8f8308d
call fcn.180004230
mov rdx, qword [rbx + 0x30]
mov rcx, 0xffffffffffffffff
call rax
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x6b74eeda
mov ecx, 0x677c129b
call fcn.180004230
mov rcx, qword [rbx + 0x50]
call rax
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x180001dea
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x50], 0
mov rdi, qword [rbx + 0x60]
test rdi, rdi
je 0x180001e0f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x180001e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov r12, rcx
mov edx, dword [rax + rcx + 0x90]
test edx, edx
je 0x180001f63
cmp dword [rax + rcx + 0x94], 0
je 0x180001f63
cmp dword [rcx + rdx], 0
lea rbp, [rcx + rdx]
je 0x180001f63
mov ebx, dword [rbp + 0xc]
add rbx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rbx, rbx
jne 0x180001e9c
xor r8d, r8d
jmp 0x180001ead
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x180001ea3
xor edx, edx
mov rcx, rbx
call fcn.18000a5a0
test r14, r14
je 0x180001f87
mov ecx, dword [rbp + 0x10]
movsxd rax, dword [r14 + 0x3c]
lea rdi, [rcx + r12]
mov r15d, dword [rax + r14 + 0x88]
mov eax, dword [rbp]
test eax, eax
cmove eax, ecx
mov rcx, qword [rax + r12]
lea rsi, [rax + r12]
test rcx, rcx
je 0x180001f55
jns 0x180001f08
mov eax, dword [r15 + r14 + 0x10]
movzx edx, cx
mov ecx, dword [r15 + r14 + 0x1c]
sub rdx, rax
add rcx, r14
mov eax, dword [rcx + rdx*4]
add rax, r14
mov qword [rdi], rax
jmp 0x180001f44
lea rbx, [r12 + 2]
add rbx, rcx
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
test rbx, rbx
jne 0x180001f29
xor r8d, r8d
jmp 0x180001f3a
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x180001f30
xor edx, edx
mov rcx, rbx
call fcn.18000a5a0
mov rcx, qword [rsi + 8]
add rsi, 8
add rdi, 8
test rcx, rcx
jne 0x180001ee8
add rbp, 0x14
cmp dword [rbp], 0
jne 0x180001e80
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
xor eax, eax
jmp 0x180001f68
Function at 0x180002a20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180002ab6
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18000a5a0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.18000b574
mov edx, 0x6b74eeda
mov ecx, 0x677c129b
call fcn.180004230
lea rcx, [rsp + 0x20]
call rax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x180002a90
test rax, rax
je 0x180002aa9
lea rcx, [rsp + 0x20]
call fcn.180002a20
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x180002abb
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180009470
add rsp, 0x240
pop rbx
ret
Function at 0x180002fb0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, rdx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov esi, eax
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r12d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test esi, esi
je 0x180003093
nop dword [rax]
mov r8d, esi
mov dword [rsp + 0x30], edi
sub r8d, ebx
mov qword [rsp + 0x20], rdi
cmp r8d, r12d
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, r15
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180003093
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x180003093
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], edi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003093
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x30]
jne 0x180003093
add ebx, eax
cmp ebx, esi
jb 0x180003030
cmp ebx, esi
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180009470
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800030d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x68
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x88], rsi
xor ebx, ebx
mov qword [rsp + 0x60], r12
mov rsi, rdx
mov r12, rcx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180003293
cmp dword [rsp + 0x34], 0x400
jne 0x180003293
mov qword [rsp + 0x90], rdi
mov eax, 0xffbf
movsxd rdi, dword [rbp + 0x3c]
xor r9d, r9d
add rdi, rbp
xor r8d, r8d
xor edx, edx
mov rcx, r12
and word [rdi + 0x5e], ax
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0xb0], rbx
mov qword [rdi + 0xd0], rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000328b
cmp dword [rsp + 0x30], 0x400
jne 0x18000328b
mov dword [rsp + 0x38], 0x1c0c748
mov r11d, ebx
mov dword [rsp + 0x3c], 0xc3000000
movsxd rsi, dword [rbp + 0x3c]
mov edi, dword [rdi + 0x28]
add rsi, rbp
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
movzx r15d, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add r15, rsi
cmp bx, ax
jae 0x180003241
mov r9d, ebx
lea r8, [r15 + 0x28]
nop dword [rax]
mov r10d, dword [r8 - 4]
cmp edi, r10d
jb 0x180003232
mov ecx, dword [rsi + 0x38]
mov edx, dword [r8]
dec edx
add edx, ecx
neg ecx
and edx, ecx
add edx, r10d
cmp edi, edx
jb 0x1800032cf
inc r11d
inc r9
add r8, 0x28
cmp r9, rax
jl 0x180003210
mov edx, ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
test eax, eax
je 0x18000328b
cmp dword [rsp + 0x30], 8
mov eax, 1
cmove ebx, eax
mov rdi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x88]
test rbp, rbp
je 0x1800032b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180009470
add rsp, 0x68
pop rbp
pop rbx
ret
movsxd rax, r11d
lea rcx, [rax + rax*4]
mov edx, dword [r15 + rcx*8 + 0x2c]
sub edx, dword [r15 + rcx*8 + 0x24]
add edx, edi
jmp 0x180003243
Function at 0x1800032f0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbx, dword [rcx + 0x3c]
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, 1
mov r14, rax
mov qword [rax + 0x30], rdi
mov qword [rax + 0xf8], rdi
mov edx, dword [rbx + rdi + 0x50]
mov dword [rax + 0x40], edx
mov ecx, dword [rbx + rdi + 8]
mov dword [rax + 0x80], ecx
mov dword [rax + 0x114], r15d
mov word [rax + 0x6c], r15w
mov ecx, dword [rbx + rdi + 0x28]
add rcx, rdi
mov qword [rax + 0x38], rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r15 + 7]
lea r8d, [r15 + 0x4f]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
mov qword [r14 + 0x98], rax
mov r12d, r13d
mov dword [rax + 0x18], r15d
mov r15d, r13d
mov rax, qword [r14 + 0x98]
lea rbx, [r13 - 1]
mov dword [rax + 0x38], 2
test rbp, rbp
je 0x18000340a
mov rdi, rbx
nop dword [rax]
cmp word [rbp + rdi*2 + 2], r12w
lea rdi, [rdi + 1]
jne 0x1800033c0
lea rdi, [rdi*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
mov rdx, rbx
inc rdx
cmp word [rbp + rdx*2], r12w
jne 0x1800033f1
inc rdx
mov r8, rbp
mov rcx, rax
call fcn.18000b574
test rsi, rsi
je 0x18000345b
mov rdi, rbx
cmp word [rsi + rdi*2 + 2], r12w
lea rdi, [rdi + 1]
jne 0x180003412
lea rdi, [rdi*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov rdx, rbx
inc rdx
cmp word [rsi + rdx*2], r13w
jne 0x180003443
inc rdx
mov r8, rsi
mov rcx, rax
call fcn.18000b574
test r15, r15
je 0x180003475
mov rax, rbx
inc rax
cmp word [r15 + rax*2], r13w
jne 0x180003463
add ax, ax
lea ecx, [rax + 2]
jmp 0x18000347c
movzx eax, r13w
mov ecx, r13d
mov word [r14 + 0x4a], cx
mov word [r14 + 0x48], ax
mov qword [r14 + 0x50], r15
test r12, r12
je 0x1800034a3
nop
inc rbx
cmp word [r12 + rbx*2], r13w
jne 0x180003490
add bx, bx
lea r13d, [rbx + 2]
jmp 0x1800034a7
movzx ebx, r13w
mov word [r14 + 0x58], bx
lea r8, [r14 + 0x10]
mov word [r14 + 0x5a], r13w
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov qword [r14 + 0x60], r12
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r9, qword [rcx + 0x18]
mov rax, qword [r9 + 0x18]
lea rcx, [r9 + 0x10]
mov qword [r14], rcx
mov qword [r14 + 8], rax
lea rdx, [r9 + 0x20]
mov qword [rax], r14
mov eax, 1
mov qword [rcx + 8], r14
mov rcx, qword [rdx + 8]
mov qword [r8], rdx
mov qword [r8 + 8], rcx
mov qword [rcx], r8
mov rcx, qword [r9 + 0x38]
mov qword [rdx + 8], r8
lea r8, [r14 + 0x20]
lea rdx, [r9 + 0x30]
mov qword [r8 + 8], rcx
mov qword [r8], rdx
mov qword [rcx], r8
mov rcx, qword [rsp + 0x68]
mov qword [rdx + 8], r8
mov qword [rcx], r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180003b70
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x38
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd rax, dword [rcx + 0x3c]
mov r12, r8
mov r14, rcx
xor ebp, ebp
mov r8d, 0x3000
mov edx, dword [rax + rcx + 0x50]
xor ecx, ecx
lea r9d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x180003de3
mov qword [rsp + 0x68], rbx
mov rdx, r14
mov qword [rsp + 0x78], rsi
mov rcx, rax
movsxd rsi, dword [r14 + 0x3c]
add rsi, r14
mov qword [rsp + 0x30], rdi
mov r8d, dword [rsi + 0x54]
call fcn.18000aa00
movzx ebx, word [rsi + 0x14]
mov edi, ebp
add rbx, 0x2c
cmp bp, word [rsi + 6]
jae 0x180003c19
add rbx, rsi
mov eax, dword [rbx - 4]
test eax, eax
je 0x180003c0b
mov edx, dword [rbx]
mov r8d, eax
mov ecx, dword [rbx - 8]
add rdx, r14
add rcx, r15
call fcn.18000aa00
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x180003bf1
mov rcx, r15
call fcn.180001e30
mov rsi, qword [rsp + 0x78]
test eax, eax
je 0x180003dce
mov rdx, r15
mov rcx, r15
call fcn.180001f90
test eax, eax
je 0x180003dce
mov rcx, r15
call fcn.180002090
test eax, eax
je 0x180003dce
mov rcx, r15
call fcn.180002150
test eax, eax
je 0x180003dce
movsxd rbx, dword [r15 + 0x3c]
mov edi, 2
add rbx, r15
mov dword [rsp + 0x20], ebp
cmp dword [rbx + 0x50], ebp
jbe 0x180003d2e
nop word [rax + rax]
movzx r9d, word [rbx + 6]
mov r8d, 0x40000000
test r9, r9
je 0x180003cc1
lea rax, [rbx + 0x110]
nop word [rax + rax]
mov edx, dword [rax + 4]
lea ecx, [rbp + 0x1000]
cmp ecx, edx
jbe 0x180003cb7
add edx, dword [rax]
cmp ebp, edx
jae 0x180003cb7
or r8d, dword [rax + 0x1c]
add rax, 0x28
sub r9, 1
jne 0x180003ca0
and r8d, 0xe0000000
cmp r8d, 0xe0000000
jne 0x180003cd8
mov eax, 0x40
jmp 0x180003d07
cmp r8d, 0xc0000000
jne 0x180003ce8
mov eax, 4
jmp 0x180003d07
cmp r8d, 0x60000000
jne 0x180003cf8
mov eax, 0x20
jmp 0x180003d07
cmp r8d, 0x40000000
mov eax, 0x40
cmove eax, edi
mov ecx, ebp
lea r9, [rsp + 0x20]
add rcx, r15
mov r8d, eax
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add ebp, 0x1000
cmp ebp, dword [rbx + 0x50]
jb 0x180003c80
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x18002a190]
mov rbx, rax
mov qword [rax + 0x10], r15
mov dword [rax + 0x18], edi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x18002a188]
lea rax, [0x18002a180]
mov qword [rbx], rax
lea rcx, [0x18002a190]
mov qword [rbx + 8], rdx
mov qword [rdx], rbx
mov qword [0x18002a188], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movsxd rax, dword [r15 + 0x3c]
xor r8d, r8d
mov rcx, r15
mov r9d, dword [rax + r15 + 0x28]
lea edx, [r8 + 1]
add r9, r15
call r9
mov eax, 1
mov qword [r12], r15
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180009470
add rsp, 0x38
pop r15
pop r14
pop r12
pop rbp
ret
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebp
jmp 0x180003dab
mov eax, ebp
jmp 0x180003db5