joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c539
Capabilities:
Encode data using xor
Hash data using crc32b
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rcx
mov ebx, edx
test rcx, rcx
jne 0x14004c560
mov edx, 4
mov ecx, 0x100
call sub.msvcrt.dll_vfprintf
test rax, rax
je 0x14004c5f3
test ebx, ebx
je 0x14004c5ab
mov r9d, 8
mov r8d, 1
mov edx, 0x80000000
lea ecx, [rdx + rdx]
sar edx, 0x1f
and edx, 0x4c11db7
xor edx, ecx
mov ecx, r8d
lea r10, [rax + rcx*4]
xor ecx, ecx
cmp ecx, r8d
jae 0x14004c5a1
mov r11d, dword [rax + rcx*4]
xor r11d, edx
mov dword [r10 + rcx*4], r11d
inc rcx
jmp 0x14004c58c
add r8d, r8d
dec r9d
jne 0x14004c575
jmp 0x14004c5f3
xor edx, edx
mov r9d, 8
mov r8d, pe_nt_image_headers64
mov dword [rax], edx
mov edx, 1
mov ecx, edx
shr ecx, 1
and edx, 1
je 0x14004c5ce
mov edx, 0xedb88320
xor edx, ecx
xor ecx, ecx
mov ebx, dword [rax + rcx*4]
lea r11d, [rcx + r8]
lea ecx, [r11 + r8]
xor ebx, edx
mov dword [rax + r11*4], ebx
cmp ecx, 0xff
jbe 0x14004c5d2
shr r8d, 1
dec r9d
jne 0x14004c5c0
add rsp, 0x20
pop rbx
ret
Function at 0x140061930
Capabilities:
Set file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp byte [rcx], 0
mov rdi, rcx
jne 0x140061944
xor ebx, ebx
jmp 0x1400619a1
xor eax, eax
xor edx, edx
mov r8, rcx
mov rbp, qword [0x14011c6a0]
mov qword [rsp + 0x20], rdx
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], eax
call rbp
mov esi, eax
cmp eax, 1
jle 0x140061940
movsxd rcx, eax
mov edx, 2
call sub.msvcrt.dll_vfprintf
mov rbx, rax
test rax, rax
je 0x140061940
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], esi
mov r8, rdi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call rbp
cmp eax, esi
je 0x1400619a5
xor eax, eax
jmp 0x140061a13
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test rax, rax
jne 0x140061a13
mov rsi, qword [0x1400b5f50]
cmp word [rsi], 0x3f
jbe 0x1400619ce
lea rcx, str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.140038472
jmp 0x1400619a1
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [0x14011c648]
test rax, rax
je 0x1400619fa
movzx edx, word [rsi]
lea ecx, [rdx + 1]
mov word [rsi], cx
mov rcx, qword [0x1400b5f40]
mov qword [rcx + rdx*8], rax
jmp 0x140061a13
call fcn.14003893c
mov rdx, rbx
lea rcx, str.Unable_to_load__S.dll:__s
mov r8, rax
call fcn.140038472
jmp 0x1400619a1
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.1400796c8
mov rax, qword [rsp + 0x38]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140064c6d
Capabilities:
Hash data using sha512

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov r14d, pe_nt_image_headers64
movabs rax, 0x6a09e667f3bcc908
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
xor r8d, r8d
mov dword [rsp + 0x68], ecx
mov ebp, edx
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], r8
xor edx, edx
lea r13, [rsp + 0x6c]
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 0x30], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rsp + 0x38], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x40], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x48], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x50], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x58], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x60], rax
mov edi, edx
test ebp, ebp
je 0x140064d98
test edx, edx
jne 0x140064d4a
cmp ebp, 0x7f
jbe 0x140064d4a
mov rdx, rsi
mov rcx, r12
sub rsi, 0xffffffffffffff80
add ebp, 0xffffff80
call fcn.140064770
add qword [rsp + 0x20], 0x400
jmp 0x140064d94
mov r8d, r14d
lea rax, [r13 + rdi]
sub r8d, edx
mov rdi, rax
cmp r8d, ebp
cmova r8d, ebp
mov ecx, r8d
sub ebp, r8d
rep movsb byte [rdi], byte [rsi]
mov edx, dword [rsp + 0x68]
add edx, r8d
mov dword [rsp + 0x68], edx
cmp edx, 0x80
jne 0x140064d1e
mov rdx, r13
mov rcx, r12
call fcn.140064770
xor edx, edx
add qword [rsp + 0x20], 0x400
mov dword [rsp + 0x68], edx
xor edx, edx
jmp 0x140064d1e
mov rax, qword [rsp + 0x20]
mov byte [rsp + rdi + 0x6c], pe_nt_image_headers64
lea rsi, [rax + rdi*8]
lea eax, [rdx + 1]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x68], eax
cmp eax, 0x70
jbe 0x140064e08
mov ecx, eax
mov r8d, eax
xor r9d, r9d
add rcx, r12
inc rcx
cmp r8d, 0x7f
ja 0x140064dd7
mov byte [rcx + 0x4b], 0
inc r8d
mov r9b, 1
jmp 0x140064dc2
test r9b, r9b
je 0x140064df3
mov ecx, 0x7f
sub ecx, edx
xor edx, edx
cmp eax, 0x80
cmova ecx, edx
add ecx, eax
mov dword [rsp + 0x68], ecx
lea rdx, [rsp + 0x6c]
mov rcx, r12
call fcn.140064770
xor eax, eax
mov dword [rsp + 0x68], eax
xor eax, eax
mov edx, eax
xor ecx, ecx
add rdx, r12
inc rdx
cmp eax, 0x78
je 0x140064e21
mov byte [rdx + 0x4b], 0
inc eax
mov cl, 1
jmp 0x140064e0f
test cl, cl
je 0x140064e2d
mov dword [rsp + 0x68], 0x78
lea rdx, [rsp + 0x6c]
mov rcx, r12
bswap rsi
mov qword [rsp + 0xe4], rsi
call fcn.140064770
xor eax, eax
lea r8, [rsp + 0x28]
mov rdx, qword [r8 + rax]
mov rcx, rdx
mov byte [rbx + rax + 6], dh
shr rcx, 0x38
mov byte [rbx + rax + 7], dl
mov byte [rbx + rax], cl
mov rcx, rdx
shr rcx, 0x30
mov byte [rbx + rax + 1], cl
mov rcx, rdx
shr rcx, 0x28
mov byte [rbx + rax + 2], cl
mov rcx, rdx
shr rcx, 0x20
mov byte [rbx + rax + 3], cl
mov rcx, rdx
shr rcx, 0x18
mov byte [rbx + rax + 4], cl
mov rcx, rdx
shr rcx, 0x10
mov byte [rbx + rax + 5], cl
add rax, 8
cmp rax, 0x40
jne 0x140064e4c
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14006762a
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x1400ab6e0]
jmp fcn.140067550
Function at 0x14006ea95
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, r8
cmp rcx, 0xffffffffffffffff
je 0x14006eb47
test rdx, rdx
je 0x14006eb47
mov rax, qword [rdx]
test rax, rax
js 0x14006eb47
test r8, r8
je 0x14006eb47
mov qword [rsp + 0x48], rax
xor eax, eax
mov r9d, 8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov edx, 0x90073
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
call qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
cmp eax, 0x26
je 0x14006eb4c
cmp eax, 0xea
je 0x14006eb19
test eax, eax
jne 0x14006eb37
mov rax, qword [rsp + 0x58]
mov qword [rbx], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
xor eax, eax
jmp 0x14006eb4c
lea rbx, str.NtfsSectGetFileVcnExtent__:_Unknown_status_
mov qword [0x140119fe0], rbx
jmp 0x14006eb4c
mov eax, 0x57
add rsp, 0x70
pop rbx
ret

Function at 0x14006ec82
Capabilities:
Get file size

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rsi, rdx
test rcx, rcx
je 0x14006edda
test rdx, rdx
je 0x14006edda
mov rax, qword [rdx + 8]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14006ecca
lea rbp, [rsp + 0x50]
mov rcx, rbp
call fcn.14006ebc6
test eax, eax
je 0x14006ecf0
jmp 0x14006edc4
call fcn.14006e9e0
mov ebx, eax
test eax, eax
jne 0x14006eddf
mov rax, qword [rsi + 8]
mov ebx, 6
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x14006ecb4
jmp 0x14006eddf
lea rax, [rsp + 0x48]
mov rcx, rdi
lea rdx, [rsi + 0x14]
lea r9, [rsp + 0x44]
lea r8, [rsi + 0x10]
mov qword [rsp + 0x20], rax
call qword [rsp + 0x68]
mov r12, qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov edi, eax
call r12
mov ebx, eax
test edi, edi
jne 0x14006ed33
lea rax, str.GetDiskFreeSpace___failed_
mov qword [0x140119fe0], rax
jmp 0x14006edb6
xor eax, eax
mov rcx, qword [rsi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov edx, 0x560000
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov edi, eax
call r12
mov ebx, eax
test edi, edi
je 0x14006ed93
cmp dword [rsp + 0x70], 1
jne 0x14006ed9c
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsi + 0x10]
cqo
idiv rcx
mov qword [rsi + 0x18], rax
jmp 0x14006edae
lea rax, str.Couldnt_fetch_volume_disk_extent_s__
jmp 0x14006eda3
lea rax, str.Unsupported_number_of_volume_disk_extents_
mov qword [0x140119fe0], rax
test ebx, ebx
jne 0x14006edb6
mov dword [rsi], 0x20
xor ebx, ebx
mov rcx, rbp
call fcn.14006eb90
test ebx, ebx
je 0x14006eddf
jmp 0x14006edc6
mov ebx, eax
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
mov qword [rsi + 8], 0xffffffffffffffff
jmp 0x14006eddf
mov ebx, 0x57
mov eax, ebx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400768e0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__wmkdir
cmp rax, 1
sbb eax, eax
add rsp, 0x28
ret
push rsi
push rbx
sub rsp, 0x28
mov rdx, qword [0x1400b5ff0]
mov rax, qword [rdx]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140076930
test ecx, ecx
je 0x14007691b
mov eax, ecx
sub ecx, 1
lea rbx, [rdx + rax*8]
sub rax, rcx
lea rsi, [rdx + rax*8 - 8]
nop dword [rax]
call qword [rbx]
sub rbx, 8
cmp rbx, rsi
jne 0x140076910
lea rcx, [0x1400768a0]
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140001410
xor eax, eax
nop word [rax + rax]
lea r8d, [rax + 1]
mov ecx, eax
cmp qword [rdx + r8*8], 0
mov rax, r8
jne 0x140076938
jmp 0x1400768f7

Function at 0x140076950
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x14011aa80]
test eax, eax
je 0x140076960
ret
mov dword [0x14011aa80], 1
jmp fcn.1400768e0

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

Disassembly:
mov rdx, qword [0x1400b6000]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140077670
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140077678
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140077670
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400776cd
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 0x1400776c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140077670
add rax, 0x28
cmp rax, r9
jne 0x1400776b0
xor eax, eax
ret

Function at 0x1400776d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b6000]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400776ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400776f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400776ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140077790
Capabilities:
Parse pe header

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

Function at 0x140078f00
Capabilities:
Set file attributes

Disassembly:
in al, dx
and byte [rax - 0x77], cl
retf
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140085f70]
mov rsi, rdx
lea rdx, [0x140078e80]
mov rbx, rcx
cmp rax, rdx
je 0x140078f30
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, [0x1400b5c80]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rdx, str._localtime64_s
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
lea rdx, [0x140078e00]
mov rcx, rbx
test rax, rax
cmove rax, rdx
mov rdx, rsi
mov qword [0x140085f70], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
Function at 0x140079080
Capabilities:
Set file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140085f80]
mov rsi, rdx
lea rdx, [0x140079000]
mov rbx, rcx
cmp rax, rdx
je 0x1400790b0
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, [0x1400b5cb0]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rdx, str._gmtime64_s
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
lea rdx, [0x140078f80]
mov rcx, rbx
test rax, rax
cmove rax, rdx
mov rdx, rsi
mov qword [0x140085f80], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax

Function at 0x140079990
Capabilities:
Set file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x140085fc0]
mov rsi, rdx
lea rdx, [0x140079910]
mov rbx, rcx
cmp rax, rdx
je 0x1400799c0
mov rdx, rsi
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp rax
mov qword [rsp + 0x28], r8
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rdx, str.asctime_s
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
lea rdx, [0x140079890]
mov r8, qword [rsp + 0x28]
mov rcx, rbx
test rax, rax
cmove rax, rdx
mov rdx, rsi
mov qword [0x140085fc0], rax
add rsp, 0x38
pop rbx
pop rsi
jmp rax
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x1400151b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001125d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140011810
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400220f4]
call fcn.140011361
nop
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x8e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
mov r8d, 0x8e8
lea rdx, section..data
mov rcx, qword [rbp + 8]
call fcn.1400111ae
nop
call qword [rbp + 8]
nop
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012ce0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d00
xor al, al
jmp 0x140012d81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d13
xor al, al
jmp 0x140012d81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d3d
xor al, al
jmp 0x140012d81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d51
xor al, al
jmp 0x140012d81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d63
xor al, al
jmp 0x140012d81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d7f
xor al, al
jmp 0x140012d81
mov al, 1
add rsp, 0x38
ret
Function at 0x140011ae0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140011b00
mov ecx, 7
call fcn.140011302
nop
mov byte [rsp + 0x20], 0
call fcn.140011316
mov byte [rsp + 0x21], al
cmp dword [0x14001cc90], 1
jne 0x140011b24
mov ecx, 7
call fcn.140011302
nop
jmp 0x140011b7c
cmp dword [0x14001cc90], 0
jne 0x140011b77
mov dword [0x14001cc90], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.140011195
test eax, eax
je 0x140011b58
mov eax, 0xff
jmp 0x140011c81
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.14001130c
mov dword [0x14001cc90], 2
jmp 0x140011b7c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112f3
call fcn.14001128a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011bd9
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011bd9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011c0d
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011c0d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011343
nop
call fcn.140011d30
mov dword [rsp + 0x28], eax
call fcn.140011267
movzx eax, al
test eax, eax
jne 0x140011c2c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011c3b
call fcn.14001134d
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140011c81
add rsp, 0x68
ret
Function at 0x140006af0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006b20
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006b1f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006b25
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006b1f
mov eax, 0
jmp 0x140006b1f

Function at 0x1400071a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007150
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140590530]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400113ff
mov rcx, r9
call fcn.140011260
test eax, eax
je 0x1400113ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400113fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400113f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400113ff
add rdx, 0x28
cmp rdx, r9
jne 0x1400113e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x100411cb0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rdi
invalid
fisubr word [rbx]
je 0x100411cdc
sub esi, dword [rax + rbp + 0x1b]
mov al, 0x14
scasd eax, dword [rdi]
adc al, 0xa7
sbb esi, dword [rax - 0x58eb50ec]
pop rsp
push rbx
movabs eax, dword [0x2f1f0938009a7ca0]
xchg dword [rcx + rdx*8 - 0x78], edi
cld
movabs al, byte [0x872f1f0938009a7c]
jl 0x100411c99
mov ah, bh
add byte [rcx], 0x79
xor ebx, dword [rdi]
invalid
Function at 0x1400635d0
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.140067d50
sub rsp, rax
mov rax, qword [0x1400a6cc0]
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 0x140063692
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.140076cb4
cmp rax, 1
jne 0x1400636ee
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14006366f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140063663
cmp rcx, 1
jb 0x1400636ee
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 0x140063630
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400636c3
lea rcx, [rsp + 0x80]
call fcn.140079864
jmp 0x1400636c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140067a80
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.14006b210
int3
Function at 0x140064560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x1400aa506], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x1400645f0
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 [0x1400aa310], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x1400aa310], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x1400aa310], rdi
call fcn.140062460
cmp eax, ebx
jne 0x140064793
mov byte [0x1400aa506], 1
jmp 0x1400645f7
mov rdi, qword [0x1400aa310]
lea rdx, [0x140088088]
mov rcx, rbp
call fcn.140076760
test eax, eax
je 0x1400646b1
cmp byte [0x1400aa505], 1
je 0x1400646b1
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab230], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab238], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab240], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab248], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab250], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab258], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab260], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x1400ab268], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x1400aa310]
mov byte [0x1400aa505], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xdc0
mov qword [0x1400ac600], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1400646d7
inc rax
test cl, cl
jne 0x1400646c0
mov ecx, r9d
jmp 0x1400646dc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1400646e3
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140064748
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 0x140064725
inc rax
test cl, cl
jne 0x140064710
mov ecx, r9d
jmp 0x14006472a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140064731
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140064700
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140064778
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140060d90
add rsi, 8
sub rbx, 1
jne 0x140064760
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140073474
call fcn.14006b210
int3