joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011be0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140011c0d
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x68], r14
xor r14d, r14d
lea r9, [rsp + 0x60]
lea r8d, [r14 + 0x40]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0x40
jne 0x140011cf4
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140011cf4
mov edx, dword [rdi + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x140011cf7
lea r9, [rsp + 0x60]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 4
jne 0x140011cf4
cmp dword [rsp + 0x30], 0x4550
jne 0x140011cf4
lea r9, [rsp + 0x60]
lea r8d, [r14 + 0x14]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0x14
jne 0x140011cf4
lea r9, [rsp + 0x60]
mov r8d, 0xf0
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0xf0
jne 0x140011cf4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [r14 + 1]
jmp 0x140011cff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
xor r9d, r9d
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov rdx, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140011be0
Function at 0x140011d20
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140011c0d
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x68], r14
xor r14d, r14d
lea r9, [rsp + 0x60]
lea r8d, [r14 + 0x40]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0x40
jne 0x140011cf4
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140011cf4
mov edx, dword [rdi + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x140011cf7
lea r9, [rsp + 0x60]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 4
jne 0x140011cf4
cmp dword [rsp + 0x30], 0x4550
jne 0x140011cf4
lea r9, [rsp + 0x60]
lea r8d, [r14 + 0x14]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0x14
jne 0x140011cf4
lea r9, [rsp + 0x60]
mov r8d, 0xf0
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011cf4
cmp dword [rsp + 0x60], 0xf0
jne 0x140011cf4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [r14 + 1]
jmp 0x140011cff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
xor r9d, r9d
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov rdx, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140011be0
Function at 0x140011d90
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, rdx
lea rdx, [rsp + 0x30]
mov rbp, r9
mov r14, r8
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test eax, eax
je 0x140011e6f
mov rcx, rdi
mov qword [rsp + 0x60], rbx
call fcn.1400159b8
mov rbx, rax
test rax, rax
je 0x140011e30
mov edx, dword [rsp + 0x30]
mov r9, rax
mov r8d, edi
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
je 0x140011e2b
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.StringFileInfo040904E4FileVersion
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x140011e34
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.StringFileInfo040904B0FileVersion
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x140011e34
mov rcx, rbx
call fcn.140015978
xor eax, eax
jmp 0x140011e6a
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
lea rdx, str._i._i._i._i
mov qword [rsp + 0x28], rax
mov r9, r14
mov r8, r15
mov qword [rsp + 0x20], rbp
call fcn.14001825c
mov rcx, rbx
call fcn.140015978
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140019e70
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140019cd8
Function at 0x14001f700
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.140023870
sub rsp, rax
mov rax, qword [0x140060d40]
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 0x14001f7c2
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.14003233c
cmp rax, 1
jne 0x14001f81e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001f79f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001f793
cmp rcx, 1
jb 0x14001f81e
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 0x14001f760
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001f7f3
lea rcx, [rsp + 0x80]
call fcn.140034f70
jmp 0x14001f7f5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400235a0
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.1400320e8
int3
Function at 0x140020490
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 [0x14006263e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140020515
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 [0x140062608], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x140062608], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x140062608], rdx
call fcn.14001e4c0
cmp eax, ebx
jne 0x14002067d
mov byte [0x14006263e], 1
lea rdx, [0x140044158]
mov rcx, rsi
call fcn.140033db0
test eax, eax
je 0x1400205a0
cmp byte [0x14006263d], 1
je 0x1400205a0
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140063398], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633a0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633a8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633b0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633b8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633c0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633c8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400633d0], rax
mov byte [0x14006263d], 1
mov r8, qword [0x140062608]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1400205c7
inc rax
test cl, cl
jne 0x1400205b0
mov ecx, r9d
jmp 0x1400205cc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1400205d3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140020638
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 0x140020615
inc rax
test cl, cl
jne 0x140020600
mov ecx, r9d
jmp 0x14002061a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140020621
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x1400205f0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140020668
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001cb40
add rdi, 8
sub rbx, 1
jne 0x140020650
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.14002eb24
call fcn.1400320e8
int3
Function at 0x140023130
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140060d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1400231e1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14003233c
cmp rax, 1
jne 0x140023217
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1400231bd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1400231b0
cmp rcx, 1
jb 0x140023217
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140023180
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400235a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400320e8
int3
Function at 0x1400232e0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xb0
mov rax, qword [0x140060d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140062ab0]
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test rax, rax
jne 0x14002332f
lea rcx, [0x140043ecc]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140062ab0], rax
test rax, rax
je 0x14002350b
mov qword [rsp + 0xa8], rsi
lea rdx, str.environ
mov qword [rsp + 0xa0], r12
mov rcx, rax
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
call qword [sym.imp.python312.dll_PyObject_GetAttrString]
mov rcx, rdi
mov r14, rax
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov r15, rax
test rbx, rbx
je 0x1400233d6
mov rdx, rbx
mov rcx, rdi
call fcn.140023130
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdx, r15
mov rcx, r14
mov r8, rax
mov rbx, rax
call qword [sym.imp.python312.dll_PyObject_SetItem]
test eax, eax
je 0x1400233bb
mov ecx, 1
call qword [sym.imp.python312.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python312.dll_Py_Exit]
int3
cmp dword [rbx], 0
jl 0x1400234a0
sub qword [rbx], 1
jne 0x1400234a0
mov rcx, rbx
jmp 0x14002349a
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x140023465
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x28]
call fcn.14003233c
cmp rax, 1
jne 0x140023505
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14002343d
nop dword [rax]
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x140023430
cmp rcx, 1
jb 0x140023505
movzx ecx, word [rsp + 0x28]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x1400233f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.python312.dll_PyObject_DelItem]
test eax, eax
je 0x1400234a0
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x60], r12
test rcx, rcx
je 0x1400234a0
cmp dword [rcx], r12d
jl 0x1400234a0
sub qword [rcx], 1
jne 0x1400234a0
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [r15], 0
jl 0x1400234b5
sub qword [r15], 1
jne 0x1400234b5
mov rcx, r15
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [r14], 0
jl 0x1400234ca
sub qword [r14], 1
jne 0x1400234ca
mov rcx, r14
call qword [sym.imp.python312.dll__Py_Dealloc]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400235a0
add rsp, 0xb0
pop rdi
pop rbp
pop rbx
ret
call fcn.1400320e8
int3
call fcn.1400320e8
int3
Function at 0x140023fd4
Capabilities:
Parse pe header

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

Function at 0x140027f2c
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 0x140027f9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027f9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027f9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027f9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027f9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140027f9b
cmp dword [rcx + 0xf8], 0
je 0x140027f9b
mov ecx, ebx
call fcn.14002804c
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.140027e28
nop
cmp dword [rbp + 0x20], 0
je 0x140027fe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027ff4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027f2c

Function at 0x140028130
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 0x140027f9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027f9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027f9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027f9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027f9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140027f9b
cmp dword [rcx + 0xf8], 0
je 0x140027f9b
mov ecx, ebx
call fcn.14002804c
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.140027e28
nop
cmp dword [rbp + 0x20], 0
je 0x140027fe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027ff4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027f2c
Function at 0x140039d90
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 0x140039e17
mov rsi, rbx
cmp word [rax], bp
je 0x140039dd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039dc0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039dbc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003505c
mov rdi, rax
test rax, rax
je 0x140039e04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140040110
mov rbp, rdi
xor ecx, ecx
call fcn.140035e58
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 0x14003c51c
Capabilities:
Get file size

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

Function at 0x14003fef0
Capabilities:
Parse pe header

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

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f8a0], rbx
je 0x1400016a7
cmp rax, rbx
jne 0x14000169a
mov ebx, 1
mov esi, ebx
jmp 0x1400016ac
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000167f
mov ebx, 1
mov eax, dword [0x14009f8a8]
cmp eax, ebx
jne 0x1400016c4
mov edi, 0x1f
mov ecx, edi
call fcn.140134000
jmp 0x14000173a
mov eax, dword [0x14009f8a8]
test eax, eax
jne 0x14000172f
mov dword [0x14009f8a8], ebx
lea r15, [0x14008a328]
lea rdi, [0x14008a310]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001721
test eax, eax
jne 0x140001725
cmp qword [rdi], r14
je 0x140001716
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x14008a2c0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400016ee
test eax, eax
je 0x140001735
mov eax, 0xff
jmp 0x14000189a
mov dword [0x14009eb14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f8a8]
cmp eax, ebx
jne 0x140001761
lea rdx, [0x14008a308]
lea rcx, [0x14008a2d0]
call sub.msvcrt.dll__initterm
mov dword [0x14009f8a8], 2
test esi, esi
jne 0x14000176f
mov rax, r14
xchg qword [0x14009f8a0], rax
cmp qword [0x14009f8c0], r14
je 0x1400017ac
lea rcx, [0x14009f8c0]
call fcn.140002110
test eax, eax
je 0x1400017ac
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f8c0]
mov r9, qword [0x14008a2c0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400017c5
mov eax, 0xff
jmp 0x14000189a
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000184b
test ax, ax
je 0x1400017e0
test edx, edx
jne 0x14000184b
sub ax, bx
cmp ax, di
ja 0x1400017f6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400017e0
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400289f8
mov dword [0x14009eb10], eax
cmp dword [0x14009eb30], r14d
jne 0x140001834
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009eb14], r14d
jne 0x140001849
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009eb10]
jmp 0x14000189a
cmp ax, 0x22
jne 0x14000185f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400017ce
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400021a4
add rsp, 0x28
jmp 0x140001640
Function at 0x1445c13e4
Capabilities:
Authenticate hmac

Disassembly:
sal dword [rsp + r8*8 - 0x2efe7], cl
mov qword [rsp + r8*2 - 0xbbf4], r11
mov qword [rsp + r8*2 - 0xbbfc], rcx
and r8d, ecx
xor dword [rsp + r8*2 - 0x2060], edi
xchg qword [rsp + r8*4 - 0x40d0], rsi
rol r8w, 0x6f
shl eax, 0xd1
mov r11, qword [rsp + r8*8 - 0x40c8]
mov qword [rsp + r8*4 - 0x2060], rdx
mov dword [rbx + r8 - 0x81a], edi
shl dword [rsp + rsi*2 - 0x2064], 0xd4
and qword [rsp + r8*2 - 0x102c], 0x189fe080
push rcx
mov r8d, dword [rbp + r8*4 - 0x2063]
shl byte [rsp + rsi*2 - 0x2055], 5
mov r9d, edx
xor r8d, r11d
inc r9
call fcn.1446570dc
inc dx
mov r11, qword [rsp + rcx - 0x97fe]
push r9
inc dword [rsp + rcx - 0x97fa]
not byte [rsp + rcx*8 - 0x4c023]
mov dword [rbx + rcx - 0x9812], edi
jno 0x14463650e
mov r9d, edi
movzx eax, r9w
bswap ecx
not rdx
add rax, 0x6e3107b4
cmovg esi, edx
push r11
xor dword [rsp + rsi - 0x61802898], ecx
ror rdx, 0x74
xor r9b, 0x19
pop r11
movsxd rcx, ecx
call fcn.1445c5898
pop r11
mov edi, esi
push rcx
movsxd r9, r9d
add r10, r9
mov qword [rsp + rax*4], r10
ret
xor byte [rsp + rsi - 0x69520cff], ch
jge 0x14465e25d
xor qword [rsp + rcx*2 - 0x13004], 0xfffffffffbbbb939
setp cl
mov ecx, dword [rcx + rbp - 0x97fb]
pop rdx
shr si, 0x84
cmovb r8, r9
xor ecx, r11d
sal dl, 0xa1
ror ecx, 1
inc ecx
bswap ecx
neg word [rsp + 1]
jle 0x1445f9213
inc ecx
movzx edi, r8w
neg si
not ecx
rol ecx, 3
not ecx
xor r8d, eax
add rax, rsi
mov qword [rsp + rdi*2 - 0x7cb6], r11
rol si, 0x83
sbb ax, si
sub r8d, 0x8237a89d
xor dword [rsp + r8 - 0x1b8fc699], ecx
inc word [rsp + r8 - 0x1b8fc69b]
mov r11, qword [rsp + r8*2 - 0x371f8d3a]
movsxd rcx, ecx
xadd ax, di
setnp dl
adc r10, rcx
mov esi, dword [r8 + rbp - 0x1b8fc698]
ror rdi, 0x95
mov qword [rsp + r8 - 0x1b8fc699], rax
lea rbp, [rbp + r8*2 - 0x371f8d35]
xor esi, r11d
movsx ecx, dil
push rdi
lea esi, [rsi + r8*2 + 0x699a23db]
rol esi, 3
and di, word [rsp + r8 - 0x1b8fc68f]
dec cl
bswap esi
lea r8, [r9 + 0x4690d280]
inc esi
rol r8w, 0x2c
neg esi
shr dword [rsp + rcx - 0xf0], 0x16
xadd dx, r8w
rol cl, 0xc2
mov qword [rsp + rcx - 0xef], r11
xor dword [rsp + rcx*2 - 0x1ee], esi
xadd r8, rdi
rol byte [rsp + rcx*2 - 0x1f0], 0x45
inc rdx
mov r11, qword [rsp + rcx - 0xef]
mov dword [rcx + rbx - 0x10f], esi
movzx esi, di
lea rbx, [rbx + rcx*4 - 0x40c]
pop rax
pop rdx
pop rax
ja fcn.14464d66a
movzx esi, byte [rcx + rbp - 0x5f01]
sal word [rsp + rcx - 0x5efb], 0xa3
or cl, 0xb1
mov r9d, dword [rsp + rcx - 0x5fad]
lea rbp, [rbp + rcx - 0x5fb0]
xor word [rsp + rcx - 0x5faf], r8w
adc rdi, rcx
xor sil, r11b
xadd r9w, di
xor sil, 0x1d
neg cl
sub sil, 0xa1
sar r9, cl
not dword [rsp + rcx - 0x5f4e]
neg sil
call fcn.1445c2d87