joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012dd4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
lea rcx, str.crypt32.dll
call fcn.14000a7b8
mov rdi, rax
test rax, rax
je 0x140012ed3
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertGetNameStringW
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140016b10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400231d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x18], 0
mov r14, rdx
mov rsi, rcx
je 0x140016c99
cmp byte [rcx + 0x8c], 0
mov ebp, dword [rdx + 0x10]
je 0x140016c78
mov edx, dword [rcx + 0x98]
mov ecx, dword [rcx + 0x84]
lea eax, [rdx + rbp]
cmp eax, ecx
jle 0x140016c78
mov ebx, dword [rsi + 0x88]
cmp ebx, 1
jne 0x140016bcc
sub ecx, edx
movsxd rbx, ecx
mov rcx, rbx
call fcn.1400177b4
mov r8, rbx
mov edx, 0x20
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsi + 0x18]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call fcn.140017520
mov rcx, qword [rsi + 0x18]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
and dword [rsi + 0x98], 0
jmp 0x140016c78
jle 0x140016c78
mov rcx, rsi
call fcn.14001622c
mov rcx, rsi
call fcn.1400165c0
test al, al
je 0x140016c78
cmp dword [rsi + 0x9c], ebx
jle 0x140016c78
lea rdi, [rsi + 0xa8]
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140016c78
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x28]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x38], 0
call fcn.14000d4d0
mov rdx, rbx
mov rcx, rdi
call fcn.140016178
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140016c78
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016c73
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016c73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017520
cmp qword [r14 + 0x18], 0x10
jb 0x140016c82
mov r14, qword [r14]
mov r9b, 1
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call fcn.140016f9c
add dword [rsi + 0x98], ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140017500
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140016f9c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
movsxd r8, r8d
mov bl, r9b
mov rdi, rcx
mov r9, qword [rcx + 0x18]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test bl, bl
je 0x140016fd2
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017064
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.140017038
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1400170d8
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400170d8
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400170bc
mov eax, dword [rbx + 0x10]
mov edi, 1
mov dword [0x140024460], eax
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400170dd
mov rcx, rdi
call fcn.140017134
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [rsp + 0x48]
jmp 0x1400170dd
mov edi, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140017127
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140017127
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax]
call qword [0x14001a640]
or ecx, 0xffffffff
lock xadd dword [rbx + 0xc], ecx
cmp ecx, 1
jne 0x140017127
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x14001a640]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140017264
Capabilities:
Create thread
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x140017340]
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rax
test rax, rax
je 0x140017321
mov rax, qword [rdi]
mov rdx, rsi
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.140009130
mov rax, qword [rdi]
xor ecx, ecx
mov ebp, dword [rax + 0x10]
lea rax, [0x140024390]
cmp dword [rax], 0
je 0x1400172ed
inc ecx
lea rdx, [0x1400244a0]
add rax, 0x44
cmp rax, rdx
jl 0x1400172d4
jmp 0x140017312
movsxd rax, ecx
lea r14, [0x140024350]
imul rbx, rax, 0x44
mov r8, rsi
mov edx, 0x40
lea rcx, [rbx + r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [rbx + r14 + 0x40], ebp
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0xa0
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
call dbg.__main
movabs rax, 0x6e696874656d6f53
mov qword [rbp - 0x2a], rax
mov word [rbp - 0x22], 0x67
movabs rax, 0x20726568746f6e41
mov qword [rbp - 0x37], rax
mov dword [rbp - 0x2f], 0x74736574
mov byte [rbp - 0x2b], 0
movabs rax, 0x20726568746f6e41
movabs rdx, 0x6e696874656d6f73
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov word [rbp - 0x40], 0x67
movabs rbx, 0x642e323372657355
mov qword [rbp - 0x5b], rbx
mov word [rbp - 0x53], 0x6c6c
mov byte [rbp - 0x51], 0
lea rax, [rbp - 0x5b]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
movabs rsi, 0x426567617373654d
mov qword [rbp - 0x67], rsi
mov dword [rbp - 0x5f], 0x41786f
lea rdx, [rbp - 0x67]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x72], rbx
mov word [rbp - 0x6a], 0x6c6c
mov byte [rbp - 0x68], 0
lea rax, [rbp - 0x72]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x7e], rsi
mov dword [rbp - 0x76], 0x41786f
lea rdx, [rbp - 0x7e]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x2a]
mov rax, qword [rbp - 0x10]
mov r9d, 0
mov r8, rdx
lea rdx, str.Test
mov ecx, 0
call rax
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x37]
mov r10, qword [rbp - 0x20]
mov r9d, 0
mov r8, rdx
mov rdx, rax
mov ecx, 0
call r10
mov eax, 0
add rsp, 0xa0
pop rbx
pop rsi
pop rbp
ret
Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x401be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401d88
mov rax, qword [0x00407618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401c2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401cb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401c10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401dc2
mov rax, qword [0x00407618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401dd1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401cb0
sub eax, 4
and eax, 0xfffffffb
jne 0x401d40
add dword [0x00407614], 1
cmp ebx, 8
jae 0x401ce8
test bl, 4
jne 0x401d90
test ebx, ebx
je 0x401cd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401db0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401cd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401d1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00407618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401c37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401cd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401cd9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402604
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4025fb
test r12, r12
je 0x4025fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4025e0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402830
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402840
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402850
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402895
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40288c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402897
add rax, 0x28
cmp rax, r9
jne 0x402878
xor eax, eax
ret

Function at 0x402940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4029b9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4029b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x4029ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4029b9
add r8, 0x28
cmp r8, r9
jne 0x402998
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402b0f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b0f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402b0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402b04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b18
add rax, 0x28
cmp rax, r9
jne 0x402af0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402b30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ba8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ba8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ba8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ba8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402b9c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402bb0
add rdx, 0x28
cmp rdx, r10
jne 0x402b88
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402bc0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402bce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ba5
test r8d, r8d
jg 0x402bb8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001157
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x14000117a
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400011a5
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x14000119e
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

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

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa6a3
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002b9b
mov rbx, rax
call 0x140002b7e
nop
pop rsi
mov r9, rax
add rsi, 0x89366
mov rcx, 0xa6a3
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140002b97
call r9
mov ecx, 1
ret

Function at 0x14000301c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400030d6
cmp byte [rbx], 0
je 0x1400030d6
mov edx, 0x5c
mov rcx, rbx
call fcn.14000c2b0
mov rbx, rax
test rax, rax
je 0x1400030d6
mov rcx, rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400030a2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140003098
test rdi, rdi
je 0x140003098
mov r8, rsi
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
call rdi
jmp 0x1400030a2
mov rdx, rsi
mov ecx, 1
call rdi
test bpl, 0x10
jne 0x1400030c9
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400030c9
mov r8, rsi
lea rdx, str.CreateDirectory___s_
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
add rbx, 1
jne 0x140003042
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003d80
Capabilities:
Link many functions at runtime

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 r15d, edx
mov rbx, rcx
lea rdx, str.Py_Initialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_GetObject
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_OptimizeFlag
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp qword [0x14008ca20], rcx
jne 0x140003e1e
xor eax, eax
jmp 0x140003e65
test rdi, rdi
je 0x140003e62
test rsi, rsi
je 0x140003e62
test rbp, rbp
je 0x140003e62
test r14, r14
je 0x140003e62
test r12, r12
je 0x140003e62
test rax, rax
je 0x140003e62
test r15d, r15d
setne cl
mov dword [rax], ecx
lea rcx, [0x14008d5a0]
call rsi
call rdi
mov edx, r15d
mov rcx, r14
call fcn.140003b8c
mov ebx, eax
call rbp
mov eax, ebx
jmp 0x140003e65
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140004368
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea r8, [0x14008d8e0]
mov dword [rsp + 0x30], 0x104
lea rdx, str.PYTHONHOME_s
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0xa0]
call fcn.140015f9c
lea rbx, [0x14008d360]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14000448b
mov r9d, dword [0x14008d8a0]
lea rax, [0x14007cba2]
mov r8d, dword [0x14008d7b8]
lea rdx, str.SOFTWAREPythonPythonCore_d._d_sInstallPath
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140004444
lea r9, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140004444
xor eax, eax
jmp 0x14000448b
lea rcx, [rbp - 0x70]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x14000444b
movzx eax, word [0x14007cba0]
mov word [rcx], ax
lea rcx, [rbp - 0x70]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x140004464
xor edx, edx
mov al, byte [rbx + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14000446e
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14000b140
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret
Function at 0x1400044ac
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rdx, str.PyImport_ImportModule
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_SetAttrString
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_GetAttrString
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyCFunction_New
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_BuildValue
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyArg_ParseTuple
mov rcx, rbx
mov rbp, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Format
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyLong_FromVoidPtr
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov qword [rsp + 0x70], rax
test rdi, rdi
je 0x140004631
test rsi, rsi
je 0x140004631
test r12, r12
je 0x140004631
test r13, r13
je 0x140004631
test rbp, rbp
je 0x140004631
test r14, r14
je 0x140004631
test r15, r15
je 0x140004631
lea rcx, str.builtins
call rdi
mov rdi, rax
test rax, rax
je 0x14000460c
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov qword [0x14008d468], rax
mov rcx, rdi
call rsi
lea rbp, str.create_shortcut
mov qword [0x14008d7b0], rax
mov rsi, rbp
movsxd rcx, ebx
xor edx, edx
shl rcx, 5
add rcx, rbp
call r13
mov rdx, qword [rsi]
mov r8, rax
mov rcx, rdi
call r12
inc ebx
lea rsi, [rsi + 0x20]
cmp ebx, 6
jb 0x1400045e1
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x14008d890], rax
xor eax, eax
mov qword [0x14008d8d8], rbp
mov qword [0x14008eb80], r14
mov qword [0x14008d7a8], r15
jmp 0x140004636
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret