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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140047150]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001f7de
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001f7c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14001f9c5
mov ecx, 3
call fcn.14002a340
cmp eax, 1
je 0x14001f97c
mov ecx, 3
call fcn.14002a340
test eax, eax
jne 0x14001f815
cmp dword [0x140046f70], 1
je 0x14001f97c
cmp edi, 0xfc
je 0x14001f9c5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14004c9a0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14002a290
test eax, eax
je 0x14001f859
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400212c0
lea rdx, [0x14004c9b9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14004cabd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001f8a9
lea r8, str._program_name_unknown_
lea rcx, [0x14004c9b9]
mov edx, 0x2fb
call fcn.14002a290
test eax, eax
je 0x14001f8a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400212c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14004c9b9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001f8f8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14004ccb4]
lea r9d, [rax + 3]
lea r8, [0x14003a374]
sub rdx, rcx
call fcn.14002a170
test eax, eax
je 0x14001f8f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400212c0
lea r8, [0x14003a370]
mov edx, 0x314
mov rcx, rbp
call fcn.14002a0b0
test eax, eax
je 0x14001f924
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400212c0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14002a0b0
test eax, eax
je 0x14001f954
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400212c0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140029e50
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001f9c5
cmp rax, 0xffffffffffffffff
je 0x14001f9c5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14001f9e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14002a340
cmp eax, 1
je 0x14001fa12
mov ecx, 3
call fcn.14002a340
test eax, eax
jne 0x14001fac6
cmp dword [0x140046f70], 1
jne 0x14001fac6
mov qword [rsp + 0x48], rbx
lea rbx, [0x140047150]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001fa3e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14001fa28
jmp 0x14001fab2
cmp edi, 0x17
jae 0x14001fab2
mov ecx, 3
call fcn.14002a340
cmp eax, 1
je 0x14001fa69
mov ecx, 3
call fcn.14002a340
test eax, eax
jne 0x14001fab2
cmp dword [0x140046f70], 1
jne 0x14001fab2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001fab2
cmp rax, 0xffffffffffffffff
je 0x14001fab2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14001f7a0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400202e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14004cecc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14002033c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002031c
mov dword [0x14004cecc], 1
jmp 0x14002034f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140020336
mov dword [0x14004cecc], 2
jmp 0x1400203b9
mov eax, dword [0x14004cecc]
cmp eax, 1
jne 0x1400203b0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002038a
cmp word [rdi], bp
mov rax, rdi
je 0x140020369
add rax, 2
cmp word [rax], bp
jne 0x140020357
add rax, 2
cmp word [rax], bp
jne 0x140020357
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140022a50
test rax, rax
mov rbx, rax
jne 0x140020391
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400204ab
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14001e840
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400204ab
cmp eax, 2
je 0x1400203b9
test eax, eax
jne 0x14002038a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14002038a
cmp byte [rax], bpl
mov rbx, rax
je 0x140020408
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002038a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400203d0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140022ac0
test rax, rax
mov r12, rax
jne 0x14002042d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400204ab
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140020495
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400204be
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140020440
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14001d650
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400204a6
Function at 0x140021360
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14004cee0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140020b70
test rax, rax
je 0x1400213b4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140021449
mov ecx, 2
call fcn.14002a3a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001e580
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140021435
test ebx, ebx
jne 0x140021435
lea ecx, [rax + 2]
call fcn.14002a3a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140021517
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140046fa8]
jne 0x14001ca4a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001ca46
repz ret
ror rcx, 0x10
jmp 0x140021470
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004cf90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14004d088]
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 0x1400214f5
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, [0x14004cf90]
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 0x140021517
mov rax, qword [rsp + 0x88]
mov qword [0x14004d088], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004d028], rax
mov rax, qword [0x14004d088]
mov qword [0x14004cf00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004d010], rax
mov dword [0x14004cef0], 0xc0000409
mov dword [0x14004cef4], 1
mov rax, qword [0x140046fa8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140046fb0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004cf88], eax
mov ecx, 1
call fcn.14002a3a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003a3e8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004cf88], 0
jne 0x14002159e
mov ecx, 1
call fcn.14002a3a0
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 0x140029e50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140020a80
xor ebx, ebx
cmp qword [0x14004d820], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140029f7c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14002a08f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a08f
mov rcx, rax
call fcn.1400209b0
lea rdx, [0x14003a590]
mov rcx, rsi
mov qword [0x14004d820], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400209b0
lea rdx, [0x14003a578]
mov rcx, rsi
mov qword [0x14004d828], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400209b0
lea rcx, [rsp + 0x98]
mov qword [0x14004d830], rax
call fcn.14001ed70
test eax, eax
je 0x140029f2f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400212c0
cmp dword [rsp + 0x98], 2
jne 0x140029f7c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400209b0
test rax, rax
mov qword [0x14004d840], rax
je 0x140029f7c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400209b0
mov qword [0x14004d838], rax
mov rcx, qword [0x14004d838]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14002a028
cmp qword [0x14004d840], rbp
je 0x14002a028
call fcn.140020b70
mov rcx, qword [0x14004d840]
mov rsi, rax
call fcn.140020b70
test rsi, rsi
mov r12, rax
je 0x14002a028
test rax, rax
je 0x14002a028
call rsi
test rax, rax
je 0x140029ff3
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140029ff3
test byte [rsp + 0x40], 1
jne 0x14002a028
lea rcx, [rsp + 0x30]
call fcn.14001edc0
test eax, eax
je 0x14002a015
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400212c0
cmp dword [rsp + 0x30], 4
jb 0x14002a022
bts edi, 0x15
jmp 0x14002a066
bts edi, 0x12
jmp 0x14002a066
mov rcx, qword [0x14004d828]
cmp rcx, rbp
je 0x14002a066
call fcn.140020b70
test rax, rax
je 0x14002a066
call rax
test rax, rax
mov rbx, rax
je 0x14002a066
mov rcx, qword [0x14004d830]
cmp rcx, rbp
je 0x14002a066
call fcn.140020b70
test rax, rax
je 0x14002a066
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004d820]
call fcn.140020b70
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14002a08f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002a091
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b1b0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140046fa8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002b1f7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001ca30
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14002e510
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001ca30
add rsp, 0x38
ret
Function at 0x1400337a4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140046fa8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14001e580
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.14001e580
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140033837
cmp dword [rsp + 0x24], 5
jb 0x140033851
jmp 0x14003384d
cmp dword [rsp + 0x30], esi
jne 0x140033851
cmp dword [rsp + 0x24], 4
ja 0x14003384d
jne 0x140033851
cmp dword [rsp + 0x28], 0
jbe 0x140033851
mov byte [rbx + 0x18], sil
lea rax, [0x14003b9a8]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140033664
movzx ecx, byte [0x14004db10]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14004db10], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001ca30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140a29058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a291df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a29089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2906f
add dl, dl
jne 0x140a29096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a290f6
xor eax, eax
add dl, dl
jne 0x140a290a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a291ad
add dl, dl
jne 0x140a290b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a290c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a290d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a290dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a290ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a2907e
mov eax, 1
add dl, dl
jne 0x140a29106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a29113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a290fb
sub eax, ebx
mov ebx, 1
jne 0x140a2914c
mov ecx, 1
add dl, dl
jne 0x140a2912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a2913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a29123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a29168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a29175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2915d
cmp eax, 0x7d00
jae 0x140a2919b
cmp eax, 0x500
jb 0x140a29196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2907e
cmp eax, 0x7f
ja 0x140a2919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a291d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a2907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14010a718]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400bd750
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
lea rax, [0x14000ab00]
mov qword [r9 + 8], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14000b8c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14000b6e7
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bd610
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14000bb70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14010a718]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000bc13
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000bc0a
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14000bbd2
mov rdx, qword [rbx]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000bc87
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 1
call fcn.14000b300
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000bbc5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000bc4d
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000bc48
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000bcca
mov rcx, r8
call fcn.1400bd9dc
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400bd610
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000bcc6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000bcc1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000bcca
mov rcx, r8
call fcn.1400bd9dc
mov al, 1
jmp 0x14000bc4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000fb80
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14010a718]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWARE5l9Z2KfybPPERnOkaIB3aPIDZRra7Nxm
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000fc2e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.bKd9RQ8VezJhJYveCs6EjA1fk4BT7QEn
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x14000fc28
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bd610
add rsp, 0x78
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bd610
add rsp, 0x78
ret

Function at 0x140010040
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 0x140010068
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 0x14001008e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140010090
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400100e9
test ecx, ecx
jle 0x1400100c9
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 0x1400100e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400100e9
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
invalid
and byte [rcx + 0x5f], al
pop rdi
pop rbx
ret
Function at 0x140010110
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 0x140010132
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140010148
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 0x140010164
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010166
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400101a2
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 0x14001023e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400101dd
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 0x14001021e
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 0x14001023e
cmp rbx, rax
ja 0x1400101f0
test rbx, rbx
je 0x14001023e
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