joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x28
mov r14, rdx
mov rdi, rcx
test rdx, rdx
jne 0x180009bae
lea ebx, [rdx + 0x35]
jmp 0x180009bed
mov edx, 0x32
mov rcx, r14
call fcn.18001590c
xor r8d, r8d
mov ebx, 0x35
test rax, rax
je 0x180009bed
nop dword [rax + rax]
movsx edx, byte [r8 + r14]
inc r8
imul ecx, ebx, 0x10f29f
add edx, ecx
and edx, 0xffffff
add ebx, edx
cmp r8, rax
jb 0x180009bd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
xor ebp, ebp
movsxd rcx, dword [rax + 0x3c]
mov r13d, dword [rcx + rax + 0x88]
add r13, rax
mov eax, dword [r13 + 0x1c]
mov ecx, dword [r13 + 0x24]
add rax, r12
mov qword [rsp + 0x78], rax
add rcx, r12
mov eax, dword [r13 + 0x20]
add rax, r12
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rax
cmp dword [r13 + 0x14], ebp
jbe 0x180009d00
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x20], r15
mov esi, dword [rax + rbp*4]
add rsi, r12
jne 0x180009c4f
lea edi, [rsi + 0x35]
jmp 0x180009c8d
mov edx, 0x32
mov rcx, rsi
call fcn.18001590c
xor r8d, r8d
mov edi, 0x35
test rax, rax
je 0x180009c8d
nop dword [rax]
movsx edx, byte [r8 + rsi]
inc r8
imul ecx, edi, 0x10f29f
add edx, ecx
and edx, 0xffffff
add edi, edx
cmp r8, rax
jb 0x180009c70
cmp edi, ebx
jne 0x180009cb7
mov r8, r14
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180009cb3
inc rax
test ecx, ecx
jne 0x180009ca0
test edx, edx
je 0x180009cc9
inc ebp
cmp ebp, dword [r13 + 0x14]
jae 0x180009cf6
mov rax, qword [rsp + 0x68]
jmp 0x180009c42
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + rbp*2]
mov ebx, dword [rcx + rax*4]
add rbx, r12
call fcn.180002700
mov rcx, rax
mov r9, rbx
mov r8d, edi
mov rdx, rsi
call fcn.180009b30
mov rax, rbx
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x18001d05c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18002aea0
sub rsp, rax
mov rax, qword [0x18003cd58]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001b9c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001d0ab
mov rax, rbp
jmp 0x18001d1b3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3f530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001e17c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3f530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001d1af
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001d1af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001e17c
test rax, rax
js 0x18001d1af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001d1af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001d1a1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001d1a1
cmp byte [rcx], 0xd
jne 0x18001d187
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001d196
cmp byte [rcx + 1], 0xa
jne 0x18001d196
inc rcx
jmp 0x18001d196
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d1a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001d169
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001d1b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180009fc0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18001d3d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001d3ea
mov al, 1
jmp 0x18001d44a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001d3fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001d448
mov ecx, dword [rcx + 0x18]
nop
call fcn.180026184
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001d448
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001d448
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001d448
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001d44a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18001d51c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18003f530]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18001d573
cmp word [rdx], r13w
jne 0x18001d573
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001d578
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001d69d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001d6be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001d5b1
mov rdx, r9
mov word [rbx], cx
jmp 0x18001d5d8
cmp r9, r8
jae 0x18001d5e8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18001d592
jmp 0x18001d69d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001d692
cmp dword [rsp + 0x80], esi
je 0x18001d692
lea r8, [0x18003f530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001d66a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001d63a
mov word [rbx], r13w
jmp 0x18001d69a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18001d647
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001d69a
cmp word [rsp + 0x70], r13w
jne 0x18001d677
cmp rbx, r14
je 0x18001d634
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001e184
cmp word [rsp + 0x70], r13w
je 0x18001d69d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18003f530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001d697
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001d69d
Function at 0x18001f68c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001f6ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180017b78
or eax, 0xffffffff
jmp 0x18001f6ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x180020e28
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 0x180020e58
xor eax, eax
jmp 0x180020f1b
mov rbp, rbx
cmp word [rax], si
je 0x180020e7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180020e64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180020e60
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.180020d48
movsxd r14, eax
test eax, eax
jne 0x180020ebb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180020e51
mov rcx, r14
call fcn.180018c4c
mov rdi, rax
test rax, rax
jne 0x180020ed4
xor ecx, ecx
call fcn.18001ac48
jmp 0x180020eb0
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.180020d48
test eax, eax
jne 0x180020f05
mov rcx, rdi
call fcn.18001ac48
jmp 0x180020f0f
xor ecx, ecx
call fcn.18001ac48
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 0x180025798
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180019068
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180025839
cmp ebx, dword [rsp + 0x30]
je 0x180025832
test esi, esi
je 0x180025832
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002580d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002581a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800257f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002581e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002583b
mov eax, 1
jmp 0x18002583b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002a5a8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18001e184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001e184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18002a6f8
cmp rax, 0xffffffffffffffff
je 0x18002a6f8
xor edi, edi
test rbp, rbp
jle 0x18002a6a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001ac84
mov rbx, rax
test rax, rax
jne 0x18002a630
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18002a699
mov edx, 0x8000
mov ecx, r14d
call fcn.18002a42c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18001c8d4
cmp eax, 0xffffffff
je 0x18002a679
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18002a640
mov edx, r15d
mov ecx, r14d
call fcn.18002a42c
jmp 0x18002a699
cmp byte [rsi + 0x38], dil
je 0x18002a690
cmp dword [rsi + 0x34], 5
jne 0x18002a690
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18002a699
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001ac48
jmp 0x18002a70c
jns 0x18002a70c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001e184
cmp rax, 0xffffffffffffffff
jne 0x18002a6c4
cmp byte [rsi + 0x30], dil
je 0x18002a70c
mov edi, dword [rsi + 0x2c]
jmp 0x18002a70c
mov ecx, r14d
call fcn.180026184
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18002a70c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18002a70c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002a705
mov eax, dword [rsi + 0x2c]
jmp 0x18002a70a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001e184
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406680]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406690]
mov dword [rax], 1
mov rax, qword [0x004066a0]
mov dword [rax], 1
mov rax, qword [0x00406670]
mov dword [rax], 1
mov rax, qword [0x00406530]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00406660]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004065c0]
mov qword [rdx], rax
mov rdx, qword [0x004065b0]
mov qword [rdx], rax
mov rax, qword [0x00406620]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004064e0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x402f00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00409064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40301a
mov rax, qword [0x00409068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x402f4e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x403000
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x402f32
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403052
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00409068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00409068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403035
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402ff9
sub eax, 0x40
and eax, 0xffffffbf
je 0x402ff9
mov r9, rbp
add r9, qword [0x00409068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x403021
add dword [0x00409064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x402f5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00409068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x403c30
Capabilities:
Parse pe header

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

Function at 0x403c50
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 0x403c91
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 0x403c88
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403c93
add rax, 0x28
cmp rax, r9
jne 0x403c74
xor eax, eax
repz ret

Function at 0x403d40
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00406530]
cmp word [rbx], 0x5a4d
je 0x403d60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403d54
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x403fb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004099c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004099a0]
test rbx, rbx
je 0x404004
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 0x403ffb
test rsi, rsi
je 0x403ffb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403fe0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004099c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140008610
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bc100
add rsp, 0x30
pop rbx
ret

Function at 0x14000b1c0
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 6
jb 0x14000b2c2
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000b1f1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.start
lea rcx, [rsp + 0x40]
call fcn.1400bb5a0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000b26c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b267
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc120
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000b2a2
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000b29d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b2bb
mov rcx, r8
call fcn.1400bc120
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007920
int3

Function at 0x14000bca0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000bcf2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400baf70
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400bc100
add rsp, 0x140
pop rbx
ret
Function at 0x14000bd30
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000bd82
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400baf70
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400bc100
add rsp, 0x140
pop rbx
ret

Function at 0x14000bdc0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x2d0
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbx, rcx
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], cl
jne 0x14000be35
mov rdx, rax
mov rcx, rbx
call fcn.1400baf70
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400bc100
add rsp, 0x2d0
pop rbx
ret

Function at 0x14000be70
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [0x1400cd010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000bf50
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000bf82
xor r9d, r9d
xor edx, edx
movzx ecx, bl
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret