joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18040e45c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18040e48e
call fcn.1803efd8c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1803ea6b4
jmp 0x18040e5ad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18040e5ad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18040e5ad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18040e4bd
lock or dword [rcx + 0x14], 0x10
jmp 0x18040e5ad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18040e4d1
call fcn.18040e5c8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18040003c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180406c3c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18040e59b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18040e566
mov rcx, rsi
call fcn.18040003c
cmp eax, edi
je 0x18040e551
mov rcx, rsi
call fcn.18040003c
cmp eax, 0xfffffffe
je 0x18040e551
mov rcx, rsi
call fcn.18040003c
movsxd rbx, eax
lea r14, [0x180542240]
mov rcx, rsi
sar rbx, 6
call fcn.18040003c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18040e558
lea rdx, [0x18053d560]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18040e566
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18040e58a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18040e58a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18040e58a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18040e5b0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1804114f0
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.1804033a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1804033a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180411640
cmp rax, 0xffffffffffffffff
je 0x180411640
xor edi, edi
test rbp, rbp
jle 0x1804115eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18040d0ec
mov rbx, rax
test rax, rax
jne 0x180411578
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1804115e1
mov edx, 0x8000
mov ecx, r14d
call fcn.180400850
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.180407b80
cmp eax, 0xffffffff
je 0x1804115c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180411588
mov edx, r15d
mov ecx, r14d
call fcn.180400850
jmp 0x1804115e1
cmp byte [rsi + 0x38], dil
je 0x1804115d8
cmp dword [rsi + 0x34], 5
jne 0x1804115d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1804115e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18040a834
jmp 0x180411654
jns 0x180411654
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1804033a0
cmp rax, 0xffffffffffffffff
jne 0x18041160c
cmp byte [rsi + 0x30], dil
je 0x180411654
mov edi, dword [rsi + 0x2c]
jmp 0x180411654
mov ecx, r14d
call fcn.18041103c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180411654
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 0x180411654
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18041164d
mov eax, dword [rsi + 0x2c]
jmp 0x180411652
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1804033a0
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 0x180411684
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1804116a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1803efd00
or eax, 0xffffffff
jmp 0x1804116a6
xor eax, eax
add rsp, 0x28
ret
Function at 0x18041316c
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 0x18041319c
xor eax, eax
jmp 0x18041325f
mov rbp, rbx
cmp word [rax], si
je 0x1804131c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1804131a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1804131a4
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.18040e014
movsxd r14, eax
test eax, eax
jne 0x1804131ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180413195
mov rcx, r14
call fcn.18040a948
mov rdi, rax
test rax, rax
jne 0x180413218
xor ecx, ecx
call fcn.18040a834
jmp 0x1804131f4
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.18040e014
test eax, eax
jne 0x180413249
mov rcx, rdi
call fcn.18040a834
jmp 0x180413253
xor ecx, ecx
call fcn.18040a834
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 0x18041327c
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 0x180413303
mov rsi, rbx
cmp word [rax], bp
je 0x1804132c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1804132ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1804132a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18040a948
mov rdi, rax
test rax, rax
je 0x1804132f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1803e57a0
mov rbp, rdi
xor ecx, ecx
call fcn.18040a834
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 0x180418bf4
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.1803f1c60
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180418c7e
cmp byte [rbp - 0x21], r15b
je 0x180418c79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180418cb4
call fcn.18040d634
test eax, eax
jne 0x180418ca0
cmp byte [rbp - 0x21], r15b
je 0x180418c98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180418cb4
cmp byte [rbp - 0x21], r15b
je 0x180418cb1
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.1803f6ce0
test eax, eax
jne 0x180418d54
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1803f1c60
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180418cf3
cmp byte [rbp - 0x21], r15b
je 0x180418d28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180418d28
call fcn.18040d634
test eax, eax
jne 0x180418d14
cmp byte [rbp - 0x21], r15b
je 0x180418d0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180418d28
cmp byte [rbp - 0x21], r15b
je 0x180418d25
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.1803f6ce0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180418d54
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180418d57
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180418d65
mov rcx, rdi
call fcn.18040a834
cmp byte [rbp + 0x3f], r15b
je 0x180418d74
mov rcx, qword [rbp + 0x27]
call fcn.18040a834
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 0x1400074cc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov r14, rcx
xor edi, edi
mov esi, edi
cmp dword [rcx + 0x38], edi
jne 0x14000757b
cmp dword [rcx + 0xc4], 1
jle 0x14000757b
cmp dword [rcx + 0x70], edi
jne 0x14000752d
cmp dword [rcx + 0x78], edi
jne 0x14000751d
cmp dword [rcx + 0x44], edi
jne 0x140007515
mov dword [rdx], 0xc1500039
jmp 0x140007523
mov dword [rdx], 0xc150000e
jmp 0x140007523
mov dword [rdx], 0xc1500035
mov esi, 0x80070667
jmp 0x1400075fb
cmp dword [rcx + 0x50], edi
je 0x140007547
cmp dword [rcx + 0x44], edi
jne 0x140007547
mov dword [rdx], 0xc1500012
mov esi, 0x80070057
jmp 0x1400075fb
cmp dword [rcx + 0x78], edi
je 0x14000755e
cmp dword [rcx + 0x50], edi
je 0x140007559
mov dword [rdx], 0xc1500019
jmp 0x14000753d
cmp dword [rcx + 0x44], edi
jne 0x140007551
cmp dword [rcx + 0x58], edi
je 0x140007688
cmp dword [rcx + 0xb8], edi
jne 0x140007688
mov dword [rdx], 0xc1500032
jmp 0x14000753d
mov dword [rcx + 0x38], 1
mov rax, qword [rcx + 0x30]
cmp dword [rax - 0x10], edi
jne 0x140007688
mov r8d, 0x3e8
lea rdx, [rsp + 0x78]
mov rcx, qword [0x14003c0d0]
call fcn.140019744
mov esi, eax
test eax, eax
js 0x1400075fb
mov rbx, qword [rsp + 0x78]
test rbx, rbx
jne 0x1400075ba
mov ecx, edi
jmp 0x1400075c7
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1400075be
mov r8d, ecx
mov rdx, rbx
lea rcx, [r14 + 0x30]
call fcn.1400053fc
nop
mov rcx, rbx
call fcn.1400211e0
mov esi, edi
jmp 0x140007688
cmp qword [r14 + 0xb0], rdi
je 0x140007688
mov rax, qword [0x14003a140]
lea rcx, [0x14003a140]
mov rax, qword [rax + 0x18]
call qword [0x140025fc8]
add rax, 0x18
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov r8, rax
lea rdx, str.Failed_validating_command_line:__s
lea rcx, [rsp + 0x60]
call fcn.140004dd8
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov edx, 1
mov rcx, qword [r14 + 0xb0]
call fcn.1400189f0
nop
lea rdx, [rbx - 0x18]
or rcx, 0xffffffffffffffff
mov eax, ecx
lock xadd dword [rdx + 0x10], eax
add eax, ecx
test eax, eax
jg 0x140007688
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140025fc8]
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400186e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x18], 0
and dword [rcx + 0x20], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rax
mov byte [rcx + 0x50], al
add rcx, 0x58
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rcx + 0x20], rax
call fcn.140004fcc
test eax, eax
js 0x14001880c
lea rsi, [rbx + 0x80]
mov dword [rsi], 1
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftOle
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400187eb
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.EnableATLEnumClassLock
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400187d0
cmp dword [rsp + 0x60], 4
jne 0x1400187d0
test eax, eax
je 0x1400187d6
mov dword [rsi], 1
test rdi, rdi
je 0x1400187eb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rax, [0x1400253b0]
mov qword [rbx], rax
mov rax, qword [0x14003c088]
lock inc dword [rax + 0xc]
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, eax
call fcn.1400055ac
int3

Function at 0x1400189f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov esi, edx
mov rbx, rcx
jne 0x140018a22
lea rcx, str.Attempting_to_write_log_message_before_LogWrapper_has_been_fully_initialized.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop dword [rax + rax]
xor eax, eax
jmp 0x140018a72
mov rcx, r8
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140018a40
mov ebx, 0x8007000e
jmp 0x140018a70
mov rcx, qword [rbx + 0x10]
mov edx, esi
mov r9, qword [rbx]
mov r8d, dword [rbx + 8]
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140025fc8]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140018a8c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003ba58]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rsi, rcx
mov rax, qword [0x14003a140]
lea r15, [0x14003a140]
mov rcx, r15
mov rax, qword [rax + 0x18]
call qword [0x140025fc8]
add rax, 0x18
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x5c]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x60], 0x114
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x70]
lea rdx, [rsp + 0x40]
int3
Function at 0x14001a770
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14003ba58]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor edi, edi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14002b9d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a7e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14001a82b
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x4000000
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14001a7c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021520
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x14001c330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x14002ba50]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x14001c35f
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadResource]

Function at 0x14001c46c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14003ba58]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x14003c1bc]
test eax, eax
jne 0x14001c570
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001c4db
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x14003c1bc], eax
sub ecx, 1
je 0x14001c54c
cmp ecx, 1
jne 0x14001c570
cmp edx, 5
jne 0x14001c53a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14001c533
sub eax, ecx
je 0x14001c519
cmp eax, ecx
je 0x14001c50f
lea eax, [rdx + 0xf]
jmp 0x14001c58e
mov edx, 0x10
lea ecx, [rdx - 0xf]
jmp 0x14001c521
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x14001c58e
mov eax, 4
jmp 0x14001c58e
cmp edx, 4
ja 0x14001c589
mov ecx, 2
mov eax, ecx
mov dword [0x14003c1bc], ecx
cmp edx, 4
jne 0x14001c570
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x14001c563
cmp ecx, 0xa
je 0x14001c563
cmp ecx, 0x5a
jne 0x14001c570
mov ecx, 1
mov eax, ecx
mov dword [0x14003c1bc], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140021520
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x14003c1bc], eax
jmp 0x14001c570
Function at 0x1400213e5
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x14001d1c4]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x1400214a2
je 0x1400214b9
insb byte [rdi], dx
cld
add byte [rax], al
je 0x1400214c3
jne 0x14002148d
lea rax, [0x1400209b6]
add rax, 0xb32
call rax
je 0x14002145e
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x1400214cc
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret

Function at 0x14002192c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140021978
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140021970
cmp dword [rcx + 0x3c], edx
jl 0x140021970
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140021970
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140021978
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140021db8
Capabilities:
Print debug messages

Disassembly:
jmp 0x140021dc4
push rbx
sub rsp, 0x540
mov rax, qword [0x14003ba58]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140021e41
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140021e61
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140021520
add rsp, 0x540
pop rbx
ret
Function at 0x140007678
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x140008985]
call sub.msvcrt.dll_getenv
jmp 0x140007749
lea rcx, [0x140008989]
lea rdx, [0x140008981]
mov r8, rax
mov rax, qword [0x14000941d]
call rax
mov rsi, rax
lea rdi, [0x140008989]
lea r12, [0x140007b4e]
push r12
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rdx, 0x811
mov ecx, dword [rbp - 0x29]
mov word [rbp - 0x1d], dx
movzx eax, dx
mov dword [rbp - 9], eax
mov ecx, dword [rbp - 0x2c]
mov r11, rax
mov rax, qword [rbp - 0x20]
mov r9, r9
mov dword [rbp - 0x23], ecx
mov ecx, dword [rbp - 0xd]
xor rcx, r10
mov dword [rbp - 0x21], eax
cmp r11, rdx
jae 0x1400077be
and r9, rax
mov edx, dword [rbp - 1]
mov qword [rbp - 0x1d], r9
mov r10, qword [rbp - 0x2e]
add rax, qword [rbp - 1]
cmp eax, dword [section..data]
jns 0x1400077d0
mov r9, qword [rbp - 0x29]
mov ecx, edx
xor r11, r11
mov dword [rbp - 0x22], eax
mov ecx, eax
cmp rdx, r11
je 0x1400077dd
mov ecx, dword [rbp - 0x1f]
mov edx, dword [rbp - 0x14]
mov dh, byte [rbp - 3]
sub qword [rbp - 0x23], r11
cmp al, 6
jmp 0x140007849
sub rax, qword [rbp - 0xb]
mov dword [rbp - 6], edx
mov dword [rbp - 0x15], edx
and rdx, r9
call fcn.140007899
lea rax, [0x14000800a]
cmp ecx, edx
jno 0x140007894
mov dword [rbp - 9], eax
mov ecx, edx
movzx ecx, byte [rbp - 0x18]
mov r10, rdx
mov qword [rbp - 0x11], rax
add edx, 0xd6e0
mov ecx, dword [rbp - 2]
mov ecx, dword [rbp - 0x10]
mov qword [rbp - 0x24], r9
mov ax, word [rbp - 0x26]
mov qword [rbp - 0xd], rcx
mov edx, eax
sub qword [rbp - 8], rcx
movzx eax, ax
leave
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013d00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015050
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015070
xor al, al
jmp 0x1400150f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015083
xor al, al
jmp 0x1400150f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400150ad
xor al, al
jmp 0x1400150f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400150c1
xor al, al
jmp 0x1400150f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400150d3
xor al, al
jmp 0x1400150f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400150ef
xor al, al
jmp 0x1400150f1
mov al, 1
add rsp, 0x38
ret