joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400190e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019167
mov rsi, rbx
cmp word [rax], bp
je 0x140019126
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019110
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001910c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016910
mov rdi, rax
test rax, rax
je 0x140019154
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400203c0
mov rbp, rdi
xor ecx, ecx
call fcn.140015934
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b730
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b746
mov al, 1
jmp 0x14001b7a6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b757
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b7a4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019884
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b7a4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b7a4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b7a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b7a6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fbc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fbe8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fbe8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10003a9f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and dword [rax + 0x10], 0
mov esi, edx
mov rdi, rcx
test edx, edx
jne 0x10003ab27
and qword [rax - 0x48], 0
mov dword [rax - 0x50], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x58], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x10003aa58
lea rdx, [0x100019410]
mov r8, rdi
mov ecx, 0x20001
call fcn.1000622b0
jmp 0x10003ac86
mov rcx, rax
call fcn.10004d7ec
test eax, eax
jne 0x10003aa86
lea rdx, [0x100019460]
mov r8, rdi
mov ecx, 0x80
call fcn.1000622b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003ac86
and dword [rsp + 0x90], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ab1b
cmp dword [rsp + 0x90], 4
jne 0x10003ab1b
mov ecx, dword [rsp + 0x88]
call fcn.10009d6a4
mov esi, dword [rsp + 0x88]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ab0f
cmp dword [rsp + 0x98], esi
jne 0x10003ab0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003abf6
lea rdx, [0x100019580]
jmp 0x10003aa46
lea rdx, [0x1000194f0]
jmp 0x10003aa6b
mov r9b, 1
mov r8d, edx
mov dword [rsp + 0x20], 0x65
mov dl, r9b
call fcn.10004cf80
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10003aa3f
mov rcx, rax
call fcn.10004d7ec
test eax, eax
jne 0x10003ab62
lea rdx, [0x100019460]
jmp 0x10003ac6c
and dword [rsp + 0x90], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ac65
cmp dword [rsp + 0x90], 4
jne 0x10003ac65
mov ecx, dword [rsp + 0x88]
call fcn.10009d6a4
mov r12d, dword [rsp + 0x88]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ab0f
cmp dword [rsp + 0x40], r12d
jne 0x10003ab0f
mov r8b, 1
mov edx, esi
mov rcx, rbx
call fcn.10004cc6c
mov ecx, 0x98
call fcn.10009d604
test rax, rax
je 0x10003ac12
mov rcx, rax
call fcn.100068ab4
mov rsi, rax
jmp 0x10003ac14
xor esi, esi
mov r8d, dword [rsp + 0x88]
mov rdx, rbp
mov rcx, rsi
call fcn.100068ebc
mov rcx, rbp
mov bl, al
call sub.msvcrt.dll_free
test bl, bl
jne 0x10003ac60
lea rdx, [0x1000195f0]
mov r8, rdi
mov ecx, 0x20001
call fcn.1000622b0
test rsi, rsi
je 0x10003ac86
mov rcx, rsi
call fcn.100068b40
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x10003ac86
mov rax, rsi
jmp 0x10003ac88
lea rdx, [0x1000194f0]
mov r8, rdi
mov ecx, 0x80
call fcn.1000622b0
mov r8b, 1
mov edx, esi
mov rcx, rbx
call fcn.10004cc6c
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10003b058
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1000aa140]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov esi, edx
repne scasw ax, word [rdi]
xor edi, edi
not rcx
mov edx, edi
dec rcx
cmp ecx, edi
jbe 0x10003b0b2
mov rax, rbx
cmp word [rax], 0x3a
je 0x10003b159
inc edx
add rax, 2
cmp edx, ecx
jb 0x10003b09e
cmp word [rbx], 0x2e
je 0x10003b1a4
cmp word [rbx], 0x2f
je 0x10003b1a4
cmp word [rbx], 0x5c
je 0x10003b1a4
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x240]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and esi, 0x28
cmp sil, 0x28
jne 0x10003b162
lea rcx, [0x10001e120]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, edi
jne 0x10003b162
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x10003b1b8
lea rdx, [0x10001d9d0]
jmp 0x10003b1ab
lea rcx, [0x10001d8b8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, edi
je 0x10003b14c
mov rcx, qword [0x1000b5f88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, edi
je 0x10003b14c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x30]
cmp eax, edi
je 0x10003b151
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r11d, 1
jmp 0x10003b1bb
lea rdx, [0x10001da30]
mov r8, rbx
mov ecx, 0x80
call fcn.1000622b0
mov r11d, edi
cmp r11d, 1
sete al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10009dad0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10003c424
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
lea rdx, [0x10001e408]
mov ecx, 8
call fcn.1000622b0
cmp dword [0x1000b3858], 0
jne 0x10003c477
lea rcx, [0x1000b3870]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x10003c477
lea rdx, [0x10001e3a0]
lea ecx, [rax + 8]
call fcn.1000622b0
mov ecx, 0x21
mov dword [0x1000b3858], 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
cmp dword [0x1000b3858], 1
jne 0x10003c48c
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x1000b3870], eax
add rsp, 0x28
jmp fcn.10004db2c

Function at 0x10003c49c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
cmp byte [0x1000b5d3c], 0
je 0x10003c566
lea r9, [0x100019ac8]
lea r8, [0x100019af0]
mov edx, 0x244
mov ecx, 0x10
call fcn.100061ef8
cmp byte [0x1000b5ff5], 0
jne 0x10003c546
mov edx, 0x373
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx + 0x12]
mov r9d, 0xfffe
mov r8d, 1
call fcn.100064784
mov rcx, qword [0x1000b5f98]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x1000b1dfc]
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1000b5f98]
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], eax
mov eax, dword [0x1000b1df8]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x10003c554
mov rcx, qword [0x1000b5fe8]
mov byte [rcx + 0xa5], 0
xor ecx, ecx
call fcn.10004a6c0
test al, al
je 0x10003c566
mov al, 1
add rsp, 0x58
ret
lea r9, [0x100019b00]
lea r8, [0x100019af0]
mov edx, 0x25d
mov ecx, 0x10
call fcn.100061ef8
mov edx, 0x37d
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx + 8]
mov r9d, 0xfffe
mov r8d, 1
call fcn.100064784
mov cl, byte [0x1000b5ff5]
call fcn.100063e14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004a6c0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov dil, cl
cmp cl, byte [0x1000b5d3c]
je 0x10004a85c
mov rcx, qword [0x1000b5fa0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov cl, 1
call fcn.1000470b0
mov rcx, qword [0x1000b5f98]
mov r9d, 0x107
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rbx, qword [0x1000b60b8]
mov byte [0x1000b5d3c], dil
test rbx, rbx
je 0x10004a76f
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10004a750
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov dl, dil
mov rcx, qword [rax + rbp]
mov rax, qword [rcx]
call qword [rax + 0x40]
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x10004a72d
mov rbx, qword [0x1000b60b8]
mov rcx, rbx
call fcn.10004ec64
mov rcx, qword [0x1000b60b8]
call fcn.10004eba4
test al, al
jne 0x10004a76f
xor al, al
jmp 0x10004a85e
mov rbx, qword [0x1000b5fe8]
test rbx, rbx
je 0x10004a7f4
cmp dword [rbx + 0xd4], 0
je 0x10004a7f4
lea r9, [0x10001ad28]
lea r8, [0x10001a610]
mov edx, 0x201
mov ecx, 2
call fcn.100061ef8
mov rcx, rbx
call fcn.100040170
mov rcx, rbx
call fcn.10003ffec
test al, al
je 0x10004a768
cmp dword [0x1000b6058], 0
jne 0x10004a7e5
cmp byte [0x1000b5d3c], 0
mov r8d, dword [0x1000b0bac]
mov edx, dword [0x1000b06ac]
mov rcx, qword [0x1000b5fe8]
je 0x10004a7e0
add r8d, r8d
add edx, edx
call fcn.100041648
mov rax, qword [0x1000b5fe8]
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
call fcn.10004a87c
mov rcx, qword [0x1000b5fa0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1000b5f98]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
cmp qword [0x1000b5fe8], 0
je 0x10004a85c
mov ecx, 0x25
call fcn.10004f2dc
mov rcx, qword [0x1000b5fe8]
mov rcx, qword [rcx + 0x78]
mov rdx, rax
mov rbx, rax
mov r8, qword [rcx]
call qword [r8 + 0x18]
test rbx, rbx
je 0x10004a85c
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x10004d6d4
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, qword [rsp + 0xa0]
mov r13, rcx
mov r14d, 0x2028
mov rcx, r14
mov rbp, r9
mov rsi, r8
mov rbx, rdx
call fcn.10009d604
mov r8, r14
mov rcx, rax
xor edx, edx
mov rdi, rax
call sub.msvcrt.dll_memset
mov dword [rdi], 0x484d4752
mov dword [rdi + 4], 1
mov dword [rdi + 8], r14d
movdqu xmm0, xmmword [rbx]
xor ebx, ebx
movdqu xmmword [rdi + 0x18], xmm0
cmp rsi, rbx
je 0x10004d73f
mov qword [rdi + 0xc], rbx
mov eax, dword [rsi]
mov dword [rdi + 0x14], eax
mov r14d, 0x3ff
cmp rbp, rbx
je 0x10004d759
lea rcx, [rdi + 0x28]
mov r8, rbp
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
cmp r12, rbx
je 0x10004d770
lea rcx, [rdi + 0x828]
mov r8, r12
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
lea r9, [rsp + 0x30]
mov r8d, 0x2028
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x10004d7a0
mov rcx, rdi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10004d7d6
cmp rsi, rbx
je 0x10004d7c7
mov r8d, dword [rsi]
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x10004d7cc
mov ebx, 1
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x10004d7ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov r12, rcx
mov ecx, 0x2028
call fcn.10009d604
mov rbx, rax
jmp 0x10004d826
xor edi, edi
cmp rbx, rdi
jne 0x10004d834
xor eax, eax
jmp 0x10004d929
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, 0x2028
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x10004d91f
cmp dword [rsp + 0x58], 0x2028
jne 0x10004d91f
cmp dword [rbx], 0x484d4752
jne 0x10004d913
cmp dword [rbx + 4], 1
jne 0x10004d885
cmp dword [rbx + 8], 0x2028
je 0x10004d8da
cmp dword [rbx + 8], 0x2030
jne 0x10004d913
lea rdx, [rbx + 0x10]
lea rcx, [rbx + 0xc]
mov r8d, 0x2018
call sub.msvcrt.dll_memmove
mov dword [rbx + 8], 0x2028
mov word [rbx + 0x2024], di
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 7]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10004d8da
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10004d929
mov edx, dword [rbx + 0x14]
cmp edx, edi
je 0x10004d904
mov r9d, 1
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10004d904
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10004d929
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x10004d929
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10004d929
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x10004e734
Capabilities:
Get common file path
Set current directory
Write file on windows

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 r13
sub rsp, 0x20
mov rbx, qword [0x1000b60b8]
mov r13d, 4
lea rdx, [0x10001e580]
mov ecx, r13d
call fcn.1000622b0
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10004e7da
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov rdi, qword [rax + rbp]
cmp dword [rdi + 0x18], 1
je 0x10004e786
cmp dword [rdi + 0x18], 3
jne 0x10004e7cf
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test al, al
je 0x10004e7cf
cmp dword [rdi + 0x18], 1
jne 0x10004e7a6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test al, al
jne 0x10004e7cf
cmp byte [rdi + 0x14], 0
mov r9, qword [rdi + 0x20]
lea rax, [0x10001e600]
lea r8, [0x100002d00]
lea rdx, [0x100016d00]
mov ecx, r13d
cmovne r8, rax
call fcn.1000622b0
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x10004e772
lea rdx, [0x10001e620]
mov ecx, r13d
call fcn.1000622b0
xor edi, edi
cmp dword [rbx + 0x18], edi
jbe 0x10004e832
xor esi, esi
mov rax, qword [rbx + 0x10]
mov rbp, qword [rsi + rax]
cmp dword [rbp + 0x18], 1
je 0x10004e806
cmp dword [rbp + 0x18], 3
jne 0x10004e827
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 8]
test al, al
jne 0x10004e827
mov r8, qword [rbp + 0x20]
lea rdx, [0x10001e69c]
mov ecx, r13d
call fcn.1000622b0
inc edi
add rsi, 8
cmp edi, dword [rbx + 0x18]
jb 0x10004e7f2
lea rdx, [0x10001e6b0]
mov ecx, r13d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
jmp fcn.1000622b0
Function at 0x100052054
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r12b, r9b
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x10], edi
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], edi
mov dword [rcx + 0x28], edi
mov qword [rcx + 0x20], rdi
mov byte [rcx + 0x14], dil
mov dword [rcx + 0x18], 3
lea rax, [0x10001f7b0]
mov qword [rcx], rax
lea eax, [rdi + 2]
mul r13
lea r14, [rdi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.10009d6a4
mov qword [rbx + 0x68], rax
cmp rax, rdi
je 0x1000520dc
mov r8, rbp
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_wcscpy_s
mov dword [rbx + 0x70], r13d
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x98], rdi
mov byte [rbx + 0x34], r12b
mov qword [rbx + 0x78], rdi
mov byte [rbx + 0x90], dil
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x3c], edi
mov dword [rbx + 0x38], edi
mov dword [rbx + 0x40], edi
movzx ecx, r12b
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.10009d6a4
mov qword [rbx + 0x48], rax
cmp rax, rdi
je 0x100052158
cmp byte [rbx + 0x34], dil
jbe 0x100052158
mov rcx, rdi
mov rax, qword [rbx + 0x48]
mov dword [rcx + rax], 0x64
inc edi
add rcx, 4
movzx eax, byte [rbx + 0x34]
cmp edi, eax
jb 0x10005213f
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x10005406c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x20
mov rbx, rcx
mov r13d, 0x40
mov rcx, r13
call fcn.10009d604
xor edi, edi
lea r12, [0x100021c78]
cmp rax, rdi
je 0x1000540c8
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x1000540cb
mov rax, rdi
mov rcx, r13
mov qword [rbx + 0x60], rax
call fcn.10009d604
cmp rax, rdi
je 0x100054104
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x100054107
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x68], rax
call fcn.100063638
mov rcx, r13
call fcn.10009d604
cmp rax, rdi
je 0x10005414f
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
lea rcx, [0x100021ca0]
mov dword [rax + 0x20], edi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
mov qword [rax], rcx
jmp 0x100054152
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x70], rax
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
add rsp, 0x20
pop r13
jmp fcn.100063638
Function at 0x1000625d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1000aa140]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov bpl, r8b
mov edi, edx
mov rsi, rcx
lea rbx, [rsp + 0x60]
cmp edx, 0x40
ja 0x100062685
je 0x100062679
mov eax, edx
sub eax, 1
je 0x10006266d
sub eax, 1
je 0x100062661
sub eax, 2
je 0x100062655
sub eax, 4
je 0x100062649
sub eax, 8
je 0x10006263d
cmp eax, 0x10
jne 0x1000626b1
lea rbx, [0x100022380]
jmp 0x100062718
lea rbx, [0x100022358]
jmp 0x100062718
lea rbx, [0x100022338]
jmp 0x100062718
lea rbx, [0x100022368]
jmp 0x100062718
lea rbx, [0x100022320]
jmp 0x100062718
lea rbx, [0x100022310]
jmp 0x100062718
lea rbx, [0x1000223a8]
jmp 0x100062718
cmp edx, 0x80
je 0x100062711
cmp edx, 0x100
je 0x100062708
cmp edx, 0x200
je 0x1000626ff
cmp edx, 0x400
je 0x1000626f6
cmp edx, 0x800
je 0x1000626ed
mov rax, qword [0x1000b3880]
test rax, rax
je 0x1000626ce
mov ecx, edx
call rax
mov rbx, rax
test rax, rax
jne 0x100062718
lea rbx, [rsp + 0x60]
or r8, 0xffffffffffffffff
lea r9, [0x100022418]
lea rcx, [rsp + 0x60]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], edi
call sub.msvcrt.dll__snwprintf_s
jmp 0x100062718
lea rbx, [0x100022408]
jmp 0x100062718
lea rbx, [0x1000223f8]
jmp 0x100062718
lea rbx, [0x1000223e0]
jmp 0x100062718
lea rbx, [0x1000223d0]
jmp 0x100062718
lea rbx, [0x1000223b8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
test bpl, bpl
je 0x1000627d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x1000627b8
and qword [rsp + 0x30], 0
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
lea rcx, [0x100022300]
mov edx, 0xc0000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1000627ef
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000627ef
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1000627ef
and qword [rsp + 0x20], rax
lea r8d, [rcx + rcx - 2]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.10009dad0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x100063638
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
test rcx, rcx
jne 0x100063678
lea rax, [0x100022760]
mov byte [rsp + 0x30], 1
lea r8d, [rcx + 1]
mov qword [rsp + 0x28], rax
lea rax, [0x100022780]
xor edx, edx
mov r9d, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.100064784
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret