joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4868
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400f3091
mov r10, rcx
mov eax, 0x3f
syscall
ret
Function at 0x1400cad61
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400f307b
mov r10, rcx
mov eax, 0x2a
syscall
ret

Function at 0x1400caef6
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14013ec20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14013ec48
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14013ec92
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14013ec3d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400cc4cc
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400f30a7
mov r10, rcx
mov eax, 0xc9
syscall
ret

Function at 0x1400cc67f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401953d0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401953ed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140195448
test al, 7
jne 0x1401953e0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140195401
mov rdx, qword [rax - 8]
test dl, dl
je 0x140195472
test dh, dh
je 0x14019546c
shr rdx, 0x10
test dl, dl
je 0x140195466
test dh, dh
je 0x140195460
shr rdx, 0x10
test dl, dl
je 0x14019545a
test dh, dh
je 0x140195454
shr edx, 0x10
test dl, dl
je 0x14019544e
test dh, dh
jne 0x140195401
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cc6bb
Capabilities:
Query environment variable

Disassembly:
jmp 0x140244900
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140244480
lea rcx, [rsp + 0x20]
call fcn.1402444d0
movzx eax, al
test eax, eax
jne 0x140244945
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402444b0
mov rax, qword [rsp + 0x40]
jmp 0x140244a3f
lea rcx, [rsp + 0x20]
call fcn.1402445d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140244570
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, [0x1402a2300]
mov edx, 2
mov rcx, rax
call fcn.1400cca5d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400cbfd6
lea rcx, [rsp + 0x28]
call fcn.1400ccf7b
movzx eax, al
test eax, eax
jne 0x1402449df
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400ce501
lea rcx, [rsp + 0x20]
call fcn.1402444b0
mov rax, qword [rsp + 0x50]
jmp 0x140244a3f
lea rcx, [rsp + 0x20]
call fcn.1402445d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400cf58c
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.1400cc99a
lea rcx, [rsp + 0x28]
call fcn.1400cff4b
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400ce501
lea rcx, [rsp + 0x20]
call fcn.1402444b0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400cc8be
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400e2260
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rcx, [0x1405692ac]
call fcn.1400cf686
nop
mov qword [rbp + 8], 0
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x140]
movzx eax, byte [rax + 0x14]
test eax, eax
jne 0x1400e22cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbp + 0x140]
mov qword [rcx], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x150]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x140]
movzx eax, byte [rax + 0x14]
test eax, eax
jne 0x1400e2325
cmp qword [rbp + 8], 0
je 0x1400e2325
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400ce060
nop
mov rax, qword [rbp + 0x140]
mov rcx, qword [rbp + 8]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400ccaa3
Capabilities:
Resume thread

Disassembly:
jmp 0x1400e8830
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140569485]
call fcn.1400cf686
nop
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400ccc15
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401928b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140192230
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401928ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14056a020]
jmp 0x1401928f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400cce9f
Capabilities:
Query environment variable

Disassembly:
jmp 0x140244650
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140244480
lea rcx, [rsp + 0x40]
call fcn.140244600
movzx eax, al
test eax, eax
jne 0x140244698
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402444b0
mov rax, qword [rsp + 0x70]
jmp 0x140244869
lea rcx, [rsp + 0x40]
call fcn.1402445d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140244570
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.1402445d0
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.1400ce105
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14024473e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402444b0
mov rax, qword [rsp + 0x80]
jmp 0x140244869
mov r9d, 0x66
lea r8, [0x1402a2300]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400cca5d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400cc81e
lea rcx, [rsp + 0x48]
call fcn.1400cc21f
movzx eax, al
test eax, eax
jne 0x1402447a5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400cad6b
lea rcx, [rsp + 0x40]
call fcn.1402444b0
mov rax, qword [rsp + 0x88]
jmp 0x140244869
lea rcx, [rsp + 0x48]
call fcn.1400cd3d6
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402445d0
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.1400ce105
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14024483b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400cad6b
lea rcx, [rsp + 0x40]
call fcn.1402444b0
mov rax, qword [rsp + 0xa0]
jmp 0x140244869
lea rcx, [rsp + 0x48]
call fcn.1400cc7d8
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400cad6b
lea rcx, [rsp + 0x40]
call fcn.1402444b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400cceb8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401927e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401921b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140192821
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14056a020]
jmp 0x140192827
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400ccf85
Capabilities:
Get geographical location

Disassembly:
jmp 0x14022bb40
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14022aa70
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14022bba7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14056a030]
jmp 0x14022bbc9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400cc18e
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400ccf99
Capabilities:
Terminate process

Disassembly:
jmp 0x14016ffa0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400cd372
Capabilities:
Print debug messages

Disassembly:
jmp 0x140251f30
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14054ca00]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140251f56
jmp 0x140251fd3
mov rcx, qword [rbp + 0x30]
call fcn.1400cc67f
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140251f6f
jmp 0x140251fd3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140251f8c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400cafaa
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
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.1400cb5d6
test eax, eax
jne 0x140251fd3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400cc977
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400cd7b9
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402467b0
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 0x1400cdb0b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140171b70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140171b90
xor al, al
jmp 0x140171c11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140171ba3
xor al, al
jmp 0x140171c11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140171bcd
xor al, al
jmp 0x140171c11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140171be1
xor al, al
jmp 0x140171c11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140171bf3
xor al, al
jmp 0x140171c11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140171c0f
xor al, al
jmp 0x140171c11
mov al, 1
add rsp, 0x38
ret
Function at 0x1400ce3da
Capabilities:
Terminate process

Disassembly:
jmp 0x1401938a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401938ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400cf041
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cf0d7
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402213d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400cf244
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140192920
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140192270
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140192969
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14056a020]
jmp 0x140192978
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400cf442
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400f3086
mov r10, rcx
mov eax, 0x19
syscall
ret
Function at 0x140232c70
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.1400cafaa
sub rsp, rax
mov rax, qword [0x14054ca00]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140551600]
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 + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140232e62
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140232db6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140232db6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140232d9b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140232d38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140232e22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140232e81
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140232e5d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140232e81
jmp 0x140232d0e
lea rax, [rsp + 0x68]
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.1400cc977
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140232f30
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.1400cafaa
sub rsp, rax
mov rax, qword [0x14054ca00]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140551600]
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 0x14023313d
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 0x140233089
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140233089
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 0x140233069
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 0x140232ff8
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 + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402330fd
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 0x14023315c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140233138
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 0x14023315c
jmp 0x140232fce
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.1400cc977
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140002474
Capabilities:
Parse pe header

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

Function at 0x140007d9c
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 0x140007e0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007e0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007e0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007e0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007e0b
cmp dword [rcx + 0x84], 0xe
jbe 0x140007e0b
cmp dword [rcx + 0xf8], 0
je 0x140007e0b
mov ecx, ebx
call fcn.140007ebc
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.140007c98
nop
cmp dword [rbp + 0x20], 0
je 0x140007e59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007e64
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007d9c

Function at 0x140007fa0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007d9c
Function at 0x14000d2e8
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 0x14000d318
xor eax, eax
jmp 0x14000d3db
mov rbp, rbx
cmp word [rax], si
je 0x14000d33d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d324
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d320
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.14000d208
movsxd r14, eax
test eax, eax
jne 0x14000d37b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d311
mov rcx, r14
call fcn.140009a9c
mov rdi, rax
test rax, rax
jne 0x14000d394
xor ecx, ecx
call fcn.140008e24
jmp 0x14000d370
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.14000d208
test eax, eax
jne 0x14000d3c5
mov rcx, rdi
call fcn.140008e24
jmp 0x14000d3cf
xor ecx, ecx
call fcn.140008e24
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 0x1400116fc
Capabilities:
Get file size

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