joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010a6
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x1400010d3
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x14000110c
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001103
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret
Function at 0x140003dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14000f020]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140003dfe
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140003de0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140003fe5
mov ecx, 3
call fcn.140006e00
cmp eax, 1
je 0x140003f9c
mov ecx, 3
call fcn.140006e00
test eax, eax
jne 0x140003e35
cmp dword [section..data], 1
je 0x140003f9c
cmp edi, 0xfc
je 0x140003fe5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140010180]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140006d50
test eax, eax
je 0x140003e79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140005c60
lea rdx, [0x140010199]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001029d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140003ec9
lea r8, str._program_name_unknown_
lea rcx, [0x140010199]
mov edx, 0x2fb
call fcn.140006d50
test eax, eax
je 0x140003ec9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140005c60
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140010199]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140003f18
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140010494]
lea r9d, [rax + 3]
lea r8, [0x14000b944]
sub rdx, rcx
call fcn.140006c30
test eax, eax
je 0x140003f18
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140005c60
lea r8, [0x14000b940]
mov edx, 0x314
mov rcx, rbp
call fcn.140006b70
test eax, eax
je 0x140003f44
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140005c60
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140006b70
test eax, eax
je 0x140003f74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140005c60
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140006910
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140003fe5
cmp rax, 0xffffffffffffffff
je 0x140003fe5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
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 + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140004000
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140006e00
cmp eax, 1
je 0x140004032
mov ecx, 3
call fcn.140006e00
test eax, eax
jne 0x1400040e6
cmp dword [section..data], 1
jne 0x1400040e6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14000f020]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000405e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140004048
jmp 0x1400040d2
cmp edi, 0x17
jae 0x1400040d2
mov ecx, 3
call fcn.140006e00
cmp eax, 1
je 0x140004089
mov ecx, 3
call fcn.140006e00
test eax, eax
jne 0x1400040d2
cmp dword [section..data], 1
jne 0x1400040d2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400040d2
cmp rax, 0xffffffffffffffff
je 0x1400040d2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
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 ecx, 0xff
call fcn.140003dc0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140004ad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x1400106ac]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140004b2c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140004b0c
mov dword [0x1400106ac], 1
jmp 0x140004b3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140004b26
mov dword [0x1400106ac], 2
jmp 0x140004ba9
mov eax, dword [0x1400106ac]
cmp eax, 1
jne 0x140004ba0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140004b7a
cmp word [rdi], bp
mov rax, rdi
je 0x140004b59
add rax, 2
cmp word [rax], bp
jne 0x140004b47
add rax, 2
cmp word [rax], bp
jne 0x140004b47
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140006ee0
test rax, rax
mov rbx, rax
jne 0x140004b81
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140004c9b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140007080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140004c9b
cmp eax, 2
je 0x140004ba9
test eax, eax
jne 0x140004b7a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140004b7a
cmp byte [rax], bpl
mov rbx, rax
je 0x140004bf8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140004b7a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140004bc0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140006f50
test rax, rax
mov r12, rax
jne 0x140004c1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140004c9b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140004c85
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140004cae
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140004c30
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140005ab0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140004c96
Function at 0x140005ba7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f2a8]
jne 0x14000386a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003866
repz ret
ror rcx, 0x10
jmp 0x140005b00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010760]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140010858]
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 0x140005b85
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, [0x140010760]
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 0x140005ba7
mov rax, qword [rsp + 0x88]
mov qword [0x140010858], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400107f8], rax
mov rax, qword [0x140010858]
mov qword [0x1400106d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400107e0], rax
mov dword [0x1400106c0], 0xc0000409
mov dword [0x1400106c4], 1
mov rax, qword [0x14000f2a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f2b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140010758], eax
mov ecx, 1
call fcn.140008280
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b9b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140010758], 0
jne 0x140005c2e
mov ecx, 1
call fcn.140008280
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 0x140005d00
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140010c30]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140005370
test rax, rax
je 0x140005d54
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140005de9
mov ecx, 2
call fcn.140008280
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400082a0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140005dd5
test ebx, ebx
jne 0x140005dd5
lea ecx, [rax + 2]
call fcn.140008280
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006910
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140005280
xor ebx, ebx
cmp qword [0x140010ed0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140006a3c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140006b4f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006b4f
mov rcx, rax
call fcn.1400051b0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010ed0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400051b0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140010ed8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400051b0
lea rcx, [rsp + 0x98]
mov qword [0x140010ee0], rax
call fcn.140003a60
test eax, eax
je 0x1400069ef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140005c60
cmp dword [rsp + 0x98], 2
jne 0x140006a3c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400051b0
test rax, rax
mov qword [0x140010ef0], rax
je 0x140006a3c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400051b0
mov qword [0x140010ee8], rax
mov rcx, qword [0x140010ee8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140006ae8
cmp qword [0x140010ef0], rbp
je 0x140006ae8
call fcn.140005370
mov rcx, qword [0x140010ef0]
mov rsi, rax
call fcn.140005370
test rsi, rsi
mov r12, rax
je 0x140006ae8
test rax, rax
je 0x140006ae8
call rsi
test rax, rax
je 0x140006ab3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006ab3
test byte [rsp + 0x40], 1
jne 0x140006ae8
lea rcx, [rsp + 0x30]
call fcn.140003ab0
test eax, eax
je 0x140006ad5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140005c60
cmp dword [rsp + 0x30], 4
jb 0x140006ae2
bts edi, 0x15
jmp 0x140006b26
bts edi, 0x12
jmp 0x140006b26
mov rcx, qword [0x140010ed8]
cmp rcx, rbp
je 0x140006b26
call fcn.140005370
test rax, rax
je 0x140006b26
call rax
test rax, rax
mov rbx, rax
je 0x140006b26
mov rcx, qword [0x140010ee0]
cmp rcx, rbp
je 0x140006b26
call fcn.140005370
test rax, rax
je 0x140006b26
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010ed0]
call fcn.140005370
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140006b4f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140006b51
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009970
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14000f2a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400099b7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003850
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140009680
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003850
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
lea r8, [0x14001a4e0]
and qword [r11 - 0x28], 0
lea rdx, str.C:ms_ccrypoto_shellcodecrypoto_shellcodex64Releasemim_e.txt
lea rcx, [r11 - 0x28]
call fcn.140003e64
test eax, eax
jne 0x140001159
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001159
xor edx, edx
lea r8d, [rax + 2]
call fcn.140003b94
mov rcx, qword [rsp + 0x20]
call fcn.14000368c
mov rcx, qword [rsp + 0x20]
movsxd r14, eax
call fcn.140003d1c
mov rcx, r14
call fcn.1400041e4
mov r9, qword [rsp + 0x20]
mov r8, r14
mov edx, 1
mov rcx, rax
mov rbx, rax
call fcn.14000411c
mov rcx, qword [rsp + 0x20]
call fcn.14000388c
mov r9d, 4
mov r8d, 0x3000
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, r14
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140001ef0
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1e07e
call fcn.140003750
test r14d, r14d
jle 0x14000111b
mov rbx, rdi
mov rbp, r14
call fcn.140003724
cdq
idiv r14d
mov al, byte [rbx]
inc dl
xor al, dl
xor al, 0x7e
mov byte [rbx], al
inc rbx
sub rbp, 1
jne 0x1400010ff
call rdi
mov r8d, 0x8000
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001180
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
or ecx, 0xffffffff
call fcn.1400030f8
int3

Function at 0x140002ef4
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 0x140002f63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f63
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f63
cmp dword [rcx + 0xf8], 0
je 0x140002f63
mov ecx, ebx
call fcn.140003014
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.140002df0
nop
cmp dword [rbp + 0x20], 0
je 0x140002fb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140002fbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140002ef4
Function at 0x1400030f8
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 0x140002f63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f63
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f63
cmp dword [rcx + 0xf8], 0
je 0x140002f63
mov ecx, ebx
call fcn.140003014
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.140002df0
nop
cmp dword [rbp + 0x20], 0
je 0x140002fb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140002fbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140002ef4

Function at 0x140003440
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.140010780
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140005c40
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000348f
mov rax, rbp
jmp 0x140003597
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 + 0x1e640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400061e8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1e640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140003593
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 0x140003593
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400061e8
test rax, rax
js 0x140003593
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140003593
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140003585
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140003585
cmp byte [rcx], 0xd
jne 0x14000356b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000357a
cmp byte [rcx + 1], 0xa
jne 0x14000357a
inc rcx
jmp 0x14000357a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1d2c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000354d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140003597
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140001180
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 0x14000696c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14001e640]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400069c3
cmp word [rdx], r13w
jne 0x1400069c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400069c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140006aed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140006b0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140006a01
mov rdx, r9
mov word [rbx], cx
jmp 0x140006a28
cmp r9, r8
jae 0x140006a38
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400069e2
jmp 0x140006aed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006ae2
cmp dword [rsp + 0x80], esi
je 0x140006ae2
lea r8, [0x14001e640]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140006aba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140006a8a
mov word [rbx], r13w
jmp 0x140006aea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140006a97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140006aea
cmp word [rsp + 0x70], r13w
jne 0x140006ac7
cmp rbx, r14
je 0x140006a84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400061f0
cmp word [rsp + 0x70], r13w
je 0x140006aed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14001e640]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140006ae7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140006aed
Function at 0x140009d68
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 0x140009d98
xor eax, eax
jmp 0x140009e5b
mov rbp, rbx
cmp word [rax], si
je 0x140009dbd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009da4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009da0
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.140009c88
movsxd r14, eax
test eax, eax
jne 0x140009dfb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009d91
mov rcx, r14
call fcn.140005528
mov rdi, rax
test rax, rax
jne 0x140009e14
xor ecx, ecx
call fcn.1400054ec
jmp 0x140009df0
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.140009c88
test eax, eax
jne 0x140009e45
mov rcx, rdi
call fcn.1400054ec
jmp 0x140009e4f
xor ecx, ecx
call fcn.1400054ec
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