joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008470
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x18003d078]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov eax, dword [rsp + 0x3f8]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 1
je 0x1800084af
jmp 0x1800086b9
call fcn.1800042d0
mov dword [rsp + 0xc0], 0x68
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.notepad.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x260]
call fcn.180002660
mov qword [rsp + 0x68], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x1800283c4]
mov rcx, qword [rsp + 0x68]
call fcn.180006300
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x260]
call fcn.1800035b0
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x280]
call fcn.180002660
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov r9, qword [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x80]
call fcn.180007840
nop
lea rcx, [rsp + 0x280]
call fcn.1800035b0
lea r8, str._test.txt
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x2a0]
call fcn.180001160
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x130]
call fcn.180002200
nop
lea rcx, [rsp + 0x2a0]
call fcn.1800035b0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
lea rax, str.C:userspublicDocuments_tmpoffic.data
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x50], 0x61
movzx r8d, byte [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
call fcn.1800041b0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.180007320
nop
lea rcx, [rsp + 0x130]
call fcn.180003bd0
nop
lea rcx, [rsp + 0x240]
call fcn.1800035b0
mov eax, 1
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.180009f70
add rsp, 0x3e0
pop rdi
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
xchg ebx, eax
mov byte [rcx], bl
stosd dword [rdi], eax
jmp 0x146971c79
Function at 0x140003525
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
call fcn.14000f440
mov qword [rsp + 0x28], rax
push qword [0x14001c540]
sub rsp, 8
push qword [0x14001c540]
pop rcx
sub rsp, 0x20
call fcn.14000f8fc
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.1400131e0
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001a01e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x14001c540]
sub rsp, 8
push qword [0x14001c540]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000f510
add rsp, 0x28
lea rcx, [0x14001bb5c]
pop rdx
call fcn.1400131e0
push qword [rsp + 0x28]
pop rcx
call fcn.14000f590
push qword [0x14001bb5c]
pop rcx
call fcn.14000f7f8
push qword [0x14001bb5c]
pop rcx
call fcn.14000f994
push qword [0x14001c540]
sub rsp, 8
push qword [0x14001c540]
pop rcx
sub rsp, 0x20
call fcn.14000f6ac
add rsp, 0x28
lea rcx, [0x14001ba8c]
pop rdx
call fcn.1400131e0
push qword [rsp + 0x50]
pop rcx
call fcn.14000f460
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x140003660
mov rcx, qword [0x14001bb5c]
push qword [0x14001c540]
sub rsp, 0x20
call fcn.140013390
add rsp, 0x20
lea rcx, [0x14001ba8c]
pop rdx
sub rsp, 0x28
call fcn.1400131e0
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140003676
mov r15, 1
cmp r15, qword [rsp]
jne 0x140003676
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
call fcn.14000f460
mov qword [0x14001bafc], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000f460
mov qword [0x14001b97c], rax
mov rax, 1
jmp 0x1400036bc
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400134d0
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140004893
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x14001bafc]
cmp r15, 1
jne 0x140004979
push qword [0x14001bbbc]
pop rcx
call fcn.14000b0a0
mov r15, rax
and r15, r15
jle 0x14000490f
mov rcx, qword [0x14001bbbc]
call fcn.14000b0a8
mov rcx, qword [0x14001bbbc]
call fcn.14000b0bc
or rax, rax
je 0x14000490f
mov rbp, qword [0x14001bbc4]
push qword [rbp + 0x10]
pop rcx
call fcn.140011750
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x14000490d
mov rbp, qword [0x14001bbc4]
push qword [rbp + 0x10]
pop rcx
call fcn.14000f7f8
jmp 0x1400048d0
push qword [0x14001bbcc]
pop rcx
call fcn.14000b0a0
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004979
push 5
push 0
push 1
push qword [0x14001bbcc]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008160
mov rcx, qword [0x14001bbcc]
call fcn.14000b0a8
mov rcx, qword [0x14001bbcc]
call fcn.14000b0bc
or rax, rax
je 0x140004979
mov rbp, qword [0x14001bbd4]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x140004956
mov rax, 1
jmp 0x140004985
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008b20
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b97
movsxd rdx, ecx
lea rcx, [0x140008a7c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001bbe8]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b8d
cmp byte [rbx + 0x20], 0
je 0x140008b8d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008b53
jmp 0x140008c0a
mov rbx, qword [0x14001bbe8]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008c02
cmp byte [rbx + 0x21], 0
je 0x140008bc6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008bf2
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001bbe8]
call fcn.140012cb4
mov rbx, rdi
test rdi, rdi
jne 0x140008ba3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008ce4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14001c580]
call fcn.14001245c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008daa
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008d38
add rax, r9
cmp byte [rax], r10b
je 0x140008d30
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008d6e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008d69
cmp cl, 0x22
je 0x140008d5c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008d4e
cmp byte [rax], 0
je 0x140008d69
mov rcx, rax
add rax, r9
jmp 0x140008d90
mov rcx, rax
jmp 0x140008d90
test dl, dl
je 0x140008d8d
mov rbx, rax
cmp dl, r10b
je 0x140008d83
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008d75
cmp byte [rax], 0
mov rcx, rax
je 0x140008d90
jmp 0x140008d64
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d9a
test rdi, rdi
jne 0x140008db4
test r8d, r8d
je 0x140008da2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008d2b
test rdi, rdi
jne 0x140008dc6
movsxd rax, esi
jmp 0x140008dc9
test rbx, rbx
je 0x140008dc6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008dc9
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140008ea4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001c580]
call fcn.14001245c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008ce4

Function at 0x140008f98
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008fb8
test rax, rax
lea rdx, [0x140018662]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140009e04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x140009f78
mov rcx, qword [0x14001b964]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
mov qword [rbx + 8], rax
mov edx, edi
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x140009ea7
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x140009f78
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x140009ec1
lea rdx, [rbp - 0x30]
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x140009f78
cmp dword [rbx + 0x14], esi
jl 0x140009eea
mov r8, qword [rbx + 8]
mov rcx, qword [0x14001b964]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x14001b964]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x14]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx r11, word [rbp - 0x20]
mov byte [r11 + r12 + 0x14], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x140009f4f
lea edi, [rdi + rax + 0x18]
jmp 0x140009f53
lea edi, [rdi + rax + 0x12]
mov dword [r12 + 0x10], edi
movsxd rcx, dword [rbx + 0x14]
add edi, dword [rbp - 0x28]
mov rax, qword [rbx + 8]
mov r9d, 1
mov qword [rax + rcx*8], r12
inc dword [rbx + 0x14]
mov edx, dword [rbp - 0x28]
jmp 0x140009e51
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000bf14
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14001c740]
call fcn.140012374
mov rsi, rax
test rax, rax
je 0x14000bf8d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000bf52
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000bf8d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140013550
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.1400136f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d89c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000d945
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000d945
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000d945
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000d945
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000d945
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000d945
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000d9ef
test rbx, rbx
je 0x14000d984
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000d977
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000d977
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000d984
mov edx, 1
mov rcx, rbx
call fcn.14000d848
test rdi, rdi
je 0x14000d99e
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000d9ef
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000d9ef
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000d9ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000d9ef
mov rcx, qword [0x14001c760]
lea rdx, [rdi - 1]
call fcn.140012374
test rax, rax
je 0x14000d9ef
mov rax, qword [rax + 0x10]
jmp 0x14000d9f1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000f694
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001c8e0], eax
add rsp, 0x28
ret

Function at 0x14000f6ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140013550
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000f6eb
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000f6eb
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400136f0
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14000f70c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000f71f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000f721
xor eax, eax
add rsp, 0x28
ret
Function at 0x140010170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x1400101e8
test r8d, r8d
je 0x1400101e8
mov rdx, rcx
mov rcx, qword [0x14001c8f0]
call fcn.140012374
test rax, rax
je 0x1400101e4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400101d1
mov rcx, rax
call fcn.140010200
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140010200
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14001024a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140010286
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14001027f
dec edx
je 0x140010277
cmp edx, 2
je 0x140010271
mov rdx, rsi
jmp 0x1400102d4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x1400102dc
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x1400102dc
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x1400102dc
mov rcx, rbx
call fcn.14000fa20
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x1400102c9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140062230
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006223d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006224d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140062235
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140062265
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140062252
sub eax, 3
jb 0x14006227f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400622b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400622a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400622a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140062293
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400621f2
jmp 0x14006223d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe600
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140062302
cmp rsi, rcx
jae 0x14006230a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400622e9
cmp al, 0x8f
ja 0x1400622e9
cmp byte [rsi - 2], 0xf
je 0x1400622ef
sub al, 0xe8
cmp al, 1
ja 0x1400622d3
cmp rsi, rcx
jae 0x14006230a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400622d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14006230a
lodsb al, byte [rsi]
jmp 0x1400622e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x60000]
mov eax, dword [rdi]
or eax, eax
je 0x140062367
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62000]
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 0x140062317
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 0x140062361
mov qword [rbx], rax
add rbx, 8
jmp 0x140062337
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 0x1400623a1
cmp al, 0xef
ja 0x140062393
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140062373
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140062382
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.140062420], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140062420
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140062410
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x417fe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41816b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00436b40
xorps xmm15, xmm15
mov r14, qword [0x009b5010]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x418045
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x418054
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x418073
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x418083
cmp rbx, 0x1000
jae 0x41804b
jmp 0x4180ed
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x418095
xor edx, edx
jmp 0x4180e4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00436b40
xorps xmm15, xmm15
mov r14, qword [0x009b5010]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x418079
jmp 0x418068
call fcn.0046d8c0
xorps xmm15, xmm15
mov r14, qword [0x009b5010]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.0043b080
lea rax, [0x006aa25c]
mov ebx, 0x18
nop dword [rax]
call fcn.0043b900
mov rax, qword [rsp + 0x38]
call fcn.0043b640
lea rax, [0x006aaa74]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043b900
mov rax, qword [rsp + 0x30]
call fcn.0043b640
call fcn.0043b2c0
call fcn.0043b0e0
lea rax, [0x006aea7e]
mov ebx, 0x21
call fcn.004395e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a160
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417fe0