joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401009b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140167080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140100a45
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140100aa6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400db2d0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401145f0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140100b61
sub ecx, 1
je 0x140100bd4
sub ecx, 1
je 0x140100b10
cmp ecx, 1
je 0x140100af3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140146768]
call fcn.1400db2d0
jmp 0x140100bd4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401006e0
test eax, eax
je 0x140100bd4
jmp 0x140100a7a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140100bd4
sub rax, rsi
cmp rax, rbp
jae 0x140100bd4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400db450
jmp 0x140100bd4
cmp r8d, 4
jle 0x140100bd4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140100bd4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400db1f0
mov esi, eax
test eax, eax
je 0x140100bb3
mov edx, 5
mov rcx, rbx
call fcn.1401016a0
mov eax, esi
jmp 0x140100a7a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400e9ad0
mov rcx, r14
call fcn.1400e9db0
test eax, eax
je 0x140100a78
mov edx, 5
mov rcx, rbx
call fcn.1401016a0
mov eax, Ordinal_46
jmp 0x140100a7a
Function at 0x140113970
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1401139b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401139f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140113a52
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140113a10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140113a93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401416b2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401416b3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140113a60
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140114b04
Capabilities:
Parse pe header

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

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

Function at 0x180620058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806201df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180620089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062006f
add dl, dl
jne 0x180620096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806200f6
xor eax, eax
add dl, dl
jne 0x1806200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806201ad
add dl, dl
jne 0x1806200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18062007e
mov eax, 1
add dl, dl
jne 0x180620106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180620113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806200fb
sub eax, ebx
mov ebx, 1
jne 0x18062014c
mov ecx, 1
add dl, dl
jne 0x18062012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180620123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180620168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180620175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062015d
cmp eax, 0x7d00
jae 0x18062019b
cmp eax, 0x500
jb 0x180620196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
cmp eax, 0x7f
ja 0x18062019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806201d2
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 0x18062007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140f53a28
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f53a32
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f53a5b
pop rbp
sub rbp, 0x33
sub rbp, 0xf53a28
sub rsp, 0x20
jmp 0x140f53a7a
mov rax, 0xf53a28
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffced31c54
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f53a99
jmp 0x140f53ab0
sbb al, 0xdd
mov ebp, 0x5468dddf
push rsp
push rsp
sbb al, 0xd5
xchg ebp, eax
pop rsp
push rbp
push rsp
push rsp
sbb al, 0x55
mov ebp, 0x5394931c
push rsp
push rsp
push rsp
sbb al, 0x93
xchg esi, eax
jl 0x140f53b23
push rsp
push rsp
sbb al, 0xa3
mov dh, 0x1c
push rbp
xchg ebp, eax
invalid
or al, 0xe
invalid

Function at 0x140001b28
Capabilities:
Parse pe header

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

Function at 0x1400111ef
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140012bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c10
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c23
xor al, al
jmp 0x140012c91
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 0x140012c4d
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c61
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012c73
xor al, al
jmp 0x140012c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012c8f
xor al, al
jmp 0x140012c91
mov al, 1
add rsp, 0x38
ret
Function at 0x1800014a8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800014e9
xor eax, eax
jmp 0x180001689
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x1800014ff
xor eax, eax
jmp 0x180001689
mov byte [rsp + 0x164], 0x31
mov byte [rsp + 0x165], 0x2e
mov byte [rsp + 0x166], 0x67
mov byte [rsp + 0x167], 0x69
mov byte [rsp + 0x168], 0x66
mov byte [rsp + 0x169], 0
lea rax, [rsp + 0x16a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea r8, [0x1800041fc]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea r8, [rsp + 0x164]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll_strcat_s]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0xffffffffffffffff
jne 0x1800015cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x16c], eax
xor eax, eax
jmp 0x180001689
xor edx, edx
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0xffffffff
jne 0x180001601
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180001689
mov eax, dword [rsp + 0x150]
mov edx, eax
mov rcx, qword [rsp + 0x180]
call fcn.1800018a0
xor edx, edx
mov rcx, qword [rsp + 0x180]
call fcn.1800019dc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x160]
mov r8d, dword [rsp + 0x150]
mov rdx, rax
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001664
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0x160], eax
je 0x180001676
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180001689
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x170
pop rdi
ret
Function at 0x140001c30
Capabilities:
Parse pe header

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

Function at 0x14000760c
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 0x14000767b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000767b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000767b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000767b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000767b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000767b
cmp dword [rcx + 0xf8], 0
je 0x14000767b
mov ecx, ebx
call fcn.140007720
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.140007514
nop
cmp dword [rbp + 0x20], 0
jne 0x1400076dc
call fcn.14000d5ec
cmp eax, 1
jne 0x1400076cc
xor dl, dl
jmp 0x1400076d6
call fcn.14000d5b8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400076e7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400076f0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000760c

Function at 0x1400077f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000760c
Function at 0x14000cfa8
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 0x14000cfd8
xor eax, eax
jmp 0x14000d09b
mov rbp, rbx
cmp word [rax], si
je 0x14000cffd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cfe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cfe0
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.14000cec8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14000d03e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cfd1
call fcn.140009310
mov rdi, rax
test rax, rax
jne 0x14000d054
xor ecx, ecx
call fcn.140008650
jmp 0x14000d033
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.14000cec8
test eax, eax
jne 0x14000d085
mov rcx, rdi
call fcn.140008650
jmp 0x14000d08f
xor ecx, ecx
call fcn.140008650
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 0x1400112cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400112e2
mov al, 1
jmp 0x14001134e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400112f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001134c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d8c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001134c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001134c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001134c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001134e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400122cc
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.14000bf80
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012356
cmp byte [rbp - 0x21], r15b
je 0x140012351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001238c
call fcn.1400088f0
test eax, eax
jne 0x140012378
cmp byte [rbp - 0x21], r15b
je 0x140012370
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001238c
cmp byte [rbp - 0x21], r15b
je 0x140012389
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.14000b514
test eax, eax
jne 0x14001242c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bf80
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400123cb
cmp byte [rbp - 0x21], r15b
je 0x140012400
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012400
call fcn.1400088f0
test eax, eax
jne 0x1400123ec
cmp byte [rbp - 0x21], r15b
je 0x1400123e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012400
cmp byte [rbp - 0x21], r15b
je 0x1400123fd
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.14000b514
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001242c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001242f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001243d
mov rcx, rdi
call fcn.140008650
cmp byte [rbp + 0x3f], r15b
je 0x14001244c
mov rcx, qword [rbp + 0x27]
call fcn.140008650
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 0x140014870
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014898
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014898
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
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 0x1400016d0
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x320
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, str.Enter_a_command:
mov rcx, rax
call sym.printf
mov ecx, 0
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rdx, rax
lea rax, [rbp + 0x1a0]
mov r8, rdx
mov edx, 0x100
mov rcx, rax
call sym.fgets
lea rax, [rbp + 0x1a0]
lea rdx, [0x140005062]
mov rcx, rax
call sym.strcspn
mov byte [rbp + rax + 0x1a0], 0
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str.powershell__Command___s__Out_File__FilePath_processes.txt__Encoding_UTF8_
mov rcx, rax
call sym.sprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
lea rax, str.pause
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x320
pop rbp
ret

Function at 0x140001ab0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop