joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x48], 4
jae 0x1400a1b7f
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
shl rax, 2
add rcx, rax
xor edx, edx
mov r8d, 4
call fcn.1400f60e0
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
jmp 0x1400a1b42
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x40], 4
jae 0x1400a1c69
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x38], 4
jae 0x1400a1c51
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 4
jae 0x1400a1c39
mov rcx, qword [rsp + 0x40]
lea rax, [0x14012c890]
shl rcx, 2
add rax, rcx
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rax + rcx]
mov ecx, eax
lea rax, [0x14012b890]
shl rcx, 8
add rax, rcx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rcx + rdx*8]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rcx + rdx]
movzx r8d, byte [rax + rcx]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
shl rcx, 2
add rax, rcx
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rax + rcx]
xor edx, r8d
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x1400a1bb2
jmp 0x1400a1c3e
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
jmp 0x1400a1b9d
jmp 0x1400a1c56
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x1400a1b88
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 4
jae 0x1400a1caa
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rsp + rcx*4 + 0x50]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
jmp 0x1400a1c72
add rsp, 0x68
ret

Function at 0x1400a1d30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rcx
mov dword [rsp + 0xc], 0
cmp dword [rsp + 0xc], 4
jge 0x1400a1db4
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
movzx eax, byte [rax + rcx]
mov ecx, reloc.WS2_32.dll_recv
cdq
idiv ecx
movsxd rcx, eax
lea rax, [0x14012b780]
shl rcx, 4
add rax, rcx
mov qword [rsp], rax
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
movzx eax, byte [rax + rcx]
mov ecx, reloc.WS2_32.dll_recv
cdq
idiv ecx
mov rax, qword [rsp]
movsxd rcx, edx
mov dl, byte [rax + rcx]
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
jmp 0x1400a1d41
add rsp, 0x18
ret

Function at 0x1400aac90
Capabilities:
Log keystrokes

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov byte [rbp - 0xd], cl
mov cl, byte [rbp - 0xd]
call fcn.1400aad20
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x1400aacc5
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0xc], eax
jmp 0x1400aacec
mov cl, byte [rbp - 0xd]
call fcn.1400aae30
movzx ecx, ax
mov rax, qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, 3
call rax
mov dword [rbp - 0x18], eax
jmp 0x1400aace6
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
add rsp, 0x40
pop rbp
ret
Function at 0x1400ac250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e8], 0xfffffffffffffffe
mov qword [rbp + 0x1e0], r9
mov word [rbp + 0x1de], r8w
mov qword [rbp + 0x1d0], rdx
mov qword [rbp + 0x1c8], rcx
mov rcx, qword [rbp + 0x1c8]
mov qword [rbp - 0x28], rcx
call fcn.14007b070
mov rcx, qword [rbp - 0x28]
lea rax, [0x14012cd20]
mov qword [rcx], rax
add rcx, 0x48
mov qword [rbp - 0x20], rcx
call fcn.14002ab90
mov byte [rbp + 0x19f], 0x9b
mov byte [rbp + 0x19e], 0xf0
mov byte [rbp + 0x19d], 0x57
mov byte [rbp + 0x19c], 0x64
mov byte [rbp + 0x19b], 0x58
mov byte [rbp + 0x19a], 0x50
mov byte [rbp + 0x199], 0x39
mov byte [rbp + 0x198], pe_nt_image_headers64
mov dword [rbp + 0x1a0], 0x5d105735
lea rcx, [rbp + 0x198]
lea rdx, [rbp + 0x1a8]
mov qword [rbp - 0x18], rdx
call fcn.1400ac640
mov rcx, qword [rbp + 0x1d0]
lea rdx, [rbp + 0x178]
mov qword [rbp - 0x10], rdx
call fcn.14007bc50
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
call fcn.1400046b0
jmp 0x1400ac335
lea rcx, [rbp + 0x178]
call fcn.140002220
mov byte [rbp + 0x14e], 0xba
mov byte [rbp + 0x14d], 0x45
mov byte [rbp + 0x14c], 0x4b
mov byte [rbp + 0x14b], 0xfd
mov byte [rbp + 0x14a], 0xf1
mov byte [rbp + 0x149], 0xb6
mov byte [rbp + 0x148], 0x54
mov byte [rbp + 0x147], 0x2e
mov byte [rbp + 0x146], 5
mov byte [rbp + 0x145], 0x78
mov byte [rbp + 0x144], 0x25
mov byte [rbp + 0x143], 0x41
mov byte [rbp + 0x142], 0x56
mov byte [rbp + 0x141], WSAStartup
mov byte [rbp + 0x140], 0xc1
mov dword [rbp + 0x14f], 0x5a6f2f1c
lea rcx, [rbp + 0x140]
lea rdx, [rbp + 0x158]
mov qword [rbp - 0x30], rdx
call fcn.1400644c0
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x1a8]
call fcn.1400046b0
jmp 0x1400ac3e0
lea rcx, [rbp + 0x158]
call fcn.140002220
mov r8, qword [rbp + 0x1e0]
mov dx, word [rbp + 0x1de]
xor eax, eax
mov dword [rbp - 0x44], eax
mov r9w, ax
lea rcx, [rbp + 0x100]
mov qword [rbp - 0x40], rcx
call fcn.1400b8c00
mov eax, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x40]
mov r8b, al
lea rcx, [rbp + 0x120]
mov qword [rbp - 0x38], rcx
call fcn.1400a57c0
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp + 0x1a8]
call fcn.1400046b0
jmp 0x1400ac442
lea rcx, [rbp + 0x120]
call fcn.140002220
lea rcx, [rbp + 0x100]
call fcn.140002220
mov rax, qword [rbp - 0x28]
add rax, 0x48
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 8]
lea rdx, [rbp + 0x1a8]
call fcn.140004550
jmp 0x1400ac47b
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x58], rcx
lea rdx, [rbp - 8]
call fcn.14005e720
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
call fcn.140029cf0
jmp 0x1400ac49e
lea rcx, [rbp + 0x18]
call fcn.140029750
lea rcx, [rbp + 0x1a8]
call fcn.140002220
mov rax, qword [rbp - 0x28]
add rsp, 0x270
pop rbp
ret
Function at 0x1400ad0d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov eax, dword [rsp + 0x34]
xor eax, 0xffffffff
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x28], 4
jb 0x1400ad1af
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
xor eax, dword [rsp + 0xc]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov eax, eax
mov ecx, eax
lea rax, [0x14012cd50]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp + 0xc]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14012cd50]
xor eax, dword [rcx + rdx*4 + 0x400]
mov ecx, dword [rsp + 0xc]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14012cd50]
xor eax, dword [rcx + rdx*4 + 0x800]
mov ecx, dword [rsp + 0xc]
and ecx, 0xff
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14012cd50]
xor eax, dword [rcx + rdx*4 + 0xc00]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x10]
add rax, 4
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x28]
sub rax, 4
mov qword [rsp + 0x28], rax
jmp 0x1400ad0f8
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
cmp qword [rsp + 0x28], 0
je 0x1400ad20e
mov eax, dword [rsp + 0x1c]
shr eax, 8
mov ecx, dword [rsp + 0x1c]
and ecx, 0xff
mov rdx, qword [rsp]
mov r8, rdx
add r8, 1
mov qword [rsp], r8
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov edx, ecx
lea rcx, [0x14012cd50]
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x28]
add rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
jmp 0x1400ad1b8
mov eax, dword [rsp + 0x1c]
xor eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x1400af450
Capabilities:
Hash data using sha256

Disassembly:
push rax
mov qword [rsp], rcx
mov rax, qword [rsp]
mov dword [rax], 0x6a09e667
mov rax, qword [rsp]
mov dword [rax + 4], 0xbb67ae85
mov rax, qword [rsp]
mov dword [rax + 8], 0x3c6ef372
mov rax, qword [rsp]
mov dword [rax + 0xc], 0xa54ff53a
mov rax, qword [rsp]
mov dword [rax + 0x10], 0x510e527f
mov rax, qword [rsp]
mov dword [rax + 0x14], 0x9b05688c
mov rax, qword [rsp]
mov dword [rax + 0x18], 0x1f83d9ab
mov rax, qword [rsp]
mov dword [rax + 0x1c], 0x5be0cd19
mov rax, qword [rsp]
mov qword [rax + 0x60], 0
mov rax, qword [rsp]
mov byte [rax + 0x68], 0
pop rax
ret
Function at 0x1400b5920
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0xa8
movaps xmm1, xmmword [rdx]
movaps xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x10], xmm1
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [rsp]
aeskeygenassist xmm0, xmm0, 0
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [rsp + 0x10]
movaps xmm1, xmm0
pslldq xmm1, 4
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
pxor xmm0, xmm1
movaps xmmword [rsp + 0x10], xmm0
movaps xmm0, xmmword [rsp + 0x10]
movaps xmm1, xmm0
pslldq xmm1, 4
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
pxor xmm0, xmm1
movaps xmmword [rsp + 0x10], xmm0
movaps xmm0, xmmword [rsp + 0x10]
movaps xmm1, xmm0
pslldq xmm1, 4
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
pxor xmm0, xmm1
movaps xmmword [rsp + 0x10], xmm0
movaps xmm0, xmmword [rsp]
pshufd xmm1, xmm0, 0xaa
movdqa xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x1400c3484
Capabilities:
Parse pe header

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

Function at 0x1400c5770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400c5110
mov ebx, eax
test eax, eax
jne 0x1400c57a0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400c57fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c57f3
test al, 0x10
je 0x1400c57f3
bt eax, 0xa
jae 0x1400c57ec
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400c5814
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400c57e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400c580c
test edi, edi
jne 0x1400c57f3
and dword [rsp + 0x3c], 0
jmp 0x1400c57f8
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400e04e0
int3

Function at 0x1400c5a94
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 0x1400c5ace
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c5ad3
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 0x1400c5b1c
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 0x1400c5b1c
dec r8
sub rdx, 1
jne 0x1400c5b02
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400dcb84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400dc974
Function at 0x1400e7ed4
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 0x1400e7f06
call fcn.1400da688
mov dword [rax], socket
call fcn.1400cc150
jmp 0x1400e8025
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e8025
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e8025
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e7f35
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e8025
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e7f49
call fcn.1400e8040
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400e2fb8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400e8558
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e8013
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e7fde
mov rcx, rsi
call fcn.1400e2fb8
cmp eax, edi
je 0x1400e7fc9
mov rcx, rsi
call fcn.1400e2fb8
cmp eax, 0xfffffffe
je 0x1400e7fc9
mov rcx, rsi
call fcn.1400e2fb8
movsxd rbx, eax
lea r14, [0x140161f60]
mov rcx, rsi
sar rbx, 6
call fcn.1400e2fb8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e7fd0
lea rdx, [0x14015e8d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e7fde
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e8002
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e8002
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e8002
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 0x1400e8028
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 0x1400e80ac
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, [0x140161f60]
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 0x1400e810a
cmp word [rdx], r12w
jne 0x1400e810a
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400e8110
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400e826b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400e8246
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400e8149
mov rcx, r9
jmp 0x1400e816c
cmp r9, rdx
jae 0x1400e8183
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 0x1400e812d
jmp 0x1400e826b
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 0x1400e8240
cmp dword [rsp + 0x80], edi
je 0x1400e8240
mov rdx, r14
lea r11, [0x140161f60]
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 0x1400e8219
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400e81ec
mov word [rbx], r12w
jmp 0x1400e8267
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 0x1400e81f5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400e8267
cmp word [rsp + 0x70], r12w
jne 0x1400e8226
cmp rbx, rsi
je 0x1400e81e6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e8d38
cmp word [rsp + 0x70], r12w
je 0x1400e826b
mov word [rbx], r13w
jmp 0x1400e8267
lea r11, [0x140161f60]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400e8263
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400e826b
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 0x1400e90ec
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.1400c2f60
sub rsp, rax
mov rax, qword [0x14015e300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e2fb8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400e913b
mov rax, rbp
jmp 0x1400e9243
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 + 0x161f60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e8d30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x161f60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400e923f
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 0x1400e923f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e8d30
test rax, rax
js 0x1400e923f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400e923f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400e9231
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400e9231
cmp byte [rcx], 0xd
jne 0x1400e9217
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400e9226
cmp byte [rcx + 1], 0xa
jne 0x1400e9226
inc rcx
jmp 0x1400e9226
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15e920]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400e91f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400e9243
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400f5930
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 0x1400ebf74
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 0x1400ebfa4
xor eax, eax
jmp 0x1400ec067
mov rbp, rbx
cmp word [rax], si
je 0x1400ebfc9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ebfb0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ebfac
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.1400ebec4
movsxd r14, eax
test eax, eax
jne 0x1400ec007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ebf9d
mov rcx, r14
call fcn.1400e1e18
mov rdi, rax
test rax, rax
jne 0x1400ec020
xor ecx, ecx
call fcn.1400e1184
jmp 0x1400ebffc
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.1400ebec4
test eax, eax
jne 0x1400ec051
mov rcx, rdi
call fcn.1400e1184
jmp 0x1400ec05b
xor ecx, ecx
call fcn.1400e1184
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 0x1400ec084
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ec10b
mov rsi, rbx
cmp word [rax], bp
je 0x1400ec0ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ec0b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ec0b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e1e18
mov rdi, rax
test rax, rax
je 0x1400ec0f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f64a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e1184
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f343c
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.1400d3cb4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400f34c6
cmp byte [rbp - 0x21], r15b
je 0x1400f34c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400f34fc
call fcn.1400e48fc
test eax, eax
jne 0x1400f34e8
cmp byte [rbp - 0x21], r15b
je 0x1400f34e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400f34fc
cmp byte [rbp - 0x21], r15b
je 0x1400f34f9
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.1400e063c
test eax, eax
jne 0x1400f359c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d3cb4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400f353b
cmp byte [rbp - 0x21], r15b
je 0x1400f3570
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400f3570
call fcn.1400e48fc
test eax, eax
jne 0x1400f355c
cmp byte [rbp - 0x21], r15b
je 0x1400f3555
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400f3570
cmp byte [rbp - 0x21], r15b
je 0x1400f356d
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.1400e063c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400f359c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400f359f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400f35ad
mov rcx, rdi
call fcn.1400e1184
cmp byte [rbp + 0x3f], r15b
je 0x1400f35bc
mov rcx, qword [rbp + 0x27]
call fcn.1400e1184
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