joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ff10
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb8
xor edi, edi
mov dword [rsp + 0x20], 0x10
test rdx, rdx
mov dword [rsp + 0x24], 0x10
lea rax, [r11 - 0x40]
mov rsi, rcx
lea r14, [0x140078bb0]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx]
cmovne r14, rdx
lea r15d, [rax + 0x14]
cmp qword [r14 + 8], rdi
je 0x140030101
cmp dword [r14], edi
je 0x140030101
test eax, eax
je 0x140030101
cmp qword [rcx + 8], rdi
je 0x140030101
mov edx, r15d
lea ecx, [rdi + 0x40]
mov qword [r11 + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x1400300fd
mov r8d, dword [rsi]
lea rcx, [rax + 0x14]
mov rdx, qword [rsi + 8]
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xb0], r12
call fcn.140033fa0
mov r12d, dword [rsi]
lea rdx, [rsp + 0xe0]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x1400300cc
mov rax, qword [rsp + 0xe0]
lea rdx, [rsp + 0xe8]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x1400300cc
mov rax, qword [rsp + 0xe0]
lea r8, [rbp + 0x14]
mov rcx, qword [rsp + 0xe8]
mov edx, r12d
call qword [rax + Ordinal_26]
mov rax, qword [rsp + 0xe0]
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0xe8]
mov r8, qword [rax + 0x20]
call r8
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xe8]
mov ebx, eax
not ebx
shr ebx, 0x1f
call qword [rdx + Ordinal_41]
test ebx, ebx
je 0x1400300cc
lea edx, [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r14]
lea rcx, [rsp + 0x40]
mov rdx, qword [r14 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea r8d, [rdi + 0x10]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r15 - 0x10]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400300cc
mov rcx, qword [rsi + 8]
mov edi, 1
mov qword [rsi + 8], rbp
mov rbp, rcx
mov dword [rsi], r15d
test rcx, rcx
je 0x1400300d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0xf0]
mov eax, edi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xf8]
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
ret
mov eax, edi
jmp 0x1400300e7
mov eax, edi
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1400303e0
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
xor r15d, r15d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x90], r15
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], r15
lea rcx, [0x140063944]
mov edi, r15d
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140030630
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400304f0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x98]
mov edi, eax
add edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, rsi
lea r14d, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, edi
lea rdx, [r14 + 4]
add rdx, rbx
lea ecx, [r15 + 0x40]
lea ebp, [rax + rax]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400304d5
mov rdx, qword [rsp + 0x40]
mov r8d, ebx
mov rcx, rax
call fcn.140033fa0
mov rdx, qword [rsp + 0x98]
lea rcx, [rdi + 2]
add rcx, rbx
mov r8d, r14d
call fcn.140033fa0
mov byte [rbx + rdi], 0x2f
mov r8d, ebp
add rbx, rbp
mov rdx, rsi
lea rcx, [rbx + 4]
add rcx, rdi
call fcn.140033fa0
mov byte [rbx + rdi + 2], 0x2f
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test rdi, rdi
je 0x140030630
xor r9d, r9d
lea rcx, str.ncacn_ip_tcp
xor r8d, r8d
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebx, eax
mov rsi, rdi
test eax, eax
jne 0x14003061b
xor r9d, r9d
lea edx, [rax + 9]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov ebx, eax
test eax, eax
jne 0x14003061b
mov qword [rsp + 0x30], r15
lea r9d, [rax + 8]
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140063940]
xor r8d, r8d
mov dword [rsp + 0x20], 0x4d2
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
mov ebx, eax
test eax, eax
jne 0x14003061b
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov ebx, eax
test eax, eax
jne 0x14003061b
mov rax, qword [rsp + 0x90]
mov ebx, r15d
cmp dword [rax], ebx
jbe 0x1400305cf
mov ecx, ebx
lea rdx, [rsp + 0x48]
mov rcx, qword [rax + rcx*8 + 8]
call qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
test eax, eax
jne 0x1400305c1
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rax, qword [rsp + 0x90]
inc ebx
cmp ebx, dword [rax]
jb 0x1400305a0
lea r9, str.mimi_Ho__hey__Im_a_DC_:_
xor r8d, r8d
mov rdx, rax
lea rcx, [0x140063940]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
lea rcx, [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
test ebx, ebx
jne 0x14003061b
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
cmp eax, 0x6b1
mov ebx, eax
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, r15d
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400319a0
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x50
lea rax, [r11 - 0x14]
xor ebx, ebx
mov qword [r11 - 0x28], rax
lea r9, [r11 - 0x18]
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], ebx
mov rdi, rdx
mov qword [r11 - 0x30], rax
mov rsi, r8
mov qword [r11 - 0x38], rbx
mov rbp, rcx
mov dword [rsp + 0x78], ebx
mov rdx, rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140031a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140031a8e
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140031a8e
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140031a82
mov r8, qword [rdi]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test eax, eax
jne 0x140031a90
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140032564
Capabilities:
Parse pe header

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

Function at 0x1400470b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046ea8
Function at 0x14004cb14
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 0x14004cb44
xor eax, eax
jmp 0x14004cc07
mov rbp, rbx
cmp word [rax], si
je 0x14004cb69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004cb50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004cb4c
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.14004ca64
movsxd r14, eax
test eax, eax
jne 0x14004cba7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004cb3d
mov rcx, r14
call fcn.14004888c
mov rdi, rax
test rax, rax
jne 0x14004cbc0
xor ecx, ecx
call fcn.140048850
jmp 0x14004cb9c
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.14004ca64
test eax, eax
jne 0x14004cbf1
mov rcx, rdi
call fcn.140048850
jmp 0x14004cbfb
xor ecx, ecx
call fcn.140048850
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 0x1400508d8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140078270]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140050936
cmp word [rdx], r12w
jne 0x140050936
or byte [rax + r8*8 + 0x38], cl
jmp 0x14005093c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140050a97
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140050a72
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140050975
mov rcx, r9
jmp 0x140050998
cmp r9, rdx
jae 0x1400509af
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x140050959
jmp 0x140050a97
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140050a6c
cmp dword [rsp + 0x80], edi
je 0x140050a6c
mov rdx, r14
lea r11, [0x140078270]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140050a45
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140050a18
mov word [rbx], r12w
jmp 0x140050a93
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140050a21
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140050a93
cmp word [rsp + 0x70], r12w
jne 0x140050a52
cmp rbx, rsi
je 0x140050a12
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140052df0
cmp word [rsp + 0x70], r12w
je 0x140050a97
mov word [rbx], r13w
jmp 0x140050a93
lea r11, [0x140078270]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140050a8f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140050a97
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400521dc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140035eb8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140052266
cmp byte [rbp - 0x21], r15b
je 0x140052261
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005229c
call fcn.14004a3b4
test eax, eax
jne 0x140052288
cmp byte [rbp - 0x21], r15b
je 0x140052280
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005229c
cmp byte [rbp - 0x21], r15b
je 0x140052299
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004b1e0
test eax, eax
jne 0x14005233c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140035eb8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400522db
cmp byte [rbp - 0x21], r15b
je 0x140052310
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140052310
call fcn.14004a3b4
test eax, eax
jne 0x1400522fc
cmp byte [rbp - 0x21], r15b
je 0x1400522f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140052310
cmp byte [rbp - 0x21], r15b
je 0x14005230d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004b1e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005233c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005233f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005234d
mov rcx, rdi
call fcn.140048850
cmp byte [rbp + 0x3f], r15b
je 0x14005235c
mov rcx, qword [rbp + 0x27]
call fcn.140048850
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400543d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400543f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400543f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001880
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007600
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007600
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0b4]
mov rbx, rcx
test esi, esi
jle 0x140001a20
mov rax, qword [0x14000c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000193b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001920
mov rcx, rbx
call fcn.140002340
mov rdi, rax
test rax, rax
je 0x140001a42
mov rax, qword [0x14000c0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002480
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019d0
add dword [0x14000c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001880
nop dword [rax]
xor esi, esi
jmp 0x140001948
mov rax, qword [0x14000c0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001880
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001880
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000200c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002003
test rsi, rsi
je 0x140002003
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002340
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002360
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002368
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002360
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002360
add rax, 0x28
cmp rax, r9
jne 0x1400023a0
xor eax, eax
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000249f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800033a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180003277
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180003277
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180003277
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180003277
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180003277
cmp dword [rcx + 0x84], 0xe
jbe 0x180003277
cmp dword [rcx + 0xf8], 0
je 0x180003277
mov ecx, ebx
call fcn.180003318
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180003108
cmp dword [rbp + 0x20], 0
je 0x1800032c4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800032cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x180003210
Function at 0x140001098
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
movdqa xmm0, xmmword [0x140002050]
xor edx, edx
mov eax, 0xc
mov dword [rbp - 0x40], eax
movdqu xmmword [rbp - 0x3c], xmm0
test eax, eax
je 0x1400010cc
lea eax, [rdx + 0x78]
xor byte [rbp + rdx - 0x3c], al
inc edx
mov eax, dword [rbp - 0x40]
cmp edx, eax
jb 0x1400010bc
lea rcx, [rbp - 0x3c]
mov byte [rbp + rax - 0x3c], 0
call fcn.1400012b8
mov r9, rax
test rax, rax
je 0x140001167
movdqa xmm0, xmmword [0x140002070]
mov edx, 0xe
mov dword [rbp - 0x2c], edx
xor r8d, r8d
movdqu xmmword [rbp - 0x28], xmm0
lea eax, [r8 + 0x78]
xor byte [rbp + r8 - 0x28], al
inc r8d
mov ecx, dword [rbp - 0x2c]
cmp r8d, ecx
jb 0x1400010fe
movdqa xmm0, xmmword [0x140002060]
xor r8d, r8d
mov byte [rbp + rcx - 0x28], 0
movdqu xmmword [rbp - 0x14], xmm0
mov dword [rbp - 0x18], edx
lea eax, [r8 + 0x78]
xor byte [rbp + r8 - 0x14], al
inc r8d
mov edx, dword [rbp - 0x18]
cmp r8d, edx
jb 0x14000112a
mov byte [rbp + rdx - 0x14], 0
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x14]
mov rcx, r9
call fcn.140001218
test rax, rax
je 0x140001167
movsxd rcx, dword [rax + 3]
xor edx, edx
mov qword [rcx + rax + 7], rdx
xor eax, eax
jmp 0x14000116c
mov eax, 0xc0000001
add rsp, 0x60
pop rbp
ret

Function at 0x140001218
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
mov r14, r8
mov r15, rdx
mov rbp, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx esi, word [r9 + rcx + 6]
add rbx, rax
test rsi, rsi
je 0x14000129b
xor edi, edi
cmp dword [rbx], 0x45474150
je 0x140001273
cmp dword [rbx], 0x7865742e
jne 0x14000128f
cmp byte [rbx + 4], 0x74
jne 0x14000128f
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rbp
mov r8, r15
call fcn.1400011a0
mov r10, rax
test rax, rax
jne 0x14000129b
inc rdi
add rbx, 0x28
cmp rdi, rsi
jl 0x14000125d
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret