joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a208c
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 0x1400a2113
mov rsi, rbx
cmp word [rax], bp
je 0x1400a20d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a20bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a20b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140097440
mov rdi, rax
test rax, rax
je 0x1400a2100
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a7010
mov rbp, rdi
xor ecx, ecx
call fcn.140097404
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 0x1400a62d0
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.14009ae3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009ae3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a6420
cmp rax, 0xffffffffffffffff
je 0x1400a6420
xor edi, edi
test rbp, rbp
jle 0x1400a63cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400998f0
mov rbx, rax
test rax, rax
jne 0x1400a6358
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a63c1
mov edx, 0x8000
mov ecx, r14d
call fcn.14009674c
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.14009a874
cmp eax, 0xffffffff
je 0x1400a63a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a6368
mov edx, r15d
mov ecx, r14d
call fcn.14009674c
jmp 0x1400a63c1
cmp byte [rsi + 0x38], dil
je 0x1400a63b8
cmp dword [rsi + 0x34], 5
jne 0x1400a63b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a63c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140097404
jmp 0x1400a6434
jns 0x1400a6434
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009ae3c
cmp rax, 0xffffffffffffffff
jne 0x1400a63ec
cmp byte [rsi + 0x30], dil
je 0x1400a6434
mov edi, dword [rsi + 0x2c]
jmp 0x1400a6434
mov ecx, r14d
call fcn.1400a26d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a6434
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a6434
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a642d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a6432
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009ae3c
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 0x1400a6be0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a6c08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a6c08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800099d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180009a04
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800099f0
mov rcx, rax
shr rcx, 0x20
xor eax, ecx
ret
Function at 0x180038520
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r9b, 0xcc
mov r8d, 0xc
lea rdx, [0x1800bbfa8]
lea rcx, [rsp + 0x48]
call fcn.180041e20
mov rbx, rax
mov r9b, 0xbc
mov r8d, 0xc
lea rdx, [0x1800bbfb8]
lea rcx, [rsp + 0x28]
call fcn.180041ef0
nop
cmp qword [rbx + 0x18], 0x10
jb 0x180038579
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 8
jb 0x180038583
mov rax, qword [rax]
mov rcx, rax
call fcn.18006e0c0
mov rcx, rax
mov rdx, rbx
call fcn.18006e600
mov rbx, rax
cmp qword [rsp + 0x40], 8
jb 0x1800385ab
mov rcx, qword [rsp + 0x28]
call fcn.18007588c
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
cmp qword [rsp + 0x60], 0x10
jb 0x1800385d2
mov rcx, qword [rsp + 0x48]
call fcn.18007588c
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x48], 0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180066f80
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1800ec278]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x40], sil
mov qword [r11 - 0x44], rsi
mov dword [r11 - 0x3c], 0x67452301
mov dword [r11 - 0x38], 0xefcdab89
mov dword [r11 - 0x34], 0x98badcfe
mov dword [r11 - 0x30], 0x10325476
cmp qword [rdx + 0x18], 0x10
jb 0x180066ff7
mov rdx, qword [rdx]
mov r8d, dword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.180066c60
lea rcx, [rsp + 0x40]
call fcn.180066d30
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180066e70
mov dword [rsp + 0x20], 1
cmp qword [rbx + 0x18], 0x10
jb 0x180067033
mov rcx, qword [rbx]
call fcn.18007588c
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180074e80
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180067310
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
cmp qword [rcx + 0x18], 8
mov rsi, rdx
jb 0x180067326
mov rcx, qword [rcx]
xor r14d, r14d
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call fcn.18006b680
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x180067363
xor al, al
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
call fcn.18006d870
mov dword [rsp + 0x60], r14d
mov edi, eax
mov edx, eax
mov rax, qword [rsi + 0x10]
mov ebx, r14d
cmp rdi, rax
ja 0x1800673a7
cmp qword [rsi + 0x18], 0x10
mov qword [rsi + 0x10], rdx
jb 0x18006739f
mov rax, qword [rsi]
mov byte [rax + rdi], bl
jmp 0x1800673b5
mov rax, rsi
mov byte [rax + rdi], bl
jmp 0x1800673b5
sub rdx, rax
xor r8d, r8d
mov rcx, rsi
call fcn.180007960
test edi, edi
je 0x1800673fb
nop dword [rax]
mov rcx, rsi
call fcn.180005850
mov r8d, edi
lea r9, [rsp + 0x60]
mov rdx, rax
mov eax, ebx
sub r8d, ebx
mov rcx, rbp
add rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180067418
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800673fb
add ebx, eax
cmp ebx, edi
jb 0x1800673c0
mov rcx, rbp
call fcn.18006b130
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.18006b130
xor al, al
jmp 0x180067405
Function at 0x1800682b0
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x28
mov r13, r9
mov rdi, r8
mov r14d, edx
mov rbx, rcx
test r8, r8
je 0x1800684c4
test r9, r9
je 0x1800684c4
mov ecx, edx
call fcn.180068220
cmp dword [r13], eax
jl 0x1800684c4
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
mov eax, 0x55555556
mov esi, r8d
lea r10d, [r8 + 0x13]
mov r9d, r8d
imul r14d
mov r15d, edx
mov eax, 0x6bca1af3
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr r15d, 0x1f
add r15d, edx
lea r12d, [r15*4]
imul r12d
mov r11d, edx
sar r11d, 5
mov eax, r11d
shr eax, 0x1f
add r11d, eax
js 0x18006840a
cmp r8d, r11d
jne 0x180068364
imul ecx, r11d, 0x4c
mov eax, r12d
sub eax, ecx
cdq
and edx, 3
lea r10d, [rdx + rax]
sar r10d, 2
test r10d, r10d
jle 0x1800683f3
mov ebp, r10d
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
movzx edx, byte [rbx]
shl edx, 8
add rdi, 4
add rbx, 3
or edx, ecx
shl edx, 8
or edx, eax
shl edx, 8
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 4], al
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 3], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 2], al
mov eax, edx
shr eax, 0x14
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [rdi - 1], al
dec rbp
jne 0x180068380
lea r12d, [r15*4]
inc r9d
lea esi, [rsi + r10*4]
cmp r9d, r11d
jle 0x18006834d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r12, qword [rsp + 0x60]
lea eax, [r15 + r15*2]
mov r15, qword [rsp + 0x20]
sub r14d, eax
je 0x1800684a6
lea r9d, [r14 + 1]
test r9d, r9d
je 0x1800684a6
test r14d, r14d
jle 0x18006843a
movzx r8d, byte [rbx]
inc rbx
shl r8d, 8
cmp r14d, 1
jle 0x18006844d
movzx eax, byte [rbx]
or r8d, eax
inc rbx
shl r8d, 8
cmp r14d, 2
jle 0x18006845d
movzx eax, byte [rbx]
or r8d, eax
shl r8d, 8
test r9d, r9d
jle 0x18006848c
mov edx, r9d
nop dword [rax]
mov eax, r8d
inc rdi
shl r8d, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov byte [rdi - 1], al
dec rdx
jne 0x180068470
mov edx, 4
add esi, r9d
sub edx, r9d
test edx, edx
jle 0x1800684a4
mov ecx, edx
mov eax, 0x3d
rep stosb byte [rdi], al
add esi, edx
mov rbp, qword [rsp + 0x50]
mov dword [r13], esi
mov rsi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x28
pop r14
pop r13
pop rdi
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x18006adc0
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
movups xmm1, xmmword [rcx + 0x20]
movq rax, xmm1
psrldq xmm1, 8
movq rcx, xmm1
mov rax, qword [rax]
cmp rax, rcx
je 0x18006adff
nop
cmp word [rax + 0x48], 0x18
je 0x18006adff
mov rax, qword [rax]
cmp rax, rcx
jne 0x18006adf0
mov rbx, qword [rax + 0x20]
mov edx, 0xb1866570
mov rcx, rbx
call fcn.18006ae40
mov edx, 0x3fc1bd8d
mov rcx, rbx
mov qword [0x1800f17d8], rax
call fcn.18006ae40
mov byte [0x1800f17c8], 1
mov qword [0x1800f17e0], rax
add rsp, 0x20
pop rbx
ret

Function at 0x18006ae40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ec278]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov ebp, edx
mov rdi, rcx
test rcx, rcx
je 0x18006afd5
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov dword [rsp + 0x20], ecx
mov eax, dword [rax + rdi + 0x8c]
mov dword [rsp + 0x24], eax
lea rax, [rdi + rcx]
mov ecx, dword [rax + 0x1c]
add rcx, rdi
mov qword [rsp + 0x38], rcx
mov ecx, dword [rax + 0x20]
add rcx, rdi
mov qword [rsp + 0x30], rcx
mov edx, dword [rax + 0x24]
add rdx, rdi
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov esi, dword [rax + 0x18]
test esi, esi
je 0x18006afd5
nop dword [rax]
mov ecx, dword [rcx + rbx*4]
add rcx, rdi
call fcn.180073b30
cmp eax, ebp
je 0x18006aeef
inc ebx
cmp ebx, esi
mov rcx, qword [rsp + 0x30]
jb 0x18006aed0
jmp 0x18006afd5
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + rbx*2]
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + rcx*4]
lea rbx, [rdi + rdx]
mov eax, dword [rsp + 0x20]
cmp eax, edx
ja 0x18006afd0
add eax, dword [rsp + 0x24]
cmp edx, eax
jae 0x18006afd0
mov edx, 0x2e
mov rcx, rbx
call fcn.180075648
test rax, rax
je 0x18006afd5
lea rdi, [rax + 1]
sub rax, rbx
mov r9, rax
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180076938
mov r9b, 0x94
mov r8d, 4
lea rdx, [0x1800aade8]
lea rcx, [rsp + 0x48]
call fcn.180041e20
nop
cmp qword [rax + 0x18], 0x10
jb 0x18006af73
mov rax, qword [rax]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1800768bc
nop
cmp qword [rsp + 0x60], 0x10
jb 0x18006af98
mov rcx, qword [rsp + 0x48]
call fcn.18007588c
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov rcx, rdi
call fcn.180073b30
mov ebx, eax
lea rcx, [rsp + 0x70]
call qword [0x1800f17d8]
mov rcx, rax
mov edx, ebx
call fcn.18006ae40
jmp 0x18006afd7
mov rax, rbx
jmp 0x18006afd7
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180074e80
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180073b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
movzx ecx, byte [rcx]
or eax, 0xffffffff
test cl, cl
je 0x180073bda
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x180073b41
not eax
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000b008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000b008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x140f53a28
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f53a32
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f53a5b
pop rbp
sub rbp, 0x33
sub rbp, 0xf53a28
sub rsp, 0x20
jmp 0x140f53a7a
mov rax, 0xf53a28
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffced31c54
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f53a99
jmp 0x140f53ab0
sbb al, 0xdd
mov ebp, 0x5468dddf
push rsp
push rsp
sbb al, 0xd5
xchg ebp, eax
pop rsp
push rbp
push rsp
push rsp
sbb al, 0x55
mov ebp, 0x5394931c
push rsp
push rsp
push rsp
sbb al, 0x93
xchg esi, eax
jl 0x140f53b23
push rsp
push rsp
sbb al, 0xa3
mov dh, 0x1c
push rbp
xchg ebp, eax
invalid
or al, 0xe
invalid
Function at 0x1400010ac
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x1400010d9
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x140001112
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001109
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x14000272d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
xor rcx, rcx
mov rdx, 0xaa97
mov r8, 0x1000
mov r9, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000289f
mov rdi, rax
call 0x140002764
pop rsi
add rsi, 0x1df8c
mov rcx, 0xaa97
rep movsb byte [rdi], byte [rsi]
call rax
str word [r9 + 0xf477405]
add byte [rdi], cl
adc dword [0x1400f6ecc], eax
movups xmmword [0x1400f6edc], xmm0
ret
add byte [rdi], cl
adc dword [0x1400f5e8c], eax
movups xmmword [0x1400f5e9c], xmm0
ret
Function at 0x140004420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400044ca
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400044ca
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140004968
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400058b0
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008b34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008960
Function at 0x109ba8c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
mov qword [0x010d6cf8], rcx
mov ecx, 0x220
call fcn.010a3628
xor ebp, ebp
cmp rax, rbp
je 0x109bad5
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov dword [rax + 0x218], 5
mov qword [0x010d7280], rax
jmp 0x109badc
mov qword [0x010d7280], rbp
mov edi, 0xd8
mov rcx, rdi
call fcn.010a3628
cmp rax, rbp
je 0x109baff
mov rcx, rax
call fcn.0109f1c4
mov qword [0x010d7288], rax
jmp 0x109bb06
mov qword [0x010d7288], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov eax, 0x80000000
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], eax
lea r8, [0x010d6d00]
lea rdx, [0x010d6c30]
mov r9d, 0xcf0000
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
cmp rax, rbp
mov rsi, rax
jne 0x109bb5a
xor eax, eax
jmp 0x109bc84
cmp dword [0x010d7270], ebp
je 0x109bc09
mov rcx, rdi
call fcn.010a3628
cmp rax, rbp
mov rdi, rax
je 0x109bbe1
lea rax, [0x01099f98]
lea rcx, [rdi + 0x58]
mov qword [rdi], rax
lea rax, [0x01099fd0]
mov qword [rdi + 8], rax
call fcn.010a23c0
mov qword [rdi + 0x68], rbp
mov qword [rdi + 0x60], rax
lea rcx, [rdi + 0x88]
mov qword [rdi + 0x70], rbp
mov qword [rdi + 0x78], rbp
call fcn.0109cfb8
mov qword [rdi + 0x98], rbp
mov qword [rdi + 0x90], rax
lea rcx, [rdi + 0xa0]
mov qword [rdi + 0xc8], rsi
mov dword [rdi + 0xd0], ebp
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [0x010d7298], rdi
jmp 0x109bbeb
mov rdi, rbp
mov qword [0x010d7298], rbp
cmp rdi, rbp
jne 0x109bc00
lea rdx, [0x01096f90]
xor ecx, ecx
call fcn.0109c5cc
jmp 0x109bc09
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [0x010d7280]
mov rcx, rsi
mov qword [rbx], rsi
call qword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebp
je 0x109bc74
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
mov eax, 2
mov ecx, edi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.010a36c8
cmp rax, rbp
mov qword [rbx + 8], rax
je 0x109bc61
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
lea rdx, [rbx + 0x10]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetClassNameW]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x109be70
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x198
mov rax, qword [0x010c91a0]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x010d72ac], 0
jne 0x109c00d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x114
mov dword [0x010d72ac], 1
call fcn.010a4ac0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x109bedc
lea rdx, [0x01097038]
xor ecx, ecx
call fcn.0109c5cc
jmp 0x109c00d
cmp dword [rsp + 0x44], 5
jne 0x109bf15
cmp dword [rsp + 0x48], 0
mov ecx, 0xe
jne 0x109bf02
mov dword [0x010d72ac], 2
lea rdx, [0x01097070]
jmp 0x109bf32
mov dword [0x010d72ac], 3
lea rdx, [0x010970b8]
jmp 0x109bf32
cmp dword [rsp + 0x44], 6
jb 0x109bf37
mov dword [0x010d72ac], 4
lea rdx, [0x01097100]
mov ecx, 0xe
call fcn.0109c5cc
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x01097160]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x109c00d
xor eax, eax
lea r9, [rsp + 0x3c]
lea rdx, [0x010971c0]
mov qword [rsp + 0x161], rax
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rax
mov dword [rsp + 0x179], eax
mov word [rsp + 0x17d], ax
mov byte [rsp + 0x17f], al
lea rax, [rsp + 0x38]
xor r8d, r8d
mov byte [rsp + 0x160], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x109c002
lea rcx, [rsp + 0x160]
call fcn.010a3e60
lea rcx, [rsp + 0x164]
mov dword [0x010d72b0], eax
call fcn.010a3e60
mov dword [0x010d72b4], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x010d72ac]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.010a3ca0
add rsp, 0x198
ret

Function at 0x109c208
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp ecx, 2
mov dword [0x010d6c0c], ecx
setne al
cmp ecx, 4
mov dword [0x010d6c14], edx
mov dword [0x010d6c10], eax
mov dword [0x010d6c20], r8d
je 0x109c250
cmp ecx, 1
je 0x109c250
mov eax, dword [0x010cca48]
mov dword [0x010d6c1c], eax
add eax, 1
mov dword [0x010cca48], eax
jmp 0x109c257
and dword [0x010d6c1c], 0
mov rcx, qword [0x010d6c00]
lea rdx, [0x010d6c08]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
mov ebx, eax
jne 0x109c27e
lea rcx, [0x01097468]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret