joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005100
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
mov edx, dword [0x14011a958]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x14011a958], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14011a958], eax
mov al, byte [0x14011821f]
cmp al, bl
jle 0x140005199
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [rsp + 0x3c]
mov ecx, eax
sub ecx, r8d
cmp ecx, edi
jb 0x140005182
mov edx, dword [0x14011a958]
sub eax, edx
cmp eax, edi
jae 0x1400051a4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14011821f]
cmp r11b, bl
jg 0x140005153
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x14011a958]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14011821f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x14011a958], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400051f8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x98
lea rdx, [rsp + 0x20]
lea rcx, str.DEBUGMDG
mov r8d, 0x63
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movzx r11d, byte [0x14011a8e3]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14011a8e3], r11b
add rsp, 0x98
ret

Function at 0x1400054a0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], rcx
mov rsi, rdx
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov r8d, 0x8000004
mov dword [rax - 0x18], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x14000552f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000552f
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.140005244
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x140118010], rcx
mov qword [0x14011a978], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005570
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14011821f]
mov ebx, 0x14
cmp al, 2
je 0x14000558d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14011a978]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x1400055b8
mov rax, qword [0x14011a960]
test rax, rax
je 0x1400055bd
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x1400055a1
mov rcx, qword [0x14011a960]
test rcx, rcx
je 0x1400055dc
xor edx, edx
mov qword [0x14011a960], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14011821f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x1400055ec
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov bl, 1
mov rdi, rax
test rax, rax
je 0x14000564b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005663
xor bl, bl
jmp 0x140005663
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400056b4
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [0x14011a988], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x14011a988]
test r11, r11
je 0x1400056b4
test bl, bl
je 0x1400056b1
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400dfee0
mov r11, qword [0x14011a988]
mov qword [r11], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005a10
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x30]
mov edx, 0x169
mov r12, r8
call fcn.14005bf78
mov r15, qword [rsp + 0x30]
mov r8d, 0x104
add r15, 0xc8
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edi, edi
cmp rsi, rdi
je 0x140005a6a
lea ebp, [rdi + 1]
cmp rsi, 0xffffffffffffffff
jne 0x140005a6c
mov ebp, edi
mov ebx, 0x64
cmp r12, rdi
je 0x140005a89
mov rdx, rbx
mov rcx, r12
call fcn.14005c004
mov r11, qword [r12]
mov word [r11], di
cmp ebp, edi
je 0x140005a9f
mov rdx, rbx
mov rcx, rsi
call fcn.14005c004
mov r11, qword [rsi]
mov word [r11], di
mov ebx, 2
lea r8, [rsp + 0x88]
mov rdx, r15
mov ecx, ebx
mov dword [rsp + 0x88], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov r14d, eax
cmp eax, edi
je 0x140005bde
mov rdx, r14
mov ecx, ebx
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [rsp + 0x88]
mov r9d, r14d
mov rdx, r15
mov ecx, 2
mov rbx, rax
mov qword [rsp + 0x20], rax
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, [0x1400fcb08]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp r12, rdi
je 0x140005b65
mov rcx, qword [rsp + 0x98]
lea rdx, str._u._u._u._u
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 0x12]
movzx r9d, word [rcx + 0x10]
movzx ecx, word [rcx + 0x16]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp ebp, edi
je 0x140005b9b
mov rcx, qword [rsp + 0x98]
lea rdx, str._u._u._u._u
movzx eax, word [rcx + 0xc]
movzx r8d, word [rcx + 0xa]
movzx r9d, word [rcx + 8]
movzx ecx, word [rcx + 0xe]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp rsi, rdi
jne 0x140005bb7
mov rax, qword [rsp + 0x98]
mov edi, dword [rax + 0x10]
mov eax, dword [rax + 0x14]
shl rdi, 0x20
or rdi, rax
jmp 0x140005bcc
mov rcx, qword [rsp + 0x98]
mov edi, dword [rcx + 8]
mov ecx, dword [rcx + 0xc]
shl rdi, 0x20
or rdi, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rcx, [rsp + 0x30]
call fcn.140054110
mov rbx, qword [rsp + 0x80]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005eac
Capabilities:
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movzx eax, word [0x14011bf8c]
mov rsi, r8
mov ebx, edx
mov rdi, rcx
test al, 2
jne 0x140005f12
xor r8d, r8d
or ax, 3
lea rcx, str.SeRestorePrivilege
lea edx, [r8 + 2]
mov word [0x14011bf8c], ax
call fcn.14001a2b8
xor r8d, r8d
lea rcx, str.SeSecurityPrivilege
lea edx, [r8 + 2]
call fcn.14001a2b8
xor r8d, r8d
lea rcx, str.SeTakeOwnershipPrivilege
lea edx, [r8 + 2]
call fcn.14001a2b8
mov r8d, ebx
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140005fb2
and qword [rsp + 0x50], 0
xor r8d, r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14005bd08
xor r8d, r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 1]
mov rcx, rax
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp qword [rdi + 0x10], 0
je 0x140005fa1
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rcx, qword [rdi + 8]
lea r9, [rdi + 0x10]
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test rsi, rsi
je 0x140005fae
mov rcx, qword [rdi + 8]
mov qword [rsi + 0x68], rcx
mov rax, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400076e8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.1400055ec
call fcn.140004ec0
mov byte [0x14011a8e2], 1
call fcn.140001160
call fcn.1400563d4
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.System32Kernel32.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.user32.dll
mov rbx, rax
mov qword [0x14011ae50], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1400fcdd8]
mov rcx, rbx
mov qword [0x14011ae48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x140118008]
lea r8, str.bX64
lea rcx, [0x14011afa0]
mov qword [0x14011a8e8], rax
call fcn.14005efbc
add rsp, 0x130
pop rbx
ret
Function at 0x1400077a4
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x70], rcx
movzx edi, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x70], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x1400077d7
cmp word [rcx], 0xd
jbe 0x1400077e5
cmp bp, word [rcx]
je 0x1400077e5
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.1400051f8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x14011a958], eax
mov qword [rsp + 0x80], rsi
call fcn.140066ba4
lea rcx, [rsp + 0x78]
call fcn.14005bf04
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x14011afa0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.14006f034
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.140066cbc
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.140054110
lea rcx, [rsp + 0x88]
call fcn.140054110
mov rcx, qword [rsp + 0x70]
call fcn.1400051d0
lea r8d, [rsi + 0xf]
lea rcx, str._InstallService
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x1400078e8
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x1400078ad
cmp ax, 0xd
jbe 0x1400078b7
cmp bp, ax
je 0x1400078b7
cmp ax, si
jne 0x1400078e8
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001b870
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.1400051d0
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000790f
lea rdx, [rsp + 0x70]
lea rcx, [0x1400fce30]
mov r8d, 8
call fcn.14005e70c
cmp al, sil
je 0x140007998
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x140007960
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x70]
movsxd rcx, eax
lea rax, [rdx + rcx*2 - 2]
cmp rax, rdx
jbe 0x140007960
cmp r12w, word [rax]
ja 0x140007942
cmp word [rax], 0xd
jbe 0x140007947
cmp bp, word [rax]
jne 0x14000794d
sub rax, 2
jmp 0x140007931
cmp rax, rdx
jbe 0x140007960
cmp r13w, word [rax]
jne 0x140007960
mov word [rax], si
mov rdx, qword [rsp + 0x70]
sub rdx, 2
movsx eax, bl
mov ecx, 0x7e
mov qword [rsp + 0x70], rdx
mov word [rdx], ax
mov rax, qword [rsp + 0x70]
sub rax, 2
mov qword [rsp + 0x70], rax
mov word [rax], cx
mov rcx, qword [rsp + 0x70]
call fcn.1400157e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.14005e70c
cmp al, sil
je 0x1400079c7
mov rcx, qword [rsp + 0x70]
call fcn.140007e00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.140054110
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007e00
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x850
movzx eax, word [rcx]
mov ebp, 0x20
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea r12d, [rbp - 0x17]
jmp 0x140007e4a
cmp r12w, ax
ja 0x140007e3e
cmp ax, 0xd
jbe 0x140007e4f
cmp bp, ax
je 0x140007e4f
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x140007e32
mov rax, rdi
sub rax, rcx
mov ecx, 0x400
sar rax, 1
cmp eax, ecx
cmovg eax, ecx
lea rcx, [rsp + 0x40]
cdqe
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14001b870
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140007e86
cmp word [rdi], 0xd
jbe 0x140007e8b
cmp bp, word [rdi]
jne 0x140007e91
add rdi, 2
jmp 0x140007e7a
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x140007f01
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x140007f01
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, 0xc8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140009df8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov bpl, dl
xor edx, edx
mov sil, r9b
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
mov qword [0x14011a960], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x140009e5d
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009e5d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi], 0
test sil, sil
je 0x140009e73
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.1400079e4
mov rcx, qword [0x14011a9f8]
call fcn.1400053d0
test bpl, bpl
je 0x140009ea1
mov ebx, 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x140009e89
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015244
Capabilities:
Accept command line arguments

Disassembly:
mov rax, r9
mov r9d, dword [rsp + 0x28]
mov r10, r8
mov r11, rdx
mov qword [0x14011adf0], rcx
mov r8, rax
mov rdx, r10
mov rcx, r11
jmp sym.PECMD.exe_mainW

Function at 0x140015268
Capabilities:
Accept command line arguments

Disassembly:
mov r8, rdx
mov rdx, rcx
xor r9d, r9d
xor ecx, ecx
jmp sym.PECMD.exe_mainW

Function at 0x1400157a8
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp sym.PECMD.exe_mainB

Function at 0x1400157cc
Capabilities:
Accept command line arguments

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp sym.PECMD.exe_mainB

Function at 0x140015a1c
Capabilities:
Check os version
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x70
lea rcx, [0x14011aad0]
mov dword [0x14011aad0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x14011aad4], 5
je 0x140015a49
xor eax, eax
jmp 0x140015b40
mov eax, dword [0x14011aad8]
test eax, eax
je 0x140015a5f
cmp eax, 1
jne 0x140015a42
mov ebx, 0x39000
jmp 0x140015a64
mov ebx, 0x30000
lea rdx, str.DevicePhysicalMemory
lea rcx, [rsp + 0x30]
call qword [0x14011aa88]
and qword [rsp + 0x48], 0
and dword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [0x14011ac38]
mov edx, 6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
call qword [0x14011aa50]
cmp eax, 0xc0000022
jne 0x140015b04
lea r8, [rsp + 0x40]
lea rcx, [0x14011ac38]
mov edx, 0x60000
call qword [0x14011aa50]
mov rcx, qword [0x14011ac38]
call fcn.1400158cc
mov rcx, qword [0x14011ac38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
lea rcx, [0x14011ac38]
mov edx, 6
call qword [0x14011aa50]
test eax, eax
js 0x140015a42
mov rcx, qword [0x14011ac38]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 6]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x14011ac30], rax
neg rax
sbb rax, rax
and rax, qword [0x14011ac38]
add rsp, 0x70
pop rbx
ret

Function at 0x140015b48
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, rdx
mov esi, edx
shr rax, 0x16
mov r9d, dword [rcx + rax*4]
mov eax, r9d
and eax, 1
test al, al
jne 0x140015b74
xor eax, eax
jmp 0x140015be0
mov eax, r9d
and eax, 0x80
test al, al
je 0x140015b90
mov ebx, r9d
xor ebx, edx
and ebx, 0x3fffff
xor ebx, r9d
jmp 0x140015bde
mov rcx, qword [0x14011ac38]
xor r8d, r8d
and r9d, 0xfffff000
lea edx, [r8 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
shr rsi, 0xc
mov ecx, eax
and esi, 0x3ff
mov eax, dword [rcx + rsi*4]
and eax, 1
test al, al
je 0x140015b70
mov ebx, dword [rcx + rsi*4]
xor ebx, edi
and ebx, 0xfff
xor ebx, dword [rcx + rsi*4]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140015bf0
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x14011ac30]
call fcn.140015b48
mov rcx, qword [0x14011ac38]
xor r8d, r8d
mov r9d, eax
lea edx, [r8 + 6]
mov rbx, rax
and r9d, 0xfffff000
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x140015c4d
mov eax, ebx
shr rax, 2
and eax, 0x3ff
mov ebx, dword [rcx + rax*4]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140015d90
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140015db7
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140015dc0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
cmp word [rcx], di
je 0x140015e1c
cmp word [rcx + 2], di
je 0x140015e1c
cmp word [rcx + 4], di
je 0x140015e1c
cmp word [rcx + 6], di
je 0x140015e1c
cmp word [rcx + 8], di
je 0x140015e1c
cmp word [rcx + 0xa], di
je 0x140015e1c
cmp word [rcx + 0xc], di
je 0x140015e1c
cmp word [rcx + 0xe], di
je 0x140015e1c
lea rax, [rcx + 0x10]
jmp 0x140015e17
mov edx, 0x5c
cmp dx, word [rax]
jne 0x140015e13
mov edx, 0x2f
mov word [rax], dx
add rax, 2
cmp word [rax], di
jne 0x140015e01
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
cmp rax, rdi
je 0x140015e3d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140015fa0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rdi, rcx
mov dword [rax - 0x20], 0x80
lea rcx, str.C:pe.debug.log
lea r8d, [r9 + 7]
mov edx, 0xc0000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016023
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.140055540
cmp byte [rdi], 0
je 0x14001601a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140016120
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rbx, rdx
mov rdx, rcx
mov qword [rax - 0x30], rbp
mov dword [rax - 0x38], ebp
mov rdi, r8
mov dword [rax - 0x40], 3
lea r9d, [rbp + 7]
lea rcx, [rax + 0x10]
mov r8d, 0x80000000
mov qword [rax + 0x10], rbp
mov qword [rax - 0x48], rbp
call fcn.1400037a8
mov rsi, rax
cmp rax, rbp
je 0x140016212
lea rdx, [rsp + 0x78]
mov rcx, rax
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x78]
mov dword [rsp + 0x88], r11d
cmp rdi, rbp
je 0x140016198
mov dword [rdi], r11d
jmp 0x1400161a0
lea rdi, [rsp + 0x88]
cmp rbx, rbp
jne 0x1400161cc
lea edx, [r11 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14005bc8c
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
call fcn.140054110
cmp rbx, rbp
je 0x140016209
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x78]
cmp r11d, ebp
cmovl r11d, ebp
xor edx, edx
movsxd rcx, r11d
lea r8d, [rdx + 6]
mov dword [rdi], r11d
add rcx, rbx
call fcn.1400dfee0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140016b24
Capabilities:
Parse pe header

Disassembly:
mov r10, r8
mov r9, rcx
cmp r8, 0x40
jae 0x140016b33
xor eax, eax
ret
mov eax, 0x5a4d
mov qword [rcx + 0x20], rdx
cmp word [rdx], ax
jne 0x140016b30
movsxd r8, dword [rdx + 0x3c]
mov eax, r10d
lea rcx, [r8 + 0x108]
cmp rax, rcx
jb 0x140016b30
lea rax, [r8 + rdx]
mov qword [r9 + 0x28], rax
cmp dword [rax], 0x4550
jne 0x140016b30
movzx r11d, word [rax + 0x16]
mov ecx, 0x2002
test cx, r11w
je 0x140016b30
test byte [rax + 0x16], 2
je 0x140016b30
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140016b30
lea rdx, [rax + 0x108]
xor r8d, r8d
mov qword [r9 + 0x30], rdx
cmp r8w, word [rax + 6]
jae 0x140016bbc
add rdx, 0x10
mov eax, dword [rdx + 4]
add eax, dword [rdx]
cmp rax, r10
ja 0x140016b30
mov rax, qword [r9 + 0x28]
inc r8d
add rdx, 0x28
movzx ecx, word [rax + 6]
cmp r8d, ecx
jl 0x140016b9e
mov eax, r11d
ret

Function at 0x140016c5c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
cmp dword [0x14011a8b4], ebx
setne dil
test dil, dil
je 0x140016cd3
mov rcx, qword [0x14011b190]
mov edx, 8
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140016caa
lea ecx, [rax + 2]
call fcn.14005bac0
cmp eax, 4
je 0x140016c7f
mov dword [rbx + 4], 0xaa55
mov qword [rbx], 0x30
add rbx, 8
mov qword [rbx + 0x20], 0xfffffffffff80000
mov ecx, dword [0x14011a8b4]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
je 0x140016cdb
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov al, dil
add rsp, 0x20
pop rdi
ret