joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140013a90
test ecx, ecx
jne 0x140013ae0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140013a9c
test ecx, ecx
jne 0x140013ae0
mov rcx, rdi
call fcn.140013940
movzx eax, al
test bpl, bpl
jne 0x140013ae7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140013ad3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140013c58]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140013ad3.2
xor eax, eax
test bpl, bpl
je 0x140013aac
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140013c39
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140013b1a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140013b99
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140013b60
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140013b7b
inc rax
dec rdi
cmp rax, 1
jne 0x140013b40
jmp 0x140013b99
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140013b7b
cmp ebx, 0x5c
je 0x140013b7b
inc rax
dec rdi
cmp rax, 1
jne 0x140013b60
jmp 0x140013b99
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140013c47
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140013bc3
mov al, 9
cmp rdx, 2
je 0x140013bc7
cmp rdx, 1
jne 0x140013bd7
cmp byte [r8], 0x2e
jne 0x140013bd7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140013bd7
mov al, 0xa
jmp 0x140013bd7
cmp byte [r8], 0x2e
jne 0x140013bd7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140013ad3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140013ad3.2
mov ecx, 2
jmp case.0x140013ad3.2
lea r8, [0x1400339d8]
call fcn.14002e570
ud2
lea r8, [0x1400339f0]
call fcn.14002e570
ud2
Function at 0x140021f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400110c0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140021fb6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400220f0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140021fc4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021fe4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140021fd5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.1400112b0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140021fd5
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140001e30
Function at 0x1400247f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14002a290
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14002bc40
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x14001b160]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400249de
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400248b7
cmp dword [rbp + 0xfec], 0
jne 0x1400249f3
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x1400249f3
cmp ebx, 0x1000
ja 0x140024a37
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x140024a23
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400249e6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x140024960
cmp dword [rbp + 0xfec], 0
jne 0x1400249ec
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x140024900
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400248b7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400249f3
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.14002e8c0
jmp 0x140024a4b
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.14002e600
ud2
Function at 0x140024aa0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140024adf
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140015100]
mov qword [rbp - 0x28], rax
lea rax, [0x140034be8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002e490
ud2

Function at 0x14002abc8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1401085b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401085d8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140108622
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1401085cd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400ba4cc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140160390
mov rax, rcx
neg rcx
test rax, 7
je 0x1401603ad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140160408
test al, 7
jne 0x1401603a0
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 0x1401603c1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140160432
test dh, dh
je 0x14016042c
shr rdx, 0x10
test dl, dl
je 0x140160426
test dh, dh
je 0x140160420
shr rdx, 0x10
test dl, dl
je 0x14016041a
test dh, dh
je 0x140160414
shr edx, 0x10
test dl, dl
je 0x14016040e
test dh, dh
jne 0x1401603c1
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 0x1400ba503
Capabilities:
Query environment variable

Disassembly:
jmp 0x14020e420
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14020dfa0
lea rcx, [rsp + 0x20]
call fcn.14020dff0
movzx eax, al
test eax, eax
jne 0x14020e465
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14020dfd0
mov rax, qword [rsp + 0x40]
jmp 0x14020e55f
lea rcx, [rsp + 0x20]
call fcn.14020e0f0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14020e090
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.1400ba887
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400b9e7d
lea rcx, [rsp + 0x28]
call fcn.1400bad55
movzx eax, al
test eax, eax
jne 0x14020e4ff
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400bc1dc
lea rcx, [rsp + 0x20]
call fcn.14020dfd0
mov rax, qword [rsp + 0x50]
jmp 0x14020e55f
lea rcx, [rsp + 0x20]
call fcn.14020e0f0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400bd186
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.1400ba7ce
lea rcx, [rsp + 0x28]
call fcn.1400bdae6
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400bc1dc
lea rcx, [rsp + 0x20]
call fcn.14020dfd0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400baa26
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14015e4c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015de40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015e4ff
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 [0x1402a6020]
jmp 0x14015e509
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bac83
Capabilities:
Query environment variable

Disassembly:
jmp 0x14020e170
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14020dfa0
lea rcx, [rsp + 0x40]
call fcn.14020e120
movzx eax, al
test eax, eax
jne 0x14020e1b8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14020dfd0
mov rax, qword [rsp + 0x70]
jmp 0x14020e389
lea rcx, [rsp + 0x40]
call fcn.14020e0f0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14020e090
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14020e0f0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400bbe08
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14020e25e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14020dfd0
mov rax, qword [rsp + 0x80]
jmp 0x14020e389
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400ba887
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ba66b
lea rcx, [rsp + 0x48]
call fcn.1400ba09e
movzx eax, al
test eax, eax
jne 0x14020e2c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b8cda
lea rcx, [rsp + 0x40]
call fcn.14020dfd0
mov rax, qword [rsp + 0x88]
jmp 0x14020e389
lea rcx, [rsp + 0x48]
call fcn.1400bb15b
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14020e0f0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400bbe08
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14020e35b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b8cda
lea rcx, [rsp + 0x40]
call fcn.14020dfd0
mov rax, qword [rsp + 0xa0]
jmp 0x14020e389
lea rcx, [rsp + 0x48]
call fcn.1400ba625
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b8cda
lea rcx, [rsp + 0x40]
call fcn.14020dfd0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bac9c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14015e3f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14015ddc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015e431
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 [0x1402a6020]
jmp 0x14015e437
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bad5f
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401f59d0
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.1401f4900
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401f5a37
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 [0x1402a6030]
jmp 0x1401f5a59
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400ba017
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 0x1400bad73
Capabilities:
Terminate process

Disassembly:
jmp 0x14013b270
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 0x1400bb0f7
Capabilities:
Print debug messages

Disassembly:
jmp 0x14021bad0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140289058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14021baf6
jmp 0x14021bb73
mov rcx, qword [rbp + 0x30]
call fcn.1400ba4cc
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14021bb0f
jmp 0x14021bb73
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14021bb2c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b8f05
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.1400b94f5
test eax, eax
jne 0x14021bb73
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400ba7ab
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bb520
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402102d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400bb6e2
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400d5c40
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rcx, [0x1402a50f4]
call fcn.1400bd271
lea rcx, str.appl.exe
call fcn.1400bbd6d
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14028b860], rax
lea rcx, str.appl.exe
call fcn.1400bbd6d
mov edx, eax
lea rcx, [0x14028baf0]
call fcn.1400b8e2e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 8], rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [0x14028b860]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
lea rcx, str.hackdll.dll
call fcn.1400ba4cc
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.hackdll.dll
mov rdx, qword [rbp + 0x28]
mov rcx, qword [0x14028b860]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14028b860]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400bb859
Capabilities:
Parse pe header

Disassembly:
jmp 0x14013cc90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14013ccb0
xor al, al
jmp 0x14013cd31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14013ccc3
xor al, al
jmp 0x14013cd31
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 0x14013cced
xor al, al
jmp 0x14013cd31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14013cd01
xor al, al
jmp 0x14013cd31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14013cd13
xor al, al
jmp 0x14013cd31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14013cd2f
xor al, al
jmp 0x14013cd31
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bc0c9
Capabilities:
Terminate process

Disassembly:
jmp 0x14015f490
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 0x14015f4be
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400bcc86
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 0x1400bcd03
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401ec9b0
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 0x1400bce66
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14015e530
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015de80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015e579
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 [0x1402a6020]
jmp 0x14015e588
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400bcf65
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402283c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400b9e2d
lea rcx, [rsp + 0x48]
call fcn.1400b9e2d
call fcn.1400bac06
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400b9b17
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14022842f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400ba373
lea rcx, [rsp + 0x78]
call fcn.1400ba373
mov eax, dword [rsp + 0x24]
jmp 0x1402284c0
call fcn.1400bac06
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400b9b17
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140228476
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400ba373
lea rcx, [rsp + 0x78]
call fcn.1400ba373
mov eax, dword [rsp + 0x2c]
jmp 0x1402284c0
lea rcx, [rsp + 0x48]
call fcn.1400b9d51
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400b9d51
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400ba373
lea rcx, [rsp + 0x78]
call fcn.1400ba373
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret