joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001139d
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140014e90
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14002b0f2]
call fcn.140011663
nop
mov dword [rbp + 0x24], 4
mov dword [rbp + 0x64], 4
lea rax, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection
mov qword [rbp + 0x88], rax
lea rax, str.DisableRealtimeMonitoring
mov qword [rbp + 0xa8], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x88]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014f8b
lea rax, [rbp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x24]
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014f80
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rbp + 0x44], 1
jne 0x140014f6d
mov dword [rbp + 0x174], 1
jmp 0x140014f77
mov dword [rbp + 0x174], 0
movzx eax, byte [rbp + 0x174]
jmp 0x140014f8d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001fed0]
call fcn.14001158c
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14001132f
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x1400113a7
Capabilities:
Terminate process

Disassembly:
jmp 0x140017e20
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 0x1400113fc
Capabilities:
Download url
Receive data

Disassembly:
jmp 0x140014dd0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14002b0f2]
call fcn.140011663
nop
mov rcx, qword [rbp + 0x108]
call fcn.140011230
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0x100]
call fcn.140011230
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbp + 0xd8]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call fcn.140011604
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140014e49
mov dword [rbp + 0xd4], 1
jmp 0x140014e53
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011497
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019190
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400191a3
xor al, al
jmp 0x140019211
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 0x1400191cd
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400191e1
xor al, al
jmp 0x140019211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400191f3
xor al, al
jmp 0x140019211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001920f
xor al, al
jmp 0x140019211
mov al, 1
add rsp, 0x38
ret
Function at 0x14001150f
Capabilities:
Create process on windows

Disassembly:
jmp 0x140015010
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14002b0f2]
call fcn.140011663
nop
mov rcx, qword [rbp + 0x100]
call fcn.140011230
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rbp + 8], rax
cmp dword [rbp + 8], 0x20
jle 0x140015078
mov dword [rbp + 0xd4], 1
jmp 0x140015082
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140016f70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011695
movzx eax, al
test eax, eax
jne 0x140016f90
mov ecx, 7
call fcn.140011596
nop
mov byte [rsp + 0x20], 0
call fcn.1400115cd
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140016fb4
mov ecx, 7
call fcn.140011596
nop
jmp 0x14001700c
cmp dword [0x140024b78], 0
jne 0x140017007
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.140011316
test eax, eax
je 0x140016fe8
mov eax, 0xff
jmp 0x140017111
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.1400115b4
mov dword [0x140024b78], 2
jmp 0x14001700c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011582
call fcn.1400114c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140017069
mov rcx, qword [rsp + 0x30]
call fcn.14001128a
movzx eax, al
test eax, eax
je 0x140017069
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002c020]
nop
call fcn.14001150a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001709d
mov rcx, qword [rsp + 0x38]
call fcn.14001128a
movzx eax, al
test eax, eax
je 0x14001709d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011640
nop
call fcn.1400171c0
mov dword [rsp + 0x28], eax
call fcn.140011497
movzx eax, al
test eax, eax
jne 0x1400170bc
mov ecx, dword [rsp + 0x28]
call fcn.140011096
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400170cb
call fcn.140011654
nop
xor edx, edx
mov cl, 1
call fcn.14001125d
mov eax, dword [rsp + 0x28]
jmp 0x140017111
add rsp, 0x68
ret
Function at 0x180004340
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
movsxd r10, edx
mov r11, rcx
mov eax, 0x12df
nop
inc eax
test al, 1
jne 0x180004350
add eax, 0xffffff7f
test al, 1
lea ecx, [rax - 0x10e2]
cmove ecx, eax
mov eax, ecx
mov r9d, ecx
and eax, 0x80000003
jge 0x180004379
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x180004388
test ecx, ecx
jle 0x180004388
lea r9d, [rcx - 0x2a6]
lea r8d, [r9 + 0x7598]
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x1800043ca
nop word [rax + rax]
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x1800043b0
cmp r8d, 0x7470
jne 0x1800043e8
cmp r9d, 0xfffffed7
jne 0x1800043e8
mov rax, qword [r11]
mov rax, qword [rax + r10*8]
add rsp, 0x28
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180010590
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001071f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18000b850
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1800106e4
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x180010662
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800106d3
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x18001069b
mov r10, qword [rdx]
cmp r10, rax
je 0x180010695
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1800106d3
cmp r8, rdx
je 0x1800106af
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x1800106f9
cmp r8, rdx
jne 0x1800106a0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180010630
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1800106d3
lea rcx, [0x1800c51a0]
call fcn.180042bb8
int3
Function at 0x180013070
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1800130d1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180013090
mov ecx, dword [r9]
jmp 0x1800131b8
cmp ecx, 0x4e0
jb 0x1800131b8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800130f0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180013140
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180052678
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 0x1800526aa
call fcn.18004cf34
mov dword [rax], 0x16
call fcn.18004c16c
jmp 0x1800527c9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800527c9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800527c9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800526d9
lock or dword [rcx + 0x14], 0x10
jmp 0x1800527c9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800526ed
call fcn.180053d04
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18004ef6c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18005421c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800527b7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180052782
mov rcx, rsi
call fcn.18004ef6c
cmp eax, edi
je 0x18005276d
mov rcx, rsi
call fcn.18004ef6c
cmp eax, 0xfffffffe
je 0x18005276d
mov rcx, rsi
call fcn.18004ef6c
movsxd rbx, eax
lea r14, [0x1800af740]
mov rcx, rsi
sar rbx, 6
call fcn.18004ef6c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180052774
lea rdx, [0x180061420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180052782
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800527a6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800527a6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800527a6
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 0x1800527cc
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 0x180053a84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800441e0
sub rsp, rax
mov rax, qword [0x180061078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004ef6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180053ad3
mov rax, rbp
jmp 0x180053bdb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xaf740]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800549f4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xaf740]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180053bd7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180053bd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800549f4
test rax, rax
js 0x180053bd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180053bd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180053bc9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180053bc9
cmp byte [rcx], 0xd
jne 0x180053baf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180053bbe
cmp byte [rcx + 1], 0xa
jne 0x180053bbe
inc rcx
jmp 0x180053bbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180053b91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180053bdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800441b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180053d70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800af740]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180053dce
cmp word [rdx], r12w
jne 0x180053dce
or byte [rax + r8*8 + 0x38], cl
jmp 0x180053dd4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180053f2f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180053f0a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180053e0d
mov rcx, r9
jmp 0x180053e30
cmp r9, rdx
jae 0x180053e47
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180053df1
jmp 0x180053f2f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180053f04
cmp dword [rsp + 0x80], edi
je 0x180053f04
mov rdx, r14
lea r11, [0x1800af740]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180053edd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180053eb0
mov word [rbx], r12w
jmp 0x180053f2b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180053eb9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180053f2b
cmp word [rsp + 0x70], r12w
jne 0x180053eea
cmp rbx, rsi
je 0x180053eaa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800549fc
cmp word [rsp + 0x70], r12w
je 0x180053f2f
mov word [rbx], r13w
jmp 0x180053f2b
lea r11, [0x1800af740]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180053f27
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180053f2f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180058134
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 0x180058164
xor eax, eax
jmp 0x180058227
mov rbp, rbx
cmp word [rax], si
je 0x180058189
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180058170
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005816c
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.18005687c
movsxd r14, eax
test eax, eax
jne 0x1800581c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005815d
mov rcx, r14
call fcn.18005359c
mov rdi, rax
test rax, rax
jne 0x1800581e0
xor ecx, ecx
call fcn.1800521f8
jmp 0x1800581bc
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.18005687c
test eax, eax
jne 0x180058211
mov rcx, rdi
call fcn.1800521f8
jmp 0x18005821b
xor ecx, ecx
call fcn.1800521f8
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 0x18005e094
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.1800549fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800549fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005e1e4
cmp rax, 0xffffffffffffffff
je 0x18005e1e4
xor edi, edi
test rbp, rbp
jle 0x18005e18f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800529c4
mov rbx, rax
test rax, rax
jne 0x18005e11c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005e185
mov edx, 0x8000
mov ecx, r14d
call fcn.18005df1c
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.180051ee8
cmp eax, 0xffffffff
je 0x18005e165
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005e12c
mov edx, r15d
mov ecx, r14d
call fcn.18005df1c
jmp 0x18005e185
cmp byte [rsi + 0x38], dil
je 0x18005e17c
cmp dword [rsi + 0x34], 5
jne 0x18005e17c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005e185
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800521f8
jmp 0x18005e1f8
jns 0x18005e1f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800549fc
cmp rax, 0xffffffffffffffff
jne 0x18005e1b0
cmp byte [rsi + 0x30], dil
je 0x18005e1f8
mov edi, dword [rsi + 0x2c]
jmp 0x18005e1f8
mov ecx, r14d
call fcn.1800588ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005e1f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005e1f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005e1f1
mov eax, dword [rsi + 0x2c]
jmp 0x18005e1f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800549fc
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400d8b40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400d8b50]
mov dword [rax], 1
mov rax, qword [0x1400d8b60]
mov dword [rax], 1
mov rax, qword [0x1400d8af0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400d8b30]
mov dword [0x1400ed00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400d8c10]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400d8bf0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400d8aa0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001540
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret