joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000b0d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x18009b4d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x20], 0x94
call fcn.1800220a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x18000b133
cmp dword [rsp + 0x24], 6
jb 0x18000b133
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180022070
add rsp, 0xd8
ret
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180022070
add rsp, 0xd8
ret

Function at 0x18000c190
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x18009b4d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov rbp, rax
test eax, eax
jle 0x18000c340
mov qword [rsp + 0x178], rsi
nop word [rax + rax]
mov esi, 0x80
lea rcx, [rsp + 0xb4]
xor edx, edx
lea r8d, [rsi + 0x10]
mov dword [rsp + 0xb0], 0x94
call fcn.1800220a0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x18000c238
cmp dword [rsp + 0xb4], 6
jb 0x18000c238
call fcn.18000b030
test al, al
jne 0x18000c23d
mov esi, 0x6c
xor edx, edx
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x30], esi
lea r8d, [rdx + 0x78]
mov dword [rsp + 0x34], 0x230
call fcn.1800220a0
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
lea r9, [rsp + 0x30]
movsxd r8, ebx
mov rcx, rax
mov edx, 0x41d
call qword [sym.imp.USER32.dll_SendMessageA]
mov r11, qword [rdi + 8]
cmp qword [rsp + 0x58], r11
je 0x18000c293
inc ebx
cmp ebx, ebp
jl 0x18000c1f0
jmp 0x18000c338
cmp byte [rdi + 0x190], 0
mov dword [rsp + 0x34], 0x200
je 0x18000c2b9
mov eax, dword [rdi + 0x1c8]
add eax, dword [rdi + 0x1c4]
mov dword [rsp + 0x88], eax
jmp 0x18000c2c4
mov dword [rsp + 0x88], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x418
mov rcx, r11
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x18000c318
xor ecx, ecx
dec eax
lea r9, [rsp + 0x20]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rdi + 8]
movsxd r8, eax
mov edx, 0x41d
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SendMessageA]
mov r11d, dword [rsp + 0x28]
add dword [rsp + 0x88], r11d
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
lea r9, [rsp + 0x30]
movsxd r8, ebx
mov rcx, rax
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageA]
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180022070
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000cc10
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
sub rsp, 0x150
mov rax, qword [0x18009b4d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x40c
mov r12, rax
call qword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov rbp, rax
test eax, eax
jle 0x18000cd6c
mov qword [rsp + 0x178], rdi
nop dword [rax + rax]
mov edi, 0x80
lea rcx, [rsp + 0xa4]
xor edx, edx
lea r8d, [rdi + 0x10]
mov dword [rsp + 0xa0], 0x94
call fcn.1800220a0
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x18000ccb8
cmp dword [rsp + 0xa4], 6
jb 0x18000ccb8
call fcn.18000b030
test al, al
jne 0x18000ccbd
mov edi, 0x6c
xor edx, edx
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], edi
lea r8d, [rdx + 0x78]
mov dword [rsp + 0x24], reloc.COMCTL32.dll_InitCommonControls
call fcn.1800220a0
lea r9, [rsp + 0x20]
movsxd r8, ebx
mov edx, 0x41d
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x18000ccfe
mov rax, qword [rsi + 8]
cmp qword [rsp + 0x48], rax
je 0x18000cd36
inc ebx
cmp ebx, ebp
jl 0x18000cc70
xor al, al
mov rdi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180022070
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop r12
pop rsi
pop rbp
ret
bt dword [rsp + 0x28], 9
jae 0x18000cd08
movsxd r8, ebx
xor r9d, r9d
mov edx, 0x42b
mov rcx, r12
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea r8d, [r9 + 0x28]
mov edx, 0x100
call qword [sym.imp.USER32.dll_PostMessageA]
mov al, 1
jmp 0x18000cd0a
xor al, al
jmp 0x18000cd12
Function at 0x1800121e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
mov dword [rdi], 0
mov eax, dword [rcx + 0x118]
cmp eax, 0x12
je 0x180012226
cmp eax, 0x79
jne 0x18001221d
lea ecx, [rax - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x180012226
cmp dword [rbx + 0x118], 0x20
jne 0x1800122a1
cmp rsi, 0xf100
jne 0x1800122a1
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rbx + 8]
jne 0x18001225b
mov rcx, rbx
call fcn.180010670
mov rcx, qword [rbx + 8]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov edx, 0x448
call qword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1800122a1
mov eax, dword [rbx + 0x118]
cmp eax, 0x20
je 0x1800122a1
test byte [rbx + 0xf0], 0x40
jne 0x180012296
movzx eax, byte [rbx + 0xf1]
test al, 2
je 0x18001228c
test al, 4
jne 0x18001228c
test al, 8
je 0x18001228c
mov dl, 1
mov rcx, rbx
call fcn.18000e5f0
mov rcx, rbx
call fcn.18000cd70
jmp 0x18001229b
cmp eax, 0x20
je 0x1800122a1
mov dword [rdi], 1
and byte [rbx + 0xf0], 0xbf
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180014760
Capabilities:
Capture webcam image

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rdi, r8
mov rbx, rcx
cmp qword [r8], rax
je 0x180014795
mov dword [r9], 0
movabs rax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rbx + 8]
je 0x1800147cb
test byte [rbx + 0x98], 4
je 0x1800147c1
cmp qword [rbx + 0x120], 0
jne 0x1800147c1
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rbx + 0x120], rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov r8d, dword [rdi + 0x18]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageA]
and byte [rbx + 0xf0], 0xcf
mov r8b, 1
mov edx, eax
mov rcx, rbx
call fcn.180014350
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180020fd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp byte [rcx], 0
mov rbp, rcx
mov esi, 0xf4bc8034
je 0x180021128
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
nop word [rax + rax]
lea rcx, str.6754
call fcn.1800237d4
movzx edi, word [rbp]
lea rcx, str.8996
sub di, ax
call fcn.1800237d4
lea rcx, [0x18004bad8]
sub di, ax
call fcn.1800237d4
lea rcx, str._693
sub di, ax
call fcn.1800237d4
lea rcx, [0x18004baf0]
sub di, ax
call fcn.1800237d4
lea rcx, [0x18004baf8]
lea ebx, [rdi + rax]
call fcn.1800237d4
lea rcx, str.4482
add ebx, eax
call fcn.1800237d4
lea rcx, str.2234
add ebx, eax
call fcn.1800237d4
lea rcx, str.8893
add ebx, eax
call fcn.1800237d4
lea rcx, str.8893
add ebx, eax
inc rbp
call fcn.1800237d4
movzx ebx, bx
lea rcx, str.2234
sub ebx, eax
mov eax, esi
ror eax, 8
add ebx, eax
call fcn.1800237d4
lea rcx, str.4482
sub ebx, eax
call fcn.1800237d4
lea rcx, [0x18004baf8]
sub ebx, eax
call fcn.1800237d4
lea rcx, [0x18004baf0]
sub ebx, eax
call fcn.1800237d4
lea rcx, str._693
sub ebx, eax
call fcn.1800237d4
lea rcx, [0x18004bad8]
add ebx, eax
call fcn.1800237d4
lea rcx, str.8996
add ebx, eax
call fcn.1800237d4
lea rcx, str.6754
add ebx, eax
call fcn.1800237d4
add eax, ebx
xor esi, eax
cmp byte [rbp], 0
jne 0x180021000
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x18002480b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18009b4d0]
jne 0x18002208a
rol rcx, 0x10
test cx, 0xffff
jne 0x180022086
repz ret
ror rcx, 0x10
jmp 0x180024764
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18009cc80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18009cd78]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800247e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18009cc80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002480b
mov rax, qword [rsp + 0x88]
mov qword [0x18009cd78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18009cd18], rax
mov rax, qword [0x18009cd78]
mov qword [0x18009cbf0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18009cd00], rax
mov dword [0x18009cbe0], 0xc0000409
mov dword [0x18009cbe4], 1
mov rax, qword [0x18009b4d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18009b4d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18009cc78], eax
mov ecx, 1
call fcn.1800316a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18004c8d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18009cc78], 0
jne 0x180024892
mov ecx, 1
call fcn.1800316a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180027938
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800277a0
Function at 0x180031d14
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180024c10
xor ebx, ebx
mov rdi, rax
cmp qword [0x18009d910], rbx
jne 0x180031e1a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180031eef
lea rdx, [0x18004de70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180031eef
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18004de60]
mov rcx, rsi
mov qword [0x18009d910], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18009d918], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18009d920], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18009d930], rax
test rax, rax
je 0x180031e11
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18009d928], rax
jmp 0x180031e21
mov rax, qword [0x18009d928]
jmp 0x180031e28
mov rax, qword [0x18009d928]
mov r11, qword [0x18009d930]
cmp rax, rdi
je 0x180031e90
cmp r11, rdi
je 0x180031e90
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18009d930]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180031e90
test rax, rax
je 0x180031e90
call rsi
test rax, rax
je 0x180031e8a
lea rcx, [rsp + 0x88]
mov r9d, InitCommonControls
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180031e8a
test byte [rsp + 0x38], 1
jne 0x180031e90
bts ebp, 0x15
jmp 0x180031ece
mov rcx, qword [0x18009d918]
cmp rcx, rdi
je 0x180031ece
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180031ece
call rax
mov rbx, rax
test rax, rax
je 0x180031ece
mov rcx, qword [0x18009d920]
cmp rcx, rdi
je 0x180031ece
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180031ece
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18009d910]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180031eef
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180031ef1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180041b4c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x18009db40]
test rcx, rcx
jne 0x180041a9b
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x180041a94
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180041ac6
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x180041a90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x18009db40], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x180041b39
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180041ae9
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x18009db40]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x180041b16
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x180041b39
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x18009db40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x180041b1d
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x180041a20
Function at 0x6db19c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db3a5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6db19da8
mov rax, qword [0x6db3a5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6db19c6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6db19cf5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6db19c50
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6db19ddd
mov rax, qword [0x6db3a5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db3a5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6db19dc0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6db19cee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6db19d50
add dword [0x6db3a5e4], 1
cmp edi, 8
jae 0x6db19d23
test dil, 4
jne 0x6db19d94
test edi, edi
je 0x6db19d18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6db19daf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6db19d18
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6db19d3c
jmp 0x6db19d18
add rsi, qword [0x6db3a5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6db19cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6db19d18
xor esi, esi
jmp 0x6db19c77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6db19d18
mov rax, qword [0x6db3a5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6db1a530
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db3a8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db3a8a0]
test rbx, rbx
je 0x6db1a584
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6db1a57b
test rsi, rsi
je 0x6db1a57b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6db1a560
lea rcx, [0x6db3a8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6db1a7c0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6db1a7d0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6db1a7e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6db1a821
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6db1a818
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6db1a823
add rax, 0x28
cmp rax, r9
jne 0x6db1a804
xor eax, eax
ret

Function at 0x6db1a8c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db371f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6db1a92d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db1a92d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6db1a92d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db1a924
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db1a92f
add rax, 0x28
cmp rax, r9
jne 0x6db1a910
xor eax, eax
add rsp, 0x28
ret

Function at 0x6db1aa30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db371f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6db1aa50
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db1aa48
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6db1aaad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db1aaa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db1aab4
add rax, 0x28
cmp rax, r9
jne 0x6db1aa90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6db1aad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db371f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6db1ab3e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db1ab3e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6db1ab3e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6db1ab3e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6db1ab35
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6db1ab45
add rcx, 0x28
cmp rcx, rax
jne 0x6db1ab20
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6db1ab58
jmp 0x6db1ab3e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6db1ab66
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6db1ab3e
test r9d, r9d
jg 0x6db1ab50
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6db1aea0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140022870
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rcx + 0x10]
cmp r8, qword [rcx + 0x18]
je 0x1400228a2
mov rax, qword [rdi]
mov qword [r8], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x140022901
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r15, rax
neg r15
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x1400228ed
mov rcx, rbx
mov r8, r14
call fcn.1400bfeb0
mov r8, qword [rsi + 8]
add rbx, r14
mov qword [rsi + 0x10], rbx
lea rax, [r8 + r15*8]
mov qword [rsi + 8], rax
mov r8, rbx
jmp 0x14002288b
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x14002299e
lea rcx, [rbx*8]
call fcn.140023b10
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov rcx, qword [rsi + 8]
mov r11, qword [rsi + 0x10]
lea r9, [rax + rbx*8]
mov r8, rdx
sub r11, rcx
je 0x140022975
mov r10, r11
sar r10, 3
and r11, 0xfffffffffffffff8
mov r8, r11
add r8, rdx
shl r10, 3
xor r11d, r11d
mov rbx, qword [rcx + r11]
mov qword [rdx + r11], rbx
add r11, 8
cmp r10, r11
jne 0x140022964
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r9
test rcx, rcx
je 0x14002288b
call fcn.14001d060
mov r8, qword [rsi + 0x10]
jmp 0x14002288b
call fcn.140026df0
int3

Function at 0x1400229b0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rcx + 0x10]
cmp r8, qword [rcx + 0x18]
je 0x1400229e2
mov rax, qword [rdi]
mov qword [r8], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x140022a41
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r15, rax
neg r15
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x140022a2d
mov rcx, rbx
mov r8, r14
call fcn.1400bfeb0
mov r8, qword [rsi + 8]
add rbx, r14
mov qword [rsi + 0x10], rbx
lea rax, [r8 + r15*8]
mov qword [rsi + 8], rax
mov r8, rbx
jmp 0x1400229cb
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x140022ade
lea rcx, [rbx*8]
call fcn.140023b10
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov rcx, qword [rsi + 8]
mov r11, qword [rsi + 0x10]
lea r9, [rax + rbx*8]
mov r8, rdx
sub r11, rcx
je 0x140022ab5
mov r10, r11
sar r10, 3
and r11, 0xfffffffffffffff8
mov r8, r11
add r8, rdx
shl r10, 3
xor r11d, r11d
mov rbx, qword [rcx + r11]
mov qword [rdx + r11], rbx
add r11, 8
cmp r10, r11
jne 0x140022aa4
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r9
test rcx, rcx
je 0x1400229cb
call fcn.14001d060
mov r8, qword [rsi + 0x10]
jmp 0x1400229cb
call fcn.140026df0
int3