joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4caa9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cab1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cab11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cab11
mov rax, qword [rbp - 8]
jmp 0x2fc4cab2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4caae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400638c5
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400e9f10
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1400e8f60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400e9f47
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140176020]
jmp 0x1400e9f4d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x14006455e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400e4e90
mov rax, rcx
neg rcx
test rax, 7
je 0x1400e4ead
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400e4f08
test al, 7
jne 0x1400e4ea0
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 0x1400e4ec1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400e4f32
test dh, dh
je 0x1400e4f2c
shr rdx, 0x10
test dl, dl
je 0x1400e4f26
test dh, dh
je 0x1400e4f20
shr rdx, 0x10
test dl, dl
je 0x1400e4f1a
test dh, dh
je 0x1400e4f14
shr edx, 0x10
test dl, dl
je 0x1400e4f0e
test dh, dh
jne 0x1400e4ec1
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 0x14006487e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140084560
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140083ee0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008459f
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 [0x140176020]
jmp 0x1400845a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400649b9
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400fff00
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x1400fffe8
mov rsi, rax
cmp word [rax], r14w
je 0x1400fff53
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1400fff3b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1400fff37
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140065355
movsxd rbp, eax
test eax, eax
je 0x1400fffe8
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.14006477a
mov rdi, rax
test rax, rax
je 0x1400fffd6
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140065355
test eax, eax
je 0x1400fffd6
mov rsi, rdi
mov rdi, r14
jmp 0x1400fffd9
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.14006383e
jmp 0x1400fffeb
mov rsi, r14
test rbx, rbx
je 0x1400ffff9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400649c8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140084490
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140083e60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400844d1
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 [0x140176020]
jmp 0x1400844d7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140064a3b
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400ea1e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400e9160
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ea233
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140176020]
jmp 0x1400ea255
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400642ed
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x140064a45
Capabilities:
Terminate process

Disassembly:
jmp 0x14006afb0
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]
add rsp, 0x28
ret
Function at 0x140064c1b
Capabilities:
Print debug messages

Disassembly:
jmp 0x14011d0f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140165008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14011d116
jmp 0x14011d193
mov rcx, qword [rbp + 0x30]
call fcn.14006455e
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14011d12f
jmp 0x14011d193
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14011d14c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140063866
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.140063c17
test eax, eax
jne 0x14011d193
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140064707
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140064f63
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
jmp 0x140074a20
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140165008]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x140175015]
call fcn.140065ef9
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0x1000
mov qword [rbp + 0x48], 0xffffffffffffffff
lea rax, [rbp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rcx, [0x14013517c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], 0xffffffffffffffff
lea rax, [rbp + 8]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x28]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], 0x40
lea rcx, [0x14013517c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.TpAllocWork
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xa8], rax
lea rcx, [0x14013517c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.TpPostWork
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
lea rcx, [0x14013517c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.TpReleaseWork
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0x108], 0
xor r9d, r9d
lea r8, [rbp + 0x68]
lea rdx, [0x140063ef6]
lea rcx, [rbp + 0x108]
call qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0xe8]
mov edx, 0x1000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rbp + 8]
lea rcx, str.allocatedAddress:__p_n
call fcn.140064694
lea rax, [rbp + 0x128]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rcx, [0x14013517c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtCreateThreadEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x128], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0x130], rax
mov dword [rbp + 0x138], 0x1fffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x148], rax
mov r8d, 0x114
lea rdx, [0x140165d10]
mov rcx, qword [rbp + 8]
call fcn.14006470c
xor r9d, r9d
lea r8, [rbp + 0x128]
lea rdx, [0x1400663bd]
lea rcx, [rbp + 0x108]
call qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0xe8]
mov edx, 0x1000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rbp + 8]
lea rcx, str.allocatedAddress:___p__sessuss_n
call fcn.140064694
call fcn.1400655ad
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140153348]
call fcn.1400656cf
mov eax, edi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.140064707
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x140065053
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006c300
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14006c320
xor al, al
jmp 0x14006c3a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14006c333
xor al, al
jmp 0x14006c3a1
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 0x14006c35d
xor al, al
jmp 0x14006c3a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14006c371
xor al, al
jmp 0x14006c3a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14006c383
xor al, al
jmp 0x14006c3a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14006c39f
xor al, al
jmp 0x14006c3a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400654bd
Capabilities:
Terminate process

Disassembly:
jmp 0x1400e5670
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 0x1400e569e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140065ba2
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 0x14006556c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400e9fd0
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400e8fe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ea005
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140176020]
jmp 0x1400ea00f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x14006598b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400ea030
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400e9020
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ea06f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140176020]
jmp 0x1400ea07e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140065c01
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400f82d0
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 0x140065c92
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400845d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140083f20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140084619
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 [0x140176020]
jmp 0x140084628
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140065d23
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401200a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400641d5
lea rcx, [rsp + 0x40]
call fcn.1400641d5
call fcn.140064969
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140064009
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14012010f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.140064496
lea rcx, [rsp + 0x70]
call fcn.140064496
mov eax, dword [rsp + 0x24]
jmp 0x14012019c
call fcn.140064969
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140064009
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140120156
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.140064496
lea rcx, [rsp + 0x70]
call fcn.140064496
mov eax, dword [rsp + 0x2c]
jmp 0x14012019c
lea rcx, [rsp + 0x40]
call fcn.14006415d
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.14006415d
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140064496
lea rcx, [rsp + 0x70]
call fcn.140064496
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x14002934c
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.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
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.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
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 0x13f081e54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x13f083048]
test rax, rax
je 0x13f081e9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x13f081e9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x13f081e9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x13f081e9e
cmp dword [rcx + 0x84], 0xe
jbe 0x13f081e9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x13f081ea0
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

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

Function at 0x140002940
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002968
mov eax, 0
jmp 0x1400029b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002991
mov eax, 0
jmp 0x1400029b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400029b1
mov eax, 0
jmp 0x1400029b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a31
mov rax, qword [rbp - 8]
jmp 0x140002a4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017a8
Capabilities:
Parse pe header

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

Function at 0x1400081a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007f9c
Function at 0x14000d4e8
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 0x14000d518
xor eax, eax
jmp 0x14000d5db
mov rbp, rbx
cmp word [rax], si
je 0x14000d53d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d524
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d520
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.14000d408
movsxd r14, eax
test eax, eax
jne 0x14000d57b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d511
mov rcx, r14
call fcn.140009c9c
mov rdi, rax
test rax, rax
jne 0x14000d594
xor ecx, ecx
call fcn.140009024
jmp 0x14000d570
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.14000d408
test eax, eax
jne 0x14000d5c5
mov rcx, rdi
call fcn.140009024
jmp 0x14000d5cf
xor ecx, ecx
call fcn.140009024
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 0x1400118fc
Capabilities:
Get file size

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