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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff6ff13a080]
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 0x7ff6ff107d05
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy_1
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 0x7ff6ff107d66
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.7ff6ff0df120
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.7ff6ff11b770
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 0x7ff6ff107e21
sub ecx, 1
je 0x7ff6ff107e94
sub ecx, 1
je 0x7ff6ff107dd0
cmp ecx, 1
je 0x7ff6ff107db3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x7ff6ff127af0]
call fcn.7ff6ff0df120
jmp 0x7ff6ff107e94
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.7ff6ff1079a0
test eax, eax
je 0x7ff6ff107e94
jmp 0x7ff6ff107d3a
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 0x7ff6ff107e94
sub rax, rsi
cmp rax, rbp
jae 0x7ff6ff107e94
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.7ff6ff0df2a0
jmp 0x7ff6ff107e94
cmp r8d, 4
jle 0x7ff6ff107e94
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 0x7ff6ff107e94
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.7ff6ff0df040
mov esi, eax
test eax, eax
je 0x7ff6ff107e73
mov edx, 5
mov rcx, rbx
call fcn.7ff6ff108960
mov eax, esi
jmp 0x7ff6ff107d3a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.7ff6ff0ef7f0
mov rcx, r14
call fcn.7ff6ff0efad0
test eax, eax
je 0x7ff6ff107d38
mov edx, 5
mov rcx, rbx
call fcn.7ff6ff108960
mov eax, 0x2a
jmp 0x7ff6ff107d3a
Function at 0x7ff6ff10e1c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x7ff6ff10e378
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x7ff6ff10e238
cmp eax, 0x40
jae 0x7ff6ff10e222
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x7ff6ff10e210
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.7ff6ff10e4a0
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x7ff6ff10e240
lea rsi, [rbx + 0x2c]
jae 0x7ff6ff10e252
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x7ff6ff10e240
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.7ff6ff10e4a0
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff6ff10e390
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x7ff6ff11b620
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x7ff6ff11b662
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 0x7ff6ff11b6a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
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 0x7ff6ff11b702
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 + 8]
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 + 8]
sub rbp, 1
jne 0x7ff6ff11b6c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x7ff6ff11b743
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff6ff12d40a]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x7ff6ff12d40b]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff6ff11b710
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 0x7ff6ff11c5b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff6ff11c5fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6ff11c5fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6ff11c5fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6ff11c5fe
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6ff11c5fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff6ff11c600
xor al, al
add rsp, 0x28
ret
Function at 0x180001410
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call fcn.18000cd20
mov r9, rax
cmp qword [rax + 0x60], 0
je 0x180001540
xor esi, esi
lea rbp, str.win32u.dll
mov rdi, qword [r9 + 0x30]
xor r10b, r10b
mov r11, qword [r9 + 0x60]
mov r9, qword [r9]
test rdi, rdi
je 0x180001536
movzx ebx, word [r9 + 0x58]
mov ecx, esi
test ebx, ebx
je 0x180001536
mov rax, rbp
sub r11, rbp
nop dword [rax]
movzx edx, word [r11 + rax]
test dx, dx
je 0x18000152d
movzx r8d, word [rax]
test r8w, r8w
je 0x18000152d
cmp dx, r8w
jne 0x180001536
inc ecx
add rax, 2
mov r10b, 1
cmp ecx, ebx
jl 0x180001470
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x180001540
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x180001540
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x180001540
mov r11d, dword [rdi + rcx + 0x1c]
lea rax, [rdi + rcx]
mov r9d, dword [rax + 0x20]
add r11, rdi
mov ebx, dword [rax + 0x24]
add r9, rdi
mov r10d, dword [rax + 0x18]
add rbx, rdi
test r10d, r10d
je 0x180001540
nop
mov eax, dword [r9]
xor dl, dl
add rax, rdi
cmp byte [rax], dl
je 0x18000155b
lea r8, str.NtUserGetAsyncKeyState
sub r8, rax
movzx ecx, byte [rax + r8]
test cl, cl
je 0x180001557
cmp byte [rax], cl
jne 0x18000155b
inc rax
mov dl, 1
cmp byte [rax], 0
jne 0x180001506
movsxd rax, esi
movzx ecx, word [rbx + rax*2]
mov eax, dword [r11 + rcx*4]
add rax, rdi
jmp 0x180001542
test r10b, r10b
jne 0x1800014a3
cmp qword [r9 + 0x60], rsi
jne 0x180001440
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test dl, dl
jne 0x18000151d
inc esi
add r9, 4
cmp esi, r10d
jb 0x1800014f0
jmp 0x180001540
Function at 0x180001990
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov eax, 0x5a4d
mov rdi, rcx
mov esi, r14d
cmp word [rcx], ax
je 0x1800019c9
mov ebx, r14d
jmp 0x1800019da
movsxd rbx, dword [rcx + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
cmovne rbx, r14
mov ebp, dword [rbx + 0x50]
lea rcx, [rsp + 0x28]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
call fcn.180001870
mov r10, qword [rsp + 0x30]
mov r9d, r14d
mov r11, qword [rsp + 0x28]
sub r10, r11
sar r10, 2
sub rbp, r10
je 0x180001a4f
mov rbx, r14
mov eax, r14d
test r10, r10
je 0x180001a40
mov rcx, r14
nop dword [rax]
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x180001a37
cmp r8d, 0xffffffff
jne 0x180001a44
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x180001a20
lea rsi, [rbx + rdi]
inc r9d
mov ebx, r9d
cmp rbx, rbp
jb 0x180001a12
inc dword [0x1800389fc]
test r11, r11
je 0x180001a8f
mov rdx, qword [rsp + 0x38]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180001a87
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001ab5
mov rcx, r11
call fcn.18000d660
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000cf10
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.180016010
int3
Function at 0x180002b90
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov rsi, rdx
mov rdx, qword [0x18003c6e8]
mov rbp, r8
mov rdi, rcx
mov r14, qword [rax + 0x208]
test rdx, rdx
jne 0x180002c99
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x4c], 0x7865742e
mov byte [rsp + 0x50], 0x74
mov rbx, qword [rax + 0x10]
movsxd rcx, dword [rbx + 0x3c]
movzx eax, word [rcx + rbx + 0x14]
lea r8, [rcx + rbx]
add rax, 0x18
add r8, rax
movzx eax, word [rcx + rbx + 6]
lea rcx, [rax + rax*4]
lea r11, [r8 + rcx*8]
cmp r8, r11
je 0x180002c53
lea r9, [rsp + 0x4c]
sub r9, r8
nop dword [rax]
lea r10, [r8 + 5]
mov rax, r8
cmp r8, r10
je 0x180002c53
nop dword [rax]
movsx edx, byte [r9 + rax]
movzx ecx, byte [rax]
cmp ecx, edx
jne 0x180002c46
inc rax
cmp rax, r10
jne 0x180002c30
jmp 0x180002c53
add r8, 0x28
sub r9, 0x28
cmp r8, r11
jne 0x180002c20
mov eax, dword [r8 + 8]
mov ecx, dword [r8 + 0xc]
add rcx, rbx
mov word [rsp + 0x48], 0x26ff
mov rbx, qword [rsp + 0x60]
lea rdx, [rax + rcx]
cmp rax, 2
jb 0x180002c92
movzx eax, word [rsp + 0x48]
lea r8, [rdx - 2]
nop dword [rax]
cmp ax, word [rcx]
je 0x180002c8f
cmp rcx, r8
je 0x180002c92
inc rcx
jmp 0x180002c80
mov rdx, rcx
mov qword [0x18003c6e8], rdx
xor eax, eax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8, rbp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.18000cce0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000cf10
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000cd20
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
ret

Function at 0x18000cd40
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov rax, rdx
syscall
ret
Function at 0x18001d350
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 0x18001d380
xor eax, eax
jmp 0x18001d443
mov rbp, rbx
cmp word [rax], si
je 0x18001d3a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001d38c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001d388
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.18001d270
movsxd r14, eax
test eax, eax
jne 0x18001d3e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001d379
mov rcx, r14
call fcn.18001906c
mov rdi, rax
test rax, rax
jne 0x18001d3fc
xor ecx, ecx
call fcn.180018220
jmp 0x18001d3d8
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.18001d270
test eax, eax
jne 0x18001d42d
mov rcx, rdi
call fcn.180018220
jmp 0x18001d437
xor ecx, ecx
call fcn.180018220
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 0x180023d38
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.180018ec8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180023dc2
cmp byte [rbp - 0x21], r15b
je 0x180023dbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180023df8
call fcn.180018470
test eax, eax
jne 0x180023de4
cmp byte [rbp - 0x21], r15b
je 0x180023ddc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180023df8
cmp byte [rbp - 0x21], r15b
je 0x180023df5
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.18001b250
test eax, eax
jne 0x180023e98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180018ec8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180023e37
cmp byte [rbp - 0x21], r15b
je 0x180023e6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180023e6c
call fcn.180018470
test eax, eax
jne 0x180023e58
cmp byte [rbp - 0x21], r15b
je 0x180023e51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180023e6c
cmp byte [rbp - 0x21], r15b
je 0x180023e69
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.18001b250
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180023e98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180023e9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180023ea9
mov rcx, rdi
call fcn.180018220
cmp byte [rbp + 0x3f], r15b
je 0x180023eb8
mov rcx, qword [rbp + 0x27]
call fcn.180018220
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 0x180024138
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180039630]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002418f
cmp word [rdx], r13w
jne 0x18002418f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180024194
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800242b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800242da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800241cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1800241f4
cmp r9, r8
jae 0x180024204
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800241ae
jmp 0x1800242b9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800242ae
cmp dword [rsp + 0x80], esi
je 0x1800242ae
lea r8, [0x180039630]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180024286
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180024256
mov word [rbx], r13w
jmp 0x1800242b6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180024263
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800242b6
cmp word [rsp + 0x70], r13w
jne 0x180024293
cmp rbx, r14
je 0x180024250
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180024058
cmp word [rsp + 0x70], r13w
je 0x1800242b9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180039630]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800242b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800242b9
Function at 0x180025a6c
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.180024058
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180024058
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180025bbc
cmp rax, 0xffffffffffffffff
je 0x180025bbc
xor edi, edi
test rbp, rbp
jle 0x180025b67
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800181a8
mov rbx, rax
test rax, rax
jne 0x180025af4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180025b5d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800258f0
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.18001f374
cmp eax, 0xffffffff
je 0x180025b3d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180025b04
mov edx, r15d
mov ecx, r14d
call fcn.1800258f0
jmp 0x180025b5d
cmp byte [rsi + 0x38], dil
je 0x180025b54
cmp dword [rsi + 0x34], 5
jne 0x180025b54
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180025b5d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180018220
jmp 0x180025bd0
jns 0x180025bd0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180024058
cmp rax, 0xffffffffffffffff
jne 0x180025b88
cmp byte [rsi + 0x30], dil
je 0x180025bd0
mov edi, dword [rsi + 0x2c]
jmp 0x180025bd0
mov ecx, r14d
call fcn.18001fb28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180025bd0
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 0x180025bd0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180025bc9
mov eax, dword [rsi + 0x2c]
jmp 0x180025bce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180024058
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 0x180026b40
Capabilities:
Parse pe header

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