joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1800441b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x18007f0d4]
mov rbx, rcx
test esi, esi
jle 0x1800442e0
mov rax, qword [0x18007f0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1800441fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x180044285
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1800441e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x180044302
mov rax, qword [0x18007f0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x18007f0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800442e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x18004427e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x180044290
add dword [0x18007f0d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x18007f0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004427e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x180044208
mov rax, qword [0x18007f0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x180044690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x18007f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x18007f0e0]
test rbx, rbx
je 0x1800446ec
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1800446e3
test eax, eax
jne 0x1800446e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1800446c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x180044900
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x180044918
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x180044920
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x180044930
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x18004497d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x180044974
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x18004497f
add rax, 0x28
cmp rax, r9
jne 0x180044960
xor eax, eax
ret

Function at 0x180044980
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x180044a10
mov rdx, qword [0x180077c00]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1800449fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1800449fe
cmp word [rax + 0x18], 0x20b
jne 0x1800449fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x180044a10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1800449e9
add rbx, 0x28
cmp rbx, rdi
je 0x180044a10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1800449e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x180044a20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x180077c00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x180044a40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x180044a48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180044a40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x180044a9d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x180044a94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x180044a40
add rax, 0x28
cmp rax, r9
jne 0x180044a80
xor eax, eax
ret

Function at 0x180044aa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x180077c00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x180044abf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x180044ac8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x180044abf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x180044ae0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x180077c00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x180044b00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x180044b08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x180044b00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x180044b50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x180044b47
test rcx, rcx
je 0x180044b00
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x180044b38
xor eax, eax
ret

Function at 0x180044b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x180077c00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x180044b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x180044b88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x180044ba0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x180077c00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x180044bc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x180044bc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180044bc0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x180044bc0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x180044c14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x180044c20
add rdx, 0x28
cmp r9, rdx
jne 0x180044c00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x180044c30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x180077c00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x180044c52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x180044c60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180044c52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x180044c52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x180044c52
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x180044cb5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x180044cc8
add rdx, 0x28
cmp r10, rdx
jne 0x180044ca0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x180044cd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x180044ce7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x180044cbe
test ecx, ecx
jg 0x180044cd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180052610
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, dword [rcx + 0x60]
mov ebx, dword [rcx + 0x5c]
mov r8, rcx
test r9d, r9d
jle 0x1800526d8
mov r10, qword [0x180077bc0]
mov edx, dword [rcx + 0x288]
movzx r11d, bl
xor ecx, ecx
nop word [rax + rax]
mov eax, edx
add ecx, 1
shl edx, 8
shr eax, 0x18
xor eax, r11d
xor edx, dword [r10 + rax*4]
cmp ecx, r9d
jne 0x180052640
mov eax, ebx
mov dword [r8 + 0x288], edx
mov byte [r8 + rax + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
add rax, qword [r8 + 0x40]
cmp ecx, 2
je 0x1800526d0
cmp ecx, 3
je 0x180052690
cmp ecx, 1
jne 0x1800526e2
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
jmp 0x1800526a6
mov eax, ebx
mov byte [rcx + rax + 0x80], 1
sub r9d, 4
movsxd r9, r9d
mov byte [r8 + r9 + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
movzx ebx, byte [r8 + 0x60]
mov rcx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
lea edx, [rbx - 4]
cdqe
mov byte [rcx + rax], dl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret

Function at 0x1800561d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
mov eax, ecx
mov r9, rdx
not eax
cmp r8, 3
jbe 0x180056251
lea rbx, [r8 - 4]
mov rcx, r9
lea r10, [0x180077d80]
mov rdx, rbx
shr rdx, 2
lea r11, [r9 + rdx*4 + 4]
nop dword [rax + rax]
mov edx, eax
xor al, byte [rcx]
add rcx, 4
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [rcx - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [rcx - 2]
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [rcx - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
cmp rcx, r11
jne 0x180056200
and rbx, 0xfffffffffffffffc
and r8d, 3
lea r9, [r9 + rbx + 4]
test r8, r8
je 0x180056297
mov ecx, eax
xor al, byte [r9]
lea rdx, [0x180077d80]
movzx eax, al
shr ecx, 8
xor ecx, dword [rdx + rax*4]
mov eax, ecx
cmp r8, 1
je 0x180056297
xor al, byte [r9 + 1]
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, ecx
cmp r8, 2
je 0x180056297
xor al, byte [r9 + 2]
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, ecx
not eax
pop rbx
ret
Function at 0x180058580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov r8d, 0x773
lea rdx, str.miniz.c
lea rcx, str.d__m_pPut_buf_func
call qword [sym.imp.msvcrt.dll__assert]
nop
nop
Function at 0x140619058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406191df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140619089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061906f
add dl, dl
jne 0x140619096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406190f6
xor eax, eax
add dl, dl
jne 0x1406190a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406191ad
add dl, dl
jne 0x1406190b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406190c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406190d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406190dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406190ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14061907e
mov eax, 1
add dl, dl
jne 0x140619106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140619113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406190fb
sub eax, ebx
mov ebx, 1
jne 0x14061914c
mov ecx, 1
add dl, dl
jne 0x14061912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140619123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140619168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140619175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061915d
cmp eax, 0x7d00
jae 0x14061919b
cmp eax, 0x500
jb 0x140619196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061907e
cmp eax, 0x7f
ja 0x14061919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406191d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14061907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14005a270
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005a27d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005a28d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005a275
lea eax, [rcx + 1]
jmp 0x14005a29b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005a2ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005a294
sub eax, 3
jb 0x14005a2ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005a31d
sar eax, 1
movsxd rbp, eax
jb 0x14005a304
jmp 0x14005a2dc
add ebx, ebx
jne 0x14005a2da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a304
inc ecx
add ebx, ebx
jne 0x14005a2ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a304
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005a2fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005a2ec
add ecx, 2
jmp 0x14005a309
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005a232
jmp 0x14005a27d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2b200
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005a369
cmp rsi, rcx
jae 0x14005a371
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005a350
cmp al, 0x8f
ja 0x14005a350
cmp byte [rsi - 2], 0xf
je 0x14005a356
sub al, 0xe8
cmp al, 1
ja 0x14005a33a
cmp rsi, rcx
jae 0x14005a371
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005a340
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005a371
lodsb al, byte [rsi]
jmp 0x14005a350
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005a3ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68fb0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005a37e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005a3c8
mov qword [rbx], rax
add rbx, 8
jmp 0x14005a39e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005a408
cmp al, 0xef
ja 0x14005a3fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005a3da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005a3e9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005a45c
sub rsp, 0xffffffffffffff80
jmp 0x14000c380
Function at 0x1400273d0
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.14002ba00
sub rsp, rax
mov rax, qword [0x140069000]
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 0x140027492
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.14003a9d4
cmp rax, 1
jne 0x1400274ee
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002746f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140027463
cmp rcx, 1
jb 0x1400274ee
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 0x140027430
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400274c3
lea rcx, [rsp + 0x80]
call fcn.14003d450
jmp 0x1400274c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002b730
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.14002eef0
int3
Function at 0x140028360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
cmp byte [0x14006aeee], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x1400283e6
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 [0x14006acf0], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14006acf0], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x14006acf0], rdx
call fcn.140026270
cmp eax, ebx
jne 0x14002858e
mov byte [0x14006aeee], 1
lea rdx, [0x14004b1f8]
mov rcx, rbp
call fcn.14003a480
test eax, eax
je 0x1400284a8
cmp byte [0x14006aeed], 1
je 0x1400284a8
mov qword [rsp + 0x30], rdi
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc10], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc18], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc20], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc28], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc30], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc38], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc40], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x14006bc48], rax
mov ebx, 0xfffffffb
lea rdi, [0x14006d000]
mov ecx, ebx
call qword [sym.imp.python38.dll_PyLong_FromLong]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
cmp ebx, 0x101
jl 0x140028483
mov rdi, qword [rsp + 0x30]
mov byte [0x14006aeed], 1
mov r8, qword [0x14006acf0]
mov rax, rbp
mov rdx, r8
sub rdx, rbp
nop dword [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1400284d7
inc rax
test cl, cl
jne 0x1400284c0
mov ecx, r9d
jmp 0x1400284dc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1400284e3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140028548
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140028525
inc rax
test cl, cl
jne 0x140028510
mov ecx, r9d
jmp 0x14002852a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140028531
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140028500
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140028578
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140024b90
add rsi, 8
sub rbx, 1
jne 0x140028560
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140037194
call fcn.14002eef0
int3
Function at 0x14002b320
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 [0x140069000]
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 0x14002b3d1
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.14003a9d4
cmp rax, 1
jne 0x14002b407
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14002b3ad
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14002b3a0
cmp rcx, 1
jb 0x14002b407
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 0x14002b370
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002b730
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.14002eef0
int3

Function at 0x14002b5b0
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 [0x140069000]
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 0x14002b65f
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.14003a9d4
cmp rax, 1
jne 0x14002b695
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002b63c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14002b630
cmp rcx, 1
jb 0x14002b695
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 0x14002b600
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002b730
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.14002eef0
int3

Function at 0x14002c198
Capabilities:
Parse pe header

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