joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005fab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c470]
jne 0x14000475a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004756
repz ret
ror rcx, 0x10
jmp 0x140005f04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400c7a30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400c7b28]
mov qword [rsp + 0x58], rax
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 0x140005f89
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, [0x1400c7a30]
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 0x140005fab
mov rax, qword [rsp + 0x88]
mov qword [0x1400c7b28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400c7ac8], rax
mov rax, qword [0x1400c7b28]
mov qword [0x1400c79a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400c7ab0], rax
mov dword [0x1400c7990], 0xc0000409
mov dword [0x1400c7994], 1
mov rax, qword [0x14000c470]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c478]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400c7a28], eax
mov ecx, 1
call fcn.140005db4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a2d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400c7a28], 0
jne 0x140006032
mov ecx, 1
call fcn.140005db4
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 0x1404846a2
Capabilities:
Encode data using xor

Disassembly:
add r9, 1
xor r8b, sil
ror r8b, 1
add r8b, 0x9a
neg r8b
rol r8b, 1
mov qword [rsp], 0x3f90de96
xor sil, r8b
lea r8, [rsp + r8 + 8]
call fcn.14045e59a
add byte [rax], al
adc dword [rdi - 0x58788a7d], edx
test byte [rdx], al
cmp eax, 0xab9b8df6
invalid
Function at 0x140046234
Capabilities:
Parse pe header

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

Function at 0x140059330
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400590b8
Function at 0x1400867c4
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 0x1400867f4
xor eax, eax
jmp 0x1400868b7
mov rbp, rbx
cmp word [rax], si
je 0x140086819
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140086800
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400867fc
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.140086644
movsxd r14, eax
test eax, eax
jne 0x140086857
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400867ed
mov rcx, r14
call fcn.14008295c
mov rdi, rax
test rax, rax
jne 0x140086870
xor ecx, ecx
call fcn.1400829c4
jmp 0x14008684c
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.140086644
test eax, eax
jne 0x1400868a1
mov rcx, rdi
call fcn.1400829c4
jmp 0x1400868ab
xor ecx, ecx
call fcn.1400829c4
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 0x1400928b8
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.1400845ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140092942
cmp byte [rbp - 0x21], r15b
je 0x14009293d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140092978
call fcn.14008d1e4
test eax, eax
jne 0x140092964
cmp byte [rbp - 0x21], r15b
je 0x14009295c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140092978
cmp byte [rbp - 0x21], r15b
je 0x140092975
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.14008338c
test eax, eax
jne 0x140092a18
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400845ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400929b7
cmp byte [rbp - 0x21], r15b
je 0x1400929ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400929ec
call fcn.14008d1e4
test eax, eax
jne 0x1400929d8
cmp byte [rbp - 0x21], r15b
je 0x1400929d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400929ec
cmp byte [rbp - 0x21], r15b
je 0x1400929e9
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.14008338c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140092a18
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140092a1b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140092a29
mov rcx, rdi
call fcn.1400829c4
cmp byte [rbp + 0x3f], r15b
je 0x140092a38
mov rcx, qword [rbp + 0x27]
call fcn.1400829c4
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 0x14009f560
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009f588
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009f588
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002d48c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rbx, rcx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne case.default.0x14002d4d8
add rsp, 0x40
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x14002d4d3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14002d4d3
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbx + 0x18], eax
cmp eax, 0xffffffff
je 0x14002d4d3
xor eax, eax
add rsp, 0x40
pop rbx
ret
xchg esi, eax
mov dl, 0x3f
mul byte [rbx - 0x45cacf4e]
stosb byte [rdi], al
cwde
out dx, al
jl 0x1400f5f6d
out 0xfc, eax
or al, 0x8a
lahf
popfq
pushfq
sar byte [rsi + rbp*8 + 0xf], 0xaa
out dx, al
rsm
out dx, al
rsm
in al, dx
vpsraw ymm12, ymm14, xmmword [r9 + 0x54bf8869]
invalid
push rsp
insb byte [rdi], dx
invalid
mov edi, 0x60e6c54
invalid
retf
add dword [rdx], ecx
jmp qword [rsi - 0x59]
invalid
mov ch, 0x23
ret
sbb eax, esi
push rbp
cld
xor eax, 0x119f104c
lodsb al, byte [rsi]
retf
movabs byte [0x849a0dffe43cefcd], al
iretd
push rcx
insd dword [rdi], dx
fdivr qword [rdx]
test ebp, ecx
out 0x41, eax
or al, byte [rdx + rbx*8 + 0x7e]
jbe 0x1400f6a89
stosb byte [rdi], al
psubsw mm5, qword [rcx + 0x5089b52d]
sub dword [rbx + 0x555e9f07], ebp
invalid
lahf
pop rsi
push rbp
insd dword [rdi], dx
or al, 0x52
cmp edi, dword [rsi]
imul edi, dword [rdi], 0x23fcafe
invalid
invalid
invalid
invalid
jb case.0x14002d4d8.8
pop rdx
and bh, bh
ror byte [rbx], 1
sbb dword [rax + 0x3e], ebp
mov al, 0x3c
mov esi, 0xab578ef3
mov ss, word [rdi - 0x55]
cmpsd dword [rsi], dword [rdi]
adc al, 0x3f
in al, 0x38
sbb al, 0x4b
push rsp
cmp word [rdi], di
jrcxz 0x1400f6b27
rcl dword [rdx - 0x63], 0x4b
and al, bl
popfq
and al, r11b
push rsi
push rbp
and dword [rsi], esi
mul byte gs:[0xdfeb76c4]
jmp [rdi + rbx*4 + 0x1f12fcfe]
invalid
cld
invalid
invalid
cmp bl, ah
sub al, 0xb8
invalid
invalid
mov bl, 0x5b
std
lodsb al, byte [rsi]
or al, 0xa8
out 0x16, eax
retf
Function at 0x14004f73c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, r9
mov r11, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r11]
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
inc rdx
cmp rdx, 8
jb 0x14004f774
mov r8, qword [r9 + 0x30]
and r8, rcx
mov r10, r8
add r10, r10
mov rcx, qword [r9 + 0x18]
mov rdi, qword [r9 + 8]
cmp rdi, qword [rcx + r10*8]
je 0x14004f7fe
mov rdi, qword [rcx + r10*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [rcx + r10*8]
je 0x14004f7fe
mov rdi, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
cmp qword [r11], rax
jne 0x14004f7b6
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov edx, 0x18
mov rcx, rbx
call fcn.140050978
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14004f895
mov rax, qword [rbx]
cmp rdi, rax
je 0x14004f833
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x14004f853
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x14004f882
cmp rax, rdi
jne 0x14004f85e
mov qword [rdx + r8*8], rbx
jmp 0x14004f882
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x14004f882
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.14004d7fc
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140050c78
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400a1b60], eax
call fcn.1400510b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400a1b60], 0
jne case.default.0x140050cce
mov ecx, 1
call fcn.1400510b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
shl byte [rdx + 0x1d], 1
xor byte ss:[rsi], bl
out 0x32, al
invalid
Function at 0x140001784
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004079a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004079b0]
mov dword [rax], 1
mov rax, qword [0x004079c0]
mov dword [rax], 1
mov rax, qword [0x00407990]
mov dword [rax], 1
mov rax, qword [0x00407850]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00407980]
mov dword [0x0040a00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00407940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00407800]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x404470
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0040a634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x404618
mov rax, qword [0x0040a638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4044bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x404547
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4044a0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x404652
mov rax, qword [0x0040a638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x404661
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x404540
sub eax, 4
and eax, 0xfffffffb
jne 0x4045d0
add dword [0x0040a634], 1
cmp ebx, 8
jae 0x404578
test bl, 4
jne 0x404620
test ebx, ebx
je 0x404569
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x404640
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x404569
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4045aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0040a638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x404540
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x4044c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x404569
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x404569
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x0040a638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x404e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a900]
test rbx, rbx
je 0x404e94
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x404e8b
test r12, r12
je 0x404e8b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404e70
lea rcx, [0x0040a920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4050c0
Capabilities:
Parse pe header

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

Function at 0x4050e0
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 0x405125
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40511c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x405127
add rax, 0x28
cmp rax, r9
jne 0x405108
xor eax, eax
ret

Function at 0x4051d0
Capabilities:
Enumerate pe sections

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

Function at 0x405330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00407850]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40539f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40539f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40539d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x405394
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4053a8
add rax, 0x28
cmp rax, r9
jne 0x405380
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x4053c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00407850]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x405438
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x405438
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x405438
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x405438
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40542c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x405440
add rdx, 0x28
cmp rdx, r10
jne 0x405418
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x405450
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40545e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x405435
test r8d, r8d
jg 0x405448
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x4056f0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x004078c0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004078b0]
mov r8, qword [rax]
mov rax, qword [0x004078a0]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x180008660
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x1800ee0f8]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rdi, [rcx + 0x10]
xor esi, esi
mov rcx, qword [0x1800f03d8]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
mov rcx, qword [0x1800f03d8]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0xa8
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
mov rcx, qword [0x1800f03d8]
mov r9d, 0xa8
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
mov rcx, qword [0x1800f03d8]
lea r8, [rsp + 0x50]
mov r9d, 0xa8
mov qword [rsp + 0x20], rsi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov rcx, qword [0x1800f03d8]
lea r9d, [rsi + 8]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov rcx, qword [0x1800f03d8]
lea r9d, [rsi + 8]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800b2e20
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret