joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0xffffffff
mov dword [rsp + 0x20], 0
jmp 0x140001566
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe8]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x14000159e
cmp dword [rsp + 0x20], 0x40
jae 0x14000159e
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0xe8]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x80], al
jmp 0x14000155c
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0
mov eax, dword [rsp + 0x20]
sub eax, 4
mov eax, eax
movsx eax, byte [rsp + rax + 0x80]
cmp eax, 0x2e
je 0x14000162e
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0x2e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0x64
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0x6c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0x6c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x80], 0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
call fcn.140001100
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
jmp 0x140001663
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x140001738
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x30], 0
je 0x140001738
cmp qword [rsp + 0x38], 0
jne 0x140001738
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1400016e0
jmp 0x140001656
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140001110
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140001733
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x140001656
cmp qword [rsp + 0x38], 0
jne 0x140001777
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xc0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x10]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0xc0]
xor edx, edx
xor ecx, ecx
mov rax, qword [rsp + 0xe0]
call qword [rax + 8]
mov rax, qword [rsp + 0x38]
add rsp, 0xd8
ret
Function at 0x140192108
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140191f93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140191f93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140191f93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140191f93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140191f93
cmp dword [rcx + 0x84], 0xe
jbe 0x140191f93
cmp dword [rcx + 0xf8], 0
je 0x140191f93
mov ecx, ebx
call fcn.140192034
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140191e10
cmp dword [rbp + 0x20], 0
je 0x140191fe0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140191fe8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140191f2c
Function at 0x14000b4c0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000b500
mov eax, 0xff
jmp 0x14000b6ab
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000b51c
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14001acc8], r9d
mov dword [0x14001acd0], ecx
mov dword [0x14001acd4], edx
mov dword [0x14001acd8], eax
mov dword [0x14001accc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000b593
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000b593
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000b593
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000b595
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000b595
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000d244
test eax, eax
jne 0x14000b5cb
cmp dword [0x14001a71c], 2
je 0x14000b5b7
call fcn.14000d028
mov ecx, 0x1c
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
call fcn.14000cb0c
test eax, eax
jne 0x14000b5f7
cmp dword [0x14001a71c], 2
je 0x14000b5e2
call fcn.14000d028
mov ecx, 0x10
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
nop
call fcn.14000d2b8
test eax, eax
jns 0x14000b60a
mov ecx, 0x1b
call fcn.14000cc5c
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001c8d0], rax
call fcn.14000da58
mov qword [0x14001a720], rax
call fcn.14000d554
test eax, eax
jns 0x14000b635
mov ecx, 8
call fcn.14000cc5c
call fcn.14000d834
test eax, eax
jns 0x14000b648
mov ecx, 9
call fcn.14000cc5c
mov ecx, edi
call fcn.14000cccc
test eax, eax
je 0x14000b65a
mov ecx, eax
call fcn.14000cc5c
mov r8, qword [0x14001acb8]
mov qword [0x14001ace8], r8
mov rdx, qword [0x14001acb0]
mov ecx, dword [0x14001acac]
call fcn.1400070f4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000b68b
mov ecx, eax
call fcn.14000d018
call fcn.14000ccb8
jmp 0x14000b6a9
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.140146000
add rsp, 0x28
jmp 0x14000b4c0

Function at 0x14000c1ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.D_3_]
mov dword [rax], 1
mov rax, qword [str.H_3_]
mov dword [rax], 1
mov rax, qword [str.L_3_]
mov dword [rax], 1
mov rax, qword [0x14030a630]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140281a00
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1402e2d40
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140281ac5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f3c52
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140281aa6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140281a98
test rsi, rsi
je 0x1402f3c52
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140281a58
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140281af4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140281b10
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x140281bcd
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f3c58
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140281bae
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140281ba0
test rsi, rsi
je 0x1402f3c58
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140281b60
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140298420
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140333108]
mov rsi, rcx
test rbx, rbx
je 0x1402984a0
mov rax, qword [0x14030a810]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140298490
mov rdx, qword [0x140333348]
test rdx, rdx
je 0x140298598
mov rcx, rbx
mov rbx, qword [sym.imp.python39.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python39.dll_PyNumber_InPlaceAdd]
jmp 0x140298471
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140281a00
test rax, rax
je 0x1402985b8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f3d00
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14029853e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140298530
test rbx, rbx
je 0x1402f3d00
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1402984f0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.140298120
mov rbx, rax
mov qword [0x140333108], rbx
jmp 0x140298442
lea rcx, [0x140306df0]
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov qword [0x140333348], rax
mov rdx, rax
jmp 0x140298462
mov rbx, qword [0x140333120]
test rbx, rbx
jne 0x140298586
cmp byte [0x140333342], 0
je 0x1402985f6
mov rdx, 0xffffffffffffffff
lea rcx, [0x140333140]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [0x140333120], rax
mov rbx, rax
test rax, rax
je 0x140298602
add qword [rax], 1
jmp 0x140298586
mov ecx, 1
call fcn.140282670
jmp 0x1402985cd
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14029a510
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140281a00
test rax, rax
je 0x14029a670
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f3d1e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14029a5c6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14029a5b8
test rbx, rbx
je 0x1402f3d1e
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14029a578
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [0x140333a80]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x14030a810]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14029a6c0
mov r8, rbx
mov rcx, rsi
call fcn.140285870
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1402954c0
sub qword [rbx], 1
jne 0x14029a654
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140333118]
lea rsi, [0x140333118]
test bl, bl
je 0x14029a690
mov rax, qword [0x140333120]
lea rsi, [0x140333120]
test rax, rax
jne 0x14029a654
cmp byte [0x140333342], 0
je 0x14029a6ed
mov rdx, 0xffffffffffffffff
lea rcx, [0x140333140]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14029a6f7
add qword [rax], 1
jmp 0x14029a654
mov rdx, qword [0x1403339f8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14029a702
mov r8, rdi
mov rcx, rsi
call fcn.140285870
mov qword [0x140333a80], rax
mov rdx, rax
jmp 0x14029a61e
movzx ecx, bl
call fcn.140282670
jmp 0x14029a69e
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140302a0e]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x1403339f8], rax
mov rdx, rax
test rax, rax
je 0x1402f3d1e
jmp 0x14029a6d3
Function at 0x1402d90b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140333101], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1402d9158
lea rdx, [0x14030662a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1402d91c0
mov rbx, qword [0x140332fa8]
jmp 0x1402d90f5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1402d90f0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1402d9147
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1402c8410
mov r8, rax
cmp rdi, rbx
jne 0x1402d9130
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140332fa8], rax
mov ebx, dword [rax]
mov qword [0x140332fa8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140332fa8], rdx
call fcn.1402d81e0
cmp eax, ebx
jne 0x1402d9247
mov byte [0x140333101], 1
jmp 0x1402d90d0
cmp byte [0x140333100], 0
jne 0x1402d90e7
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x140333c88], rax
call rbx
mov qword [0x140333c80], rax
call rbx
mov qword [0x140333c78], rax
call rbx
mov qword [0x140333c70], rax
call rbx
mov qword [0x140333c68], rax
call rbx
mov qword [0x140333c60], rax
call rbx
mov qword [0x140333c58], rax
call rbx
mov byte [0x140333100], 1
mov qword [0x140333c50], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x140332fa0], rax
jmp 0x1402d90e7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1402e1a20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1402f31b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1402f31b0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1402e26f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1403340e8]
test eax, eax
je 0x1402e278a
lea rax, [0x1403340c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1403340f0]
mov qword [rbp - 8], rax
jmp 0x1402e276e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1402e2762
cmp qword [rbp - 0x10], 0
je 0x1402e2762
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1402e2728
lea rax, [0x1403340c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1402e278b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1402e2890
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1402e28b8
mov eax, 0
jmp 0x1402e2906
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1402e28e1
mov eax, 0
jmp 0x1402e2906
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402e2901
mov eax, 0
jmp 0x1402e2906
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1402e290c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1402e298a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1402e2981
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1402e2981
mov rax, qword [rbp - 8]
jmp 0x1402e299f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1402e2954
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400524a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400524b0]
mov dword [rax], 1
mov rax, qword [0x1400524c0]
mov dword [rax], 1
mov rax, qword [0x140052420]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140052490]
mov dword [0x14005500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140052560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140052540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140052400]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400015e7
lea rax, str.VirtualAlloc_failed
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
call rax
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400019b0
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]