joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402124cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402124e2
mov al, 1
jmp 0x140212542
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402124f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140212540
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401fcc94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140212540
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140212540
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140212540
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140212542
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140219eb4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140209c1c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140209c1c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14021a004
cmp rax, 0xffffffffffffffff
je 0x14021a004
xor edi, edi
test rbp, rbp
jle 0x140219faf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140212f60
mov rbx, rax
test rax, rax
jne 0x140219f3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140219fa5
mov edx, 0x8000
mov ecx, r14d
call fcn.140200910
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140211944
cmp eax, 0xffffffff
je 0x140219f85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140219f4c
mov edx, r15d
mov ecx, r14d
call fcn.140200910
jmp 0x140219fa5
cmp byte [rsi + 0x38], dil
je 0x140219f9c
cmp dword [rsi + 0x34], 5
jne 0x140219f9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140219fa5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402131d4
jmp 0x14021a018
jns 0x14021a018
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140209c1c
cmp rax, 0xffffffffffffffff
jne 0x140219fd0
cmp byte [rsi + 0x30], dil
je 0x14021a018
mov edi, dword [rsi + 0x2c]
jmp 0x14021a018
mov ecx, r14d
call fcn.1401fcc94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14021a018
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14021a018
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14021a011
mov eax, dword [rsi + 0x2c]
jmp 0x14021a016
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140209c1c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14021bd1c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14021bd4c
xor eax, eax
jmp 0x14021be0f
mov rbp, rbx
cmp word [rax], si
je 0x14021bd71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14021bd58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14021bd54
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140217cbc
movsxd r14, eax
test eax, eax
jne 0x14021bdaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14021bd45
mov rcx, r14
call fcn.14021471c
mov rdi, rax
test rax, rax
jne 0x14021bdc8
xor ecx, ecx
call fcn.1402131d4
jmp 0x14021bda4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140217cbc
test eax, eax
jne 0x14021bdf9
mov rcx, rdi
call fcn.1402131d4
jmp 0x14021be03
xor ecx, ecx
call fcn.1402131d4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14021be2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14021beb3
mov rsi, rbx
cmp word [rax], bp
je 0x14021be72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14021be5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14021be58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14021471c
mov rdi, rax
test rax, rax
je 0x14021bea0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402361f0
mov rbp, rdi
xor ecx, ecx
call fcn.1402131d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14021edd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14021298c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14021ee71
cmp ebx, dword [rsp + 0x30]
je 0x14021ee6a
test esi, esi
je 0x14021ee6a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14021ee45
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14021ee52
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14021ee2f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14021ee56
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14021ee73
mov eax, 1
jmp 0x14021ee73
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140221450
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402d4c40]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14022149a
call fcn.1401f9cc8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1401f9ce8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401f8a78
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401e2e90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402214a5
lea eax, [rbx + 1]
jmp 0x140221487
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140221485
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140221487
Function at 0x140221f4c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401f287c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140221fd6
cmp byte [rbp - 0x21], r15b
je 0x140221fd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14022200c
call fcn.140213530
test eax, eax
jne 0x140221ff8
cmp byte [rbp - 0x21], r15b
je 0x140221ff0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14022200c
cmp byte [rbp - 0x21], r15b
je 0x140222009
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401f8d3c
test eax, eax
jne 0x1402220ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401f287c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14022204b
cmp byte [rbp - 0x21], r15b
je 0x140222080
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140222080
call fcn.140213530
test eax, eax
jne 0x14022206c
cmp byte [rbp - 0x21], r15b
je 0x140222065
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140222080
cmp byte [rbp - 0x21], r15b
je 0x14022207d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401f8d3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402220ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402220af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402220bd
mov rcx, rdi
call fcn.1402131d4
cmp byte [rbp + 0x3f], r15b
je 0x1402220cc
mov rcx, qword [rbp + 0x27]
call fcn.1402131d4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14022adc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x60]
movzx r8d, byte [rcx + 0x5c]
test eax, eax
jle 0x14022adfc
mov edx, dword [rcx + 0x288]
lea r11, [0x1402d6140]
mov r9d, eax
nop dword [rax]
mov eax, edx
shr rax, 0x18
xor rax, r8
shl edx, 8
xor edx, dword [r11 + rax*4]
mov dword [rcx + 0x288], edx
sub r9, 1
jne 0x14022ade0
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r9, dword [rcx + 0x60]
mov edx, r9d
sub edx, 1
je 0x14022aede
sub edx, 1
je 0x14022aed0
cmp edx, 1
je 0x14022ae90
mov byte [r9 + rcx + 0x7c], 1
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
movzx r8d, byte [rcx + 0x60]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
jmp 0x14022aeaf
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
ret
Function at 0x140235d20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140235d48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140235d48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140024160
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.14004dc10
sub rsp, rax
mov rax, qword [0x140065040]
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 0x140024222
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.14004179c
cmp rax, 1
jne 0x14002427e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400241ff
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400241f3
cmp rcx, 1
jb 0x14002427e
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 0x1400241c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140024253
lea rcx, [rsp + 0x80]
call fcn.140042cdc
jmp 0x140024255
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140032d60
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.140036490
int3

Function at 0x140024290
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov al, 0x4e
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.14004179c
cmp rax, 1
jne 0x140024375
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002431c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140024310
cmp rcx, 1
jb 0x140024375
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 0x1400242e0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140032d60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140036490
int3
Function at 0x14002de60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14006a2ea], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14002dee3
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 [0x14006a038], rax
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14006a038], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x14006a038], rdx
call fcn.14002c1e0
cmp eax, ebx
jne 0x14002e04d
mov byte [0x14006a2ea], 1
lea rdx, [0x140058600]
mov rcx, rsi
call fcn.14004ddd0
test eax, eax
je 0x14002df6e
cmp byte [0x14006a2eb], 1
je 0x14002df6e
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006abb8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006b070], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006a8d0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006a840], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006b0d8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006a960], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006b078], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x14006b098], rax
mov byte [0x14006a2eb], 1
mov r8, qword [0x14006a038]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
nop
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14002df97
inc rax
test cl, cl
jne 0x14002df80
mov ecx, r9d
jmp 0x14002df9c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14002dfa3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14002e008
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14002dfe5
inc rax
test cl, cl
jne 0x14002dfd0
mov ecx, r9d
jmp 0x14002dfea
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14002dff1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14002dfc0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14002e038
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14002cee0
add rdi, 8
sub rbx, 1
jne 0x14002e020
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14003e2cc
call fcn.140036490
int3

Function at 0x140033738
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003665b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003665b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003665b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003665b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003665b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003665b
cmp dword [rcx + 0xf8], 0
je 0x14003665b
mov ecx, ebx
call fcn.14003670c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400364e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400366a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400366b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400365ec

Function at 0x1400367f0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003665b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003665b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003665b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003665b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003665b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003665b
cmp dword [rcx + 0xf8], 0
je 0x14003665b
mov ecx, ebx
call fcn.14003670c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400364e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400366a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400366b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400365ec
Function at 0x1400476f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140047777
mov rsi, rbx
cmp word [rax], bp
je 0x140047736
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140047720
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004771c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400452f8
mov rdi, rax
test rax, rax
je 0x140047764
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004e270
mov rbp, rdi
xor ecx, ecx
call fcn.140043348
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140049e7c
Capabilities:
Get file size

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

Function at 0x14004db20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004db48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004db48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18003b6fc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18003b712
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18003b714
xor eax, eax
test eax, eax
je 0x18003b724
mov ecx, eax
call fcn.18002dc40
or eax, 0xffffffff
jmp 0x18003b726
xor eax, eax
add rsp, 0x28
ret