joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003dd8
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.LC_ALL
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140003e24
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x1400d66c8]
lea rcx, [0x1400f1960]
cmovne rdx, rax
call fcn.140058a38
mov rcx, qword [0x1400f1960]
call fcn.14004cfc0
movzx ecx, word [0x1400fb004]
cmp eax, 1
cmovg cx, ax
mov word [0x1400fb004], cx
add rsp, 0x70
pop rbx
ret

Function at 0x140003fb4
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 [0x1400f1928]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x1400f1928], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400f1928], eax
mov al, byte [0x1400ef217]
cmp al, bl
jle 0x14000404d
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 0x140004036
mov edx, dword [0x1400f1928]
sub eax, edx
cmp eax, edi
jae 0x140004058
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x1400ef217]
cmp r11b, bl
jg 0x140004007
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x1400f1928]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x1400ef217]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x1400f1928], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400040ac
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 [0x1400f190e]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x1400f190e], r11b
add rsp, 0x98
ret
Function at 0x140004358
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xe0
xor ebp, ebp
xor eax, eax
mov bl, r8b
mov rsi, rcx
mov dil, dl
mov dword [rsp + 0x70], 0x68
lea r8d, [rbp + 0x58]
lea rcx, [r11 - 0x68]
xor edx, edx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [r11 - 0x70], rbp
call fcn.1400b93b0
cmp bl, bpl
je 0x1400043bb
or dword [rsp + 0xac], 1
mov word [rsp + 0xb0], bp
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebp
je 0x140004423
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dil, bpl
je 0x140004418
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000443c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x420
mov rbx, rcx
lea rdx, [rsp + 0x20]
lea rcx, str.SHOWEWFMSG
mov r8d, 0x3ff
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [rsp + 0x20], 0x31
jne 0x140004481
lea r8, [0x1400d6724]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
add rsp, 0x420
pop rbx
ret

Function at 0x14000448c
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 0x14000451b
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 0x14000451b
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.1400040f8
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x1400ef010], rcx
mov qword [0x1400f1940], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000455c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x1400ef217]
mov ebx, 0x14
cmp al, 2
je 0x140004579
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1400f1940]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x1400045a4
mov rax, qword [0x1400f1930]
test rax, rax
je 0x1400045a9
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14000458d
mov rcx, qword [0x1400f1930]
test rcx, rcx
je 0x1400045c8
xor edx, edx
mov qword [0x1400f1930], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x1400ef217], 0xff
add rsp, 0x20
pop rbx
ret

Function at 0x1400045d8
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 0x140004637
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000464f
xor bl, bl
jmp 0x14000464f
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400046a0
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 [0x1400f1950], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x1400f1950]
test r11, r11
je 0x1400046a0
test bl, bl
je 0x14000469d
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400b93b0
mov r11, qword [0x1400f1950]
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 0x140004a04
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, rcx
mov rbx, rdx
lea rcx, [rax + 0x20]
mov edx, 0x169
call fcn.14004bedc
mov rbp, qword [rsp + 0x88]
mov r8d, 0x104
add rbp, 0xc8
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
and dword [rsp + 0x70], 0
lea rdx, [rsp + 0x70]
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r12d, eax
test eax, eax
je 0x140004b04
and dword [rsp + 0x80], 0
and qword [rsp + 0x30], 0
mov rdx, r12
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x70]
mov r8d, r12d
mov r9, rax
mov rcx, rbp
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x30]
lea rdx, [0x1400d6778]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
mov r11, qword [rsp + 0x30]
lea rdx, str._u._u._u._u
movzx ecx, word [r11 + 0xe]
movzx eax, word [r11 + 0xc]
movzx r9d, word [r11 + 8]
movzx r8d, word [r11 + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x88]
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
mov qword [rsi], rax
call fcn.140044f24
mov rax, rsi
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005f28
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x138
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.1400045d8
call fcn.140003dd8
mov byte [0x1400f190d], 1
call fcn.140001160
call fcn.140046d94
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 rdx, [0x1400d6990]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x1400ef008]
lea r8, str.bX64
lea rcx, [0x1400f1e30]
mov qword [0x1400f18d0], rax
call fcn.14004ed64
add rsp, 0x138
ret
Function at 0x140005fc4
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x60], rcx
movzx ebx, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x60], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x140005ff5
cmp word [rcx], 0xd
jbe 0x140006003
cmp bp, word [rcx]
je 0x140006003
add rcx, 2
mov qword [rsp + 0x60], rcx
call fcn.1400040ac
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor esi, esi
mov dword [0x1400f1928], eax
mov qword [rsp + 0x70], rsi
call fcn.140058920
lea rcx, [rsp + 0x68]
call fcn.14004be6c
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x68]
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.140054c4c
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140058a38
mov r11, qword [rsp + 0x70]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x60], r11
call fcn.140044f24
lea rcx, [rsp + 0x78]
call fcn.140044f24
mov rcx, qword [rsp + 0x60]
call fcn.140004084
lea r8d, [rsi + 0xf]
lea rcx, str._InstallService
mov rdx, rax
mov rdi, rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x1400060ef
movzx eax, word [rdi + 0x1e]
cmp r12w, ax
ja 0x1400060b9
cmp ax, 0xd
jbe 0x1400060c3
cmp bp, ax
je 0x1400060c3
cmp ax, si
jne 0x1400060ef
mov rcx, qword [rsp + 0x60]
lea rdx, [0x1400d69f8]
mov r8d, 0x1e
call fcn.1400177f8
mov rcx, qword [rsp + 0x60]
add rcx, 0x1e
call fcn.140004084
mov qword [rsp + 0x60], rax
jmp 0x140006110
lea rdx, [rsp + 0x60]
lea rcx, [0x1400d69e8]
mov r8d, 8
call fcn.14004e558
cmp al, sil
je 0x14000616f
mov rax, qword [rsp + 0x60]
mov edi, 0x22
cmp di, bx
jne 0x14000615e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rcx*2 - 2]
cmp rdx, rax
jbe 0x14000615e
cmp r12w, word [rdx]
ja 0x140006141
cmp word [rdx], 0xd
jbe 0x140006146
cmp bp, word [rdx]
jne 0x14000614c
sub rdx, 2
jmp 0x140006130
cmp rdx, rax
jbe 0x14000615e
cmp di, word [rdx]
jne 0x14000615e
mov word [rdx], si
mov rax, qword [rsp + 0x60]
mov rcx, rax
call fcn.140011474
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x60]
lea rcx, [0x1400d69d8]
mov r8d, 0xe
call fcn.14004e558
cmp al, sil
je 0x14000619e
mov rcx, qword [rsp + 0x60]
call fcn.140007130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x70]
call fcn.140044f24
xor eax, eax
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400061b8
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 [0x1400f1930], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x14000621d
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000621d
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 0x140006233
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.140004358
mov rcx, qword [0x1400f19a8]
call fcn.140004288
test bpl, bpl
je 0x140006261
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 0x140006249
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007130
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 0x14000717a
cmp r12w, ax
ja 0x14000716e
cmp ax, 0xd
jbe 0x14000717f
cmp bp, ax
je 0x14000717f
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x140007162
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.1400177f8
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x1400071b6
cmp word [rdi], 0xd
jbe 0x1400071bb
cmp bp, word [rdi]
jne 0x1400071c1
add rdi, 2
jmp 0x1400071aa
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
cmp rax, rsi
je 0x140007258
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
cmp rax, rsi
je 0x140007258
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, esi
je 0x140007218
lea rcx, [0x1400d6c28]
call fcn.14000443c
mov ebp, 0xc8
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
lea rcx, [0x1400d6c18]
cmp eax, esi
jne 0x140007240
lea rcx, [0x1400d6c08]
call fcn.14000443c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007278
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400d6bf8]
cmp eax, 0x424
je 0x140007273
lea rcx, [0x1400d6be8]
call fcn.14000443c
mov rcx, rdi
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 0x140011ab0
Capabilities:
Check os version
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x70
lea rcx, [0x1400f1a20]
mov dword [0x1400f1a20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x1400f1a24], 5
je 0x140011add
xor eax, eax
jmp 0x140011bd4
mov eax, dword [0x1400f1a28]
test eax, eax
je 0x140011af3
cmp eax, 1
jne 0x140011ad6
mov ebx, 0x39000
jmp 0x140011af8
mov ebx, 0x30000
lea rdx, str.DevicePhysicalMemory
lea rcx, [rsp + 0x30]
call qword [0x1400f19d8]
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, [0x1400f1b68]
mov edx, 6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
call qword [0x1400f19d0]
cmp eax, 0xc0000022
jne 0x140011b98
lea r8, [rsp + 0x40]
lea rcx, [0x1400f1b68]
mov edx, 0x60000
call qword [0x1400f19d0]
mov rcx, qword [0x1400f1b68]
call fcn.140011960
mov rcx, qword [0x1400f1b68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
lea rcx, [0x1400f1b68]
mov edx, 6
call qword [0x1400f19d0]
test eax, eax
js 0x140011ad6
mov rcx, qword [0x1400f1b68]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 6]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x1400f1b60], rax
neg rax
sbb rax, rax
and rax, qword [0x1400f1b68]
add rsp, 0x70
pop rbx
ret

Function at 0x140011bdc
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 0x140011c08
xor eax, eax
jmp 0x140011c74
mov eax, r9d
and eax, 0x80
test al, al
je 0x140011c24
mov ebx, r9d
xor ebx, edx
and ebx, 0x3fffff
xor ebx, r9d
jmp 0x140011c72
mov rcx, qword [0x1400f1b68]
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 0x140011c04
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 0x140011c84
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400f1b60]
call fcn.140011bdc
mov rcx, qword [0x1400f1b68]
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 0x140011ce1
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 0x140011d90
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 0x140011db7
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140011ef0
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 0x140011f73
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.140045f34
cmp byte [rdi], 0
je 0x140011f6a
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 0x14001204c
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.1400034e0
mov rsi, rax
cmp rax, rbp
je 0x14001213e
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 0x1400120c4
mov dword [rdi], r11d
jmp 0x1400120cc
lea rdi, [rsp + 0x88]
cmp rbx, rbp
jne 0x1400120f8
lea edx, [r11 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14004bc80
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
call fcn.140044f24
cmp rbx, rbp
je 0x140012135
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.1400b93b0
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 0x14001288c
Capabilities:
Parse pe header

Disassembly:
mov r10, r8
mov r9, rcx
cmp r8, 0x40
jae 0x14001289b
xor eax, eax
ret
mov eax, 0x5a4d
mov qword [rcx + 0x18], rdx
cmp word [rdx], ax
jne 0x140012898
movsxd r8, dword [rdx + 0x3c]
mov eax, r10d
lea rcx, [r8 + 0x108]
cmp rax, rcx
jb 0x140012898
lea rax, [r8 + rdx]
mov qword [r9 + 0x20], rax
cmp dword [rax], 0x4550
jne 0x140012898
mov ecx, 0x2000
test word [rax + 0x16], cx
je 0x140012898
test byte [rax + 0x16], 2
je 0x140012898
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140012898
lea rdx, [rax + 0x108]
xor r8d, r8d
mov qword [r9 + 0x28], rdx
cmp r8w, word [rax + 6]
jae 0x14001291f
add rdx, 0x10
mov eax, dword [rdx + 4]
add eax, dword [rdx]
cmp rax, r10
ja 0x140012898
mov rax, qword [r9 + 0x20]
inc r8d
add rdx, 0x28
movzx ecx, word [rax + 6]
cmp r8d, ecx
jl 0x140012901
mov eax, 1
ret

Function at 0x1400129c4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp qword [0x1400f1cb8], rbx
je 0x140012a50
cmp cl, bl
je 0x140012a50
cmp dword [0x1400f1f20], ebx
jle 0x140012a50
mov rcx, qword [0x1400f1f18]
cmp word [rcx], bx
je 0x140012a50
test byte [0x1400f2381], 2
je 0x140012a1e
call fcn.1400b9a24
mov rdx, qword [0x1400f1f18]
mov rcx, qword [0x1400f1cb8]
lea r9, [rsp + 0x50]
mov r8d, eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140012a50
mov rcx, qword [0x1400f1f18]
call fcn.1400b9a24
mov rdx, qword [0x1400f1f18]
mov rcx, qword [0x1400f1cb8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x1400f1f24]
dec eax
cmp eax, 0x1ffff
jb 0x140012a7a
lea rcx, [0x1400f1f18]
mov edx, 0x10002
mov dword [0x1400f1f24], 0x10000
call fcn.14004bf70
mov rax, qword [0x1400f1f18]
mov word [rax], bx
mov dword [0x1400f1f20], ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140012e14
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
and qword [rax + 0x20], 0
and qword [rax - 0x18], 0
mov ebx, r8d
mov edi, edx
lea r9, [rax - 0x18]
lea r8, [rax + 0x20]
lea rdx, [rax - 0x10]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test ebx, ebx
je 0x140012e4e
cdqe
jmp 0x140012e5b
mov rax, qword [rsp + 0x58]
test edi, edi
cmovne rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140012e84
Capabilities:
Get disk size

Disassembly:
xor edx, edx
lea r8d, [rdx + 1]
jmp fcn.140012e14