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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.ws2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x7ff668ca5c91
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x7ff668ca5c55
mov dword [rsi], 0x51
jmp 0x7ff668ca5c8a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.7ff668c837e0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.7ff668c6f300
mov rax, qword [rdi + 8]
mov dword [rax + 0xd64], ebx
mov dword [rsi], 0x38
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.7ff668c6f490
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x7ff668ca5cd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x318]
test dword [rcx + 0x84], 0x800
jne 0x7ff668ca5e11
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
je 0x7ff668ca5da1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.7ff668c837e0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.7ff668c6f300
mov eax, 2
jmp 0x7ff668ca5e13
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.7ff668c70a00
test al, al
jne 0x7ff668ca5e11
mov qword [rsp + 0x1e0], rdi
call sub.ucrtbase.dll__errno
mov ebx, dword [rax]
call sub.ucrtbase.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.7ff668c837e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.7ff668c6f300
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x7ff668ca5e13
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.7ff668cb8ee0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x7ff668cb4200
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x7ff668cb4242
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 0x7ff668cb4289
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x7ff668cb42e2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x7ff668cb42a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x7ff668cb4323
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff668cce331]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x7ff668cce332]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff668cb42f0
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 0x1800043a8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x1800043ae
mov rax, rcx
ret

Function at 0x1800043c4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x56]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x2b
jb 0x1800043ca
mov rax, rcx
ret

Function at 0x1800043e8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x24]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x12
jb 0x1800043ee
mov rax, rcx
ret

Function at 0x18000440c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x18]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xc
jb 0x180004412
mov rax, rcx
ret

Function at 0x180004430
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x16]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xb
jb 0x180004436
mov rax, rcx
ret

Function at 0x180004454
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x1a]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xd
jb 0x18000445a
mov rax, rcx
ret

Function at 0x180004478
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 8]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 4
jb 0x18000447e
mov rax, rcx
ret

Function at 0x18000449c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 5
jb 0x1800044a2
mov rax, rcx
ret
Function at 0x180004b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
movdqa xmm0, xmmword [0x180007b50]
lea r9, [rbp + 0x38]
and qword [rbp + 0x38], 0
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xc67b7b20
mov dword [rsp + 0x54], 0x1345358
mov word [rsp + 0x58], 0x36ac
call fcn.180002c50
and dword [rbp + 0x30], 0
mov ecx, 0x200
call fcn.180001120
mov rdi, rax
call fcn.18000323c
mov rbx, qword [rbp + 0x38]
imul edx, eax, 0xff
mov rax, qword [section..data]
or rbx, rdx
test rax, rax
jne 0x180004c30
mov ecx, 0x170
call fcn.1800010c8
test rax, rax
je 0x180004c29
mov rcx, rax
call fcn.180001440
mov qword [section..data], rax
mov dword [rsp + 0x28], 0x100
or r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [rax + 0xb0]
and qword [rbp + 0x38], 0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0xffdbffa6
mov dword [rsp + 0x64], 0x1fffa4
mov dword [rsp + 0x68], 0x4ff86
mov dword [rsp + 0x6c], 0x5cff89
mov dword [rsp + 0x70], 0xffa6ffd3
mov dword [rsp + 0x74], 0x5affca
mov dword [rsp + 0x78], 0xffb90020
mov dword [rsp + 0x7c], 0xff84ffb7
mov dword [rbp - 0x80], 0x3d0070
mov dword [rbp - 0x7c], 0xff97004f
mov dword [rbp - 0x78], 0x2cffac
mov dword [rbp - 0x74], 0xffd9ff89
mov dword [rbp - 0x70], 0xff96003b
mov dword [rbp - 0x6c], 0x12006a
mov dword [rbp - 0x68], 0xffcbffef
mov dword [rbp - 0x64], 0x300011
mov dword [rbp - 0x60], 0x15fff1
mov dword [rbp - 0x5c], 0x34ffdd
mov dword [rbp - 0x58], 0xff9dff98
mov dword [rbp - 0x54], 0x64004e
mov dword [rbp - 0x50], 0x2f007c
mov dword [rbp - 0x4c], 0x850073
mov dword [rbp - 0x48], 0x9300b9
mov dword [rbp - 0x44], 0xbe002d
mov dword [rbp - 0x40], 0xba0033
mov dword [rbp - 0x3c], 0xb7006d
mov dword [rbp - 0x38], 0xf9008b
mov dword [rbp - 0x34], 0x13006e
mov dword [rbp - 0x30], 0x9a0089
mov dword [rbp - 0x2c], 0x4400b0
mov dword [rbp - 0x28], 0x7d005b
mov dword [rbp - 0x24], 0x9500ba
mov dword [rbp - 0x20], 0xb9001e
mov dword [rbp - 0x1c], 0x1600ba
mov dword [rbp - 0x18], 0x5b00f5
mov dword [rbp - 0x14], 0xd60077
mov dword [rbp - 0x10], 0x2500fc
mov dword [rbp - 0xc], 0xc00055
mov dword [rbp - 8], 0xec0023
mov dword [rbp - 4], 0xfb0051
mov dword [rbp], 0x6100be
mov dword [rbp + 4], 0x1d0016
mov dword [rbp + 8], 0x73005b
mov dword [rbp + 0xc], 0xcb284873
call fcn.1800043c4
lea r8, [rbp + 0x38]
mov rcx, rdi
lea rdx, [rsp + 0x60]
lea r9, [rbp + 0x30]
call fcn.180002380
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x180004e16
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x50], 0
mov qword [rsp + 0x40], rax
call fcn.180004f4c
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0xd542514d
mov dword [rsp + 0x34], 0x2b3000b7
mov dword [rsp + 0x38], 0xb7bb
mov dword [rsp + 0x3c], 0xdaa96f5
call fcn.1800043a8
cmp qword [rsp + 0x50], 0
je 0x180004e16
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180004e34
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400162f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140040710
sub rsp, rax
mov rax, qword [0x140058040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1400163b2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001635d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140016350
cmp rcx, 1
jb 0x14001640a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140016380
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140033ce8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140016340
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400163e3
lea rcx, [rsp + 0x80]
call fcn.1400354bc
jmp 0x1400163e5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140024c60
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140029250
int3

Function at 0x140016410
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140058040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001646d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140016460
cmp rcx, 1
jb 0x1400164e7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140016483
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140033ce8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140016450
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024c60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140029250
int3
Function at 0x140025634
Capabilities:
Parse pe header

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

Function at 0x1400295b0
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 0x14002941b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002941b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002941b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002941b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002941b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002941b
cmp dword [rcx + 0xf8], 0
je 0x14002941b
mov ecx, ebx
call fcn.1400294cc
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.1400292a8
nop
cmp dword [rbp + 0x20], 0
je 0x140029469
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029474
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400293ac
Function at 0x14003a1e4
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 0x14003a26b
mov rsi, rbx
cmp word [rax], bp
je 0x14003a22a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003a214
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003a210
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140037a6c
mov rdi, rax
test rax, rax
je 0x14003a258
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140040d70
mov rbp, rdi
xor ecx, ecx
call fcn.140035e3c
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 0x14003dde0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003ddf6
mov al, 1
jmp 0x14003de56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003de07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003de54
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003a988
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003de54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003de54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003de54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003de56
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140040620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140040648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140040648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1401a1394
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401a1183
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a1183
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a1183
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a1183
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a1183
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a1183
cmp dword [rcx + 0xf8], 0
je 0x1401a1183
mov ecx, ebx
call fcn.1401a12b4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401a0f08
cmp dword [rbp + 0x20], 0
je 0x1401a11d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401a11d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401a111c
Function at 0x1404fef9c
Capabilities:
Parse pe header

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

Function at 0x140502990
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 0x1405027ef
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1405027ef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1405027ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1405027ef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1405027ef
cmp dword [rcx + 0x84], 0xe
jbe 0x1405027ef
cmp dword [rcx + 0xf8], 0
je 0x1405027ef
mov ecx, ebx
call fcn.1405028ac
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.14050267c
nop
cmp dword [rbp + 0x20], 0
je 0x14050283d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140502848
int3
xor r8d, r8d
xor edx, edx
jmp 0x140502780
Function at 0x14050b9f8
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 0x14050ba28
xor eax, eax
jmp 0x14050baeb
mov rbp, rbx
cmp word [rax], si
je 0x14050ba4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14050ba34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14050ba30
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.14050b948
movsxd r14, eax
test eax, eax
jne 0x14050ba8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14050ba21
mov rcx, r14
call fcn.1405065a8
mov rdi, rax
test rax, rax
jne 0x14050baa4
xor ecx, ecx
call fcn.14050656c
jmp 0x14050ba80
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.14050b948
test eax, eax
jne 0x14050bad5
mov rcx, rdi
call fcn.14050656c
jmp 0x14050badf
xor ecx, ecx
call fcn.14050656c
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 0x1405114b4
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.14050756c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14051153e
cmp byte [rbp - 0x21], r15b
je 0x140511539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140511574
call fcn.140507988
test eax, eax
jne 0x140511560
cmp byte [rbp - 0x21], r15b
je 0x140511558
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140511574
cmp byte [rbp - 0x21], r15b
je 0x140511571
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.1405073f0
test eax, eax
jne 0x140511614
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14050756c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1405115b3
cmp byte [rbp - 0x21], r15b
je 0x1405115e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1405115e8
call fcn.140507988
test eax, eax
jne 0x1405115d4
cmp byte [rbp - 0x21], r15b
je 0x1405115cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1405115e8
cmp byte [rbp - 0x21], r15b
je 0x1405115e5
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.1405073f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140511614
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140511617
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140511625
mov rcx, rdi
call fcn.14050656c
cmp byte [rbp + 0x3f], r15b
je 0x140511634
mov rcx, qword [rbp + 0x27]
call fcn.14050656c
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 0x140005df0
Capabilities:
Parse pe header

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