joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800011e0
Capabilities:
Enumerate process modules

Disassembly:
push rsi
push r12
mov eax, 0x2298
call fcn.1800032e0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov esi, ecx
mov r8d, ecx
mov ecx, 0x410
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
jne 0x180001227
lea eax, [r12 + 1]
jmp 0x180001426
lea r9, [rsp + 0x40]
mov r8d, 0x2000
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x18000141b
mov qword [rsp + 0x2280], r15
xor r15d, r15d
test dword [rsp + 0x40], 0xfffffff8
jbe 0x180001413
mov qword [rsp + 0x22b8], rbx
lea rbx, str.x64dbg.dll
mov qword [rsp + 0x22c0], rbp
mov qword [rsp + 0x22c8], rdi
lea rdi, str.ScyllaHideX64DBGPlugin.dp64
mov qword [rsp + 0x2290], r13
lea r13, str.tcc64_64.dll
mov qword [rsp + 0x2288], r14
nop
mov rdx, qword [rsp + r15*8 + 0x50]
lea r8, [rsp + 0x2050]
mov r9d, 0x104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x1800013d8
lea rcx, [rsp + 0x2050]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test rax, rax
je 0x1800012fb
lea rcx, [rsp + 0x2050]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, 0x104
lea rcx, [rsp + 0x2160]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ecx, 0x20
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], rdi
call fcn.180002340
mov r8d, 0x20
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memmove
lea rbp, [r14 + 0x20]
mov rdi, r14
cmp r14, rbp
je 0x1800013bf
nop
mov rdx, qword [rdi]
lea rcx, [rsp + 0x2160]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
je 0x1800013af
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rbx, rax
test rax, rax
je 0x18000139a
nop word [rax + rax]
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x44], esi
je 0x18000139c
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
jne 0x180001370
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageA]
add rdi, 8
cmp rdi, rbp
jne 0x180001340
lea rbx, str.x64dbg.dll
test r14, r14
je 0x1800013d1
mov edx, 0x20
mov rcx, r14
call fcn.18000244c
lea rdi, str.ScyllaHideX64DBGPlugin.dp64
mov eax, dword [rsp + 0x40]
inc r15d
shr eax, 3
cmp r15d, eax
jb 0x1800012a0
mov r14, qword [rsp + 0x2288]
mov r13, qword [rsp + 0x2290]
mov rdi, qword [rsp + 0x22c8]
mov rbp, qword [rsp + 0x22c0]
mov rbx, qword [rsp + 0x22b8]
mov r15, qword [rsp + 0x2280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.180002320
add rsp, 0x2298
pop r12
pop rsi
ret
Function at 0x180001e70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp edx, 1
jne 0x180001ef0
lea ecx, [rdx + 7]
call fcn.180002340
lea rcx, [0x180001d40]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800022e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180001f13
cmp dword [rsp + 0x38], 0
je 0x180001f07
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180001f07
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002320
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400012d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, ecx
movzx r8d, cl
mov edx, ecx
shr eax, 8
mov r9d, ecx
mov r10d, ecx
mov rcx, qword [0x140006790]
movabs rsi, 0x100000001b3
movzx eax, al
movabs rbp, 0xcbf29ce484222325
xor r8, rbp
shr edx, 0x10
imul r8, rsi
shr r9d, 0x18
xor edi, edi
xor r8, rax
mov dword [rsp + 0x30], r10d
imul r8, rsi
movzx eax, dl
mov rdx, qword [0x140006768]
xor r8, rax
imul r8, rsi
xor r8, r9
imul r8, rsi
and rcx, r8
shl rcx, 4
add rcx, qword [0x140006778]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x140001382
mov rcx, qword [rcx]
cmp r10d, dword [rax + 0x10]
je 0x140001385
cmp rax, rcx
je 0x140001382
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x140001371
jmp 0x140001385
mov rax, rdi
test rax, rax
mov rcx, rdx
cmovne rcx, rax
cmp rcx, rdx
je 0x140001498
lea r8, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x20]
call fcn.140001e30
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
mov rcx, rbx
call qword [0x140006758]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x31]
mov r8d, dword [rsp + 0x30]
mov r9, qword [0x140006768]
mov rbx, qword [rsp + 0x58]
movzx edx, r8b
xor rdx, rbp
imul rdx, rsi
xor rdx, rax
movzx eax, byte [rsp + 0x32]
imul rdx, rsi
xor rdx, rax
movzx eax, byte [rsp + 0x33]
imul rdx, rsi
xor rdx, rax
imul rdx, rsi
and rdx, qword [0x140006790]
shl rdx, 4
add rdx, qword [0x140006778]
mov r10, qword [rdx + 8]
mov rax, r10
cmp r10, r9
je 0x140001442
mov rcx, qword [rdx]
cmp r8d, dword [r10 + 0x10]
je 0x14000143f
nop dword [rax]
cmp rax, rcx
je 0x140001442
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x140001430
mov rdi, rax
test rdi, rdi
je 0x140001498
mov rax, qword [rdx]
cmp r10, rdi
jne 0x140001467
cmp rax, rdi
jne 0x14000145d
mov qword [rdx], r9
mov qword [rdx + 8], r9
jmp 0x140001472
mov r9, qword [rdi + 8]
mov qword [rdx + 8], r9
jmp 0x140001472
cmp rax, rdi
jne 0x140001472
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
mov rcx, rdi
dec qword [0x140006770]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
mov edx, 0x20
call fcn.14000256c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400022d0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140002110
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140002141
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140006768]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x140006778]
lea rdx, [rdi + rdi]
call fcn.140001ad0
mov rax, qword [0x140006768]
lea r9, [rdi - 1]
mov qword [0x140006790], r9
mov qword [0x140006798], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400022b4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x140006778]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140002200
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140002275
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000223d
mov r10, qword [rdx]
cmp r10, rax
je 0x140002237
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140002275
cmp r9, rdx
je 0x140002251
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140002289
cmp r9, rdx
jne 0x140002242
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1400022af
mov r9, qword [0x140006790]
jmp 0x1400021b1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140002275
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002e0c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001537a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015371
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015371
mov rax, qword [rbp - 8]
jmp 0x14001538f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015344
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x140001a2c
Capabilities:
Parse pe header

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

Function at 0x140003d94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003bc0

Function at 0x14000ccc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000cce8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000cce8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14058eae0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140593120
sub rsp, rax
mov rax, qword [0x1405e9380]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14058eba2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14058eb4d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14058eb40
cmp rcx, 1
jb 0x14058ebfa
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14058eb70
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a2974
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14058eb30
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14058ebd3
lea rcx, [rsp + 0x80]
call fcn.1405a58bc
jmp 0x14058ebd5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1405930f0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140597740
int3
Function at 0x140592c70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1405e9380]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140592d15
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140592ccd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140592cc0
cmp rcx, 1
jb 0x140592d46
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140592ce3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a2974
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140592cb0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1405930f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140597740
int3

Function at 0x140592f80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1405e9380]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140593025
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140592fdd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140592fd0
cmp rcx, 1
jb 0x140593057
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140592ff3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a2974
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140592fc0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1405930f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140597740
int3

Function at 0x140593b20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140593b6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140593b6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140593b6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140593b6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140593b6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140593b6c
xor al, al
add rsp, 0x28
ret
Function at 0x140598fb8
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 0x140598e23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140598e23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140598e23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140598e23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140598e23
cmp dword [rcx + 0x84], 0xe
jbe 0x140598e23
cmp dword [rcx + 0xf8], 0
je 0x140598e23
mov ecx, ebx
call fcn.140598ed4
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.140598cb0
nop
cmp dword [rbp + 0x20], 0
je 0x140598e71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140598e7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140598db4
Function at 0x1405aab30
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 0x1405aabb7
mov rsi, rbx
cmp word [rax], bp
je 0x1405aab76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1405aab60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1405aab5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1405a60a8
mov rdi, rax
test rax, rax
je 0x1405aaba4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1405b0eb0
mov rbp, rdi
xor ecx, ecx
call fcn.1405a6bf0
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
Function at 0x1405ae72c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1405ae742
mov al, 1
jmp 0x1405ae7a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1405ae753
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1405ae7a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1405ab2d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1405ae7a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1405ae7a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1405ae7a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1405ae7a2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1405b0c90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1405b0cb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1405b0cb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10014c000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1402b7c00]
mov dword [rax], 1
mov rax, qword [0x1402b7c10]
mov dword [rax], 1
mov rax, qword [0x1402b7c20]
mov dword [rax], 1
mov rax, qword [0x1402b7ba0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret