joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400125a0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x78]
xor ebx, ebx
mov qword [rsp + 0x58], rax
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rax
lea r8d, [rbx + 0x60]
call fcn.14001c090
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005c380]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001263f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0xf0
pop rbx
ret

Function at 0x140012660
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x8a0
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
lea r8, [0x14005d3f0]
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001ea10
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400126c7
lea rcx, [rsp + 0x20]
call fcn.140020c08
mov eax, 1
jmp 0x1400126c9
xor eax, eax
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x8a0
pop rbx
ret
Function at 0x1400126f0
Capabilities:
Check if file exists

Disassembly:
push rbp
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rbp + 0x790], rax
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003d0a0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140012758
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003cd00]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001279e
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003cfe0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400127e4
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003d100]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001282a
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003c880]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140012870
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003c400]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400128b6
lea rcx, [rsp + 0x20]
call fcn.140020c08
lea r8, [0x14005d3f0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001ea10
lea r8, [0x14003cef0]
mov edx, 0x432
lea rcx, [rsp + 0x20]
call fcn.14001e990
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400128fc
lea rcx, [rsp + 0x20]
call fcn.140020c08
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0x8a0
pop rbp
ret
Function at 0x1400129f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x78]
xor ebx, ebx
mov qword [rsp + 0x58], rax
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rax
lea r8d, [rbx + 0x60]
call fcn.14001c090
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005e3f0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140012a8f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140018ad0
add rsp, 0xf0
pop rbx
ret
Function at 0x140012e00
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x140012fd0
cmp byte [rcx + 0x72], 0
je 0x140012fd0
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14001e460]
movzx edx, di
mov rcx, r15
call rbx
cmp di, ax
jne 0x140012e71
xor al, al
jmp 0x140012fd2
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140013e10
nop
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
nop
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, rcx
lea r14, [rbp - 0x30]
cmovae r14, rcx
mov rsi, qword [r15 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call qword [fcn.14001e460]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r15 + 0x74]
mov rcx, rsi
call rdi
test eax, eax
je 0x140012ef2
sub eax, 1
jne 0x140012f68
jmp 0x140012ef7
mov byte [r15 + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x140012f44
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400215b0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x140012f75
cmp byte [r15 + 0x72], 0
je 0x140012f79
test rbx, rbx
jne 0x140012ea0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140013ab0
jmp 0x140012e96
sub eax, 2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140012f79
xor bl, bl
jmp 0x140012f7b
mov bl, 1
cmp rdx, 0x10
jb 0x140012fcb
lea rax, [rdx + 1]
cmp rax, 0x1000
jb 0x140012fc6
test byte [rbp - 0x30], 0x1f
je 0x140012f99
call fcn.14001e790
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140012fa8
call fcn.14001e790
int3
sub rcx, rax
cmp rcx, 8
jae 0x140012fb7
call fcn.14001e790
int3
cmp rcx, 0x27
jbe 0x140012fc3
call fcn.14001e790
int3
mov rcx, rax
call fcn.1400189b4
movzx eax, bl
jmp 0x140012fd2
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140018ad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140017cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov rdi, rcx
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREIntelDisplayigfxcuiMISC
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017d94
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rbx
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x140017d75
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test rbx, rbx
je 0x140017d75
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ad0
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor al, al
jmp 0x140017d7c

Function at 0x1400181a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, edx
mov qword [rsp + 0x30], 0
mov rdi, rcx
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREIntelDisplayigfxcuiMISC
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018263
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x30]
mov r9d, 4
mov rcx, rbx
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140018244
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test rbx, rbx
je 0x140018244
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018ad0
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor al, al
jmp 0x14001824b
Function at 0x140018490
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x140058100]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edi, r8d
lea rdx, str.Received_Post_Shell_Event__ld_n
lea rcx, [0x140059f10]
call fcn.140006fe0
xor eax, eax
mov qword [rsp + 0x38], rax
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREIntelDisplayigfxcuiMISC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001856b
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140018567
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], esi
call fcn.140011660
xor edx, edx
mov ecx, edi
call fcn.140011670
mov byte [0x14005fd80], 1
test rbx, rbx
je 0x14001858e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018ad0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140020c08
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140020c28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001e850
or eax, 0xffffffff
jmp 0x140020c2a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400226c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140022494
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022494
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022494
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022494
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022494
cmp dword [rcx + 0x84], 0xe
jbe 0x140022494
cmp dword [rcx + 0xf8], esi
je 0x140022494
mov ecx, r14d
call fcn.1400225dc
mov ecx, 2
call fcn.140024278
nop
cmp byte [0x140060d40], 0
jne 0x14002255e
mov r15d, 1
mov eax, r15d
xchg dword [0x140060d34], eax
test ebx, ebx
jne 0x140022507
mov rdi, qword [0x140058100]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140060d38]
cmp rcx, rax
je 0x1400224fe
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14001e460]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140060d50]
jmp 0x140022513
cmp ebx, r15d
jne 0x140022519
lea rcx, [0x140060d68]
call fcn.140023f5c
nop
test ebx, ebx
jne 0x140022530
lea rdx, [0x140039720]
lea rcx, [0x140039700]
call fcn.140022354
lea rdx, [0x140039730]
lea rcx, [0x140039728]
call fcn.140022354
movzx eax, byte [0x140060d40]
test esi, esi
cmove eax, r15d
mov byte [0x140060d40], al
jmp 0x14002255e
mov ecx, 2
call fcn.1400242d8
test esi, esi
jne 0x140022575
mov ecx, r14d
call fcn.140022590
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140022424
Function at 0x14002a488
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14002a2ee
call fcn.14001e8c0
mov dword [rax], 0x16
call fcn.14001e770
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a2d0
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14002a2d0
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14002a320
lock or dword [rax + 0x14], 0x10
jmp 0x14002a2d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14002a33d
mov rcx, qword [rbp + 0x20]
call fcn.14002a874
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14002a352
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14002a358
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140029d68
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140034294
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14002a3ab
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14002a2d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14002a417
mov rcx, qword [rbp + 0x20]
call fcn.140029d68
cmp eax, 0xffffffff
je 0x14002a3fe
mov rcx, qword [rbp + 0x20]
call fcn.140029d68
cmp eax, 0xfffffffe
je 0x14002a3fe
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140029d68
movsxd rdi, eax
lea r15, [0x140060fd0]
mov rcx, rbx
sar rdi, 6
call fcn.140029d68
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14002a405
lea rax, [0x140058540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a417
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14002a44d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14002a449
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14002a449
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14002a46b
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14002a476
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14002a2d5
jmp 0x14002a29c
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1402b0420]
mov dword [rax], 1
mov rax, qword [0x1402b0430]
mov dword [rax], 1
mov rax, qword [0x1402b0440]
mov dword [rax], 1
mov rax, qword [0x1402b03d0]
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 0x140226c90
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.140288040
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 0x140226d55
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 0x140298e72
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140226d36
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140226d28
test rsi, rsi
je 0x140298e72
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140226ce8
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 0x140226d84
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 0x140226da0
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 0x140226e5d
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 0x140298e78
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140226e3e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140226e30
test rsi, rsi
je 0x140298e78
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140226df0
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 0x14027e6a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1402d7fb1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14027e748
lea rdx, [0x1402ac47a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14027e7b0
mov rbx, qword [0x1402d7e58]
jmp 0x14027e6ed
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 0x14027e6e8
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14027e737
lea rbx, [rdi + rax*8]
nop
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14026da40
mov r8, rax
cmp rdi, rbx
jne 0x14027e720
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
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 [0x1402d7e58], rax
mov ebx, dword [rax]
mov qword [0x1402d7e58], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1402d7e58], rdx
call fcn.14027d7d0
cmp eax, ebx
jne 0x14027e84a
mov byte [0x1402d7fb1], 1
jmp 0x14027e6c2
cmp byte [0x1402d7fb0], 0
jne 0x14027e6d9
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1402d7648]
call rbx
mov qword [0x1402d8b28], rax
call rbx
mov qword [0x1402d8b20], rax
call rbx
mov qword [0x1402d8b18], rax
call rbx
mov qword [0x1402d8b10], rax
call rbx
mov qword [0x1402d8b08], rax
call rbx
mov qword [0x1402d8b00], rax
call rbx
mov qword [0x1402d8af8], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1402d8af0], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x14027e828
mov byte [0x1402d7fb0], 1
jmp 0x14027e6d9
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140286d20
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.140298400
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.140298400
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