joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e3c8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14004e3de
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004e3e0
xor eax, eax
test eax, eax
je 0x14004e3f0
mov ecx, eax
call fcn.14004e380
or eax, 0xffffffff
jmp 0x14004e3f2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004e974
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14008b5a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14004e9b4
mov eax, 0xff
jmp 0x14004eb75
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14004e9d0
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14008dad4], r9d
mov dword [0x14008dadc], ecx
mov dword [0x14008dae0], edx
mov dword [0x14008dae4], eax
mov dword [0x14008dad8], r8d
cmp word [0x140000000], 0x5a4d
jne 0x14004ea5d
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14004ea2b
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x14004ea63
cmp word [rax + 0x18], 0x20b
je 0x14004ea3b
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x14004ea63
cmp dword [rax + 0x84], 0xe
ja 0x14004ea4c
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x14004ea63
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x14004ea63
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14004f8d0
test eax, eax
jne 0x14004ea95
cmp dword [0x14008d550], 2
je 0x14004ea81
call fcn.14004f88c
mov ecx, 0x1c
call fcn.14004f694
mov ecx, 0xff
call fcn.14004f338
call fcn.140050f30
test eax, eax
jne 0x14004eac1
cmp dword [0x14008d550], 2
je 0x14004eaac
call fcn.14004f88c
mov ecx, FDICreate
call fcn.14004f694
mov ecx, 0xff
call fcn.14004f338
nop
call fcn.1400575d0
test eax, eax
jns 0x14004ead4
mov ecx, 0x1b
call fcn.14004f2cc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14008f720], rax
call fcn.14005753c
mov qword [0x14008d548], rax
call fcn.140057458
test eax, eax
jns 0x14004eaff
mov ecx, 8
call fcn.14004f2cc
call fcn.14005715c
test eax, eax
jns 0x14004eb12
mov ecx, 9
call fcn.14004f2cc
mov ecx, edi
call fcn.14004f428
test eax, eax
je 0x14004eb24
mov ecx, eax
call fcn.14004f2cc
mov r8, qword [0x14008db10]
mov qword [0x14008db18], r8
mov rdx, qword [0x14008daf8]
mov ecx, dword [0x14008dae8]
call fcn.14002ab80
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14004eb55
mov ecx, eax
call fcn.14004f604
call fcn.14004f61c
jmp 0x14004eb73
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140125000
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.140057894
add rsp, 0x28
jmp 0x14004e974
Function at 0x14004f24f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14008b5a0]
jne 0x14004c8aa
rol rcx, 0x10
test cx, 0xffff
jne 0x14004c8a6
repz ret
ror rcx, 0x10
jmp 0x14004f1a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14008d600]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14008d6f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14004f22d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14008d600]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14004f24f
mov rax, qword [rsp + 0x88]
mov qword [0x14008d6f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14008d698], rax
mov rax, qword [0x14008d6f8]
mov qword [0x14008d570], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14008d680], rax
mov dword [0x14008d560], 0xc0000409
mov dword [0x14008d564], 1
mov rax, qword [0x14008b5a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008b5a8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400718a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14004f4e4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140057dbc
nop
cmp dword [0x14008db34], 1
je 0x14004f597
mov dword [0x14008db30], 1
mov byte [0x14008daec], dil
test ebx, ebx
jne 0x14004f583
mov rcx, qword [0x14008f6f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x14008f6e8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x14004f570
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x14004f570
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004f56e
call rcx
jmp 0x14004f556
lea rdx, [0x140060798]
lea rcx, [0x140060780]
call fcn.14004f368
lea rdx, [0x1400607a8]
lea rcx, [0x1400607a0]
call fcn.14004f368
nop
test edi, edi
je 0x14004f5a5
mov ecx, 8
call fcn.140057c98
test edi, edi
jne 0x14004f5cd
mov dword [0x14008db34], 1
lea ecx, [rdi + 8]
call fcn.140057c98
mov ecx, r12d
call fcn.14004f2fc
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x14004f4e4
Function at 0x14004f604
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140057dbc
nop
cmp dword [0x14008db34], 1
je 0x14004f597
mov dword [0x14008db30], 1
mov byte [0x14008daec], dil
test ebx, ebx
jne 0x14004f583
mov rcx, qword [0x14008f6f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x14008f6e8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x14004f570
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x14004f570
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004f56e
call rcx
jmp 0x14004f556
lea rdx, [0x140060798]
lea rcx, [0x140060780]
call fcn.14004f368
lea rdx, [0x1400607a8]
lea rcx, [0x1400607a0]
call fcn.14004f368
nop
test edi, edi
je 0x14004f5a5
mov ecx, 8
call fcn.140057c98
test edi, edi
jne 0x14004f5cd
mov dword [0x14008db34], 1
lea ecx, [rdi + 8]
call fcn.140057c98
mov ecx, r12d
call fcn.14004f2fc
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x14004f4e4

Function at 0x14004f610
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14004f4e4
Function at 0x14004f694
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x14004f6c7
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14004f6b7
cmp edi, 0x17
jae 0x14004f875
mov ebp, 3
mov ecx, ebp
call fcn.140058434
cmp eax, 1
je 0x14004f82d
mov ecx, ebp
call fcn.140058434
test eax, eax
jne 0x14004f6fd
cmp dword [0x14008b720], 1
je 0x14004f82d
cmp ebx, 0xfc
je 0x14004f875
lea rbx, [0x14008db40]
mov ebp, 0x314
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbx
mov rdx, rbp
call fcn.14004e484
test eax, eax
je 0x14004f740
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
lea rdx, [0x14008db59]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14008dc5d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14004f791
lea r8, str._program_name_unknown_
lea rcx, [0x14008db59]
mov edx, 0x2fb
call fcn.14004e484
test eax, eax
je 0x14004f791
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
lea r8, [0x14008db59]
mov rdx, rbp
mov rcx, rbx
call fcn.14004e3f8
test eax, eax
je 0x14004f7bc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
lea r8, [0x140071e80]
mov rdx, rbp
mov rcx, rbx
call fcn.14004e3f8
test eax, eax
je 0x14004f7e7
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.14004e3f8
test eax, eax
je 0x14004f816
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbx
call fcn.140058204
jmp 0x14004f875
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14004f875
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x14004f875
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x1400509e8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140050a53
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140050a73
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x14005753c
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 ebx, ebx
cmp rax, rbx
mov rdi, rax
jne 0x140057564
xor eax, eax
jmp 0x1400575b0
cmp word [rdi], bx
je 0x14005757b
add rax, 2
cmp word [rax], bx
jne 0x140057569
add rax, 2
cmp word [rax], bx
jne 0x140057569
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.14004c8b0
cmp rax, rbx
mov rsi, rax
je 0x1400575a4
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.14004c480
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140058204
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.140050bdc
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x14008e400], rbp
mov rdi, rax
jne 0x140058337
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x140058263
xor eax, eax
jmp 0x140058417
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005825c
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14008e400], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14008e408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x14008e410], rax
call fcn.14004f39c
test eax, eax
je 0x1400582ea
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
cmp dword [rsp + 0x88], 2
jne 0x140058337
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x14008e420], rax
je 0x140058337
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14008e418], rax
mov rcx, qword [0x14008e418]
cmp rcx, rdi
je 0x1400583c9
cmp qword [0x14008e420], rdi
je 0x1400583c9
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x140058394
mov rcx, qword [0x14008e420]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x140058394
test byte [rsp + 0x40], 1
jne 0x1400583c9
lea rcx, [rsp + 0x30]
call fcn.14004f3e0
test eax, eax
je 0x1400583b6
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400509e8
cmp dword [rsp + 0x30], 4
jb 0x1400583c3
bts ebx, 0x15
jmp 0x1400583fd
bts ebx, 0x12
jmp 0x1400583fd
mov rcx, qword [0x14008e408]
cmp rcx, rdi
je 0x1400583fd
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x1400583fd
mov rcx, qword [0x14008e410]
cmp rcx, rdi
je 0x1400583fd
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x14008e400]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14005b044
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14008b5a0]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005b14a
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x14005b0d2
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x14005b14a
mov eax, edx
not eax
and ecx, eax
je 0x14005b0ed
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14005b14a
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x14005b14a
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14005b14a
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14005b14a
mov eax, 1
jmp 0x14005b14c
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.14004c890
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x18000dc98
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.180007e80
sub rsp, rax
mov rax, qword [0x18003f020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001a2ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000dce7
mov rax, rbp
jmp 0x18000ddef
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6d71b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001a544
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6d71b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000ddeb
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 0x18000ddeb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001a544
test rax, rax
js 0x18000ddeb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000ddeb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000dddd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000dddd
cmp byte [rcx], 0xd
jne 0x18000ddc3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000ddd2
cmp byte [rcx + 1], 0xa
jne 0x18000ddd2
inc rcx
jmp 0x18000ddd2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f3c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000dda5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000ddef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007530
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 0x18001c59c
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, [0x1806d71b0]
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 0x18001c5fa
cmp word [rdx], r12w
jne 0x18001c5fa
or byte [rax + r8*8 + 0x38], cl
jmp 0x18001c600
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18001c75b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001c736
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18001c639
mov rcx, r9
jmp 0x18001c65c
cmp r9, rdx
jae 0x18001c673
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 0x18001c61d
jmp 0x18001c75b
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 0x18001c730
cmp dword [rsp + 0x80], edi
je 0x18001c730
mov rdx, r14
lea r11, [0x1806d71b0]
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 0x18001c709
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18001c6dc
mov word [rbx], r12w
jmp 0x18001c757
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 0x18001c6e5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001c757
cmp word [rsp + 0x70], r12w
jne 0x18001c716
cmp rbx, rsi
je 0x18001c6d6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18001a54c
cmp word [rsp + 0x70], r12w
je 0x18001c75b
mov word [rbx], r13w
jmp 0x18001c757
lea r11, [0x1806d71b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001c753
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18001c75b
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 0x18001f800
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18001f522
call fcn.180015eac
mov dword [rax], 0x16
call fcn.180012da8
jmp 0x18001f672
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001f672
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001f672
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001f551
lock or dword [rcx + 0x14], 0x10
jmp 0x18001f672
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18001f565
call fcn.18001fd74
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18001f575
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18001f578
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.18001a2ac
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18001ca48
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18001f660
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18001f60b
mov rcx, rbx
call fcn.18001a2ac
cmp eax, 0xffffffff
je 0x18001f5f6
mov rcx, rbx
call fcn.18001a2ac
cmp eax, 0xfffffffe
je 0x18001f5f6
mov rcx, rbx
call fcn.18001a2ac
movsxd rdi, eax
lea rsi, [0x1806d71b0]
mov rcx, rbx
sar rdi, 6
call fcn.18001a2ac
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18001f5fd
lea rdx, [0x18003f4c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001f60b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18001f62f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18001f62f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18001f62f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18001f64d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18001f658
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18001f677
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x18001f4ec
Function at 0x1800240d4
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 0x180024104
xor eax, eax
jmp 0x1800241c7
mov rbp, rbx
cmp word [rax], si
je 0x180024129
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180024110
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002410c
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.18002281c
movsxd r14, eax
test eax, eax
jne 0x180024167
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800240fd
mov rcx, r14
call fcn.18001e098
mov rdi, rax
test rax, rax
jne 0x180024180
xor ecx, ecx
call fcn.18001d29c
jmp 0x18002415c
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.18002281c
test eax, eax
jne 0x1800241b1
mov rcx, rdi
call fcn.18001d29c
jmp 0x1800241bb
xor ecx, ecx
call fcn.18001d29c
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