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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r12d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r13, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r14d, r14d
jmp 0x140189ebc
mov word [rax + rdi*2], r15w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r15d, esi
test si, si
jne 0x140189f60
nop dword [rax + rax]
cmp rdx, r13
je 0x14018a026
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r15d, r9b
test r15b, r15b
jns 0x140189f8a
mov r8d, r15d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r15b, 0xdf
jbe 0x140189f80
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r15d, byte [rdx + 2]
shl r10d, 6
and r15d, 0x3f
or r15d, r10d
cmp r9b, 0xf0
jb 0x140189fa8
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r15d, 6
and edx, 0x3f
or edx, r15d
or edx, r8d
mov r15d, edx
cmp r15d, 0xffff
jbe 0x140189f8a
jmp 0x140189fb8
mov word [rbx + 0x10], 0
xor esi, esi
cmp r15w, 0x22
je 0x140189f96
jmp 0x140189ff0
shl r8d, 6
or r8d, r10d
mov r15d, r8d
xor esi, esi
mov rdx, rcx
cmp r15w, 0x22
jne 0x140189ff0
xor r14b, 1
mov r15d, esi
test si, si
je 0x140189ed0
jmp 0x140189f60
shl r8d, 0xc
or r15d, r8d
cmp r15d, 0xffff
jbe 0x140189f8a
lea r8d, [r15 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov word [rbx + 0x10], r15w
mov rdx, rcx
mov esi, r15d
mov r15d, r8d
cmp r15w, 0x22
je 0x140189f96
nop dword [rax]
movzx ecx, r15w
cmp ecx, 0x3b
jne 0x140189fff
test r14b, 1
je 0x14018a022
cmp rdi, qword [rbp - 0x20]
jne 0x140189eb0
lea rcx, [rbp - 0x20]
lea rdx, str.8W__
call fcn.14017e410
mov rax, qword [rbp - 0x18]
jmp 0x140189eb0
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r12b, al
je 0x14018a05f
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.140182540
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x14018a079
jmp 0x14018a08b
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14018a08b
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.140007be0
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14018ac60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, qword [rcx]
lea rax, [0x14018ad40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x14018acef
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 1
jne 0x14018acc0
mov eax, dword [rbp]
mov esi, dword [rbp + 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x14018ad02
xor eax, eax
jmp 0x14018ad32
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x14018ad22
call fcn.1401923e0
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x14018ad32
cmp rcx, 0xb
setne al
xor edx, edx
cmp ecx, 0xb
cmove rsi, rdx
movzx eax, al
mov rdx, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x140191e00
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov dword [rbp - 8], 0xfffffffe

Function at 0x140193500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14019356c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14019356c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14019356c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140193618
cmp byte [rdx], 0xed
jne 0x140193621
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140193621
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x1401935b1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x14019370b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.140186570
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140193730
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x1401936be
test rdi, rdi
je 0x1401936b0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140193648
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x1401936b0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140193640
cmp r10b, 0xe0
jb 0x14019362a
cmp r10b, 0xed
jne 0x14019367f
cmp r8, rax
je 0x1401936b0
lea r8, [r9 + 2]
cmp r8, rax
je 0x1401936b0
cmp byte [r9 + 1], 0x9f
ja 0x1401936ac
add r9, 3
mov r8, r9
jmp 0x140193640
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140193640
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140193640
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1401936de
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.1401b1340
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1401936bb
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.1401b1340
mov rdx, r15
jmp 0x1401935cc
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1401b1340
mov rbx, qword [rsi + 0x10]
jmp 0x140193609
Function at 0x140194820
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x1402a70d8]
cmp eax, 3
jne 0x14019494f
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x140194975
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401a0ca0
test byte [rbp + 0x158], 1
je 0x1401948be
lea rax, [0x1402448c8]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140194940
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140194921
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140194939
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1401b166d
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x140194875
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1401b1730
jmp 0x140194940
Function at 0x140194ac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140194b4a
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x140194b5a
cmp ecx, 2
jne 0x140194b98
cmp eax, 0xf
jbe 0x140194bb2
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140194ba8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140194b9f
cmp eax, 0x1b
jbe 0x140194bca
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140194ba8
lea rax, str.invalid_argumentHd__
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___std_src_sys_common_net.rs
lea r8, [0x1402463d8]
mov edx, 0x39
call fcn.1401b2930
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140246430]
mov edx, 0x3a
call fcn.1401b2930
int3
Function at 0x1401aad90
Capabilities:
Parse pe header

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

Function at 0x1401b1730
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14019c560
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x1401b17b2
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401b17e2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401b17f6
lea rax, [0x1402448c8]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x1401b1816
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140007be0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401b1816
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140007be0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1401d8110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1401dccc0
sub rsp, rax
mov rax, qword [0x140220900]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1401d81d2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401ebba4
cmp rax, 1
jne 0x1401d822e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401d81af
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401d81a3
cmp rcx, 1
jb 0x1401d822e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401d8170
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401d8203
lea rcx, [rsp + 0x80]
call fcn.1401ee7d8
jmp 0x1401d8205
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401dc9f0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401e0180
int3
Function at 0x1401d9160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14022cafe], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x1401d91e5
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14022ca98], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14022ca98], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x14022ca98], rdx
call fcn.1401d6e80
cmp eax, ebx
jne 0x1401d934d
mov byte [0x14022cafe], 1
lea rdx, [0x1401fd928]
mov rcx, rsi
call fcn.1401ed650
test eax, eax
je 0x1401d9270
cmp byte [0x14022cafd], 1
je 0x1401d9270
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d858], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d860], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d868], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d870], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d878], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d880], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d888], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14022d890], rax
mov byte [0x14022cafd], 1
mov r8, qword [0x14022ca98]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1401d9297
inc rax
test cl, cl
jne 0x1401d9280
mov ecx, r9d
jmp 0x1401d929c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1401d92a3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x1401d9308
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x1401d92e5
inc rax
test cl, cl
jne 0x1401d92d0
mov ecx, r9d
jmp 0x1401d92ea
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x1401d92f1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x1401d92c0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1401d9338
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1401d5520
add rdi, 8
sub rbx, 1
jne 0x1401d9320
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.1401e83e4
call fcn.1401e0180
int3
Function at 0x1401dc570
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140220900]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1401dc621
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1401ebba4
cmp rax, 1
jne 0x1401dc657
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1401dc5fd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1401dc5f0
cmp rcx, 1
jb 0x1401dc657
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401dc5c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401dc9f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1401e0180
int3

Function at 0x1401dc870
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140220900]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x1401dc91f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401ebba4
cmp rax, 1
jne 0x1401dc955
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401dc8fc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401dc8f0
cmp rcx, 1
jb 0x1401dc955
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401dc8c0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401dc9f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401e0180
int3

Function at 0x1401dd424
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dd46e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dd46e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dd46e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dd46e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dd46e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401dd470
xor al, al
add rsp, 0x28
ret
Function at 0x1401e17f4
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 0x1401e1863
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e1863
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e1863
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e1863
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e1863
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e1863
cmp dword [rcx + 0xf8], 0
je 0x1401e1863
mov ecx, ebx
call fcn.1401e1914
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.1401e16f0
nop
cmp dword [rbp + 0x20], 0
je 0x1401e18b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401e18bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401e17f4

Function at 0x1401e19f8
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 0x1401e1863
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e1863
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e1863
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e1863
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e1863
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e1863
cmp dword [rcx + 0xf8], 0
je 0x1401e1863
mov ecx, ebx
call fcn.1401e1914
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.1401e16f0
nop
cmp dword [rbp + 0x20], 0
je 0x1401e18b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401e18bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401e17f4
Function at 0x1401f3730
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 0x1401f37b7
mov rsi, rbx
cmp word [rax], bp
je 0x1401f3776
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401f3760
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401f375c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401eecb0
mov rdi, rax
test rax, rax
je 0x1401f37a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f9ab0
mov rbp, rdi
xor ecx, ecx
call fcn.1401ef7f8
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 0x1401f5ebc
Capabilities:
Get file size

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

Function at 0x1401f9890
Capabilities:
Parse pe header

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