joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b80e0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 4], 0
mov rbx, rcx
jne 0x1400b81a4
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400b813d
mov dword [rbx + 4], 3
mov eax, 3
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x50
pop rbx
ret
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
jne 0x1400b8151
mov dword [rbx + 4], 3
jmp 0x1400b81a4
cmp ax, 0x30
jne 0x1400b8160
mov dword [rbx + 4], 1
jmp 0x1400b81a4
cmp ax, 0x32
jne 0x1400b816f
mov dword [rbx + 4], 2
jmp 0x1400b81a4
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, 0xb
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400b811e
movzx ecx, word [rsp + 0x30]
xor edx, edx
movzx eax, word [rsp + 0x20]
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [rbx + 4], edx
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x50
pop rbx
ret

Function at 0x1400b9310
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x14018c220]
mov qword [rbx], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x40]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400b93cd
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400064b0
mov rdx, qword [rbx]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400b93bf
cmp eax, edi
je 0x1400b93cd
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400b93cd
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140122ce0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x1400bcea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x1400bcf5c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1401256c0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x1400bcf20
sub eax, ebx
jmp 0x1400bcf22
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1400bcf10
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x1400bcf50
sub eax, ebx
jmp 0x1400bcf52
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x1400bcf40
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400bd049
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1400bd2b0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400bcfc4
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400bcfda
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400bcec0
mov ecx, dword [rdi + 0x1718]
mov esi, dword [rdi + 0x58]
cmp ecx, esi
jae 0x1400bd049
mov ebx, dword [rdi + 0x94]
add ebx, r9d
cmp ecx, ebx
jae 0x1400bd01b
sub esi, ebx
mov ecx, ebx
mov eax, 0x102
cmp esi, eax
cmova esi, eax
add rcx, qword [rdi + 0x50]
mov r8d, esi
xor edx, edx
call fcn.1401263b0
lea eax, [rsi + rbx]
mov dword [rdi + 0x1718], eax
jmp 0x1400bd049
lea eax, [rbx + 0x102]
cmp ecx, eax
jae 0x1400bd049
sub ebx, ecx
sub esi, ecx
mov eax, 0x102
add ebx, eax
cmp ebx, esi
cmova ebx, esi
add rcx, qword [rdi + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.1401263b0
add dword [rdi + 0x1718], ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bf6e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x70], 0x1000
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400bf728
mov edi, dword [rsp + 0x60]
jmp 0x1400bf73a
cmp byte [rbx + 0x73], dil
jne 0x1400bf73a
mov byte [rbx + 0x73], 1
mov rcx, rbx
call fcn.1400e43a0
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
cmp edi, 0x1000
cmovae rax, rcx
mov edi, dword [rax]
cmp byte [rbx + 0x73], 0
jne 0x1400bf83e
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400bf77e
mov rdx, qword [rbx + 0x60]
sub rcx, rdx
cmp rdi, rcx
jle 0x1400bf77e
mov edi, dword [rbx + 0x40]
sub edi, edx
je 0x1400bf83e
mov edx, edi
lea rcx, [rbx + 0x48]
call fcn.140082df0
mov word [rbx + 0x70], 0x100
lea r9, [rbx + 0x18]
xor ecx, ecx
mov qword [r9], rcx
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rcx
lea rcx, [0x1400bf680]
mov qword [rsp + 0x20], rcx
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400bf83e
mov byte [rbx + 0x71], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x6d
je 0x1400bf832
cmp ecx, 0x7c
je 0x1400bf832
mov edx, 0x22
lea rcx, str.QWindowsPipeReader::startAsyncRead
call fcn.140020710
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, edi
mov rcx, rbx
call fcn.1400e44a0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400bf822
cmp eax, 0xffffffff
je 0x1400bf83e
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400bf83e
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
jmp 0x1400bf83e
mov byte [rbx + 0x73], 1
mov rcx, rbx
call fcn.1400e43a0
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x1400bfe30
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x59], 0
mov rdi, rcx
je 0x1400bfe47
xor al, al
add rsp, 0x30
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x40], rbx
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
add rcx, 0x40
mov qword [rsp + 0x48], rsi
call fcn.140032050
mov rdx, qword [rdi + 0x40]
lea r9, [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
movsxd rax, dword [rdx + 4]
mov qword [rdi + 0x48], rax
lea rax, [0x1400bfef0]
mov r8d, dword [rdi + 0x48]
mov word [rdi + 0x58], 0x100
add rdx, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x1400bfed6
lea rcx, [rdi + 0x40]
mov byte [rdi + 0x59], al
mov qword [rdi + 0x48], 0
call fcn.1400326c0
lea rcx, str.QWindowsPipeWriter::write_failed.
call fcn.1400174a0
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cfed0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x70], esi
lea rax, [0x14018c298]
mov qword [rcx], rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], rsi
or r8d, 0xffffffff
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
lea rcx, [rsp + 0x78]
call fcn.140004140
nop
mov rcx, rax
call fcn.140025d00
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400cff92
cmp eax, 0xffffffff
je 0x1400cffa0
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cffa0
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
test bl, bl
je 0x1400d00d9
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400d00ce
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400d00ce
mov ebx, esi
mov dword [rsp + 0x74], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400d00c2
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.1400064b0
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.1400063f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.140032380
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400d0086
cmp eax, 0xffffffff
je 0x1400d0095
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400d0095
mov rcx, qword [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400d00b4
cmp eax, 0xffffffff
je 0x1400d00c2
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400d00c2
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400d0002
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140122ce0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400d1c50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov dword [rsp + 0x34], 0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1401263b0
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400064b0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400d2050
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
lea r8, [rsp + 0x30]
mov ecx, eax
mov word [rsp + 0x20], bx
lea r9d, [rbx + 3]
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x1400d20af
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14006fa80
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x40
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x40
pop rbx
ret
Function at 0x14011fde0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x141e51c80]
test rcx, rcx
jne 0x14011fe0a
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x141e51c80], rax
jmp 0x14011fe13
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x141e51ca8]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x141e51ca8], r10
cmp qword [r9], 0
jne 0x14011fe4a
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x14011fe79
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x141e51ca0]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x14011fe72
mov qword [rcx + 0x18], rax
mov qword [0x141e51ca0], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x14011fec5
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14011fe9f
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test rcx, rcx
je 0x14011feb2
mov qword [rcx + 0x10], rax
jmp 0x14011feb9
mov qword [0x141e51ca0], rax
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x14011ff2b
cmp qword [rdx], 1
jne 0x14011ff2b
mov rcx, qword [0x141e51cb0]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x14011ff2b
mov qword [0x141e51cb0], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x14011ff00
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x14011ff13
mov qword [rcx + 0x10], rax
jmp 0x14011ff1a
mov qword [0x141e51ca0], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x141e51c80]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, 0xf82bd268
mov ch, byte [rbx + 0x56]
invalid
Function at 0x14012ebc8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14012ec37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012ec37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012ec37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012ec37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012ec37
cmp dword [rcx + 0x84], 0xe
jbe 0x14012ec37
cmp dword [rcx + 0xf8], 0
je 0x14012ec37
mov ecx, ebx
call fcn.14012ecf4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14012eac4
nop
cmp dword [rbp + 0x20], 0
je 0x14012ec85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012ec90
int3
xor r8d, r8d
xor edx, edx
jmp 0x14012ebc8

