joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001490
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x32]
lea rdi, [rbx + 0x10]
movsx eax, word [rsp + 0x36]
sub eax, ecx
mov ecx, 0xfffffff5
sub eax, dword [rdi]
inc eax
cdq
sub eax, edx
movsx edx, word [rsp + 0x34]
sar eax, 1
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x38]
sub eax, edx
inc eax
cdq
sub eax, edx
sar eax, 1
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000151d
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003850
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140002030
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002051
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000207e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002080
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400020d9
test ecx, ecx
jle 0x1400020b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400020d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400020d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
Function at 0x140002690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400026bd
xor eax, eax
jmp 0x140002829
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400026f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400026f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002829
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000281c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000273a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002765
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002821
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400027d4
sub eax, 1
je 0x1400027d4
cmp eax, 2
jne 0x14000281c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002821
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002802
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000281c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002821
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003850
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002a70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002b43
cmp byte [rcx + 0x71], 0
je 0x140002b43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002b3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002b04
sub eax, 1
je 0x140002b08
cmp eax, 2
jne 0x140002b3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003850
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002b36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002b3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002aec
xor al, al
jmp 0x140002aec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003850
add rsp, 0x60
pop rbx
ret

Function at 0x1400041d0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

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

Function at 0x14014fd2f
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rsi
lea rdi, [0x14016c9a0]
lea rsp, [rsp + 8]
mov esi, 0xb3111383
xor si, si
setle sil
movzx esi, byte [rax]
push 0x1180023c
xor esi, edx
and esi, 0xff
push 0xffffffff94b403b7
neg byte [rsp + 4]
mov esi, dword [rdi + rsi*4]
shr edx, 8
mov dword [rsp + 8], 0x439c0f8f
xor edx, esi
mov byte [rsp + 0xa], 0xb9
rol word [rsp + 0xe], 3
inc rax
xor edx, 0x943aba80
push 0xffffffffb527e532
ror qword [rsp + 0xd], 0xa9
dec rbx
lea rsp, [rsp + 0x18]
jne 0x14014fd40
pop rsi
call fcn.14016f240
Function at 0x140084100
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400e0040]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [0x1400d1844]
mov rcx, rsi
call fcn.140095b80
xor ebp, ebp
mov qword [0x1400eaec0], rax
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x50
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400b8dec
cmp rax, 1
jne 0x140084238
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14008418f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140084183
cmp rcx, 1
jb 0x140084238
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 0x140084150
lea rdx, [0x1400d184c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140095b80
mov cl, 1
mov qword [0x1400eaed8], rax
call fcn.140096e40
mov rdx, rax
lea rcx, str.PYTHONHOME
call fcn.140095ca0
mov cl, 1
call fcn.140096e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python38.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a90e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400ad6c0
int3
Function at 0x140095b80
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.1400c5390
sub rsp, rax
mov rax, qword [0x1400e0040]
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 word [rsp + 0x30], bp
lea edi, [rbp + 0x28]
test al, al
je 0x140095c32
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400b8dec
cmp rax, 1
jne 0x140095c8e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140095c0f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140095c03
cmp rcx, 1
jb 0x140095c8e
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 0x140095bd0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140095c63
lea rcx, [rsp + 0x80]
call fcn.1400ba310
jmp 0x140095c65
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400a90e0
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.1400ad6c0
int3

Function at 0x140095ca0
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 [0x1400e0040]
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
lea edi, [r14 + 0x28]
test al, al
je 0x140095d51
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.1400b8dec
cmp rax, 1
jne 0x140095d87
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140095d2d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140095d20
cmp rcx, 1
jb 0x140095d87
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 0x140095cf0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a90e0
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.1400ad6c0
int3
Function at 0x140095d90
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 [0x1400e0040]
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
lea edi, [rbp + 0x28]
test al, al
je 0x140095e3f
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.1400b8dec
cmp rax, 1
jne 0x140095e75
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140095e1c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140095e10
cmp rcx, 1
jb 0x140095e75
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 0x140095de0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a90e0
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.1400ad6c0
int3
Function at 0x1400a4990
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 [0x1400e851a], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x1400a4a12
mov edx, 3
xor ecx, ecx
lea r8d, [rdx + 7]
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 [0x1400e7ae0], rax
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1400e7ae0], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1400e7ae0], rdx
call fcn.1400a2eb0
cmp eax, ebx
jne 0x1400a4bbe
mov byte [0x1400e851a], 1
lea rdx, [0x1400d1520]
mov rcx, rbp
call fcn.1400c5550
test eax, eax
je 0x1400a4ad5
cmp byte [0x1400e851b], 1
je 0x1400a4ad5
mov qword [rsp + 0x30], rdi
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eb248], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eb708], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eaf78], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eaee0], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eb750], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eaff8], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eb710], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x1400eb720], rax
mov ebx, 0xfffffffb
lea rdi, [0x1400eb7a0]
nop
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 0x1400a4ab0
mov rdi, qword [rsp + 0x30]
mov byte [0x1400e851b], 1
mov r8, qword [0x1400e7ae0]
mov rax, rbp
mov rdx, r8
sub rdx, rbp
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1400a4afc
inc rax
test cl, cl
jne 0x1400a4ae5
mov ecx, r9d
jmp 0x1400a4b01
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1400a4b10
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x1400a4b78
nop dword [rax]
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 0x1400a4b55
inc rax
test cl, cl
jne 0x1400a4b40
mov ecx, r9d
jmp 0x1400a4b5a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x1400a4b61
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x1400a4b30
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1400a4ba8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.1400a3b60
add rsi, 8
sub rbx, 1
jne 0x1400a4b90
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.1400b5914
call fcn.1400ad6c0
int3
Function at 0x1400a9ab0
Capabilities:
Parse pe header

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

Function at 0x1400ada20
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 0x1400ad88b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad88b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad88b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad88b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad88b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad88b
cmp dword [rcx + 0xf8], 0
je 0x1400ad88b
mov ecx, ebx
call fcn.1400ad93c
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.1400ad718
nop
cmp dword [rbp + 0x20], 0
je 0x1400ad8d9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ad8e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ad81c
Function at 0x1400bf0c4
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 0x1400bf14b
mov rsi, rbx
cmp word [rax], bp
je 0x1400bf10a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bf0f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bf0f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400bca64
mov rdi, rax
test rax, rax
je 0x1400bf138
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c59f0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ba97c
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 0x1400c1850
Capabilities:
Get file size

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

Function at 0x1400c52a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c52c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c52c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180742058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807421df
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 0x180742089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18074206f
add dl, dl
jne 0x180742096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807420f6
xor eax, eax
add dl, dl
jne 0x1807420a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807421ad
add dl, dl
jne 0x1807420b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807420c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807420d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807420dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807420ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18074207e
mov eax, 1
add dl, dl
jne 0x180742106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180742113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807420fb
sub eax, ebx
mov ebx, 1
jne 0x18074214c
mov ecx, 1
add dl, dl
jne 0x18074212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18074213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180742123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180742168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180742175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18074215d
cmp eax, 0x7d00
jae 0x18074219b
cmp eax, 0x500
jb 0x180742196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074207e
cmp eax, 0x7f
ja 0x18074219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807421d2
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 0x18074207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20