joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e870
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, qword [0x180056878]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 8], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov qword [rbx + 0x10], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x30]
sub eax, dword [rsp + 0x20]
mov r8d, 0x104
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov dword [rbx + 0x1c], eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r8d, 0x104
mov qword [rbx + 0x28], rax
lea rdx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x140]
mov r9d, 0x104
mov qword [rbx + 0x30], rax
lea r8, [rsp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea rax, [rsp + 0x250]
mov qword [rbx + 0x38], rax
lea rdx, str.Hus_is_ud_fr_n
mov rcx, qword [0x180056868]
mov r8d, dword [rcx + 0x48]
call fcn.18003d990
mov rdi, qword [0x180056890]
mov rcx, rdi
call fcn.18003da40
test al, al
je 0x18003e9e0
mov rax, qword [0x18005ad88]
lea rdx, [0x18003e5b0]
mov r8, rdi
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.18003ce40
test eax, eax
jne 0x18003e994
lea edx, [rax + 1]
mov rcx, rbx
call fcn.18003d330
mov rax, qword [0x18005ad88]
lea r8, [rdi + 8]
lea rdx, [fcn.180008c90]
mov rbx, qword [rax + 0x60]
mov rcx, rbx
call fcn.18003ce40
test eax, eax
jne 0x18003e9c1
lea edx, [rax + 1]
mov rcx, rbx
call fcn.18003d330
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x180056868]
lea rdx, str.D3D11Window::Hook_Initialized_n
mov r8d, dword [rcx + 0x48]
jmp 0x18003e9f2
mov rcx, qword [0x180056868]
lea rdx, str.___D3D11Window::Hook_Failed_to_Initialize_n
mov r8d, dword [rcx + 0x44]
call fcn.18003d990
mov edx, 1
xor ecx, ecx
call fcn.18003d330
mov rcx, qword [0x180056868]
lea rdx, str.Hooking::Hook_Initialized_n
mov r8d, dword [rcx + 0x48]
call fcn.18003d990
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.18003ea50
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
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]
lahf
xchg edi, eax
sbb bl, byte [rcx + 0x5a6f41b5]
xchg edx, eax
fcmovb st(0), st(4)
stc
invalid
pop rsi
sub eax, 0xc168ccad
cmp qword [r15 + rbp*4 - 0x15], rbp
pushfq
in al, dx
xor dword [rdi], ebp
clc
xchg dword [rcx - 0x3e], esp
jrcxz 0x1400209a6
nop
cmp rax, 0x5d2af550
test ah, 0x9b
cmpsb byte [rsi], byte [rdi]
pop rsi
sub dh, byte [rcx]
insd dword [rdi], dx
sahf
invalid
Function at 0x140001270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [0x140003260]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtAddBootEntry
mov dword [rsp + 0x30], 0
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea rbx, [rax + 0x12]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r8, str.ZwAllocateVirtualMemory
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], 0x4d4bc
mov rcx, rdi
mov rsi, rax
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rbx
call fcn.140001430
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x38]
lea rcx, [r8 - 1]
call fcn.140001453
mov rax, qword [rsp + 0x48]
lea r8, [0x140005050]
mov rdx, qword [rsp + 0x38]
test rax, rax
je 0x140001354
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub rax, 1
jne 0x140001340
lea r8, str.NtProtectVirtualMemory
mov rcx, rdi
lea rdx, [rsp + 0x30]
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rbx
call fcn.140001430
lea rax, [rsp + 0x50]
mov r9d, 0x20
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call fcn.140001453
lea rdx, str.TpAllocWait
mov qword [rsp + 0x40], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
call rax
lea rdx, str.TpSetWait
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
call rax
lea r8, str.NtWaitForSingleObject
mov rcx, rdi
lea rdx, [rsp + 0x30]
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rbx
call fcn.140001430
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140001453
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001480
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140001d5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001da6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001da6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001da6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001da6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001da6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001da8
xor al, al
add rsp, 0x28
ret
Function at 0x2915d33c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2915d3dc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2915e4108]
test eax, eax
je 0x2915d3e5a
lea rax, [0x2915e40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2915e4110]
mov qword [rbp - 8], rax
jmp 0x2915d3e3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2915d3e32
cmp qword [rbp - 0x10], 0
je 0x2915d3e32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2915d3df8
lea rax, [0x2915e40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2915d3e5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2915d3f60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2915d3f88
mov eax, 0
jmp 0x2915d3fd6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2915d3fb1
mov eax, 0
jmp 0x2915d3fd6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2915d3fd1
mov eax, 0
jmp 0x2915d3fd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2915d3fdc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2915d405a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2915d4051
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2915d4051
mov rax, qword [rbp - 8]
jmp 0x2915d406f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2915d4024
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001230
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rsi, rcx
mov dword [rsp + 0x28], 0x100
lea rcx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
test eax, eax
je 0x14000137c
mov qword [rsi + 0x18], rdi
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400012a0
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140001467
mov qword [rsi + 0x18], 0xf
cmp rbx, 0xf
ja 0x1400012e7
mov r8, rbx
mov qword [rsi + 0x10], rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001bc00
mov byte [rbx + rsi], dil
jmp 0x14000142f
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x140001303
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14000132c
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x14000134b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001461
mov rcx, rax
call fcn.1400035f0
test rax, rax
je 0x14000145b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001358
test rcx, rcx
je 0x140001358
call fcn.1400035f0
mov rdi, rax
mov r8, rbx
mov qword [rsi], rdi
lea rdx, [rsp + 0x30]
mov qword [rsi + 0x10], rbx
mov rcx, rdi
mov qword [rsi + 0x18], rbp
call fcn.14001bc00
mov byte [rdi + rbx], 0
jmp 0x14000142f
mov qword [rsi + 0x18], 0xf
movabs rbp, 0x7fffffffffffffff
mov rdx, qword [rsi + 0x18]
mov rax, rbp
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1400013d0
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400035f0
test rax, rax
je 0x14000145b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001405
lea rax, [rcx + rdx]
mov ebp, 0x1f
cmp rax, rbp
cmova rbp, rax
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x1400013f8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001461
jmp 0x1400013b1
test rcx, rcx
je 0x140001405
call fcn.1400035f0
mov rdi, rax
mov qword [rsi], rdi
mov qword [rsi + 0x10], 0x18
mov qword [rsi + 0x18], rbp
movups xmm0, xmmword [str.Error_getting_user_name.]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x140025650]
movsd qword [rdi + 0x10], xmm0
mov byte [rdi + 0x18], 0
mov rax, rsi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400035d0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14000c460
int3
call fcn.140001170
int3
call fcn.140001210
int3
Function at 0x140004048
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004092
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004092
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004092
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004092
cmp dword [rcx + 0x84], 0xe
jbe 0x140004092
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004094
xor al, al
add rsp, 0x28
ret

Function at 0x14000d27c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d078
Function at 0x14001306c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001309c
xor eax, eax
jmp 0x14001315f
mov rbp, rbx
cmp word [rax], si
je 0x1400130c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400130a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400130a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012f8c
movsxd r14, eax
test eax, eax
jne 0x1400130ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013095
mov rcx, r14
call fcn.14000e980
mov rdi, rax
test rax, rax
jne 0x140013118
xor ecx, ecx
call fcn.14000dd08
jmp 0x1400130f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012f8c
test eax, eax
jne 0x140013149
mov rcx, rdi
call fcn.14000dd08
jmp 0x140013153
xor ecx, ecx
call fcn.14000dd08
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001734c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017362
mov al, 1
jmp 0x1400173c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017373
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400173c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400138d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400173c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400173c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400173c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400173c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018c38
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.1400115fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018cc2
cmp byte [rbp - 0x21], r15b
je 0x140018cbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018cf8
call fcn.14000df58
test eax, eax
jne 0x140018ce4
cmp byte [rbp - 0x21], r15b
je 0x140018cdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018cf8
cmp byte [rbp - 0x21], r15b
je 0x140018cf5
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.140011480
test eax, eax
jne 0x140018d98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400115fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018d37
cmp byte [rbp - 0x21], r15b
je 0x140018d6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018d6c
call fcn.14000df58
test eax, eax
jne 0x140018d58
cmp byte [rbp - 0x21], r15b
je 0x140018d51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018d6c
cmp byte [rbp - 0x21], r15b
je 0x140018d69
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.140011480
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018d98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018d9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018da9
mov rcx, rdi
call fcn.14000dd08
cmp byte [rbp + 0x3f], r15b
je 0x140018db8
mov rcx, qword [rbp + 0x27]
call fcn.14000dd08
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 0x14001b3a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b3c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b3c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001bb8
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x180001bd5
mov r9, rcx
sub rdx, rcx
mov al, byte [rdx + r9]
xor al, 0x12
mov byte [r9], al
inc r9
sub r8, 1
jne 0x180001bc3
mov rax, rcx
ret

Function at 0x141423f88
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141423fb1
pop rbp
sub rbp, 0x29
sub rbp, 0x1423f88
jmp 0x141424011
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax - 0x7f], cl
in al, dx
and byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
sub rsp, 0x20
jmp 0x141424021
mov rax, 0x1423f88
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xffffffffa0c79738
xor byte [rax], dl
inc rax
dec rcx
jne 0x141424040
test edx, esi
invalid
jmp 0x141424057
jo 0x14142400a
sal dword [rbx + 0x383804b1], 1
cmp byte [rax - 0x47], dh
stc
xor byte [rcx], bh
cmp byte [rax], bh
jo 0x1414240a2
sal dword [rax - 1], 1
clc
cmp byte ss:[rax], bh
cmp byte [rax - 1], dh
cli
adc byte [rax], bh
cmp byte [rax], bh
jo 0x141424049
fidiv dword [rax + 0x39]
stc
mov bl, 0xb9
xor al, 0x38
cmp byte [rax], bh
jo 0x1414240bf
shr byte [rax + 0x68], 1
jo 0x14142400b
invalid
invalid
cmp byte [rax - 0x39], dh
invalid
Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001e9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret