joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006670
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov r15, rdx
mov r14d, 3
xorps xmm0, xmm0
lea rcx, [rbp - 9]
xorps xmm1, xmm1
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 1]
xor ebx, ebx
mov rax, r15
cmp r15, rsi
jbe 0x180006761
nop dword [rax]
mov r8d, 0x30
lea rdx, [rbp - 0x39]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000673f
cmp dword [rbp - 0x19], 0x10000
jne 0x180006733
cmp qword [rbp - 0x21], rdi
jb 0x180006733
mov rcx, qword [rbp - 0x39]
mov r9d, 0x40
and rcx, 0xffffffffffff0000
mov r8d, 0x3000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000682e
inc rbx
mov rax, qword [rbp - 0x39]
dec rax
cmp rax, rsi
ja 0x1800066e0
test rbx, rbx
je 0x180006761
mov r9, rbx
lea r8, str.Failed_allocation_down_attempt__zu_times
lea rdx, str.Hook::allocate_within_2gb_down
lea rcx, [0x18005a520]
call fcn.180007290
xorps xmm0, xmm0
lea rcx, [rbp - 9]
xorps xmm1, xmm1
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp + 7]
xor ebx, ebx
mov rax, r15
cmp r15, rsi
jae 0x18000681d
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rbp - 0x39]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800067fb
cmp dword [rbp - 0x19], 0x10000
jne 0x1800067ef
cmp qword [rbp - 0x21], rdi
jb 0x1800067ef
mov rcx, qword [rbp - 0x39]
mov r9d, 0x40
and rcx, 0xffffffffffff0000
mov r8d, 0x3000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000682e
inc rbx
mov rax, qword [rbp - 0x39]
inc rax
cmp rax, rsi
jb 0x1800067a0
test rbx, rbx
je 0x18000681d
mov r9, rbx
lea r8, str.Failed_allocation_up_attempt__zu_times
lea rdx, str.Hook::allocate_within_2gb_up
lea rcx, [0x18005a520]
call fcn.180007290
mov eax, r14d
inc r14d
cmp eax, 3
jb 0x1800066a2
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180029360
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007290
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1268
call fcn.180029e50
sub rsp, rax
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x1250], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x250]
call fcn.18002bc80
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.18002bc80
lea rbp, [rsp + 0x12a8]
call fcn.1800071b0
mov qword [rsp + 0x28], rbp
lea rdx, [rsp + 0x50]
xor ebp, ebp
mov r9, rbx
mov r8d, 0x1ff
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
or rcx, 2
call fcn.1800332f0
lea rcx, [0x18018ff8b]
test rdi, rdi
mov rax, rcx
lea r8, str.__:
cmovne rax, r8
cmovne rcx, rdi
lea r8, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x30], r8
mov edx, 0x1000
mov qword [rsp + 0x28], rax
lea r8, str.__s___s_s_s_n
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x250]
call fcn.180007230
mov rcx, qword [0x1801ca6d0]
movsxd rbx, eax
test rcx, rcx
jne 0x180007410
cmp qword [0x18019e100], rbp
jbe 0x180007440
cmp qword [0x18019e108], 0x10
lea rcx, [0x18019e0f0]
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
cmovae rcx, qword [0x18019e0f0]
mov edx, 0xc0000000
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1801ca6d0], rax
test rax, rax
jne 0x1800073fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_open_log:__d
lea rdx, str.log_msg
lea rcx, [0x18005a520]
call fcn.180007290
jmp 0x180007440
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [0x1801ca6d0]
test rcx, rcx
je 0x180007440
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, ebx
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180007440
mov rcx, qword [0x1801ca6d0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.180029360
add rsp, 0x1268
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180007710
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, 1
jb 0x18000781b
cmp qword [rcx + 0x18], 0x10
jb 0x18000774a
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 1
lea rax, reloc.WS2_32.dll_ioctlsocket
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea rcx, [rsp + 0x48]
call fcn.1800079f0
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rcx, qword [0x18019dc88]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800077c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.send_failed_with_error:__d
lea rdx, str.send_network_message
lea rcx, [0x18005a520]
call fcn.180007290
xor bl, bl
jmp 0x1800077c6
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800077ff
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800077fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007815
call fcn.180029700
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180029360
add rsp, 0x70
pop rbx
ret
call fcn.180031e2c
int3
call fcn.180001790
int3
Function at 0x180007cc0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
lea rcx, [0x1801ca6d8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r9, str.LoggingSemaphore
xor edx, edx
xor ecx, ecx
mov r8d, 0x2710
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1801ca898], rax
test rax, rax
jne 0x180007d2e
lea r8, str.Failed_to_create_logging_semaphore
lea rdx, str.initialize_output_files
lea rcx, [0x18005a520]
call fcn.180007290
xor al, al
jmp 0x180007f2a
cmp byte [0x18019e0b4], bl
jne 0x180007ec2
lea rcx, [rsp + 0x28]
call fcn.180002c20
nop
mov r8d, 0xc
lea rdx, str.OutputFiles
mov rcx, rax
call fcn.180004440
xorps xmm0, xmm0
movups xmmword [rsp + 0x110], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x120], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x120], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180007dd4
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007dcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007f49
call fcn.180029700
movdqa xmm0, xmmword [0x180196000]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rcx, qword [rsp + 0x110]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180007e7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180007e7f
lea r8, str.Failed_to_created_output_directory
lea rdx, str.initialize_output_files
lea rcx, [0x18005a520]
call fcn.180007290
nop
mov rdx, qword [rsp + 0x128]
cmp rdx, 0x10
jb 0x180007e78
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007e73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007f43
call fcn.180029700
xor al, al
jmp 0x180007f2a
mov rdx, qword [rsp + 0x128]
cmp rdx, 0x10
jb 0x180007ec2
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007ebd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007f43
call fcn.180029700
mov rbx, qword [0x18019e0d8]
cmp rbx, qword [0x18019e0e0]
je 0x180007f28
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1800098a0
nop
mov rcx, qword [0x1801ca920]
cmp rcx, qword [0x1801ca928]
je 0x180007f05
mov rdx, rax
call fcn.180011ab0
add qword [0x1801ca920], 0xc0
jmp 0x180007f11
mov r8, rax
mov rdx, rcx
call fcn.180011750
nop
lea rcx, [rsp + 0x50]
call fcn.180007f50
add rbx, 0x20
cmp rbx, qword [0x18019e0e0]
jne 0x180007ed2
mov al, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180029360
add rsp, 0x140
pop rbx
ret
call fcn.180031e2c
nop
call fcn.180031e2c
nop
int3
Function at 0x18000fab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, r8
mov rbx, rdx
mov rcx, rdx
jb 0x18000fade
mov rcx, qword [rdx]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
lea edx, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000fb3e
cmp qword [rbx + 0x18], 0x10
jb 0x18000fb13
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.Failed_to_open_file_for_append__s___d_
lea rdx, str.output_file::append_file
mov dword [rsp + 0x20], eax
lea rcx, [0x18005a520]
call fcn.180007290
xor al, al
jmp 0x18000fbb3
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
mov dword [rsp + 0x40], ebp
jb 0x18000fb4f
mov rdx, qword [rdi]
mov r8d, dword [rdi + 0x10]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000fba8
cmp qword [rbx + 0x18], 0x10
jb 0x18000fb74
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.Failed_to_write_to__s___d_
lea rdx, str.output_file::append_file
mov dword [rsp + 0x20], eax
lea rcx, [0x18005a520]
call fcn.180007290
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18000fbb3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180029360
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000922c
Capabilities:
Parse pe header

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

Function at 0x1400153f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400151e8

Function at 0x14001c1f0
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14001bf12
call fcn.1400113b4
mov dword [rax], 0x16
call fcn.140011248
jmp 0x14001c062
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001c062
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001c062
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001bf41
lock or dword [rcx + 0x14], 0x10
jmp 0x14001c062
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001bf55
call fcn.14001c5f0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14001bf65
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14001bf68
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140019bb0
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400253e0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14001c050
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14001bffb
mov rcx, rbx
call fcn.140019bb0
cmp eax, 0xffffffff
je 0x14001bfe6
mov rcx, rbx
call fcn.140019bb0
cmp eax, 0xfffffffe
je 0x14001bfe6
mov rcx, rbx
call fcn.140019bb0
movsxd rdi, eax
lea rsi, [0x14003c2b0]
mov rcx, rbx
sar rdi, 6
call fcn.140019bb0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14001bfed
lea rdx, [0x14003a3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001bffb
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14001c01f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14001c01f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14001c01f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14001c03d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14001c048
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14001c067
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14001bedc
Function at 0x14001d908
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008b20
sub rsp, rax
mov rax, qword [0x14003a030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140019bb0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001d957
mov rax, rbp
jmp 0x14001da5f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c2b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ddf8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c2b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001da5b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001da5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ddf8
test rax, rax
js 0x14001da5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001da5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001da4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001da4d
cmp byte [rcx], 0xd
jne 0x14001da33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001da42
cmp byte [rcx + 1], 0xa
jne 0x14001da42
inc rcx
jmp 0x14001da42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3ab00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001da15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001da5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400084c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140020238
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 0x140020268
xor eax, eax
jmp 0x14002032b
mov rbp, rbx
cmp word [rax], si
je 0x14002028d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020274
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020270
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.14001e864
movsxd r14, eax
test eax, eax
jne 0x1400202cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020261
mov rcx, r14
call fcn.1400188d8
mov rdi, rax
test rax, rax
jne 0x1400202e4
xor ecx, ecx
call fcn.14001889c
jmp 0x1400202c0
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.14001e864
test eax, eax
jne 0x140020315
mov rcx, rdi
call fcn.14001889c
jmp 0x14002031f
xor ecx, ecx
call fcn.14001889c
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 0x140024f34
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003c2b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140024f92
cmp word [rdx], r12w
jne 0x140024f92
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024f98
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400250f3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400250ce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140024fd1
mov rcx, r9
jmp 0x140024ff4
cmp r9, rdx
jae 0x14002500b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140024fb5
jmp 0x1400250f3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400250c8
cmp dword [rsp + 0x80], edi
je 0x1400250c8
mov rdx, r14
lea r11, [0x14003c2b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400250a1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140025074
mov word [rbx], r12w
jmp 0x1400250ef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002507d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400250ef
cmp word [rsp + 0x70], r12w
jne 0x1400250ae
cmp rbx, rsi
je 0x14002506e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001de00
cmp word [rsp + 0x70], r12w
je 0x1400250f3
mov word [rbx], r13w
jmp 0x1400250ef
lea r11, [0x14003c2b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400250eb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400250f3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400268b4
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.14000e900
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002693e
cmp byte [rbp - 0x21], r15b
je 0x140026939
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026974
call fcn.14001ad84
test eax, eax
jne 0x140026960
cmp byte [rbp - 0x21], r15b
je 0x140026958
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026974
cmp byte [rbp - 0x21], r15b
je 0x140026971
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.1400143cc
test eax, eax
jne 0x140026a14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e900
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400269b3
cmp byte [rbp - 0x21], r15b
je 0x1400269e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400269e8
call fcn.14001ad84
test eax, eax
jne 0x1400269d4
cmp byte [rbp - 0x21], r15b
je 0x1400269cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400269e8
cmp byte [rbp - 0x21], r15b
je 0x1400269e5
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.1400143cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026a14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026a17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026a25
mov rcx, rdi
call fcn.14001889c
cmp byte [rbp + 0x3f], r15b
je 0x140026a34
mov rcx, qword [rbp + 0x27]
call fcn.14001889c
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 0x1400056a0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x1400056fa
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x140005702
mov r14, qword [r14]
jmp 0x1400056cb
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x140005737
jmp 0x140005745
inc rax
inc rax
inc rax
inc rax
jmp 0x14000571e
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x7f000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0x55000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x335
push rax
movabs r15, 0x3ae00
mov eax, 0x89
imul r12, rax
movabs rax, 0xb4
add rax, r11
add r12, rax
call fcn.1400057fc
mov r12d, 0x57611
movabs r14, 0xbf000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.1400057fc
pop rax
jmp 0x140005822
mov r12d, 0x8000000
mov r15d, 0x49
movabs r14, 0x7f000
mov eax, 0x38
imul r15d, eax
add r15d, 8
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x5c211
add eax, 0xdc014d00
mov eax, dword [r12]
xor eax, 0x98b18dcc
dec eax
cmp eax, 0
je 0x14000587f
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x14000585d
sub rsp, 0x28
movabs r14, 0x29b5
mov r12d, 0x77
add r12, 0xa0360
add r12, r14
add r12, r11
push r12
dec r10
lea r15d, [eax]
jmp 0x140005820