joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084d7e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140142230
mov rax, rcx
neg rcx
test rax, 7
je 0x14014224d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401422a8
test al, 7
jne 0x140142240
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140142261
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401422d2
test dh, dh
je 0x1401422cc
shr rdx, 0x10
test dl, dl
je 0x1401422c6
test dh, dh
je 0x1401422c0
shr rdx, 0x10
test dl, dl
je 0x1401422ba
test dh, dh
je 0x1401422b4
shr edx, 0x10
test dl, dl
je 0x1401422ae
test dh, dh
jne 0x140142261
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140084dc4
Capabilities:
Query environment variable

Disassembly:
jmp 0x140164a70
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401645f0
lea rcx, [rsp + 0x20]
call fcn.140164640
movzx eax, al
test eax, eax
jne 0x140164ab5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140164620
mov rax, qword [rsp + 0x40]
jmp 0x140164baf
lea rcx, [rsp + 0x20]
call fcn.140164740
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401646e0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140085071
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140084860
lea rcx, [rsp + 0x28]
call fcn.1400853e1
movzx eax, al
test eax, eax
jne 0x140164b4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140086417
lea rcx, [rsp + 0x20]
call fcn.140164620
mov rax, qword [rsp + 0x50]
jmp 0x140164baf
lea rcx, [rsp + 0x20]
call fcn.140164740
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400870f1
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140084fea
lea rcx, [rsp + 0x28]
call fcn.14008783f
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140086417
lea rcx, [rsp + 0x20]
call fcn.140164620
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400851a2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400cf1e0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ceb60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400cf21f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14023d020]
jmp 0x1400cf229
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140085364
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400cf110
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400ceae0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400cf151
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14023d020]
jmp 0x1400cf157
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400853eb
Capabilities:
Get geographical location

Disassembly:
jmp 0x140146100
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140145030
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140146167
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14023d030]
jmp 0x140146189
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400849c3
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14008540e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400acd70
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]
add rsp, 0x28
ret
Function at 0x1400856cf
Capabilities:
Print debug messages

Disassembly:
jmp 0x14017ec20
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140225078]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14017ec46
jmp 0x14017ecc3
mov rcx, qword [rbp + 0x30]
call fcn.140084d7e
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14017ec5f
jmp 0x14017ecc3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14017ec7c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140083b9a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400840bd
test eax, eax
jne 0x14017ecc3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140084fdb
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140085cd3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400ac130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400ac150
xor al, al
jmp 0x1400ac1d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400ac163
xor al, al
jmp 0x1400ac1d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400ac18d
xor al, al
jmp 0x1400ac1d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400ac1a1
xor al, al
jmp 0x1400ac1d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400ac1b3
xor al, al
jmp 0x1400ac1d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400ac1cf
xor al, al
jmp 0x1400ac1d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140086340
Capabilities:
Terminate process

Disassembly:
jmp 0x140127b70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140127b9e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140086cdc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140086b06
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1400a1870
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 rax, qword [0x140225078]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14023b170]
call fcn.1400871be
mov eax, 0x104
mov eax, eax
mov ecx, dword [0x140227490]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140226d08], eax
jle 0x1400a190b
lea rcx, [0x140226d08]
call fcn.140086a57
cmp dword [0x140226d08], 0xffffffff
jne 0x1400a190b
lea rcx, [0x140226ce8]
call fcn.140083519
lea rcx, [0x1401986d0]
call fcn.1400849eb
lea rcx, [0x140226d08]
call fcn.140086c5a
lea rcx, [0x140226ce8]
call fcn.1400876d7
test rax, rax
jne 0x1400a19ac
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400a194e
lea rax, [0x140226ce8]
jmp 0x1400a19b3
mov dword [rbp + 0x44], 0
jmp 0x1400a195f
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x1400a19a2
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx + rax*8]
lea rcx, [rbp + 0x128]
call fcn.140084653
nop
lea rdx, [rbp + 0x128]
lea rcx, [0x140226ce8]
call fcn.140085e22
nop
lea rcx, [rbp + 0x128]
call fcn.140086796
jmp 0x1400a1957
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, [0x140226ce8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401e7e70]
call fcn.1400865cf
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140084fdb
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140086d4f
Capabilities:
Print debug messages

Disassembly:
jmp 0x140159380
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140086e3f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400cf250
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ceba0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400cf299
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14023d020]
jmp 0x1400cf2a8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14008714b
Capabilities:
Create thread

Disassembly:
jmp 0x1401270c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1401270ec
mov dword [rsp + 0x30], 1
jmp 0x1401270f4
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14012713d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x1401eabd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.140083730
cmp eax, 1
jne 0x14012713d
int3
cmp dword [rsp + 0x34], 0
jne 0x14012717f
call fcn.1400847c5
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0xc8
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.140086813
xor eax, eax
jmp 0x14012727f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140126bb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401269b0
lea rcx, [rsp + 0x40]
call fcn.140126a20
movzx eax, al
test eax, eax
jne 0x1401271cf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140126a00
mov rax, qword [rsp + 0x50]
jmp 0x14012727f
lea rcx, [rsp + 0x40]
call fcn.140126d60
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x140126760]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140127243
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008433d
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.140126a00
mov rax, qword [rsp + 0x58]
jmp 0x14012727f
cmp qword [rsp + 0xa8], 0
je 0x14012725c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.140126d20
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140126a00
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x140171e00
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140083b9a
sub rsp, rax
mov rax, qword [0x140225078]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140228f50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140171ff2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140171f46
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140171f46
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140171f2b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140171ec8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140171fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140172011
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140171fed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140172011
jmp 0x140171e9e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140084fdb
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401720c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140083b9a
sub rsp, rax
mov rax, qword [0x140225078]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140228f50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401722cd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140172219
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140172219
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1401721f9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140172188
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14017228d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401722ec
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1401722c8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401722ec
jmp 0x14017215e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140084fdb
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013100
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]
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014440
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014460
xor al, al
jmp 0x1400144e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014473
xor al, al
jmp 0x1400144e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001449d
xor al, al
jmp 0x1400144e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144b1
xor al, al
jmp 0x1400144e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144c3
xor al, al
jmp 0x1400144e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144df
xor al, al
jmp 0x1400144e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400012c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x190
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x188], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001339
nop dword [rax]
lea rdx, str.PhonecticLoader.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x140001372
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001310
lea rcx, [0x1400034f0]
jmp 0x14014c0ea
lea rcx, [0x1400034f0]
jmp 0x1401351a3

Function at 0x1400020f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000213e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000213e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000213e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000213e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000213e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002140
xor al, al
add rsp, 0x28
ret
Function at 0x14000f6e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14000f70d
xor al, al
jmp 0x14000f86f
mov rax, qword [0x1400306c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400306c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400306d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400306d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400306e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400306e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400306f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400306f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140030700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14000f861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14000f7b9
mov r11d, 2
jmp 0x14000f7dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14000f7d3
mov r11d, 1
jmp 0x14000f7dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14000f885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14000f822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14000f83a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14000f84a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14000f858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14000f7a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14000f86a