joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e6920
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 [0x14011c3f8]
mov rdi, rax
test rax, rax
jne 0x1400e6962
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 0x1400e69a9
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 0x1400e6a02
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 0x1400e69c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e6a43
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400fbf22]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400fbf23]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e6a10
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 0x1400e6a60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e6a9a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e6a9f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e6ae8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e6ae8
dec r8
sub rdx, 1
jne 0x1400e6ace
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400e8248
Capabilities:
Parse pe header

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

Disassembly:
call fcn.141f4928f
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 0x141f49139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f4911f
add dl, dl
jne 0x141f49146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f491a6
xor eax, eax
add dl, dl
jne 0x141f49155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f4925d
add dl, dl
jne 0x141f49166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f49173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f49180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f4918d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141f4919a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141f4912e
mov eax, 1
add dl, dl
jne 0x141f491b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f491c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f491ab
sub eax, ebx
mov ebx, 1
jne 0x141f491fc
mov ecx, 1
add dl, dl
jne 0x141f491de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141f491eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f491d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f4912e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141f49218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141f49225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f4920d
cmp eax, 0x7d00
jae 0x141f4924b
cmp eax, 0x500
jb 0x141f49246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f4912e
cmp eax, 0x7f
ja 0x141f4924e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f4912e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141f49282
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 0x141f4912e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001380
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov ecx, 0x21
call fcn.14001aa10
mov qword [rsp + 0x50], rax
xor ecx, ecx
call fcn.14001dc5c
mov r9, rax
mov r8d, 0x21
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14001df44
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.1400022d0
mov edx, 0x20
lea rcx, [rsp + 0x58]
call fcn.1400022d0
mov edx, 0x40
lea rcx, [rsp + 0x48]
call fcn.1400022d0
mov r9d, 1
mov r8d, 0x20
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140002420
xor eax, eax
cmp eax, 1
je 0x14000163e
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 1
mov r8d, 4
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140002420
mov ecx, 0x40
call fcn.14001aa10
mov qword [rsp + 0x30], rax
xor ecx, ecx
call fcn.14001dc5c
mov r9, rax
mov r8d, 0x40
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14001df44
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x40
je 0x14000148d
jmp 0x14000163e
mov r9d, 1
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140002420
mov dword [rsp + 0x24], 0
mov eax, 4
imul rax, rax, 0
cmp dword [rsp + rax + 0x20], 0
jne 0x1400015fc
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x78], rax
mov r9d, 1
mov r8d, 1
mov edx, dword [0x14004eb84]
mov rcx, qword [rsp + 0x70]
call fcn.140001b70
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov r9d, 1
mov r8d, 1
mov edx, dword [0x14004eb80]
mov rcx, qword [rsp + 0x78]
call fcn.140001b70
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.140002bb0
test eax, eax
je 0x14000156b
jmp 0x140001584
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.140001340
mov eax, dword [0x14004eb80]
imul eax, dword [0x14004eb84]
cdqe
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov r9d, 2
mov r8d, 4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140002420
call fcn.140001c70
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400015f7
mov eax, 4
imul rax, rax, 0
mov dword [rsp + rax + 0x20], 1
mov ecx, dword [rsp + 0x28]
call fcn.140001ef0
mov rdx, rax
lea rcx, str.kernel_launch_failed_with_error___s_._n
call fcn.140001c10
jmp 0x1400014b0
mov r9d, 2
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140002420
mov ecx, 1
call fcn.14001dc5c
mov r9, rax
mov r8d, 0x28
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14001e3d0
jmp 0x140001416
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140002e40
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x18
mov rax, qword [0x14004e080]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r9d, edx
mov r11, rcx
test edx, edx
jne 0x140002e74
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140016820
add rsp, 0x18
ret
mov rcx, qword [r8]
mov qword [rsp], rcx
movzx eax, cl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [rsp + 1]
xor edx, eax
movzx eax, byte [rsp + 2]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 4]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 6]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul edx, r8d, 0x1000193
xor edx, eax
imul r8d, edx, 0x1000193
xor edx, edx
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140002f14
cmp qword [rax + 8], rcx
je 0x140002f14
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140002f03
test r10, r10
je 0x140002f1c
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140016820
add rsp, 0x18
ret

Function at 0x140003680
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400037b6
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov qword [rsp + 0x10], rbp
mov rdi, r8
lea rbp, str._.C
mov rsi, rdx
mov r11, rcx
xor ebx, ebx
nop dword [rax + rax]
movzx r8d, byte [rbx + rsi]
movzx r10d, byte [r11 + 0x40]
movzx eax, r8b
xor al, byte [r11 + r10]
lea r9, [r11 + r10]
mov byte [r9 + 0x20], al
mov ecx, r8d
mov byte [r9 + 0x10], r8b
movzx eax, byte [r11 + 0x41]
xor rcx, rax
movzx eax, byte [r9 + 0x30]
movzx edx, byte [rcx + rbp]
xor edx, eax
lea eax, [r10 + 1]
and eax, 0xf
mov byte [r9 + 0x30], dl
mov byte [r11 + 0x41], dl
mov byte [r11 + 0x40], al
test al, al
jne 0x14000379a
xor dl, dl
xor r8b, r8b
nop dword [rax]
nop dword [rax + rax]
lea rax, [r11 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140003720
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140003710
inc rbx
cmp rbx, rdi
jb 0x1400036b0
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop rdi
ret
Function at 0x1400037c0
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x40]
lea r11, str._.C
lea r8, [rcx + r9]
movzx eax, dl
mov byte [r8 + 0x10], dl
mov r10, rcx
xor al, byte [r8]
mov byte [r8 + 0x20], al
movzx eax, byte [rcx + 0x41]
movzx edx, dl
xor rdx, rax
movzx eax, byte [r8 + 0x30]
movzx ecx, byte [rdx + r11]
xor ecx, eax
lea eax, [r9 + 1]
and eax, 0xf
mov byte [r8 + 0x30], cl
mov byte [r10 + 0x41], cl
mov byte [r10 + 0x40], al
test al, al
jne 0x1400038b0
xor dl, dl
xor r8b, r8b
nop word [rax + rax]
lea rax, [r10 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140003830
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140003820
ret
Function at 0x1400144c0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
test eax, eax
jne 0x1400144de
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor edx, edx
cmp rcx, rbx
cmovb ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140016dd0
Capabilities:
Parse pe header

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

Function at 0x14001ad2c
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 0x14001ab8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ab8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ab8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ab8b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ab8b
cmp dword [rcx + 0xf8], 0
je 0x14001ab8b
mov ecx, ebx
call fcn.14001ac48
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.14001aa18
nop
cmp dword [rbp + 0x20], 0
je 0x14001abd9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001abe4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001ab1c
Function at 0x140024bb8
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, [0x1400517b0]
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 0x140024c16
cmp word [rdx], r12w
jne 0x140024c16
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024c1c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140024d77
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140024d52
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140024c55
mov rcx, r9
jmp 0x140024c78
cmp r9, rdx
jae 0x140024c8f
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 0x140024c39
jmp 0x140024d77
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 0x140024d4c
cmp dword [rsp + 0x80], edi
je 0x140024d4c
mov rdx, r14
lea r11, [0x1400517b0]
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 0x140024d25
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140024cf8
mov word [rbx], r12w
jmp 0x140024d73
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 0x140024d01
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140024d73
cmp word [rsp + 0x70], r12w
jne 0x140024d32
cmp rbx, rsi
je 0x140024cf2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140028a48
cmp word [rsp + 0x70], r12w
je 0x140024d77
mov word [rbx], r13w
jmp 0x140024d73
lea r11, [0x1400517b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140024d6f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140024d77
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 0x1400255cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400255fe
call fcn.140023410
mov dword [rax], 0x16
call fcn.1400232d4
jmp 0x14002571d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002571d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002571d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002562d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002571d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140025641
call fcn.14002bc18
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140021324
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140025064
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002570b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400256d6
mov rcx, rsi
call fcn.140021324
cmp eax, edi
je 0x1400256c1
mov rcx, rsi
call fcn.140021324
cmp eax, 0xfffffffe
je 0x1400256c1
mov rcx, rsi
call fcn.140021324
movsxd rbx, eax
lea r14, [0x1400517b0]
mov rcx, rsi
sar rbx, 6
call fcn.140021324
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400256c8
lea rdx, [0x14004e220]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400256d6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400256fa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400256fa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400256fa
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140025720
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002a4b0
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 0x14002a4e0
xor eax, eax
jmp 0x14002a5a3
mov rbp, rbx
cmp word [rax], si
je 0x14002a505
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a4ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a4e8
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.14002a400
movsxd r14, eax
test eax, eax
jne 0x14002a543
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a4d9
mov rcx, r14
call fcn.140022994
mov rdi, rax
test rax, rax
jne 0x14002a55c
xor ecx, ecx
call fcn.140024288
jmp 0x14002a538
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.14002a400
test eax, eax
jne 0x14002a58d
mov rcx, rdi
call fcn.140024288
jmp 0x14002a597
xor ecx, ecx
call fcn.140024288
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 0x14002e71c
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.1400214f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002e7a6
cmp byte [rbp - 0x21], r15b
je 0x14002e7a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002e7dc
call fcn.1400244dc
test eax, eax
jne 0x14002e7c8
cmp byte [rbp - 0x21], r15b
je 0x14002e7c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002e7dc
cmp byte [rbp - 0x21], r15b
je 0x14002e7d9
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.140028b7c
test eax, eax
jne 0x14002e87c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400214f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002e81b
cmp byte [rbp - 0x21], r15b
je 0x14002e850
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002e850
call fcn.1400244dc
test eax, eax
jne 0x14002e83c
cmp byte [rbp - 0x21], r15b
je 0x14002e835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002e850
cmp byte [rbp - 0x21], r15b
je 0x14002e84d
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.140028b7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002e87c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002e87f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002e88d
mov rcx, rdi
call fcn.140024288
cmp byte [rbp + 0x3f], r15b
je 0x14002e89c
mov rcx, qword [rbp + 0x27]
call fcn.140024288
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 0x14002fbc0
Capabilities:
Parse pe header

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