joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800723a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x1804e24c0]
mov rcx, qword [0x1804e24f0]
add rcx, rcx
neg rcx
movabs rsi, 0xa9fd3d7c43144edd
xor rcx, rsi
add rcx, 2
movabs rbx, 0xd4fe9ebe218a276e
xor rcx, rbx
mov eax, dword [rax + rcx]
mov ecx, dword [0x1805ddaa8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
xor edx, edx
cmp eax, dword [rcx + 4]
setle dl
lea rax, [rdx + rdx*2]
xor edx, edx
sub rdx, qword [0x1804e24f8]
xor ecx, ecx
xor rdx, rbx
lea rdx, [rdx + rdx*2]
add rdx, 3
xor rdx, rbx
add rdx, qword [0x1804e24c8]
lea r8d, [rax*8]
mov rdx, qword [r8 + rdx + 1]
xor r9d, r9d
sub r9, qword [0x1804e2508]
xor r9, rbx
lea r9, [r9 + r9*4]
add r9, 5
xor r9, rbx
add r9, qword [0x1804e24d8]
sub rcx, qword [r8 + r9 + 1]
movabs rdi, 0x2d0011c336529eab
xor rcx, rdi
inc rcx
imul rcx, rax
xor rcx, rdi
lea rax, [rdx + rcx]
inc rax
jmp rax

Function at 0x1801a2d40
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
mov dword [rbp + 0x464], 0x400
mov r9, qword [0x180558618]
xor eax, eax
xor edx, edx
sub rdx, qword [0x180558678]
movabs r10, 0xba913fbc642d8a9c
xor rdx, r10
lea r8, [rdx + rdx*4]
lea rdx, [rdx + r8*2]
add rdx, 0xb
xor rdx, r10
mov r9, qword [r9 + rdx + 9]
mov rdx, qword [0x1805585e0]
mov r8, qword [0x180558640]
shl r8, 2
neg r8
movabs r11, 0xea44fef190b62a71
xor r8, r11
add r8, 4
xor r8, r10
sub rax, qword [rdx + r8 + 8]
movabs rdx, 0x1cc2bb5e00d6e89c
xor rax, rdx
inc rax
xor rax, rdx
add rax, r9
inc rax
mov qword [rbp + 0x468], rcx
call rax
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x464]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor ecx, ecx
test eax, eax
setne cl
xor eax, eax
sub rax, qword [0x180558628]
movabs r9, 0xba913fbc642d8a9c
xor rax, r9
inc rax
xor rax, r9
add rax, qword [0x1805585c8]
mov rax, qword [rax + rcx*8 + 9]
xor edx, edx
sub rdx, qword [0x180558648]
xor r8d, r8d
xor rdx, r9
lea rdx, [rdx + rdx*4]
add rdx, 5
xor rdx, r9
add rdx, qword [0x1805585e8]
sub r8, qword [rdx + rcx*8 + 9]
movabs rdx, 0x327e83fc29b96483
xor r8, rdx
inc r8
shl r8, cl
xor r8, rdx
add rax, r8
inc rax
jmp rax
Function at 0x1801a4f00
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x180558680]
mov rdx, qword [0x1805586b0]
movabs rdx, 0x9d5204dc541920f7
mov rax, qword [rax + rdx]
mov r9, qword [0x1805586a0]
mov rdx, qword [0x1805586d0]
shl rdx, 2
neg rdx
movabs r8, 0x75481371506483b9
xor rdx, r8
add rdx, 4
movabs r8, 0x9d5204dc541920ee
xor rdx, r8
xor r8d, r8d
sub r8, qword [r9 + rdx + 8]
movabs rdx, 0x65bbe9cd89ee5c0d
xor r8, rdx
inc r8
xor r8, rdx
add rax, r8
inc rax
mov qword [rbp - 8], rcx
call rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
movabs r14, 0xf5ce3814c748bb50
movabs r12, 0xce15b35f19f43959
movabs rsi, 0x670ad9af8cfa1cac
movabs r15, 0xf5ce3814c748bb59
movabs rdi, 0xf5ce3814c748bb51
movabs rbx, 0x9d5204dc541920ee
mov r13, rax
nop dword [rax + rax]
cmp byte [r13], 1
mov edx, 3
sbb rdx, 0
mov rax, qword [0x1805586a8]
xor ecx, ecx
sub rcx, qword [0x1805586d8]
xor rcx, rbx
lea rcx, [rcx + rcx*4]
add rcx, 5
xor rcx, rbx
add rcx, rax
lea r8d, [rdx*8]
mov r9, qword [r8 + rcx + 1]
mov rcx, qword [0x180558690]
mov r10, qword [0x1805586c0]
add r10, r10
neg r10
movabs r11, 0x3aa409b8a83241dd
xor r10, r11
add r10, 2
xor r10, rbx
add r10, rcx
xor r11d, r11d
sub r11, qword [r8 + r10]
movabs r8, 0xc871ab4840dfe7bd
xor r11, r8
inc r11
imul r11, rdx
xor r11, r8
lea rdx, [r9 + r11]
inc rdx
jmp rdx

Function at 0x1801a7d30
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1198
call fcn.1802f01e0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1110], 0xfffffffffffffffe
mov qword [rbp + 0x1108], rcx
mov rax, qword [0x180558868]
xor ecx, ecx
xor edx, edx
sub rdx, qword [0x1805588a8]
movabs r9, 0x92bc5f027d0f622c
xor rdx, r9
inc rdx
xor rdx, r9
mov rax, qword [rax + rdx + 0x19]
mov rdx, qword [0x180558890]
xor r8d, r8d
sub r8, qword [0x1805588d0]
movabs r10, 0x12bc5f027d0f622c
xor r8, r10
lea r8, [r8 + r8*2]
lea r8, [r8*2 + 7]
xor r8, r9
sub rcx, qword [rdx + r8 + 0x18]
movabs rdx, 0x455ee5454c2c815b
xor rcx, rdx
lea rcx, [rcx + rcx*2]
add rcx, 3
xor rcx, rdx
add rax, rcx
inc rax
lea rcx, [rbp + 0x10d0]
call rax
lea rdi, [rbp - 0x60]
lea r8, [rbp + 0x10fc]
mov rcx, rdi
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
mov rdx, qword [0x180558888]
xor r8d, r8d
xor ecx, ecx
sub rcx, qword [0x1805588c8]
movabs r14, 0x92bc5f027d0f622c
xor rcx, r14
lea r9, [rcx + rcx*4]
add r9, 5
xor r9, r14
add r9, rdx
test eax, eax
sete cl
mov eax, 0x40
mov r10d, 0x10
cmove r10d, eax
mov rax, qword [0x180558880]
mov r11, qword [0x1805588c0]
shl r11, 2
neg r11
movabs r13, 0x4af17c09f43d88b1
xor r11, r13
add r11, 4
xor r11, r14
add r11, rax
sub r8, qword [r10 + r11]
movabs r15, 0xf58351bd87dc459c
xor r8, r15
inc r8
add cl, cl
inc cl
shl r8, cl
movabs rcx, 0xf58351bd87dc459d
xor rcx, r8
add rcx, qword [r10 + r9 + 1]
jmp rcx
Function at 0x1802e9050
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1802e9092
xor al, al
jmp 0x1802e9110
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x1802e90bc
xor al, al
jmp 0x1802e9110
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x78], rax
jb 0x1802e9108
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xec]
add rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x1802e9108
mov al, 1
jmp 0x1802e9110
xor al, al
jmp 0x1802e9110
add rsp, 0x68
ret

Function at 0x1802e91a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1805dda28]
mov qword [rsp + 0x20], rax
jmp 0x1802e91c0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1802e91e5
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1802e91b2
add rsp, 0x38
ret
Function at 0x1802e91f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1805dda40], eax
je 0x1802e920c
mov eax, 0x10dd
jmp 0x1802e9329
mov rax, qword [0x1805dda58]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1802e92b2
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x1802e9282
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x1802e9282
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1802e93a0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1803030e0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x1802e9218
mov qword [0x1805dda58], 0
call fcn.1802e9330
mov rax, qword [0x1805dda50]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1802e9312
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1803030e0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x1802e92ce
mov qword [0x1805dda50], 0
mov dword [0x1805dda40], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1802e9aa0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x1802e9abd
xor eax, eax
jmp 0x1802e9b55
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x1802e9af7
mov eax, dword [rsp + 0x18]
inc eax
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x1802e9b50
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
cmp qword [rcx + rax + 0x48], 0
je 0x1802e9b4e
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp]
cmp qword [rcx + rax + 0x48], rdx
jb 0x1802e9b4a
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x1802e9b4e
xor eax, eax
jmp 0x1802e9b55
jmp 0x1802e9aed
mov eax, 1
add rsp, 0x28
ret
Function at 0x1802ea850
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1802ea950
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1802ea948
cmp qword [rsp + 0x20], 0x50000000
jb 0x1802ea8a0
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x1802ea8a0
mov eax, 0x80010000
mov qword [rsp + 0x20], rax
jmp 0x1802ea86d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18036c9a0
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1802ea8cf
jmp 0x1802ea948
cmp dword [rsp + 0x48], 0x10000
jne 0x1802ea926
cmp qword [rsp + 0x40], 0x10000
jb 0x1802ea926
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1802ea914
mov rax, qword [rsp + 0x58]
jmp 0x1802ea94a
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1802ea943
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1802ea950
mov qword [rsp + 0x20], rax
jmp 0x1802ea86d
xor eax, eax
add rsp, 0x68
ret

Function at 0x1802ea9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1802eaab0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1802eaa9b
cmp qword [rsp + 0x20], 0x50000000
jb 0x1802ea9f8
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x1802ea9f8
mov qword [rsp + 0x20], 0x4fff0000
jmp 0x1802ea9c6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18036c9a0
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1802eaa27
jmp 0x1802eaa9b
cmp dword [rsp + 0x48], 0x10000
jne 0x1802eaa7e
cmp qword [rsp + 0x40], 0x10000
jb 0x1802eaa7e
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1802eaa6c
mov rax, qword [rsp + 0x58]
jmp 0x1802eaa9d
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1802eaa96
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1802eaab0
mov qword [rsp + 0x20], rax
jmp 0x1802ea9c6
xor eax, eax
add rsp, 0x68
ret
Function at 0x1802ead30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
jne 0x1802ead4f
mov qword [rsp + 0x20], 0x10000
jmp 0x1802ead62
mov rax, qword [rsp + 0x80]
add rax, 0x10000
mov qword [rsp + 0x20], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18036c9a0
jmp 0x1802ead8b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x1802eadab
jmp 0x1802eae48
cmp dword [rsp + 0x48], 0x1000
jne 0x1802eadd0
mov eax, dword [rsp + 0x4c]
and eax, 0xff
cmp eax, 1
je 0x1802eadd0
mov eax, dword [rsp + 0x4c]
and eax, 0x100
test eax, eax
je 0x1802eadd2
jmp 0x1802ead76
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1802eae08
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x40]
ja 0x1802eae08
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1802eae0d
jmp 0x1802ead76
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
jne 0x1802ead76
mov rax, qword [rsp + 0x58]
jmp 0x1802eae4a
xor eax, eax
add rsp, 0x78
ret
Function at 0x1802eae50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x60], 0
jne 0x1802eae78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1802eae99
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802eb017
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1802eaed1
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802eb017
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1802eaef0
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802eb017
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x1802eaf1c
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x38], eax
jae 0x1802eaff9
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.180380460
test eax, eax
jne 0x1802eaff4
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], 0
je 0x1802eaf81
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x10], 0
jne 0x1802eaf83
jmp 0x1802eaff9
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x1802eafc9
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0x727444
je 0x1802eafcb
jmp 0x1802eaff9
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
jne 0x1802eafe5
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
jmp 0x1802eb017
jmp 0x1802eaf12
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802eb017
add rsp, 0x58
ret
Function at 0x1802eb2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp rax, 0x688
jne 0x1802eb313
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x58]
cmp dword [rax], ecx
jbe 0x1802eb325
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802eb4c2
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x2c], 0xffffffff
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1802eb4be
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1802eb49b
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
add rcx, 0x28
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call fcn.18036c2f0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x38]
add rcx, 0x68
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call fcn.18036c2f0
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x20], 0
je 0x1802eb470
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
lea r9, [rsp + 0x2c]
mov r8d, 0x40
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1802eb46e
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, 0x670
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.18036c2f0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x24], 1
jmp 0x1802eb478
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x20]
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret

Function at 0x1802ec210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x28
call fcn.1802f01e0
sub rsp, rax
add rsp, 0x28
jmp fcn.1802f20b0
Function at 0x1802f4fe0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1802f5007
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1802f4ff0
movzx eax, r9b
ret

Function at 0x1803171b0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.1802f01e0
sub rsp, rax
xor r11d, r11d
mov r9, rcx
test r8d, r8d
jle 0x1803172c5
mov qword [rsp + 0x10], rbx
inc rdx
mov qword [rsp], rdi
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
movzx eax, byte [rdx - 1]
cmp r8d, 3
jl 0x18031723e
movzx ecx, al
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + rdi]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
inc r9
and eax, 0x3f
mov r10, r9
movzx eax, byte [rax + rdi]
mov byte [r9], al
mov rax, rcx
and eax, 0x3f
shr rcx, 6
and ecx, 0x3f
movzx ebx, byte [rax + rdi]
movzx eax, byte [rcx + rdi]
jmp 0x18031728d
movzx ecx, al
shl ecx, 0x10
cmp r8d, 2
jne 0x180317252
movzx eax, byte [rdx]
shl eax, 8
or ecx, eax
mov eax, ecx
lea r10, [r9 + 1]
shr rcx, 0x12
movzx ecx, byte [rcx + rdi]
mov byte [r9], cl
mov ecx, eax
shr rcx, 0xc
mov r9, r10
and ecx, 0x3f
movzx ecx, byte [rcx + rdi]
mov byte [r10], cl
cmp r8d, 1
jne 0x180317280
mov al, 0x3d
jmp 0x18031728b
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov bl, 0x3d
lea rcx, [r9 + 2]
mov byte [r10 + 1], al
add r11d, 4
mov byte [rcx], bl
add rdx, 3
lea r9, [rcx + 1]
sub r8d, 3
test r8d, r8d
jg 0x1803171e0
mov rdi, qword [rsp]
mov eax, r11d
mov rbx, qword [rsp + 0x10]
mov byte [r9], 0
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x18031c5a0
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x38
call fcn.1802f01e0
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x18031c693
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x18031c693
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 1]
cmp r10b, 0x6b
jne 0x18031c640
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x18031c5fa
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x18031c5fa
cmp cl, 0xbb
jne 0x18031c62f
inc eax
cmp eax, ebx
jl 0x18031c5e4
sub ebx, eax
test eax, eax
jne 0x18031c644
mov dword [rsp + 0x20], 0x83
lea r9, [0x1805c38d0]
mov edx, 0x80
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call fcn.1802f5d80
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
mov dword [rsp + 0x20], 0x7b
lea r9, [0x1805c38b8]
jmp 0x18031c60f
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x18031c67c
mov edx, 0x80
mov dword [rsp + 0x20], 0x8b
lea r9, str..crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call fcn.1802f5d80
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r11
call fcn.18036c2f0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
mov dword [rsp + 0x20], 0x70
lea r9, [0x1805c38a0]
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call fcn.1802f5d80
mov eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x18031d430
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.1802f01e0
sub rsp, rax
mov esi, dword [rdx + 8]
mov r14, rdx
mov rbx, rcx
test esi, esi
jne 0x18031d471
xor edx, edx
call fcn.1802ee360
lea eax, [rsi + 1]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea eax, [rsi - 1]
mov qword [rsp + 0x30], rdi
movsxd rdi, eax
xor eax, eax
mov qword [rsp + 0x38], r15
mov r15, qword [rdx]
mov rcx, qword [r15 + rdi*8]
cmp rcx, 1
sete al
sub esi, eax
cmp r14, rbx
je 0x18031d4bc
cmp esi, dword [rbx + 0xc]
jg 0x18031d4a2
mov rax, rbx
jmp 0x18031d4ac
mov edx, esi
mov rcx, rbx
call fcn.1802eeb00
test rax, rax
je 0x18031d526
mov eax, dword [r14 + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r15 + rdi*8]
mov rdx, qword [rbx]
mov rax, rcx
xor rax, 1
inc rax
neg rax
shl rax, 0x3f
lea r8, [rdx + rdi*8]
shr rcx, 1
je 0x18031d4dc
mov qword [r8], rcx
test rdi, rdi
jle 0x18031d51e
sub r15, rdx
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r15 + r8 - 8]
lea r8, [r8 - 8]
mov rcx, rdx
dec rdi
shr rcx, 1
or rcx, rax
mov rax, rdx
xor rax, 1
mov qword [r8], rcx
inc rax
neg rax
shl rax, 0x3f
test rdi, rdi
jg 0x18031d4f0
mov dword [rbx + 8], esi
mov eax, 1
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret