joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007410
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140008bc0
mov rdi, rax
test rax, rax
jne 0x140007459
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002b10
xor eax, eax
jmp 0x140007568
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140011800
test ebx, ebx
jne 0x140007496
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002b10
xor eax, eax
jmp 0x140007560
lea rcx, [rsp + 0x20]
call fcn.140008a60
test eax, eax
je 0x1400074b0
lea rcx, [rsp + 0x20]
call fcn.140013e74
jmp 0x1400074c2
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140012ad8
mov rbx, rax
test rax, rax
jne 0x1400074dd
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002b10
xor eax, eax
jmp 0x140007560
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.140025fa0
mov edx, 0x5c
mov rcx, rbx
call fcn.14000cce8
mov rdi, rax
test rax, rax
je 0x140007552
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140013ef8
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000cce8
mov rdi, rax
test rax, rax
jne 0x140007510
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000bdf0
add rsp, 0x4030
pop rdi
ret
Function at 0x140007590
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov qword [rsp + 0x2078], rbp
lea rdx, [0x1400277f4]
mov rbp, r8
call fcn.140003fc0
mov r9, rbx
mov qword [rsp + 0x28], rbp
lea r8, str._s_c_s
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
mov rdi, rax
call fcn.140001ee0
cmp eax, 0x1000
jl 0x140007606
xor esi, esi
mov ebx, esi
jmp 0x1400076bc
lea rcx, [rsp + 0x30]
call fcn.140003f50
xor esi, esi
cmp eax, 1
jne 0x140007694
mov eax, dword [0x140039004]
cmp eax, 0xffffffff
jne 0x140007663
lea rcx, str.PYINSTALLER_STRICT_UNPACK_MODE
call fcn.140007b50
mov r8, rax
test rax, rax
je 0x14000767d
movzx edx, byte [rax]
sub edx, 0x30
jne 0x140007648
movzx edx, byte [rax + 1]
movzx ecx, sil
sub edx, ecx
mov eax, esi
test edx, edx
mov rcx, r8
setne al
mov dword [0x140039004], eax
call fcn.140011800
mov eax, dword [0x140039004]
test eax, eax
je 0x140007683
lea rdx, [rsp + 0x30]
lea rcx, str.ERROR:_file_already_exists_but_should_not:__s_n
call fcn.140002c30
mov rbx, rsi
jmp 0x1400076bc
mov dword [0x140039004], esi
lea rdx, [rsp + 0x30]
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140002c30
mov rdx, rbp
mov rcx, rbx
call fcn.1400077b0
test eax, eax
jns 0x1400076a8
mov rbx, rsi
jmp 0x1400076bc
lea rdx, [0x140029c6c]
lea rcx, [rsp + 0x30]
call fcn.140003fc0
mov rbx, rax
mov rbp, qword [rsp + 0x2078]
test rdi, rdi
je 0x140007779
mov rcx, rdi
test rbx, rbx
je 0x140007781
call fcn.14000e710
test eax, eax
jne 0x140007765
nop word [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e9f8
test rax, rax
jne 0x140007721
mov rcx, rdi
call fcn.14000e73c
test eax, eax
je 0x14000774a
mov rcx, rdi
jmp 0x14000775b
mov r9, rbx
lea rcx, [rsp + 0x1030]
mov r8, rax
mov edx, 1
call fcn.14000ef20
test rax, rax
je 0x140007758
mov rcx, rbx
call fcn.14000e73c
test eax, eax
jne 0x140007758
mov rcx, rdi
call fcn.14000e710
test eax, eax
je 0x1400076f0
jmp 0x140007765
mov rcx, rbx
call fcn.140014f60
mov esi, 0xffffffff
mov rcx, rdi
call fcn.14000e6ac
mov rcx, rbx
call fcn.14000e6ac
mov eax, esi
jmp 0x14000778b
test rbx, rbx
je 0x140007786
mov rcx, rbx
call fcn.14000e6ac
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000bdf0
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007940
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x1400079cd
lea rcx, [0x140029b84]
call fcn.140007b50
mov rcx, rbp
mov rsi, rax
call fcn.140007410
mov r14, rax
test rax, rax
je 0x140007a9f
mov rdx, rax
lea rcx, [0x140029b88]
call fcn.1400142c4
mov rcx, r14
mov ebx, eax
call fcn.140011800
test ebx, ebx
je 0x1400079cd
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002b10
xor eax, eax
jmp 0x140007b28
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002810
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140014f44
mov rcx, rax
mov rbx, rax
call fcn.140008b60
test eax, eax
je 0x140007aa6
mov rcx, rbx
call fcn.140011800
inc edi
cmp edi, 5
jl 0x140007a00
test rbp, rbp
je 0x140007a9f
xor r8d, r8d
lea rdx, [0x140029b84]
xor ecx, ecx
call fcn.140008bc0
test rsi, rsi
je 0x140007a89
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140008bc0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400142c4
mov rcx, rdi
call fcn.140011800
mov rcx, rbx
call fcn.140011800
mov rcx, rsi
call fcn.140011800
xor eax, eax
jmp 0x140007b28
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011800
xor eax, eax
jmp 0x140007b28
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.140008cd0
mov rcx, rbx
call fcn.140011800
test rbp, rbp
je 0x140007b23
xor r8d, r8d
lea rdx, [0x140029b84]
xor ecx, ecx
call fcn.140008bc0
test rsi, rsi
je 0x140007b0d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140008bc0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400142c4
mov rcx, rdi
call fcn.140011800
mov rcx, rbx
call fcn.140011800
mov rcx, rsi
jmp 0x140007b1e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011800
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000bdf0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007b50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140008bc0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140007be6
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140008cd0
test rax, rax
je 0x140007be6
cmp byte [rax], 0
je 0x140007be6
mov rcx, rax
call fcn.140016d00
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000bdf0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000bdf0
add rsp, 0x4038
ret

Function at 0x140008030
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140008bc0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140011800
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008070
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000bd90
sub rsp, rax
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140008bc0
mov ebx, 1
lea rcx, [0x1400073f0]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140011ae0
mov rcx, rax
call fcn.140016d78
mov ecx, eax
call fcn.140014b08
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.140011ae0
mov rcx, rax
call fcn.140016d78
mov ecx, eax
call fcn.140014b08
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.140011ae0
mov rcx, rax
call fcn.140016d78
mov ecx, eax
call fcn.140014b08
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400081f0
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140008208
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140029c90]
call fcn.1400029c0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000bdf0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400082a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140011814
mov r15, rax
test rax, rax
je 0x1400083b3
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.14000ecc8
test eax, eax
js 0x1400083b3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.1400154e0
mov rbx, rax
cmp rax, rsi
jb 0x1400083ae
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x1400083a4
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14000ecc8
test eax, eax
js 0x1400083a4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000e9f8
cmp rax, rbx
jne 0x1400083a4
sub rbx, rsi
add rbx, 1
je 0x14000838b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140026340
test eax, eax
je 0x14000839d
dec rdi
sub rbx, 1
jne 0x140008370
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140008310
jmp 0x1400083a4
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140011800
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x140008b60
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003ae20]
test rax, rax
jne 0x140008b86
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002c30
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x14000c828
Capabilities:
Parse pe header

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

Function at 0x1400142fc
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001431c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011bbc
or eax, 0xffffffff
jmp 0x14001431e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001464c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001438b
call fcn.140011c2c
mov dword [rax], 0x16
call fcn.1400170c4
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000bdf0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140014352
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400143f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400143cc
cmp eax, 3
jbe 0x1400143e9
cmp eax, 8
je 0x1400143d9
cmp eax, 0x12
je 0x1400143e9
call fcn.140011c2c
mov dword [rax], 0x16
jmp 0x140014362
call fcn.140011c2c
mov dword [rax], 0xc
jmp 0x140014362
call fcn.140011c2c
mov dword [rax], 2
jmp 0x140014362
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140014594
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140014594
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140014594
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001caf4
test eax, eax
jne 0x140014457
mov rax, rdi
jmp 0x140014366
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400170e4
int3
jmp 0x140014324
Function at 0x140014654
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x1400144c9
call fcn.140011c2c
mov dword [rax], 0x16
call fcn.1400170c4
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000bdf0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140014495
test rbx, rbx
je 0x140014495
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140014524
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400144fd
cmp eax, 3
jbe 0x140014517
cmp eax, 8
je 0x14001450a
cmp eax, 0x12
je 0x140014517
call fcn.140011c2c
mov dword [rax], 0x16
jmp 0x1400144a5
call fcn.140011c2c
mov dword [rax], 0xc
jmp 0x1400144a5
call fcn.140011c2c
mov dword [rax], 2
jmp 0x1400144a5
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140014594
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140014594
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140014594
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001caf4
test eax, eax
je 0x1400144a8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400170e4
int3
jmp 0x14001446c

Function at 0x140014b80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140014ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011bbc
or eax, 0xffffffff
jmp 0x140014ba2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001647c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400162a8
Function at 0x1400257b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400257d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400257d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x412530
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x41253d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x41254d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x412535
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x412565
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x412552
sub eax, 3
jb 0x41257f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x4125b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x4125a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4125a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x412593
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.004124f2
jmp 0x41253d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2600
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x412602
cmp rsi, rcx
jae 0x41260a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4125e9
cmp al, 0x8f
ja 0x4125e9
cmp byte [rsi - 2], 0xf
je 0x4125ef
sub al, 0xe8
cmp al, 1
ja 0x4125d3
cmp rsi, rcx
jae 0x41260a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4125d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x41260a
lodsb al, byte [rsi]
jmp 0x4125e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10000]
mov eax, dword [rdi]
or eax, eax
je 0x412667
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x12000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x412617
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x412661
mov qword [rbx], rax
add rbx, 8
jmp 0x412637
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.004126ea], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004126ea
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4126da
sub rsp, 0xffffffffffffff80
jmp 0x4010ec
Function at 0x180003b00
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword gs:[0x60]
mov rbp, rdx
mov r14, rcx
mov rsi, qword [rax + 0x18]
add rsi, 0x10
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x180003ba6
movzx ebx, word [rdi + 0x58]
xor eax, eax
shr rbx, 1
je 0x180003b95
mov r10, qword [rdi + 0x60]
nop dword [rax]
nop dword [rax + rax]
movzx edx, word [r10]
movsx r11d, byte [rax + rbp]
movzx r9d, r11w
lea ecx, [rdx - 0x61]
cmp cx, 0x19
lea r8d, [rdx - 0x20]
lea ecx, [r9 - 0x61]
cmova r8w, dx
cmp cx, 0x19
lea edx, [r9 - 0x20]
cmova dx, r11w
cmp r8w, dx
jne 0x180003b9e
test r11b, r11b
je 0x180003b9e
inc rax
add r10, 2
cmp rax, rbx
jb 0x180003b50
mov rax, qword [rdi + 0x30]
mov qword [r14], rax
jmp 0x180003bad
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x180003b35
mov qword [r14], 0
mov rbx, qword [rsp + 0x10]
mov rax, r14
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x1800073a0
Capabilities:
Parse pe header

Disassembly:
push rbx
push r13
sub rsp, 0x18
mov r11, qword [rcx]
xor r9d, r9d
mov r13, r8
mov rbx, rdx
test r11, r11
je 0x1800074d9
mov qword [rsp + 0x30], rbp
mov eax, 0x5a4d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
cmp word [r11], ax
jne 0x1800074ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
cmp dword [rax], 0x4550
cmovne rax, r9
test rax, rax
je 0x1800074ae
add rax, 0x18
mov ecx, 0x20b
cmp word [rax], cx
jne 0x1800074ae
test rax, rax
je 0x1800074ae
cmp dword [rax + 0x6c], r9d
jbe 0x1800074ae
lea r14, [rax + 0x70]
test r14, r14
je 0x1800074ae
mov r15d, dword [r14]
mov r10d, r9d
mov edi, dword [r11 + r15 + 0x18]
lea rsi, [r11 + r15]
test edi, edi
je 0x1800074ae
mov r12d, dword [rsi + 0x20]
nop dword [rax]
mov ebp, r10d
mov r8, r13
lea rax, [r12 + rbp*4]
mov eax, dword [rax + r11]
add rax, r11
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180007477
inc rax
test ecx, ecx
jne 0x180007464
test edx, edx
je 0x180007485
inc r10d
cmp r10d, edi
jb 0x180007450
jmp 0x1800074ae
mov ecx, dword [rsi + 0x24]
add rcx, r11
movzx edx, word [rcx + rbp*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r11
mov r8d, dword [rcx + rdx*4]
cmp r8d, r15d
jb 0x1800074aa
mov eax, r8d
sub eax, r15d
cmp eax, dword [r14 + 4]
jb 0x1800074ae
lea r9, [r11 + r8]
mov qword [rbx], r9
mov rax, rbx
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rbx
ret
mov qword [rdx], r9
mov rax, rbx
add rsp, 0x18
pop r13
pop rbx
ret

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

Disassembly:
mov r10, qword [rcx]
xor r8d, r8d
test r10, r10
je 0x180007a35
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x180007a12
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
cmovne rcx, r8
test rcx, rcx
je 0x180007a12
movzx eax, word [rcx + 0x14]
add rax, 0x18
add rax, rcx
movzx ecx, word [rcx + 6]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8]
cmp rax, r9
je 0x180007a12
nop dword [rax]
test dword [rax + 0x24], 0x40000000
je 0x180007a09
cmp dword [rax], 0x6164722e
jne 0x180007a09
cmp word [rax + 4], 0x6174
je 0x180007a29
add rax, 0x28
cmp rax, r9
jne 0x1800079f0
mov qword [rdx + 8], r8
mov rcx, r8
mov eax, 8
mov qword [rdx], rcx
mov qword [rax + rdx], r8
mov rax, rdx
ret
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
add rcx, r10
jmp 0x180007a19
mov qword [rdx], r8
mov rax, rdx
mov qword [rdx + 8], r8
ret