joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bbd8
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x14002bc16
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002bcca
call fcn.14001e6e8
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002bc35
mov ecx, 0x80004005
call fcn.140014f90
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140160bd0
test eax, eax
je 0x14002bc9d
cmp eax, 0xc
je 0x14002bc97
cmp eax, 0x16
je 0x14002bc91
cmp eax, 0x22
je 0x14002bc91
cmp eax, 0x50
je 0x14002bc9d
call fcn.14001e2f4
int3
call fcn.14001e2f4
int3
call fcn.14001e2ac
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14002bcc8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e33c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140218f40]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14002e372
xor eax, eax
jmp 0x14002e3be
lea rcx, [rsp + 0x20]
call fcn.14015fd2c
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x14002e39e
lea r8, [0x140188a58]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call fcn.14016024c
test eax, eax
jne 0x14002e36e
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x105
call fcn.14016024c
test eax, eax
jne 0x14002e36e
lea rcx, [rsp + 0x20]
call fcn.140016738
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14015e210
add rsp, 0x240
pop rbx
ret

Function at 0x140031894
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400318ba
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14001c934
jmp 0x140031921
cmp byte [0x14021eb40], 0
jne 0x1400318fe
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400318ee
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14021eb38], rax
jmp 0x1400318f5
mov rax, qword [0x14021eb38]
mov byte [0x14021eb40], 1
jmp 0x140031905
mov rax, qword [0x14021eb38]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14003191b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140031921
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140031d64
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x140031d96
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140031d96
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1400840c4
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005ff80
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14005ff91
xor eax, eax
jmp 0x14005ffbf
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140060154
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140060165
xor eax, eax
jmp 0x140060189
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140060190
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1400601d2
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1400602e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14006030f
call fcn.14001e2f4
int3
test rbx, rbx
jne 0x14006031a
call fcn.14001e2f4
int3
test r9, r9
jne 0x140060325
call fcn.14001e2f4
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400603a8
cmp dword [rsp + 0x48], 3
jne 0x1400603a8
test eax, eax
jne 0x1400603a8
cmp dword [rdi], eax
je 0x1400603a8
mov ecx, dword [rdi]
call fcn.140015fac
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006039c
cmp dword [rsp + 0x48], 3
jne 0x14006039c
test eax, eax
jne 0x14006039c
mov eax, 1
jmp 0x1400603aa
mov rcx, qword [rbx]
call fcn.140015ff0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400604b4
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140065270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x1400652a1
call fcn.14001f778
mov rdi, qword [rax + 0x18]
mov r8, qword [0x140220220]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1400652c0
xor eax, eax
jmp 0x14006530c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400652bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140065301
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.140065130
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140130d64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x140130d8d
mov rdi, qword [rdx + 0x10]
jmp 0x140130dde
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140130dae
call fcn.140028478
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140130dc8
call fcn.140028478
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140130dde
call fcn.140028478
call fcn.14001f778
cmp qword [rax + 0x68], 0
je 0x140130df8
mov rdx, rdi
mov rcx, rbp
call fcn.14012f424
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140130ba4
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x140130e1f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x140130e2e
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14015fccc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14015fb3c
Function at 0x140164d23
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140218f40]
jne 0x14015e22a
rol rcx, 0x10
test cx, 0xffff
jne 0x14015e226
repz ret
ror rcx, 0x10
jmp 0x140164c7c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140225670]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140225768]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140164d01
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140225670]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140164d23
mov rax, qword [rsp + 0x88]
mov qword [0x140225768], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140225708], rax
mov rax, qword [0x140225768]
mov qword [0x1402255e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1402256f0], rax
mov dword [0x1402255d0], 0xc0000409
mov dword [0x1402255d4], 1
mov rax, qword [0x140218f40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140218f48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140225668], eax
mov ecx, 1
call fcn.14016f7e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401d5be0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140225668], 0
jne 0x140164daa
mov ecx, 1
call fcn.14016f7e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14016f5a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140218f40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1401647cc
xor ebx, ebx
cmp qword [0x140225ed8], rbx
mov rdi, rax
jne 0x14016f6b3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14016f78a
lea rdx, [0x1401d61d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016f78a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401d61c8]
mov rcx, rsi
mov qword [0x140225ed8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401d61b0]
mov rcx, rsi
mov qword [0x140225ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140225ee8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140225ef8], rax
test rax, rax
je 0x14016f6aa
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140225ef0], rax
jmp 0x14016f6ba
mov rax, qword [0x140225ef0]
jmp 0x14016f6c1
mov rax, qword [0x140225ef0]
mov r11, qword [0x140225ef8]
cmp rax, rdi
je 0x14016f728
cmp r11, rdi
je 0x14016f728
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140225ef8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14016f728
test rax, rax
je 0x14016f728
call rsi
test rax, rax
je 0x14016f722
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14016f722
test byte [rsp + 0x40], 1
jne 0x14016f728
bts ebp, 0x15
jmp 0x14016f768
mov rcx, qword [0x140225ee0]
cmp rcx, rdi
je 0x14016f768
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14016f768
call rax
mov rbx, rax
test rax, rax
je 0x14016f768
mov rcx, qword [0x140225ee8]
cmp rcx, rdi
je 0x14016f768
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14016f768
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140225ed8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14016f78a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14016f78c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015e210
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a6c0
cmp r11, r10
ja 0x14001a736
cmp r10, rdx
ja 0x14001a74a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a6c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a6a0
jmp 0x14001a724
ja 0x14001a6ca
mov r11, r10
cmp rax, r8
jne 0x14001a664
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a700
mov rdi, r8
sub ecx, edx
jns 0x14001a71b
jmp 0x14001a726
cmp r8, rsi
je 0x14001a75b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a726
xor al, 1
cmp rdi, rsi
jne 0x14001a6e0
jmp 0x14001a726
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b4450]
mov rcx, r11
mov rdx, r10
call fcn.140050c40
ud2
lea r8, [0x1413b4450]
mov rcx, r10
call fcn.1400509c0
ud2
lea rcx, [0x1413b8ae0]
lea r8, [0x1413b4438]
mov edx, 0x2b
call fcn.140050a40
ud2

Function at 0x14001fef0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017f10
cmp rax, rcx
je 0x14001ff15
cmp rdx, 4
jae 0x14001ff18
xor eax, eax
xor r8d, r8d
jmp 0x14001ffb0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053730]
movdqa xmm3, xmmword [0x140053540]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001ff40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001ffc7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001ffb0
ret
Function at 0x140020f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140020fbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140020fbb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140020fd6
cmp eax, 0x42
jne 0x140020fbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140021086
cmp byte [r9 + r11], 0x5f
jne 0x140021086
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400210ee
mov rcx, rsi
xor edx, edx
call fcn.14001c680
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001c680
test al, al
jne 0x140021181
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021012
lea rdx, [0x1413b83db]
mov r8d, 1
call fcn.140018380
test al, al
jne 0x140021181
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020fca
xor r14d, r14d
lea rbx, [0x1413b8790]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140021044
cmp byte [rax + rcx], 0x45
je 0x1400211aa
sub r14, 1
jb 0x140021069
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021069
mov r8d, 2
mov rdx, rbx
call fcn.140018380
test al, al
jne 0x140021181
mov rcx, rsi
call fcn.14001dee0
test al, al
jne 0x140021181
mov rax, qword [rsi]
test rax, rax
jne 0x140021030
jmp 0x140020fca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140021148
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400210e2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400210cc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400210bb
add dl, 0xa9
jmp 0x1400210ca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140021148
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140021148
movzx edx, bl
add rax, rdx
jae 0x140021090
jmp 0x140021148
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140021148
cmp rax, rcx
jae 0x140021145
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140021189
cmp qword [rsi + 0x20], 0
je 0x1400211a3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140020f60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020fcc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021198
lea rax, [0x1413b8740]
lea rdx, [0x1413b8750]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018380
test al, al
je 0x140021198
mov dil, 2
jmp 0x140020fca
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021153
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140020fca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020fca
Function at 0x140024fa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bb178]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140025013
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002504a
test eax, eax
js 0x140025024
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002503d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bb1d8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023810
mov rcx, rax
call fcn.140023950
mov ecx, 7
int 0x29
ud2
Function at 0x14002ca40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bb178]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002caac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002cabb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002caf3
cmp eax, 0x103
je 0x14002cafd
test eax, eax
js 0x14002cad8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002caf3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bb1d8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023810
mov rcx, rax
call fcn.140023950
mov ecx, 7
int 0x29
ud2

Function at 0x14002de70
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x140038270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400258a0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400382e6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140038190
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400382f4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038314
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140038305
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140025a80
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140038305
mov rcx, qword [0x1413cdbb8]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003a6e0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1413cdad0]
mov rcx, qword [0x1413cdbb8]
test rcx, rcx
jne 0x14003a72c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003a7fa
mov rcx, rax
mov qword [0x1413cdbb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003a7fa
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003ac50]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003a7ec
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14003a7c5
cmp qword [rax + 0x10], 0x11
jae 0x14003a7ae
mov r8, qword [rbp - 0x20]
jmp 0x14003a7b6
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1413cdbb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1413cdbb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400507b0
ud2