Function at 0x14012edd8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14012ec37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012ec37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012ec37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012ec37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012ec37
cmp dword [rcx + 0x84], 0xe
jbe 0x14012ec37
cmp dword [rcx + 0xf8], 0
je 0x14012ec37
mov ecx, ebx
call fcn.14012ecf4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14012eac4
nop
cmp dword [rbp + 0x20], 0
je 0x14012ec85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012ec90
int3
xor r8d, r8d
xor edx, edx
jmp 0x14012ebc8
Function at 0x14012ff14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140123670
sub rsp, rax
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140136e44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14012ff63
mov rax, rbp
jmp 0x14013006b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1e53150]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140130404
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1e53150]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140130067
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140130067
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140130404
test rax, rax
js 0x140130067
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140130067
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140130059
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140130059
cmp byte [rcx], 0xd
jne 0x14013003f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14013004e
cmp byte [rcx + 1], 0xa
jne 0x14013004e
inc rcx
jmp 0x14013004e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2f6590]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140130021
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013006b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140122ce0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140134f5c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x141e53150]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140134fba
cmp word [rdx], r12w
jne 0x140134fba
or byte [rax + r8*8 + 0x38], cl
jmp 0x140134fc0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14013511b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401350f6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140134ff9
mov rcx, r9
jmp 0x14013501c
cmp r9, rdx
jae 0x140135033
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140134fdd
jmp 0x14013511b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401350f0
cmp dword [rsp + 0x80], edi
je 0x1401350f0
mov rdx, r14
lea r11, [0x141e53150]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1401350c9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14013509c
mov word [rbx], r12w
jmp 0x140135117
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401350a5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140135117
cmp word [rsp + 0x70], r12w
jne 0x1401350d6
cmp rbx, rsi
je 0x140135096
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14013040c
cmp word [rsp + 0x70], r12w
je 0x14013511b
mov word [rbx], r13w
jmp 0x140135117
lea r11, [0x141e53150]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140135113
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14013511b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140142004
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 0x140142034
xor eax, eax
jmp 0x1401420f7
mov rbp, rbx
cmp word [rax], si
je 0x140142059
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140142040
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14014203c
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.140140e38
movsxd r14, eax
test eax, eax
jne 0x140142097
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14014202d
mov rcx, r14
call fcn.140139734
mov rdi, rax
test rax, rax
jne 0x1401420b0
xor ecx, ecx
call fcn.14013ac10
jmp 0x14014208c
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.140140e38
test eax, eax
jne 0x1401420e1
mov rcx, rdi
call fcn.14013ac10
jmp 0x1401420eb
xor ecx, ecx
call fcn.14013ac10
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 0x140142114
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14014219b
mov rsi, rbx
cmp word [rax], bp
je 0x14014215a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140142144
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140142140
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140139734
mov rdi, rax
test rax, rax
je 0x140142188
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401256c0
mov rbp, rdi
xor ecx, ecx
call fcn.14013ac10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret