joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140110120
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140110162
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401101a5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140110202
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1401101c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140110243
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140132ce0]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140132ce1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140110210
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401141d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
add r8d, 0xdeadbeef
mov rdi, rdx
add r8d, edx
mov r11, rcx
mov r10d, r8d
mov ebx, r8d
cmp rdx, 0xc
jbe 0x140114303
mov qword [rsp + 0x10], rsi
lea r9, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rsi, rdx
shr rsi, 3
inc rsi
imul rax, rsi, 0xfffffffffffffff4
add rdi, rax
nop dword [rax]
movzx eax, byte [r11 + 6]
movzx ecx, byte [r11 + 7]
movzx r9d, byte [r11 + 4]
movzx edx, byte [r11 + 8]
add r9d, r10d
shl ecx, 8
add edx, r8d
add ecx, eax
movzx eax, byte [r11 + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 0xa]
shl ecx, 8
add r9d, ecx
movzx ecx, byte [r11 + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [r11 + 3]
shl ecx, 8
mov r8d, edx
add ecx, eax
rol r8d, 4
movzx eax, byte [r11 + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11]
shl ecx, 8
add r11, 0xc
add ecx, eax
sub ecx, edx
add edx, r9d
add ecx, ebx
xor r8d, ecx
sub r9d, r8d
mov eax, r8d
add r8d, edx
rol eax, 6
xor eax, r9d
sub edx, eax
mov ecx, eax
add eax, r8d
rol ecx, 8
xor ecx, edx
sub r8d, ecx
mov ebx, ecx
add ecx, eax
rol ebx, 0x10
xor ebx, r8d
sub eax, ebx
mov r10d, ebx
ror r10d, 0xd
add ebx, ecx
xor r10d, eax
sub ecx, r10d
mov r8d, r10d
rol r8d, 4
add r10d, ebx
xor r8d, ecx
sub rsi, 1
jne 0x140114220
mov rsi, qword [rsp + 0x10]
cmp rdi, 0xc
ja 0x14011438c
lea rcx, [0x140000000]
mov eax, dword [rcx + rdi*4 + 0x1143ec]
add rax, rcx
jmp rax
movzx eax, byte [r11 + 0xb]
shl eax, 0x18
add r8d, eax
movzx eax, byte [r11 + 0xa]
shl eax, 0x10
add r8d, eax
movzx eax, byte [r11 + 9]
shl eax, 8
add r8d, eax
movzx eax, byte [r11 + 8]
add r8d, eax
movzx eax, byte [r11 + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [r11 + 6]
shl eax, 0x10
add r10d, eax
movzx eax, byte [r11 + 5]
shl eax, 8
add r10d, eax
movzx eax, byte [r11 + 4]
add r10d, eax
movzx eax, byte [r11 + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r11 + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r11 + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [r11]
add ebx, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0xe
sub r8d, eax
mov eax, r8d
mov edx, r8d
rol eax, 0xb
xor edx, ebx
sub edx, eax
xor r10d, edx
mov eax, edx
ror eax, 7
sub r10d, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0x10
sub r8d, eax
mov eax, r8d
mov ecx, r8d
rol eax, 4
xor ecx, edx
sub ecx, eax
xor r10d, ecx
mov eax, ecx
rol eax, 0xe
sub r10d, eax
mov eax, r10d
xor r8d, r10d
ror eax, 8
sub r8d, eax
mov eax, r8d
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ch, 0xf6
sub eax, 0x62da8302
mov ebp, 0x5841e255
cmp al, 0x7e
stc
invalid
pop rbx
invalid
nop
invalid
Function at 0x1431a3764
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1431a376e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1431a3797
pop rbp
sub rbp, 0x33
sub rbp, 0x31a3764
sub rsp, 0x20
jmp 0x1431a37b6
mov rax, 0x31a3764
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffcb738f73
xor byte [rax], dl
inc rax
dec rcx
jne 0x1431a37d5
jmp 0x1431a37ec
cmp edi, edx
invalid
Function at 0x1400112b7
Capabilities:
Terminate process

Disassembly:
jmp 0x140015190
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001137f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400164e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016500
xor al, al
jmp 0x140016581
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016513
xor al, al
jmp 0x140016581
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001653d
xor al, al
jmp 0x140016581
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016551
xor al, al
jmp 0x140016581
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016563
xor al, al
jmp 0x140016581
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001657f
xor al, al
jmp 0x140016581
mov al, 1
add rsp, 0x38
ret
Function at 0x1400143c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011500
movzx eax, al
test eax, eax
jne 0x1400143e0
mov ecx, 7
call fcn.140011456
nop
mov byte [rsp + 0x20], 0
call fcn.14001146a
mov byte [rsp + 0x21], al
cmp dword [0x140020868], 1
jne 0x140014404
mov ecx, 7
call fcn.140011456
nop
jmp 0x14001445c
cmp dword [0x140020868], 0
jne 0x140014457
mov dword [0x140020868], 1
lea rdx, [0x14001c660]
lea rcx, [0x14001c330]
call fcn.140011253
test eax, eax
je 0x140014438
mov eax, 0xff
jmp 0x140014561
lea rdx, [0x14001c220]
lea rcx, [section..rdata]
call fcn.140011460
mov dword [0x140020868], 2
jmp 0x14001445c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001143d
call fcn.1400113ac
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400144b9
mov rcx, qword [rsp + 0x30]
call fcn.1400111ea
movzx eax, al
test eax, eax
je 0x1400144b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140027020]
nop
call fcn.1400113f2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400144ed
mov rcx, qword [rsp + 0x38]
call fcn.1400111ea
movzx eax, al
test eax, eax
je 0x1400144ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400114b5
nop
call fcn.140014610
mov dword [rsp + 0x28], eax
call fcn.14001137f
movzx eax, al
test eax, eax
jne 0x14001450c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001451b
call fcn.1400114bf
nop
xor edx, edx
mov cl, 1
call fcn.1400111d6
mov eax, dword [rsp + 0x28]
jmp 0x140014561
add rsp, 0x68
ret
Function at 0x140001db0
Capabilities:
Enumerate processes
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140177c80]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Error_creating_snapshot:
mov ebx, eax
call fcn.140001260
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001900]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xffffffff
jmp 0x140001ea3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140001e98
nop word [rax + rax]
lea r8, [rsp + 0x4c]
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001e83
inc rax
test ecx, ecx
jne 0x140001e70
mov rcx, rbx
test edx, edx
je 0x140001ec4
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001e60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140132640
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140001ea3
Function at 0x14000b420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x50]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [0x140177c80]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x110]
movzx eax, word [rax + 0x4ea]
shr ax, 1
and ax, 1
movzx eax, ax
test eax, eax
je 0x14000b59a
mov dword [rsp + 0x64], 0x30
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x88]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x110]
call fcn.14000b080
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000b595
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x324]
mov dword [rsp + 0xd0], eax
mov rcx, qword [rsp + 0x110]
call fcn.1400c9290
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x110]
mov rdx, qword [rdx + 0x18]
mov r8, qword [rsp + 0x110]
mov r8, qword [r8 + 0x18]
add r8, 0xad
mov qword [rsp + 0xd8], r8
mov r9, qword [rsp + 0x110]
mov r9d, dword [r9 + 0x190c]
mov dword [rsp + 0x48], r9d
mov r9, qword [rsp + 0x110]
mov r9, qword [r9 + 0xb0]
mov qword [rsp + 0x40], r9
mov r9d, dword [rsp + 0xd0]
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rcx + 0x10]
mov r8, qword [rdx + 8]
mov edx, 0x30
mov rax, qword [rsp + 0xd8]
mov rcx, rax
call fcn.14000c350
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0x88]
call fcn.14000bb40
jmp 0x14000b674
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x324]
mov dword [rsp + 0xe0], eax
mov rcx, qword [rsp + 0x110]
call fcn.1400c9290
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x18]
add rcx, 0x3c
mov rdx, qword [rsp + 0x110]
mov rdx, qword [rdx + 0x18]
add rdx, 0x1c
mov r8, qword [rsp + 0x110]
mov r8, qword [r8 + 0x18]
mov r9, qword [rsp + 0x110]
mov r9, qword [r9 + 0x18]
mov qword [rsp + 0xe8], r9
mov r10, qword [rsp + 0x110]
mov r10, qword [r10 + 0x18]
add r10, 0xad
mov r11, qword [rsp + 0x110]
mov r11d, dword [r11 + 0x190c]
mov dword [rsp + 0x48], r11d
mov r11, qword [rsp + 0x110]
mov r11, qword [r11 + 0xb0]
mov qword [rsp + 0x40], r11
mov r11d, dword [rsp + 0xe0]
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r9d, dword [r8 + 0x10]
mov rax, qword [rsp + 0xe8]
mov r8, qword [rax + 8]
mov edx, 0x30
mov rcx, r10
call fcn.14000c210
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000b68c
mov rcx, qword [rsp + 0x110]
call fcn.14000af00
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140137290]
call fcn.140132900
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140132640
add rsp, 0x100
pop rdi
ret
Function at 0x14000f000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 0x20], r9b
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rsp + 0x68]
test eax, eax
jne 0x14000f043
mov eax, 0xfffffeb8
jmp 0x14000f11e
movzx eax, word [rsp + 0x60]
cmp eax, 4
jl 0x14000f059
movzx eax, word [rsp + 0x60]
and eax, 1
test eax, eax
je 0x14000f063
mov eax, 0xfffffeb8
jmp 0x14000f11e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
call fcn.14000bc10
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
movzx eax, word [rsp + 0x60]
movzx ecx, word [rsp + 0x24]
add ecx, 2
cmp eax, ecx
je 0x14000f09b
mov eax, 0xfffffeb8
jmp 0x14000f11e
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 2]
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
je 0x14000f0b7
mov eax, 0xfffffeb8
jmp 0x14000f11e
mov rax, qword [rsp + 0x70]
movzx ecx, word [rsp + 0x24]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 2]
cmp eax, 0x26
jle 0x14000f0e7
xor eax, eax
test eax, eax
jne 0x14000f0d3
mov eax, 0x26
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x70]
add rcx, 0x130
mov r8d, eax
mov rdx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
movzx r8d, word [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14000ed50
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140137720]
call fcn.140132900
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140062cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
call fcn.140062ba0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140062d3f
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call fcn.14007a300
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140062d3f
mov dword [rsp + 0x20], 0xffffff83
cmp dword [rsp + 0x20], 0
jne 0x140062d71
movsxd rax, dword [rsp + 0x34]
mov r9, qword [rsp + 0x70]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, dword [rsp + 0x34]
je 0x140062d71
mov dword [rsp + 0x20], 0xfffffffc
cmp dword [rsp + 0x20], 0
jne 0x140062d9c
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140062db8
mov rcx, qword [rsp + 0x50]
call fcn.14007a350
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140140fc0]
call fcn.140132900
mov eax, edi
add rsp, 0x60
pop rdi
ret
Function at 0x140062f00
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x60], 0
jne 0x140062f58
mov dword [rsp + 0x20], 0xfffffffc
cmp dword [rsp + 0x20], 0
jne 0x140062f86
lea rdx, [0x14016f0a8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140062f86
mov dword [rsp + 0x20], 0xfffffffc
cmp dword [rsp + 0x20], 0
jne 0x140062fa0
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x28]
call fcn.140062ba0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140062fc3
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
call fcn.140062e20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140062ffc
movsxd rax, dword [rsp + 0x34]
mov r9, qword [rsp + 0x28]
mov r8, rax
mov edx, 1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movsxd rcx, dword [rsp + 0x34]
cmp rax, rcx
je 0x140062ffc
mov dword [rsp + 0x20], 0xfffffffc
cmp qword [rsp + 0x28], 0
je 0x14006300f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140141020]
call fcn.140132900
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x140077600
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x58], 0
je 0x140077642
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
cmp qword [rsp + 0x50], 0
jne 0x140077651
xor eax, eax
jmp 0x1400777eb
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14007766f
xor eax, eax
jmp 0x1400777eb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140077699
xor eax, eax
jmp 0x1400777eb
cmp dword [rsp + 0x30], 0x400000
jg 0x1400776aa
cmp dword [rsp + 0x30], 0
jg 0x1400776b7
xor eax, eax
test eax, eax
jne 0x1400776aa
xor eax, eax
jmp 0x1400777eb
movsxd rax, dword [rsp + 0x30]
mov rcx, rax
call fcn.14007a300
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140077789
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x50]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, dword [rsp + 0x30]
je 0x140077703
xor eax, eax
test eax, eax
jne 0x1400776f8
jmp 0x1400777a0
cmp dword [rsp + 0x60], 0
jne 0x140077722
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call fcn.140030e10
mov qword [rsp + 0x20], rax
jmp 0x140077779
cmp dword [rsp + 0x60], 5
jne 0x140077741
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call fcn.140030fd0
mov qword [rsp + 0x20], rax
jmp 0x140077779
cmp dword [rsp + 0x60], 0x14
jne 0x140077777
call fcn.1400fb510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007775c
jmp 0x1400777a0
mov r8, qword [rsp + 0x20]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1400fb6a0
test eax, eax
jge 0x140077775
jmp 0x1400777a0
jmp 0x140077779
jmp 0x1400777a0
cmp qword [rsp + 0x20], 0
jne 0x140077789
xor eax, eax
test eax, eax
jne 0x140077781
jmp 0x1400777a0
cmp qword [rsp + 0x58], 0
je 0x14007779e
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
jmp 0x1400777c2
cmp qword [rsp + 0x20], 0
je 0x1400777c2
cmp dword [rsp + 0x60], 0x14
jne 0x1400777c2
mov rcx, qword [rsp + 0x20]
call fcn.1400fb590
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x1400777e6
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400777e6
mov rcx, qword [rsp + 0x38]
call fcn.14007a350
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret