joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001acf0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000aa74
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ad7a
cmp byte [rbp - 0x21], r15b
je 0x14001ad75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001adb0
call fcn.14000ec24
test eax, eax
jne 0x14001ad9c
cmp byte [rbp - 0x21], r15b
je 0x14001ad94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001adb0
cmp byte [rbp - 0x21], r15b
je 0x14001adad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000a55c
test eax, eax
jne 0x14001ae50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000aa74
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001adef
cmp byte [rbp - 0x21], r15b
je 0x14001ae24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ae24
call fcn.14000ec24
test eax, eax
jne 0x14001ae10
cmp byte [rbp - 0x21], r15b
je 0x14001ae09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ae24
cmp byte [rbp - 0x21], r15b
je 0x14001ae21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000a55c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ae50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ae53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ae61
mov rcx, rdi
call fcn.14000ce0c
cmp byte [rbp + 0x3f], r15b
je 0x14001ae70
mov rcx, qword [rbp + 0x27]
call fcn.14000ce0c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b270
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140015e40
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140015e40
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001b3c0
cmp rax, 0xffffffffffffffff
je 0x14001b3c0
xor edi, edi
test rbp, rbp
jle 0x14001b36b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000e998
mov rbx, rax
test rax, rax
jne 0x14001b2f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001b361
mov edx, 0x8000
mov ecx, r14d
call fcn.14000bc6c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000df34
cmp eax, 0xffffffff
je 0x14001b341
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001b308
mov edx, r15d
mov ecx, r14d
call fcn.14000bc6c
jmp 0x14001b361
cmp byte [rsi + 0x38], dil
je 0x14001b358
cmp dword [rsi + 0x34], 5
jne 0x14001b358
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14001b361
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000ce0c
jmp 0x14001b3d4
jns 0x14001b3d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140015e40
cmp rax, 0xffffffffffffffff
jne 0x14001b38c
cmp byte [rsi + 0x30], dil
je 0x14001b3d4
mov edi, dword [rsi + 0x2c]
jmp 0x14001b3d4
mov ecx, r14d
call fcn.14000d4fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001b3d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14001b3d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001b3cd
mov eax, dword [rsi + 0x2c]
jmp 0x14001b3d2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140015e40
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001d250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001d278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001d278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1408e1770
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1408e177d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408e178d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408e1775
lea eax, [rcx + 1]
jmp 0x1408e179b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408e17ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408e1794
sub eax, 3
jb 0x1408e17ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408e181d
sar eax, 1
movsxd rbp, eax
jb 0x1408e1804
jmp 0x1408e17dc
add ebx, ebx
jne 0x1408e17da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408e1804
inc ecx
add ebx, ebx
jne 0x1408e17ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408e1804
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408e17fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408e17ec
add ecx, 2
jmp 0x1408e1809
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1408e1732
jmp 0x1408e177d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x8d7000]
mov eax, dword [rdi]
or eax, eax
je 0x1408e187d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8e1000]
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 0x1408e182d
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 0x1408e1877
mov qword [rbx], rax
add rbx, 8
jmp 0x1408e184d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408e18c1
cmp al, 0xef
ja 0x1408e18a9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408e1889
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1408e1898
mov eax, dword [rdi]
add rdi, 4
jmp 0x1408e1898
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.1408e1940], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1408e1940
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408e1930
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x140012c90
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140049030]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
call fcn.1400116d0
test al, al
je 0x140012d7f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
xor edi, edi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012d7f
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x44]
mov dword [rbx], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, str.ConsentPromptBehaviorAdmin
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140012d2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012d7f
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.PromptOnSecureDesktop
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140012d7f
mov eax, dword [rsp + 0x34]
xor ecx, ecx
or eax, dword [rsp + 0x30]
sete cl
mov dword [rsi], ecx
mov edi, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140026460
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001f54c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f56c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001adf0
or eax, 0xffffffff
jmp 0x14001f56e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001f5a4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001f5c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001adf0
or eax, 0xffffffff
jmp 0x14001f5c6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1404455ea
Capabilities:
Encode data using base64

Disassembly:
adc edi, dword [rsp + rdi*8 + 0x98]
mov qword [rsp + r9*8 - 8], r9
add edi, r9d
lea rsi, [r8*4 - 0xed057d2]
pop r11
neg edi
sal r9w, 0xa8
lea edi, [rdi + r9*4 - 0x6b0bc92f]
and rsi, r9
jns 0x14044c994
xor rsi, r11
ror edi, 1
xadd r8w, r11w
movsx r10d, r8w
not edi
adc rdi, rbx
not r9
or r9b, r11b
jle 0x140456d70
lea r9, [r10 + r9 - 0x137]
ror esi, 0x3f
and r9b, 0xf0
add r11b, sil
push r11
mov rsp, r9
adc rdi, rcx
mov r10, rsp
bswap rsi
jmp 0x14044fd6a
Function at 0x18003eec0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800a8010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18003ef0f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800ab270]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003ef4d
cmp rsi, r14
jb 0x18003ef45
cmp rsi, r15
jae 0x18003ef45
cmp qword [rsi + 8], 0
jne 0x18003f117
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003ef30
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18003efe2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003efd9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003efd9
cmp dword [rsp + 0x40], 0x10000
je 0x18003f05b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003efd9
sub rbx, rbp
cmp rbx, r14
jae 0x18003efa0
test rsi, rsi
jne 0x18003f0c0
cmp rdi, r15
ja 0x18003f0ff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003f0ff
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003f0ff
cmp dword [rsp + 0x40], 0x10000
je 0x18003f091
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003f012
jmp 0x18003f0ff
test rbx, rbx
je 0x18003efd9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003f0c0
cmp rbx, r14
jae 0x18003ef80
jmp 0x18003efe2
test rdi, rdi
je 0x18003f0ff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003f0c0
cmp rdi, r15
jbe 0x18003eff0
jmp 0x18003f0ff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18003f0d0
mov rax, qword [0x1800ab270]
mov qword [rsi], rax
mov qword [0x1800ab270], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18005c6b0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18003fab0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800a8010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18003fc59
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003fbf6
lea edi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x18003fbb0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003fbb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003fbb0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003fb72
mov rcx, qword [0x1800aaef8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003fbd9
jmp 0x18003fba3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003fba3
mov rcx, qword [0x1800aaef8]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003fbd9
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003fb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18003fbf6
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18003fbf6
mov rcx, qword [0x1800aaef8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18003fc59
cmp qword [rbx], r15
je 0x18003fc54
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18003fc54
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003fc4d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18003f900
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18003fc11
mov eax, r15d
jmp 0x18003fc5e
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18005c6b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003fc80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a8010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1800ab260]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003fce9
mov eax, 0xa
jmp 0x18003fd36
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003fd05
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18005c6b0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18003fd60
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1800ab26c]
xor ebx, ebx
test edx, edx
je 0x18003fd8f
mov rcx, qword [0x1800ab260]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x18003fd97
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x18003fd80
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18003fd8f
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.18003fab0
mov edi, eax
test eax, eax
jne 0x18003fe72
mov eax, dword [0x1800ab26c]
cmp ebx, eax
jae 0x18003fdfd
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800ab260]
test byte [rdx + rcx + 0x20], 2
jne 0x18003fdf7
mov ecx, ebx
call fcn.18003fc80
mov edi, eax
test eax, eax
jne 0x18003fdfd
mov eax, dword [0x1800ab26c]
inc ebx
cmp ebx, eax
jb 0x18003fdd0
cmp qword [rsp + 0x20], 0
je 0x18003fe70
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003fe5c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003fe48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18003fe20
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800aaef8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x1800401c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800aaef0], esi
je 0x180040211
nop
cmp rbx, 0x20
jae 0x1800401fa
xor ecx, ecx
jmp 0x1800401fc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800aaef0], esi
jne 0x1800401f0
cmp qword [0x1800aaef8], r15
je 0x180040304
test rdi, rdi
jne 0x18004022f
call fcn.18003fd60
mov esi, eax
jmp 0x180040309
mov ecx, dword [0x1800ab26c]
mov ebx, r15d
test ecx, ecx
je 0x180040255
mov r8, qword [0x1800ab260]
mov rax, r8
cmp rdi, qword [rax]
je 0x18004025f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180040246
mov esi, 4
jmp 0x180040309
cmp ebx, 0xffffffff
je 0x180040255
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x1800402fd
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003fab0
mov esi, eax
test eax, eax
jne 0x180040309
mov ecx, ebx
call fcn.18003fc80
mov esi, eax
cmp qword [rsp + 0x20], r15
je 0x180040309
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800402e7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800402d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800402b0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800aaef8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180040309
mov esi, 5
jmp 0x180040309
mov esi, 2
xchg dword [0x1800aaef0], r15d
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800493e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
movaps xmmword [rsp + 0x40], xmm6
mov r15d, ebx
movaps xmmword [rsp + 0x30], xmm7
mov r14d, ebx
nop
test r14, r14
jne 0x18004943a
lea rcx, str.gameassembly.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.unityplayer.dll
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test r15, r15
je 0x180049410
mov qword [rsp + 0x28], rbx
lea r8, [0x180048f60]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12d, dword [0x1800aaea0]
mov r13, qword gs:[0x58]
movss xmm7, dword [0x18009bdf4]
mov rdx, r14
mov esi, 4
mov rcx, r15
lea rdi, str.World
lea rbx, str.Dialogue
call fcn.180049110
cmp dword [0x1800aaef4], 0x10
jne 0x1800494e8
cmp byte [0x1800ab15c], 0
je 0x1800494a9
movss xmm6, dword [0x1800aa080]
jmp 0x1800494ac
movaps xmm6, xmm7
call fcn.180046680
cmp rax, rbx
jne 0x1800494c0
mov dword [0x1800aa084], 0x40a00000
call fcn.180046680
movss dword [0x1800aa084], xmm6
call fcn.180046680
cmp rax, rdi
jne 0x1800494e8
cmp byte [0x1800ab158], 0
jne 0x1800494e8
movss dword [0x1800aa084], xmm6
mov edi, esi
mov rsi, qword [r13 + r12*8]
mov eax, dword [rdi + rsi]
cmp dword [0x1800ab218], eax
jle 0x18004952f
lea rcx, [0x1800ab218]
call fcn.18005c858
cmp dword [0x1800ab218], 0xffffffff
jne 0x18004952f
lea rcx, str.GameAssembly.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x1800ab218]
mov qword [0x1800ab248], rax
call fcn.18005c7f8
mov eax, dword [rdi + rsi]
cmp dword [0x1800ab220], eax
jle 0x18004956f
lea rcx, [0x1800ab220]
call fcn.18005c858
cmp dword [0x1800ab220], 0xffffffff
jne 0x18004956f
mov rax, qword [0x1800ab248]
lea rcx, [0x1800ab220]
add rax, 0x2063f00
mov qword [0x1800ab228], rax
call fcn.18005c7f8
mov eax, dword [rdi + rsi]
cmp dword [0x1800ab23c], eax
jle 0x1800495af
lea rcx, [0x1800ab23c]
call fcn.18005c858
cmp dword [0x1800ab23c], 0xffffffff
jne 0x1800495af
mov rax, qword [0x1800ab248]
lea rcx, [0x1800ab23c]
add rax, 0x2064630
mov qword [0x1800ab1c0], rax
call fcn.18005c7f8
mov rax, qword [0x1800ab008]
lea rcx, str.UIRoot_AboveDialog_BetaHintDialog_Clone_
call rax
mov rcx, rax
mov rbx, rax
call qword [0x1800ab228]
mov rbp, rax
test rbx, rbx
je 0x18004963f
cmp qword [0x1800ab1c0], 0
je 0x18004963f
cmp qword [0x1800ab228], 0
je 0x18004963f
test rax, rax
je 0x18004963f
mov ecx, dword [rdi + rsi]
cmp dword [0x1800ab1a0], ecx
jle 0x18004962c
lea rcx, [0x1800ab1a0]
call fcn.18005c858
cmp dword [0x1800ab1a0], 0xffffffff
jne 0x18004962c
mov rax, qword [0x1800ab248]
lea rcx, [0x1800ab1a0]
add rax, 0x20643d0
mov qword [0x1800ab230], rax
call fcn.18005c7f8
cmp byte [0x1800ab15e], 0
mov rcx, rbp
sete dl
call qword [0x1800ab230]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x80], 0xc8
call fcn.180050bb0
jmp 0x18004946f