joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028d04
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.14001c388
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c388
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028e54
cmp rax, 0xffffffffffffffff
je 0x140028e54
xor edi, edi
test rbp, rbp
jle 0x140028dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f014
mov rbx, rax
test rax, rax
jne 0x140028d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028df5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c38
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.14001d070
cmp eax, 0xffffffff
je 0x140028dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028d9c
mov edx, r15d
mov ecx, r14d
call fcn.140019c38
jmp 0x140028df5
cmp byte [rsi + 0x38], dil
je 0x140028dec
cmp dword [rsi + 0x34], 5
jne 0x140028dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a574
jmp 0x140028e68
jns 0x140028e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c388
cmp rax, 0xffffffffffffffff
jne 0x140028e20
cmp byte [rsi + 0x30], dil
je 0x140028e68
mov edi, dword [rsi + 0x2c]
jmp 0x140028e68
mov ecx, r14d
call fcn.140018768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028e68
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 0x140028e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028e61
mov eax, dword [rsi + 0x2c]
jmp 0x140028e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c388
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 0x140029f60
Capabilities:
Parse pe header

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

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x5a
cmp esi, dword [r10]
cmp byte [rsi + 0x4e], bl
xor al, 0xa4
sub dword [rbp + 0x32], ecx
movabs byte [0xa0be383c3232cf5a], al
xor dh, byte [rdx]
pop r10
or eax, 0x35383237
pop rdx
Function at 0x180002420
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002550
mov r15, qword [r15]
cmp r15, r10
je 0x180002572
mov rdi, rax
test r9b, r9b
je 0x180002560
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x1800024d0
test r14b, r14b
je 0x180002570
sub rdi, rcx
je 0x180002538
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002530
test ebp, ebp
jne 0x180002530
add rdx, 1
cmp rdi, rdx
jne 0x1800024f0
jmp 0x180002538
test ebp, ebp
jne 0x1800024a4
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002550
jmp 0x180002560
jmp 0x180002570
xor eax, eax
jmp 0x18000253c
Function at 0x140005170
Capabilities:
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, qword [rcx]
test r14, r14
je 0x14000523f
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400051f9
lea rcx, [0x140005250]
xor r8d, r8d
call r13
mov rcx, qword [r14 + 8]
mov edx, 0xffffffff
call rbp
mov r14, qword [rsi]
mov rax, qword [r14 + 0x18]
mov qword [rsi], rax
mov rcx, qword [r14 + 8]
call r12
mov rcx, r14
call fcn.1400a462c
mov r14, qword [rsi]
test r14, r14
je 0x14000523f
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
mov ecx, 2
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xffffffff
call r15
mov rcx, qword [r14 + 0x10]
call r12
mfence
mov eax, dword [0x140158bd8]
mov rdx, qword [r14 + 8]
test eax, eax
je 0x1400051c0
mov rcx, rdx
xor edx, edx
call rbx
jmp 0x1400051d8
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140069810
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, qword [rsp + 0x90]
mov rax, qword [rcx + 8]
lock inc dword [rax + 0x30]
test r9b, r9b
je 0x14006984f
mov rbx, qword [rcx + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14014efa0]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x1400698fc
mov rax, qword [rdx]
cmp rax, 0xffffffffffffffff
je 0x1400698df
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov ebp, 1
lea r9, [rsp + 0x44]
mov rbx, rcx
mov rcx, rax
mov rdx, r8
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov rbx, qword [rbx + 8]
test edi, edi
je 0x140069940
cmp ecx, 0x3e5
je 0x140069940
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x30], 1
lea rdx, [0x14014efa0]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x140069950
mov rbx, qword [rcx + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14014efa0]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1400699d7
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x140069990
mov qword [rax + 0x20], rsi
jmp 0x140069997
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ebp
cmp eax, 1
jne 0x1400699d7
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1400699d7
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400699b8
mov qword [rax + 0x20], rsi
jmp 0x1400699bf
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140073af0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x140073d5b
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x140073b88
test byte [rbx], 8
je 0x140073b88
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140073b88
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x14014efa8]
shr rcx, 1
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x140073b88
mov rcx, qword [0x14014efa0]
mov r8, qword [rcx + 0x30]
lea rcx, [0x1400056a0]
cmp r8, rcx
je 0x140073b88
lea rcx, [0x14014efa0]
mov edx, eax
call r8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140073d27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rcx, qword [0x14014efa8]
mov rdx, rcx
and rdx, 0xfffffffffffffffe
movabs r14, 0xb2ab117a257edfd0
cmp rdx, r14
jne 0x140073be7
cmp ebp, 1
mov eax, 2
sbb rax, 0xffffffffffffffff
mov dword [rsi], ebp
mov dword [rsi + 4], 0
lea rdx, [0x14014efa0]
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rax
jmp 0x140073c67
mov rax, qword [0x14014efa0]
mov rax, qword [rax + 0x30]
lea r15, [0x1400056a0]
cmp rax, r15
je 0x140073c19
lea rcx, [0x14014efa0]
mov edx, ebp
call rax
mov rcx, qword [0x14014efa8]
mov rdx, rcx
and rdx, 0xfffffffffffffffe
jmp 0x140073c1e
test ebp, ebp
setne al
movzx eax, al
or rax, 2
mov dword [rsi], ebp
mov dword [rsi + 4], 0
lea r8, [0x14014efa0]
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rax
cmp rdx, r14
je 0x140073c67
mov rax, qword [0x14014efa0]
mov rax, qword [rax + 0x30]
cmp rax, r15
je 0x140073c67
lea rcx, [0x14014efa0]
mov edx, 0x2733
call rax
mov rcx, qword [0x14014efa8]
cmp ebp, 0x2733
je 0x140073cb2
shr rcx, 1
movabs rax, 0x595588bd12bf6fe8
cmp rcx, rax
je 0x140073ca6
mov rax, qword [0x14014efa0]
mov rax, qword [rax + 0x30]
lea rcx, [0x1400056a0]
cmp rax, rcx
je 0x140073ca6
lea rcx, [0x14014efa0]
mov edx, 0x4d5
call rax
cmp ebp, 0x4d5
jne 0x140073d5b
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbx], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140073d27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x14014efa8]
shr rcx, 1
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x140073d37
mov rcx, qword [0x14014efa0]
mov r8, qword [rcx + 0x30]
lea rcx, [0x1400056a0]
cmp r8, rcx
je 0x140073d37
lea rcx, [0x14014efa0]
mov edx, eax
mov edi, eax
call r8
mov ecx, eax
mov eax, edi
jmp 0x140073d3c
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140073d5b
test eax, eax
setne cl
movzx ecx, cl
or rcx, 2
mov dword [rsi], eax
mov dword [rsi + 4], 0
lea rax, [0x14014efa0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400a4548
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 0x1400a4582
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a4587
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 0x1400a45d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14010a850]
cmp byte [rcx + rax], 0
je 0x1400a45d0
dec r8
sub rdx, 1
jne 0x1400a45b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a5a24
Capabilities:
Parse pe header

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

Function at 0x1400cd7d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cda4c
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 0x1400cdabb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cdabb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cdabb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cdabb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cdabb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cdabb
cmp dword [rcx + 0xf8], 0
je 0x1400cdabb
mov ecx, ebx
call fcn.1400cd8e4
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.1400cdc58
nop
cmp dword [rbp + 0x20], 0
je 0x1400cdb09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cd9e4
int3
Function at 0x1400cda4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cda4c
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 0x1400cdabb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cdabb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cdabb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cdabb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cdabb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cdabb
cmp dword [rcx + 0xf8], 0
je 0x1400cdabb
mov ecx, ebx
call fcn.1400cd8e4
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.1400cdc58
nop
cmp dword [rbp + 0x20], 0
je 0x1400cdb09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cd9e4
int3

Function at 0x1400d7654
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
test r8, r8
jne 0x1400d7674
call fcn.1400ecc54
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400d24ac
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x1400d765d
test rcx, rcx
jne 0x1400d7683
cmp qword [r8], rcx
je 0x1400d765d
add rsp, 0x28
jmp 0x1400d768c
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14014b200]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rsi, r8
mov eax, r9d
mov r11, rdx
cmp rax, 0x20
mov r10, rcx
jae 0x1400d77b1
mov byte [rsp + rax + 0x20], r9b
inc rax
cmp rax, 0x20
jl 0x1400d76b6
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1400d76ca
test r10, r10
jne 0x1400d76f7
mov r10, qword [rsi]
movzx r8d, byte [r10]
mov edx, 1
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
test byte [rsp + rax + 0x20], dl
je 0x1400d7754
mov rdi, r10
mov r11b, r8b
mov rbx, rdi
mov r8b, r11b
test r11b, r11b
je 0x1400d7754
lea r10, [rdi + 1]
mov edx, 1
movzx r11d, byte [r10]
mov rdi, r10
mov eax, r11d
mov ecx, r11d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
mov r8b, r11b
test byte [rsp + rax + 0x20], dl
jne 0x1400d771e
mov r11, rbx
test r8b, r8b
je 0x1400d778f
mov al, byte [rbx]
movzx r8d, al
mov edx, 1
mov ecx, r8d
inc r11
and ecx, 7
shr r8, 3
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1400d7789
mov al, byte [r11]
mov r10, r11
test al, al
jne 0x1400d775e
jmp 0x1400d778f
mov byte [r10], r9b
mov r10, r11
cmp r11, rbx
mov qword [rsi], r10
cmovne r9, rbx
mov rax, r9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a4d30
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.1400a5dec
int3
Function at 0x1400daba0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400dabc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400dabc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400f4518
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 0x1400f4548
xor eax, eax
jmp 0x1400f460b
mov rbp, rbx
cmp word [rax], si
je 0x1400f456d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f4554
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f4550
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.1400f4424
movsxd r14, eax
test eax, eax
jne 0x1400f45ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f4541
mov rcx, r14
call fcn.1400ecf58
mov rdi, rax
test rax, rax
jne 0x1400f45c4
xor ecx, ecx
call fcn.1400e7600
jmp 0x1400f45a0
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.1400f4424
test eax, eax
jne 0x1400f45f5
mov rcx, rdi
call fcn.1400e7600
jmp 0x1400f45ff
xor ecx, ecx
call fcn.1400e7600
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 0x1400f4628
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 0x1400f46af
mov rsi, rbx
cmp word [rax], bp
je 0x1400f466e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f4658
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f4654
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ecf58
mov rdi, rax
test rax, rax
je 0x1400f469c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401053c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e7600
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 0x1400ffa2c
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.1400d328c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ffab6
cmp byte [rbp - 0x21], r15b
je 0x1400ffab1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ffaec
call fcn.1400e8e10
test eax, eax
jne 0x1400ffad8
cmp byte [rbp - 0x21], r15b
je 0x1400ffad0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ffaec
cmp byte [rbp - 0x21], r15b
je 0x1400ffae9
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.1400f2c58
test eax, eax
jne 0x1400ffb8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d328c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ffb2b
cmp byte [rbp - 0x21], r15b
je 0x1400ffb60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ffb60
call fcn.1400e8e10
test eax, eax
jne 0x1400ffb4c
cmp byte [rbp - 0x21], r15b
je 0x1400ffb45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ffb60
cmp byte [rbp - 0x21], r15b
je 0x1400ffb5d
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.1400f2c58
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ffb8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ffb8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ffb9d
mov rcx, rdi
call fcn.1400e7600
cmp byte [rbp + 0x3f], r15b
je 0x1400ffbac
mov rcx, qword [rbp + 0x27]
call fcn.1400e7600
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