joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c57e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400e86b0
sub rsp, rax
mov rax, qword [0x14012c0c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400c59f5
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400c5939
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400c5939
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400c5919
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400c58a8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400c59b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400c5a14
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x1400c59f0
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400c5a14
jmp 0x1400c587e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140070800
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400c76d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140095d20
movzx eax, al
test eax, eax
je 0x1400c76f7
mov al, 1
jmp 0x1400c77ec
lea rcx, [rsp + 0x60]
call fcn.140095d60
movzx eax, al
test eax, eax
je 0x1400c7736
lea rcx, [rsp + 0x60]
call fcn.14006ee40
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14006ee40
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x1400c7736
xor al, al
jmp 0x1400c77ec
lea rcx, [rsp + 0x60]
call fcn.140097390
mov ecx, eax
call fcn.1400d7e70
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400c775b
xor al, al
jmp 0x1400c77ec
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400c77a0
xor al, al
jmp 0x1400c77ec
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400c77c9
xor al, al
jmp 0x1400c77ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1400c77df
mov dword [rsp + 0x20], 1
jmp 0x1400c77e7
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1400d4a50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14006ff90
lea rcx, [rsp + 0x40]
call fcn.1400d4a10
movzx eax, al
test eax, eax
jne 0x1400d4a98
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400d4920
mov rax, qword [rsp + 0x70]
jmp 0x1400d4c69
lea rcx, [rsp + 0x40]
call fcn.14006ee40
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400d49c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14006ee40
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400cb430
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400d4b3e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400d4920
mov rax, qword [rsp + 0x80]
jmp 0x1400d4c69
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140091280
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14006ff90
lea rcx, [rsp + 0x48]
call fcn.1400707a0
movzx eax, al
test eax, eax
jne 0x1400d4ba5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140070780
lea rcx, [rsp + 0x40]
call fcn.1400d4920
mov rax, qword [rsp + 0x88]
jmp 0x1400d4c69
lea rcx, [rsp + 0x48]
call fcn.14006ee40
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14006ee40
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400cb430
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400d4c3b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140070780
lea rcx, [rsp + 0x40]
call fcn.1400d4920
mov rax, qword [rsp + 0xa0]
jmp 0x1400d4c69
lea rcx, [rsp + 0x48]
call fcn.140073f80
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140070780
lea rcx, [rsp + 0x40]
call fcn.1400d4920
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400d4c80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14006ff90
lea rcx, [rsp + 0x20]
call fcn.1400d4940
movzx eax, al
test eax, eax
jne 0x1400d4cc5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400d4920
mov rax, qword [rsp + 0x40]
jmp 0x1400d4dbf
lea rcx, [rsp + 0x20]
call fcn.14006ee40
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400d49c0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140091280
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14006ff90
lea rcx, [rsp + 0x28]
call fcn.1400707a0
movzx eax, al
test eax, eax
jne 0x1400d4d5f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14007d490
lea rcx, [rsp + 0x20]
call fcn.1400d4920
mov rax, qword [rsp + 0x50]
jmp 0x1400d4dbf
lea rcx, [rsp + 0x20]
call fcn.14006ee40
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14006ee40
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400f0250
lea rcx, [rsp + 0x28]
call fcn.140073f80
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14007d490
lea rcx, [rsp + 0x20]
call fcn.1400d4920
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400d64f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400dca20
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1400dca5f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1400dca5f
lea rdx, [0x14010ca48]
mov rcx, qword [rsp + 0x40]
call fcn.1400da440
test eax, eax
jne 0x1400dca96
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400dca85
xor eax, eax
jmp 0x1400dcae5
cmp dword [rsp + 0x20], 0
jne 0x1400dca94
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x1400dcae5
jmp 0x1400dcae1
lea rdx, [0x14010ca60]
mov rcx, qword [rsp + 0x40]
call fcn.1400da440
test eax, eax
jne 0x1400dcad3
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400dcad1
xor eax, eax
jmp 0x1400dcae5
jmp 0x1400dcae1
mov rcx, qword [rsp + 0x40]
call fcn.1400b7a30
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400dcb50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.1400bac50
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400dcbb3
xor eax, eax
jmp 0x1400dcbf3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x1400dcbee
cmp dword [rsp + 0x58], 0
je 0x1400dcbee
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.1400dc320
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1400ac020
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x1400dcbee
xor eax, eax
jmp 0x1400dcbf3
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400de3b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14012c0c0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400de3d9
jmp 0x1400de45e
mov rcx, qword [rbp + 0x30]
call fcn.1400f10a0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400de3f2
jmp 0x1400de45e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400de40f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400e86b0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400cfd00
test eax, eax
jne 0x1400de45e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140070800
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400e4750
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400a52e0
lea rcx, [rsp + 0xb8]
call fcn.1400a52e0
lea rcx, [rsp + 0x88]
call fcn.1400a52e0
call fcn.1400b9770
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400a51d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400e47f2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400a5370
lea rcx, [rsp + 0xb8]
call fcn.1400a5370
lea rcx, [rsp + 0xe8]
call fcn.1400a5370
mov eax, dword [rsp + 0x54]
jmp 0x1400e4998
call fcn.1400b9770
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400a51d0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400e4852
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400a5370
lea rcx, [rsp + 0xb8]
call fcn.1400a5370
lea rcx, [rsp + 0xe8]
call fcn.1400a5370
mov eax, dword [rsp + 0x5c]
jmp 0x1400e4998
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1400e48d8
call fcn.1400b9770
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400a51d0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400e48c6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400a5370
lea rcx, [rsp + 0xb8]
call fcn.1400a5370
lea rcx, [rsp + 0xe8]
call fcn.1400a5370
mov eax, dword [rsp + 0x64]
jmp 0x1400e4998
lea rcx, [rsp + 0x88]
call fcn.1400a0b40
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400a0b40
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400a0b40
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400a5370
lea rcx, [rsp + 0xb8]
call fcn.1400a5370
lea rcx, [rsp + 0xe8]
call fcn.1400a5370
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x1400e6400
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400a52e0
lea rcx, [rsp + 0x48]
call fcn.1400a52e0
call fcn.1400b9770
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400a51d0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400e646f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5370
lea rcx, [rsp + 0x78]
call fcn.1400a5370
mov eax, dword [rsp + 0x24]
jmp 0x1400e6500
call fcn.1400b9770
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400a51d0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400e64b6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5370
lea rcx, [rsp + 0x78]
call fcn.1400a5370
mov eax, dword [rsp + 0x2c]
jmp 0x1400e6500
lea rcx, [rsp + 0x48]
call fcn.1400a0b40
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400a0b40
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400a5370
lea rcx, [rsp + 0x78]
call fcn.1400a5370
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400607a0
Capabilities:
Parse pe header

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

Function at 0x1400650b0
Capabilities:
Parse pe header

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

Function at 0x1400a1e80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002d00
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140002d50
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400a4910
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002d00
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140002d50
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14002943c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400018e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000192e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000192e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000192e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000192e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000192e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001930
xor al, al
add rsp, 0x28
ret
Function at 0x1800066c0
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub rsp, 0x38
lea r8, str.GlobalMyM2utex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800066e4
jmp 0x180006703
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800066f3
jmp 0x180006703
xor edx, edx
lea rcx, str.calc.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
nop
add rsp, 0x38
ret

Function at 0x18000dbac
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 0x18000dc1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000dc1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000dc1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000dc1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000dc1b
cmp dword [rcx + 0x84], 0xe
jbe 0x18000dc1b
cmp dword [rcx + 0xf8], 0
je 0x18000dc1b
mov ecx, ebx
call fcn.18000dccc
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.18000daa8
nop
cmp dword [rbp + 0x20], 0
je 0x18000dc69
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000dc74
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000dbac
Function at 0x180013408
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 0x180013438
xor eax, eax
jmp 0x1800134fb
mov rbp, rbx
cmp word [rax], si
je 0x18001345d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180013444
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180013440
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.180013328
movsxd r14, eax
test eax, eax
jne 0x18001349b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180013431
mov rcx, r14
call fcn.18000f988
mov rdi, rax
test rax, rax
jne 0x1800134b4
xor ecx, ecx
call fcn.18000edfc
jmp 0x180013490
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.180013328
test eax, eax
jne 0x1800134e5
mov rcx, rdi
call fcn.18000edfc
jmp 0x1800134ef
xor ecx, ecx
call fcn.18000edfc
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