joyce8/EMBER2024-capa huggingface dataset:
Function at 0x616161a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [fcn.61618a30]
mov rsi, qword [rcx]
mov ecx, 1
call rbx
mov rcx, rax
mov rdx, rsi
call fcn.61616010
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x6161a1a6]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x61617870
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x61624b44]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x616179f8
mov rax, qword [0x61624b48]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x616178bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x61617945
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x616178a0
mov rcx, rbx
call fcn.61618510
test rax, rax
mov r12, rax
je 0x61617a2d
mov rax, qword [0x61624b48]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.61618640
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x61624b48]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x61617a10
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6161793e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x616179a0
add dword [0x61624b44], 1
cmp edi, 8
jae 0x61617973
test dil, 4
jne 0x616179e4
test edi, edi
je 0x61617968
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x616179ff
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 0x61617968
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 0x6161798c
jmp 0x61617968
add rsi, qword [0x61624b48]
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 0x6161793e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.61618b90
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x61617968
xor esi, esi
jmp 0x616178c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x61617968
mov rax, qword [0x61624b48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.61618b90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.61618b90
nop
nop dword [rax]
Function at 0x61618180
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x61624e20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x61624e00]
test rbx, rbx
je 0x616181d4
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 0x616181cb
test rsi, rsi
je 0x616181cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x616181b0
lea rcx, [0x61624e20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x61618510
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6161e5d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6161857d
mov rcx, r8
call fcn.616183f0
test eax, eax
je 0x6161857d
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 0x6161857d
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 0x61618574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6161857f
add rax, 0x28
cmp rax, r9
jne 0x61618560
xor eax, eax
add rsp, 0x28
ret

Function at 0x61618b90
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x616013a0]
jmp 0x61601380
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 fcn.61618a30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.61618a30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x61601390
Function at 0x1425030
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x142503d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x142504d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1425035
lea eax, [rcx + 1]
jmp 0x142505b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x142506e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1425054
sub eax, 3
jb 0x142508e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14250dd
sar eax, 1
movsxd rbp, eax
jb 0x14250c4
jmp 0x142509c
add ebx, ebx
jne 0x142509a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14250c4
inc ecx
add ebx, ebx
jne 0x14250aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14250c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14250bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14250ac
add ecx, 2
jmp 0x14250c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01424ff2
jmp 0x142503d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1010000]
mov eax, dword [rdi]
or eax, eax
je 0x1425139
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1025000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14250e9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1425133
mov qword [rbx], rax
add rbx, 8
jmp 0x1425109
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x142517d
cmp al, 0xef
ja 0x1425165
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1425145
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1425154
mov eax, dword [rdi]
add rdi, 4
jmp 0x1425154
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14251d1
sub rsp, 0xffffffffffffff80
jmp 0x45bb20
Function at 0x180005b40
Capabilities:
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, qword [rcx]
test r14, r14
je 0x180005c0f
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x180005bc9
lea rcx, [0x180005c20]
xor r8d, r8d
call r13
mov rcx, qword [r14 + 8]
mov edx, 0xffffffff
call rbp
mov r14, qword [rsi]
mov rax, qword [r14 + 0x18]
mov qword [rsi], rax
mov rcx, qword [r14 + 8]
call r12
mov rcx, r14
call fcn.1800357cc
mov r14, qword [rsi]
test r14, r14
je 0x180005c0f
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
mov ecx, 2
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xffffffff
call r15
mov rcx, qword [r14 + 0x10]
call r12
mfence
mov eax, dword [0x18010bdf8]
mov rdx, qword [r14 + 8]
test eax, eax
je 0x180005b90
mov rcx, rdx
xor edx, edx
call rbx
jmp 0x180005ba8
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180006790
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x100
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.TT_SubSystem.dll_public:_void___cdecl_uint256_type::constructor_void____ptr64]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0xf0], 0
cmp rdi, 0x88
jb 0x1800068d3
lea r14, [rsp + 0x30]
nop
movups xmm0, xmmword [rbx]
xorps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x10]
xorps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x20]
xorps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rbx + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rbx + 0x40]
xorps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rbx + 0x50]
xorps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rbx + 0x60]
xorps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rbx + 0x70]
xorps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rbx + 0x80]
xor qword [rsp + 0xb0], rax
add rbx, 0x88
mov rcx, r14
call fcn.180006960
add rdi, 0xffffffffffffff78
cmp rdi, 0x87
ja 0x180006820
mov r14d, edi
and r14d, 0xf8
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.18002d390
add rbx, r14
mov r14d, edi
and r14d, 7
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r8, r14
call fcn.18002d390
mov byte [rsp + r14 + 0x28], 1
mov rax, qword [rsp + 0x28]
and rdi, 0xfffffffffffffff8
xor qword [rsp + rdi + 0x30], rax
xor byte [rsp + 0xb7], 0x80
mov rcx, r15
call fcn.180006960
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
add rsp, 0x100
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18004f5b8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1800620e0
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180062112
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1800620f5
mov rax, r8
ret

Function at 0x180057e20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18005eee0
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18005ef12
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18005eef5
mov rax, r8
ret

Function at 0x18006e3a4
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.180074ae0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18006e3f6
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18006e3f6
sub ecx, 1
je 0x18006e3ef
cmp ecx, 1
je 0x18006e3e8
xor eax, eax
jmp 0x18006e3fb
mov eax, 3
jmp 0x18006e3fb
mov eax, 1
jmp 0x18006e3fb
mov eax, 2
add rsp, 0x28
ret

Function at 0x180097cd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x180097f4c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180097fbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180097fbb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180097fbb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180097fbb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180097fbb
cmp dword [rcx + 0x84], 0xe
jbe 0x180097fbb
cmp dword [rcx + 0xf8], 0
je 0x180097fbb
mov ecx, ebx
call fcn.180097de4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180098158
nop
cmp dword [rbp + 0x20], 0
je 0x180098009
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180097ee4
int3
Function at 0x180097f4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x180097f4c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180097fbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180097fbb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180097fbb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180097fbb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180097fbb
cmp dword [rcx + 0x84], 0xe
jbe 0x180097fbb
cmp dword [rcx + 0xf8], 0
je 0x180097fbb
mov ecx, ebx
call fcn.180097de4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180098158
nop
cmp dword [rbp + 0x20], 0
je 0x180098009
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180097ee4
int3

Function at 0x1800a9390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a93b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a93b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800c36c0
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 0x1800c36f0
xor eax, eax
jmp 0x1800c37b3
mov rbp, rbx
cmp word [rax], si
je 0x1800c3715
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800c36fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800c36f8
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.1800b61f4
movsxd r14, eax
test eax, eax
jne 0x1800c3753
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800c36e9
mov rcx, r14
call fcn.1800b60e0
mov rdi, rax
test rax, rax
jne 0x1800c376c
xor ecx, ecx
call fcn.1800b609c
jmp 0x1800c3748
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.1800b61f4
test eax, eax
jne 0x1800c379d
mov rcx, rdi
call fcn.1800b609c
jmp 0x1800c37a7
xor ecx, ecx
call fcn.1800b609c
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 0x1800c37d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800c3857
mov rsi, rbx
cmp word [rax], bp
je 0x1800c3816
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800c3800
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800c37fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800b60e0
mov rdi, rax
test rax, rax
je 0x1800c3844
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800d81a0
mov rbp, rdi
xor ecx, ecx
call fcn.1800b609c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800d15dc
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.18007157c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800d1666
cmp byte [rbp - 0x21], r15b
je 0x1800d1661
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800d169c
call fcn.1800b97d8
test eax, eax
jne 0x1800d1688
cmp byte [rbp - 0x21], r15b
je 0x1800d1680
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800d169c
cmp byte [rbp - 0x21], r15b
je 0x1800d1699
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.180071d40
test eax, eax
jne 0x1800d173c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007157c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800d16db
cmp byte [rbp - 0x21], r15b
je 0x1800d1710
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800d1710
call fcn.1800b97d8
test eax, eax
jne 0x1800d16fc
cmp byte [rbp - 0x21], r15b
je 0x1800d16f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800d1710
cmp byte [rbp - 0x21], r15b
je 0x1800d170d
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.180071d40
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800d173c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800d173f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800d174d
mov rcx, rdi
call fcn.1800b609c
cmp byte [rbp + 0x3f], r15b
je 0x1800d175c
mov rcx, qword [rbp + 0x27]
call fcn.1800b609c
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 0x14000aac0
Capabilities:
Create thread
Log keystrokes via polling
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x14007faf0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rdi]
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x14000aaf5
call fcn.140027290
jmp 0x14000ab0a
cmp ecx, 5
lea rdx, str.5
lea rax, str.6
cmove rax, rdx
mov qword [rsp + 0x58], 0
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp byte [rax + r9], 0
jne 0x14000ab20
xor esi, esi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rsi
inc r9d
mov qword [rsp + 0x30], rsi
mov r8, rax
mov dword [rsp + 0x28], 0x200
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14005efa0
mov rax, qword [0x14007fbe0]
mov ecx, dword [rax + 0x41b4]
test ecx, ecx
je 0x14000abc7
cmp ecx, dword [rax + 0x4b08]
jne 0x14000abc7
mov ebx, 4
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14000ab9d
inc ebx
cmp ebx, 0x200
jl 0x14000ab76
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test ebx, ebx
je 0x14000abc7
mov qword [rsp + 0x28], rsi
lea r8, [0x140009090]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14007faf0], rax
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400112b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400112d8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400112fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140011300
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140011359
test ecx, ecx
jle 0x140011339
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140011359
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140011359
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140011380
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400113a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400113b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400113d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400113d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011412
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400114ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001144d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001148e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400114ae
cmp rbx, rax
ja 0x140011460
test rbx, rbx
je 0x1400114ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret