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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
push rcx
nop
pop rbx
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.14000a490
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.14000a490
push rbx
pop rdx
nop
push rax
nop
pop rcx
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140004760
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140011104]
nop
push rcx
pop rbx
or esi, esi
jle 0x140004890
mov rax, qword [0x140011108]
sub r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400047ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140004835
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140004790
push rbx
nop
pop rcx
call fcn.1400051b0
push rax
nop
pop rdi
or rax, rax
je 0x1400048b2
mov rax, qword [0x140011108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400052f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140011108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
or rax, rax
je 0x140004897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000482e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004840
add dword [0x140011104], 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 [0x140011108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x14000482e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400046f0
nop dword [rax]
sub esi, esi
jmp 0x1400047b8
mov rax, qword [0x140011108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400046f0
push rbx
pop rdx
nop
lea rcx, str.Address__p_has_no_image_section
call fcn.1400046f0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140004e20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011140]
or rbx, rbx
je 0x140004e7c
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
push rax
pop rsi
nop
call rdi
or eax, eax
jne 0x140004e73
or rsi, rsi
je 0x140004e73
mov rax, qword [rbx + 8]
nop
push rsi
pop rcx
call rax
mov rbx, qword [rbx + 0x10]
or rbx, rbx
jne 0x140004e58
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 0x1400051b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ca60]
sub eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400051d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400051d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400051d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
or r8w, r8w
je 0x14000522d
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 0x140005224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400051d0
add rax, 0x28
cmp rax, r9
jne 0x140005210
sub eax, eax
ret

Function at 0x140005230
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ca60]
sub ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000524f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140005258
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000524f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400052f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ca60]
sub edx, edx
cmp word [rax], 0x5a4d
jne 0x14000530f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140005318
push rdx
pop rax
nop
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
nop
push rdx
pop rax
ret
Function at 0x180001b34
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x60]
mov edi, edx
mov ebx, ecx
xor esi, esi
mov r8, qword [rax + 0x18]
mov r11, qword [r8 + 0x20]
mov r8, r11
mov r9, qword [r8 + 0x50]
test r9, r9
je 0x180001b98
movzx r10d, word [r8 + 0x48]
mov edx, esi
jmp 0x180001b8e
movsx ecx, byte [r9]
mov eax, 0xffff
add r10w, ax
ror edx, 0xd
cmp byte [r9], 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add edx, eax
inc r9
test r10w, r10w
jne 0x180001b6f
cmp edx, ebx
je 0x180001bb2
mov r8, qword [r8]
cmp r8, r11
jne 0x180001b5d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r9, qword [r8 + 0x20]
mov ebx, esi
movsxd rax, dword [r9 + 0x3c]
mov r8d, dword [rax + r9 + 0x88]
add r8, r9
mov edx, dword [r8 + 0x20]
mov ecx, dword [r8 + 0x24]
add rdx, r9
add rcx, r9
cmp dword [r8 + 0x18], esi
jbe 0x180001ba0
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180001bf3
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180001be6
cmp r11d, edi
je 0x180001c11
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180001bdb
jmp 0x180001ba0
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180001ba2

Function at 0x180003454
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
cmp edx, 1
jne 0x1800034eb
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x1800034e7
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003934
test eax, eax
jne 0x1800034e7
call fcn.180003874
test eax, eax
je 0x1800034e7
cmp dword [0x18001ecf0], 0
jne 0x1800034f4
and qword [rsp + 0x28], 0
lea r8, [0x180001c28]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x18001ecf0], 1
xor ecx, ecx
mov qword [0x18001ece8], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001ec90], rax
call fcn.180001eb0
jmp 0x1800034f4
xor eax, eax
jmp 0x1800034f9
test edx, edx
jne 0x1800034f4
call fcn.1800037a8
mov eax, 1
add rsp, 0x240
pop rbx
ret
Function at 0x1800037a8
Capabilities:
Allocate or change rwx memory
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x18001ecf0], 0
je 0x180003850
and dword [0x18001ecf0], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000383c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000383c
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x18001ec90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.180002008
add rsp, 0x30
pop rbx
ret

Function at 0x180003874
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000391f
mov esi, 0x7260
cmp word [rax + 0x40], si
je 0x18000391f
mov eax, 0x7832
cmp word [rbx + 0x40], ax
je 0x18000391f
mov eax, 0x7868
cmp word [rbx + 0x40], ax
je 0x18000391f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [rdi + 4]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000391f
lea rax, [0x180003858]
mov word [rbx + 0x40], si
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180003ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003d20
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003bea
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003b34
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003b34
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003af6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008d60
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003b65
jmp 0x180003bea
cmp dword [rsp + 0x50], 0x10000
jne 0x180003bcd
cmp qword [rsp + 0x48], 0x10000
jb 0x180003bcd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003bab
mov rax, qword [rsp + 0x28]
jmp 0x180003bec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003bbb
xor eax, eax
jmp 0x180003bec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003be5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003d20
mov qword [rsp + 0x20], rax
jmp 0x180003af6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003c00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180003d60
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003d16
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003c5b
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003c5b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003c1d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008d60
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003c8c
jmp 0x180003d16
cmp dword [rsp + 0x50], 0x10000
jne 0x180003cf4
cmp qword [rsp + 0x48], 0x10000
jb 0x180003cf4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003cd2
mov rax, qword [rsp + 0x28]
jmp 0x180003d18
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003ce2
xor eax, eax
jmp 0x180003d18
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003d11
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003d60
mov qword [rsp + 0x20], rax
jmp 0x180003c1d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003db0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004340
mov qword [rsp + 0x28], 0
cmp qword [0x18001da98], 0
jne 0x180003df8
cmp qword [0x18001da90], 0
je 0x180003df8
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003e9e
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003e9e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003e9e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003e9e
mov rax, qword [0x18001da98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180003e64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180003e6b
xor eax, eax
jmp 0x180004019
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180008d60
mov rax, qword [rsp + 0x28]
jmp 0x180004019
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
jmp 0x180003ec0
mov rax, qword [0x18001da98]
mov rax, qword [rax + 8]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003f0d
cmp qword [0x18001da98], 0
je 0x180003f0b
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003f0b
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003f0b
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003f0b
jmp 0x180003e3c
jmp 0x180003eae
mov rcx, qword [rsp + 0x60]
call fcn.1800061b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004020
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004017
mov rax, qword [rsp + 0x48]
mov qword [0x18001da98], rax
mov rax, qword [0x18001da98]
mov dword [rax], 0x52727464
mov rax, qword [0x18001da98]
mov qword [rax + 0x10], 0
mov rax, qword [0x18001da98]
mov rcx, qword [0x18001da90]
mov qword [rax + 8], rcx
mov rax, qword [0x18001da98]
mov qword [0x18001da90], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001da98]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180003fc8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004002
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180003fbe
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180003e3c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180004d30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004d77
xor al, al
jmp 0x180004e19
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180004da1
xor al, al
jmp 0x180004e19
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180004e11
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180004e11
mov al, 1
jmp 0x180004e19
jmp 0x180004e17
xor al, al
add rsp, 0x78
ret

Function at 0x180005120
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001da90]
mov qword [rsp + 0x28], rax
jmp 0x180005140
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000516f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000516d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005171
jmp 0x180005132
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005800
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x18000582d
mov eax, 0x10dd
jmp 0x180005a46
cmp dword [0x18001daac], 0
je 0x180005841
mov eax, dword [0x18001daac]
jmp 0x180005a46
cmp qword [rsp + 0x78], 0
jne 0x180005853
mov eax, 0x57
jmp 0x180005a46
cmp qword [rsp + 0x70], 0
jne 0x180005865
mov eax, 6
jmp 0x180005a46
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005897
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005a46
mov ecx, 0x30
call fcn.180007960
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005909
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
cmp qword [rsp + 0x30], 0
je 0x1800058f4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18000799c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005a46
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800057d0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800057d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180005966
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005983
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x18000597e
jmp 0x1800058ca
jmp 0x1800058c0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800059b0
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x1800059ab
jmp 0x1800058ca
jmp 0x1800058c0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800059e7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800058c0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18001dac0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18001dac0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005a50
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x180005a6b
mov eax, 0x10dd
jmp 0x180005b90
mov rax, qword [0x18001dac0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005b15
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180005ae0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005ae0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180004480
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18000799c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005a77
mov qword [0x18001dac0], 0
call fcn.180004ee0
mov rax, qword [0x18001dab8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005b79
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18000799c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005b31
mov qword [0x18001dab8], 0
mov dword [0x18001daa8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800060c0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001daac], 0
je 0x1800060dd
mov eax, dword [0x18001daac]
jmp 0x1800061a3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800060f0
xor eax, eax
jmp 0x1800061a3
mov ecx, 0x10
call fcn.180007960
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000615e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006143
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18000799c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov qword [0x18001dab0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800061a3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180006178
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006119
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18001dab8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18001dab8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140009180
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400091a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400091ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400091d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009229
test ecx, ecx
jle 0x140009209
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140009229
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009229
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rcx], al
add eax, 0x91
add dword [0x140144d40], eax
add dword [rbx], eax
js 0x1401443f0
add byte [rax], al
add dword [rbx + rsi*8], eax
add byte [rax], al
add byte [rcx], al
add al, 0xff
or dword [rax], eax
add byte [rcx], al
add al, 0xe0
add byte [rax], al
add byte [rcx], al
add al, 0xec
or dword [rax], eax
add byte [rcx], al
add al, 0xdc
add byte [rax], al
add byte [rcx], al
invalid