joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005fd08
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005fd50
lea ebx, [rsi + 0xd]
jmp 0x14005fdbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005fdbb
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005fdad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005fdbb
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400608e8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060b98
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x14006093e
mov ecx, 1
call fcn.140060b98
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edx, 0x7e53f0f3
out dx, eax
clc
fstp xword [rdx - 0x1d]
popfq
sbb dword [rsi], eax
fdiv st(4)
xchg edx, eax
cmp ebp, dword [rdi + 0x1e166d39]
cwde
xor bl, byte [rdi - 0x15]
invalid
Function at 0x140001f10
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Create process suspended

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140020030]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov qword [rsp + 0x88], rcx
call qword [sym.imp.mfc100u.dll_AfxFailMaxChars]
mov rdx, qword [rax + 0x10]
mov qword [0x140022e30], rdx
lea rdx, str.EpsonScan2.log
lea rcx, [0x140022d60]
call fcn.140004b80
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x80]
call fcn.140002150
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002640
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400020f6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
je 0x1400020ea
mov rax, qword [sym.imp.MSVCR100.dll___wargv]
mov rdx, qword [rax]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_CRecentFileList::ReadList]
test eax, eax
je 0x1400020ea
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax - 0x10]
inc ecx
movsxd rdx, ecx
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov rdi, rax
mov r8, qword [rsp + 0x58]
mov eax, dword [r8 - 0x10]
inc eax
movsxd rdx, eax
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
xor esi, esi
mov dword [rsp + 0xa0], esi
xor edx, edx
lea r8d, [rsi + 0x60]
lea rcx, [rsp + 0xa8]
call sub.MSVCR100.dll_memset
mov qword [rsp + 0x68], rsi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400020e0
or edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.mfc100u.dll_delete__]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x178], eax
jmp 0x140002120
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140012160
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002150
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140020030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x34], 0
call qword [0x140015700]
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000222a
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], delete[]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.MSVCR100.dll_memset
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.BaseModulePath
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000221f
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140012160
add rsp, 0x280
pop rbx
ret
Function at 0x140003950
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov rax, qword [0x140020030]
xor rax, rsp
mov qword [rbp + 7], rax
mov rbx, r9
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rdx
mov qword [rbp - 1], r8
mov qword [rbp - 9], rbx
xor r14d, r14d
mov dword [rbp - 0x29], r14d
mov edi, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov dword [rbp - 0x31], r14d
lea r15, vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov qword [rbp - 0x49], r15
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
mov dword [rbp - 0x29], 1
nop word [rax + rax]
add edi, 0x400
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x49]
call qword [rax + 0x48]
mov edx, edi
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x49]
call qword [rax + 0x98]
mov r9, rax
mov qword [rbp - 0x41], rax
test rax, rax
je 0x140003a13
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x35], edi
cmp qword [rsi + 0x18], 8
jb 0x140003a1f
mov rax, qword [rsi]
jmp 0x140003a22
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x140003a2e
mov rdx, qword [rbx]
jmp 0x140003a31
mov rdx, rbx
cmp qword [r12 + 0x18], 8
jb 0x140003a3f
mov rcx, qword [r12]
jmp 0x140003a42
mov rcx, r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x140016640]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r11d, eax
lea ecx, [rdi - 1]
lea eax, [rcx - 1]
cmp r11d, eax
je 0x1400039e0
cmp r11d, ecx
je 0x1400039e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rbp - 0x41]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call fcn.140001520
nop
mov qword [rbp - 0x49], r15
mov rdx, qword [rbp - 0x41]
test rdx, rdx
je 0x140003ab2
lea rcx, [rbp - 0x49]
call qword [0x140017b98]
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
lea rax, vtable.ES_CMN_FUNCS::BUFFER::IESBuffer.0
mov qword [rbp - 0x49], rax
cmp qword [rsi + 0x18], 8
jb 0x140003acd
mov rcx, qword [rsi]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
cmp qword [r12 + 0x18], 8
jb 0x140003aef
mov rcx, qword [r12]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [r12 + 0x18], 7
mov qword [r12 + 0x10], r14
mov word [r12], r14w
cmp qword [rbx + 0x18], 8
jb 0x140003b12
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rax, r13
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140012160
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004590
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x140020030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x18], 8
jb 0x1400045f6
mov rcx, qword [rdx]
jmp 0x1400045f9
mov rcx, rdx
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1400046a0
mov eax, 2
mul rdi
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov r13, rax
cmp qword [rbx + 0x18], 8
jb 0x140004636
mov rcx, qword [rbx]
jmp 0x140004639
mov rcx, rbx
mov r9, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140004688
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo000004b0FileVersion
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140004688
xor eax, eax
mov rcx, r14
mov rdx, qword [rsp + 0x28]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.140001520
mov rcx, r13
call qword [sym.imp.mfc100u.dll_delete__]
nop
jmp 0x1400046a0
cmp qword [rbx + 0x18], 8
jb 0x1400046b0
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rax, r12
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140012160
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140005300
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x28], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
mov dword [rbp + 0x28], 1
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], esi
lea r12, vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov qword [rbp - 0x28], r12
lea rcx, [rbp - 0x28]
call qword [0x140017b40]
mov edx, 0x20a
lea rcx, [rbp - 0x28]
mov rax, qword [rbp - 0x28]
call qword [rax + 0x98]
mov rdx, rax
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000543b
mov dword [rbp - 0x18], 0x20a
mov dword [rbp - 0x14], 0x20a
xor ecx, ecx
lea r9d, [rsi + 1]
lea r8d, [rsi + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdx, qword [rbp - 0x20]
cmp eax, 1
jne 0x1400053f9
test rdx, rdx
je 0x1400053e8
mov r8d, delete[]
mov ecx, r8d
mov rax, rdx
mov edi, esi
nop dword [rax]
cmp word [rax], di
je 0x1400053d0
add rax, 2
dec rcx
jne 0x1400053c0
jmp 0x1400053d5
test rcx, rcx
jne 0x1400053df
mov edi, 0x80070057
mov r8, rsi
jmp 0x1400053e2
sub r8, rcx
test edi, edi
jns 0x1400053f2
jmp 0x1400053ed
mov edi, 0x80070057
mov r8, rsi
test edi, edi
jne 0x14000541d
test r8, r8
je 0x14000541d
test rdx, rdx
je 0x14000543b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140001520
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000543b
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rax + 0xa0]
mov rdx, rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rdx
cmp qword [rbx + 0x10], 0
je 0x14000545b
mov r8d, 0x11
lea rdx, str.EPSONEPSONSCAN2
mov rcx, rbx
call fcn.140002320
mov rdx, qword [rbp - 0x20]
mov qword [rbp - 0x28], r12
test rdx, rdx
je 0x140005471
lea rcx, [rbp - 0x28]
call qword [0x140017b98]
nop
jmp 0x140005471
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400088d0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x290
movdqa xmmword [rsp + 0x2f0], xmm6
movdqa xmmword [rsp + 0x300], xmm7
movdqa xmmword [rsp + 0x310], xmm8
movdqa xmmword [rsp + 0x320], xmm9
movdqa xmmword [rsp + 0x330], xmm10
movdqa xmmword [rsp + 0x340], xmm11
movdqa xmmword [rsp + 0x350], xmm12
movdqa xmmword [rsp + 0x360], xmm13
movdqa xmmword [rsp + 0x370], xmm14
movdqa xmmword [rsp + 0x380], xmm15
mov eax, dword [0x1407ab0cc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x290]
mov qword [rdx + 8], r8
call fcn.140218370
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x1407ab0cc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x140008a60
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x140008a7c
cmp rcx, r8
jl 0x140008a6f
mov qword [rdx + 0x80], rcx
test dword [0x1407a2c80], 1
je 0x140008aab
cmp byte [rsp + 0xd0], 0
je 0x140008aab
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x1400085d0
mov rsp, r8
jmp rax
Function at 0x140011600
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x14000a687
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x14000a687
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x14000a687
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x140011600
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x140790380]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x14078f988]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x14001165e
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14078f988], rax
test rax, rax
je 0x1400116ba
mov rcx, rbx
call fcn.14000a980
test al, al
jne 0x140011708
mov dl, 1
mov rcx, rbx
call fcn.14000aa00
mov r9d, 0x10001
lea rcx, [0x140011270]
mov r8, rbx
mov rdx, rdi
call qword [0x14078f988]
test eax, eax
jne 0x140011708
xor edx, edx
mov rcx, rbx
call fcn.14000aa00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140011708
mov qword [0x14078f988], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140011708
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400116ff
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x1400116ff
test eax, 0x18000000
jne 0x1400116ff
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x1407a4e28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140066690
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x140011890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400118a4
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140011950
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140011979
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x140011990
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400119c5
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140013c10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140790380]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movzx ebx, r8b
mov rdi, rdx
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call fcn.140013840
mov r8d, send
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r11d, eax
lea ecx, [rax - 1]
cmp ecx, 0xf
ja 0x140013cd8
xor ecx, ecx
mov r9d, ecx
test eax, eax
je 0x140013cd1
lea r10, [rsp + 0x20]
movzx r8d, word [r10]
lea eax, [r8 - 0x30]
test bl, bl
je 0x140013c94
cmp ax, 9
ja 0x140013cd8
lea rcx, [rcx + rcx*4]
lea rcx, [rcx - 0x18]
lea rcx, [r8 + rcx*2]
jmp 0x140013cc5
shl rcx, 4
cmp ax, 9
ja 0x140013ca4
add rcx, 0xffffffffffffffd0
jmp 0x140013cc2
lea eax, [r8 - 0x61]
cmp ax, 5
ja 0x140013cb4
add rcx, 0xffffffffffffffa9
jmp 0x140013cc2
lea eax, [r8 - 0x41]
cmp ax, 5
ja 0x140013cd8
add rcx, 0xffffffffffffffc9
add rcx, r8
inc r9d
add r10, 2
cmp r9d, r11d
jb 0x140013c74
mov qword [rdi], rcx
mov al, 1
jmp 0x140013cda
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140066690
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x140016d80
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x140790380]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x140016e6f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x140016e6f
mov rdx, qword [rsp + 0x70]
test r14, r14
je 0x140016e4a
xorps xmm0, xmm0
test rdx, rdx
js 0x140016df1
cvtsi2ss xmm0, rdx
jmp 0x140016e09
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x1406f2af0]
test rdi, rdi
js 0x140016e23
cvtsi2ss xmm0, rdi
jmp 0x140016e3b
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
xor eax, eax
test rbx, rbx
je 0x140016e61
cmp rdx, rdi
jbe 0x140016e5b
mov qword [rbx], rax
jmp 0x140016e61
sub rdi, rdx
mov qword [rbx], rdi
test rsi, rsi
je 0x140016f38
jmp 0x140016f35
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x28]
jae 0x140016f12
test r14, r14
je 0x140016f01
mov rcx, rdx
xorps xmm0, xmm0
sub rcx, qword [rsp + 0x50]
js 0x140016eab
cvtsi2ss xmm0, rcx
jmp 0x140016ec0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x1406f2af0]
test rdx, rdx
js 0x140016eda
cvtsi2ss xmm0, rdx
jmp 0x140016ef2
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
test rbx, rbx
je 0x140016f09
mov qword [rbx], rdx
test rsi, rsi
je 0x140016f38
xor eax, eax
jmp 0x140016f35
test r14, r14
je 0x140016f1e
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
test rbx, rbx
je 0x140016f2b
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
test rsi, rsi
je 0x140016f38
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140066690
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret