joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af4c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp byte [rcx + 0x61c], al
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1400af52e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.1400aa9a0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x620]
mov dword [rsp + 0x50], 1
call fcn.1400bb7b0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rbx + 0x624]
call fcn.1400bb7b0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, 0xc
mov edx, 0x98000004
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x80]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x1400af5c0
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.1400aa9a0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x1400af5e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r10, rdx
mov edx, 6
movzx eax, byte [rbx + 0x45e]
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, r10
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1400af64e
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.1400c2100
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.1400aa9a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400aa9a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b7200
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, rdx
mov rdi, rcx
test bl, bl
je 0x1400b72dd
mov qword [rsp + 0x30], rbp
lea rbp, [0x140000000]
nop dword [rax]
movzx edx, byte [rsi]
test dl, dl
je 0x1400b72d8
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b7252
cdqe
mov ecx, dword [rbp + rax*4 + 0xb730c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400b7252
mov bl, 0x42
jmp case.default.0x1400b7252
mov bl, 0x43
jmp case.default.0x1400b7252
mov bl, 0x44
jmp case.default.0x1400b7252
mov bl, 0x45
jmp case.default.0x1400b7252
mov bl, 0x46
jmp case.default.0x1400b7252
mov bl, 0x47
jmp case.default.0x1400b7252
mov bl, 0x48
jmp case.default.0x1400b7252
mov bl, 0x49
jmp case.default.0x1400b7252
mov bl, 0x4a
jmp case.default.0x1400b7252
mov bl, 0x4b
jmp case.default.0x1400b7252
mov bl, 0x4c
jmp case.default.0x1400b7252
mov bl, 0x4d
jmp case.default.0x1400b7252
mov bl, 0x4e
jmp case.default.0x1400b7252
mov bl, 0x4f
jmp case.default.0x1400b7252
mov bl, 0x50
jmp case.default.0x1400b7252
mov bl, 0x51
jmp case.default.0x1400b7252
mov bl, 0x52
jmp case.default.0x1400b7252
mov bl, 0x53
jmp case.default.0x1400b7252
mov bl, 0x54
jmp case.default.0x1400b7252
mov bl, 0x55
jmp case.default.0x1400b7252
mov bl, 0x56
jmp case.default.0x1400b7252
mov bl, 0x57
jmp case.default.0x1400b7252
mov bl, 0x58
jmp case.default.0x1400b7252
mov bl, 0x59
jmp case.default.0x1400b7252
mov bl, 0x5a
movzx ecx, dl
call fcn.1400b7530
cmp bl, al
jne 0x1400b72d8
movzx ebx, byte [rdi + 1]
inc rdi
inc rsi
test bl, bl
jne 0x1400b7230
mov rbp, qword [rsp + 0x30]
movzx ecx, byte [rdi]
call fcn.1400b7530
movzx ecx, byte [rsi]
movzx ebx, al
call fcn.1400b7530
mov rsi, qword [rsp + 0x40]
xor ecx, ecx
cmp bl, al
mov rbx, qword [rsp + 0x38]
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400b7380
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test bl, bl
je 0x1400b7475
lea rbp, [0x140000000]
nop word [rax + rax]
movzx edx, byte [r14]
test dl, dl
je 0x1400b7475
test rsi, rsi
je 0x1400b747a
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b73ec
cdqe
mov ecx, dword [rbp + rax*4 + 0xb74bc]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400b73ec
mov bl, 0x42
jmp case.default.0x1400b73ec
mov bl, 0x43
jmp case.default.0x1400b73ec
mov bl, 0x44
jmp case.default.0x1400b73ec
mov bl, 0x45
jmp case.default.0x1400b73ec
mov bl, 0x46
jmp case.default.0x1400b73ec
mov bl, 0x47
jmp case.default.0x1400b73ec
mov bl, 0x48
jmp case.default.0x1400b73ec
mov bl, 0x49
jmp case.default.0x1400b73ec
mov bl, 0x4a
jmp case.default.0x1400b73ec
mov bl, 0x4b
jmp case.default.0x1400b73ec
mov bl, 0x4c
jmp case.default.0x1400b73ec
mov bl, 0x4d
jmp case.default.0x1400b73ec
mov bl, 0x4e
jmp case.default.0x1400b73ec
mov bl, 0x4f
jmp case.default.0x1400b73ec
mov bl, 0x50
jmp case.default.0x1400b73ec
mov bl, 0x51
jmp case.default.0x1400b73ec
mov bl, 0x52
jmp case.default.0x1400b73ec
mov bl, 0x53
jmp case.default.0x1400b73ec
mov bl, 0x54
jmp case.default.0x1400b73ec
mov bl, 0x55
jmp case.default.0x1400b73ec
mov bl, 0x56
jmp case.default.0x1400b73ec
mov bl, 0x57
jmp case.default.0x1400b73ec
mov bl, 0x58
jmp case.default.0x1400b73ec
mov bl, 0x59
jmp case.default.0x1400b73ec
mov bl, 0x5a
movzx ecx, dl
call fcn.1400b7530
cmp bl, al
jne 0x1400b7475
movzx ebx, byte [rdi + 1]
inc rdi
dec rsi
inc r14
test bl, bl
jne 0x1400b73c0
test rsi, rsi
jne 0x1400b7481
mov eax, 1
jmp 0x1400b749e
movzx ecx, byte [rdi]
call fcn.1400b7530
movzx ecx, byte [r14]
movzx ebx, al
call fcn.1400b7530
xor ecx, ecx
cmp bl, al
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400b7530
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b754f
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0xb75a4]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret
Function at 0x1400b7610
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
cmp r8, 1
jb 0x1400b76e7
sub r10, rdx
lea r11, [0x140000000]
nop word [rax + rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x1400b764e
cdqe
mov ecx, dword [r11 + rax*4 + 0xb76e8]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400b764e
mov r9b, 0x42
jmp case.default.0x1400b764e
mov r9b, 0x43
jmp case.default.0x1400b764e
mov r9b, 0x44
jmp case.default.0x1400b764e
mov r9b, 0x45
jmp case.default.0x1400b764e
mov r9b, 0x46
jmp case.default.0x1400b764e
mov r9b, 0x47
jmp case.default.0x1400b764e
mov r9b, 0x48
jmp case.default.0x1400b764e
mov r9b, 0x49
jmp case.default.0x1400b764e
mov r9b, 0x4a
jmp case.default.0x1400b764e
mov r9b, 0x4b
jmp case.default.0x1400b764e
mov r9b, 0x4c
jmp case.default.0x1400b764e
mov r9b, 0x4d
jmp case.default.0x1400b764e
mov r9b, 0x4e
jmp case.default.0x1400b764e
mov r9b, 0x4f
jmp case.default.0x1400b764e
mov r9b, 0x50
jmp case.default.0x1400b764e
mov r9b, 0x51
jmp case.default.0x1400b764e
mov r9b, 0x52
jmp case.default.0x1400b764e
mov r9b, 0x53
jmp case.default.0x1400b764e
mov r9b, 0x54
jmp case.default.0x1400b764e
mov r9b, 0x55
jmp case.default.0x1400b764e
mov r9b, 0x56
jmp case.default.0x1400b764e
mov r9b, 0x57
jmp case.default.0x1400b764e
mov r9b, 0x58
jmp case.default.0x1400b764e
mov r9b, 0x59
jmp case.default.0x1400b764e
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1400b76e7
dec r8
jne 0x1400b7630
ret
Function at 0x1400bdd70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400bddb5
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400bddb5
lea rcx, [rsp + 0x20]
call qword [case.0x1400a86f7.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400bfa00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400bfa5c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400bfa6c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c3450
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400c34d0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c3694
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c3674
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c352d
lea ebp, [rax + 0xe]
jmp 0x1400c3539
cmp eax, 0x17
jne 0x1400c35e1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c35e1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c35e1
cmp rax, rbp
jb 0x1400c35e1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c361c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c360b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c35ce
call qword [case.0x1400a86f7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c35f0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c35de
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c3520
jmp 0x1400c3622
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400c3622
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400c3622
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c3637
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400c366f
test rbx, rbx
je 0x1400c366a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400c3641
mov rbx, r13
jmp 0x1400c3683
test rbx, rbx
jne 0x1400c3683
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c5660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400c56aa
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c569a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c56f4
cmp qword [rbx + 0x10], 0
jne 0x1400c56df
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400e2784]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c56df
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c5718
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c570f
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400c7920
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400c795a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400c7958
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c9ca0
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
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c9ce2
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 [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c9d25
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
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 0x1400c9d81
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400c9d40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c9dc3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ef6d2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ef6d3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c9d90
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x494810
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r12, 0xffffffffffffffba
mov rax, qword [rsp + 0x1c8]
mov esi, dword [rax]
mov rdi, rdx
test esi, esi
mov edx, 3
mov r13, rcx
cmove esi, edx
mov r14, r8
mov rbx, r9
cmp rdi, r9
jb 0x49498f
mov r12, 0xffffffffffffffb8
cmp r9, 0x7f
jbe 0x49498f
mov r12, 0xffffffffffffffba
cmp rdi, 0xff
jbe 0x49498f
mov rcx, r14
mov r12d, dword [rax + 8]
xor r8d, r8d
mov rdx, r9
mov dword [rsp + 0x50], 0xec30a437
mov ebp, dword [rax + 4]
call fcn.004fabe0
mov rcx, rax
test r12d, r12d
je 0x4949a8
mov dword [rsp + 0x54], r12d
cmp ebp, 1
jbe 0x494910
mov r12, qword [fcn.0058b090]
mov ecx, 2
call r12
lea r8, [0x0059063f]
lea rdx, str._r_70s_r
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ecx, 2
call r12
mov rcx, rax
call sub.msvcrt.dll_fflush
mov ecx, 2
call r12
mov r8d, 0x10
mov edx, 1
lea rcx, str.statistics_...__n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call r12
mov rcx, rax
call sub.msvcrt.dll_fflush
mov eax, dword [rsp + 0x1c0]
mov dword [rsp + 0x40], ebp
mov r8d, esi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov r9, qword [rsp + 0x1b0]
mov edx, 0xf8
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], rax
call fcn.00493850
mov r12, rax
cmp rax, 0xffffffffffffff88
ja 0x49498f
lea rsi, [rax + 8]
lea r12, [rbx + rsi]
cmp r12, rdi
jbe 0x49496f
mov rbx, rdi
mov r12, rdi
sub rbx, rsi
lea rcx, [r13 + rsi]
mov r8, rbx
mov rdx, r14
call sub.msvcrt.dll_memmove
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, r13
call sub.msvcrt.dll_memcpy
mov rax, r12
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs rdx, 0x8000800080008001
mul rdx
shr rdx, 0x1e
mov rax, rdx
shl rax, 0x10
sub rax, rdx
shl rax, 0xf
sub rcx, rax
lea r12d, [rcx + 0x8000]
jmp 0x49489f
Function at 0x4fb510
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
movabs rax, 0x27d4eb2f165667c5
mov r10d, dword [rcx + 0x48]
mov r11, qword [rcx + 0x18]
mov rbx, qword [rcx]
add rax, r11
lea r9, [rcx + 0x28]
add r10, r9
cmp rbx, 0x1f
jbe 0x4fb5f1
mov rax, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
movabs rdx, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
mov r8, qword [rcx + 0x20]
mov rbp, rax
mov rdi, r12
rol rax, 1
imul rbp, rdx
rol rdi, 7
add rax, rdi
imul r12, rdx
mov rdi, r11
rol rdi, 0xc
imul r11, rdx
rol rbp, 0x1f
imul rdx, r8
add rax, rdi
mov rdi, r8
imul rbp, rsi
rol rdi, 0x12
add rdi, rax
rol r11, 0x1f
movabs rax, 0x85ebca77c2b2ae63
imul r11, rsi
rol rdx, 0x1f
xor rdi, rbp
imul rdx, rsi
imul rdi, rsi
mov rbp, rdi
mov rdi, r12
rol rdi, 0x1f
imul rdi, rsi
mov r12, rdi
lea rdi, [rbp + rax]
xor rdi, r12
imul rdi, rsi
add rdi, rax
xor r11, rdi
imul r11, rsi
lea r8, [r11 + rax]
xor rdx, r8
imul rdx, rsi
add rax, rdx
lea rsi, [rcx + 0x30]
lea rdx, [rbx + rax]
cmp r10, rsi
jb 0x4fb659
movabs rbx, 0xc2b2ae3d27d4eb4f
mov r8, rsi
movabs r9, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop
mov rax, qword [r8 - 8]
add r8, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r9
xor rax, rdx
rol rax, 0x1b
imul rax, r9
lea rdx, [rax + r11]
cmp r10, r8
jae 0x4fb620
mov rax, r10
sub rax, rcx
lea r9, [rax - 0x30]
and r9, 0xfffffffffffffff8
add r9, rsi
lea rcx, [r9 + 4]
cmp r10, rcx
jb 0x4fb698
movabs r8, 0x9e3779b185ebca87
mov eax, dword [r9]
mov r9, rcx
imul rax, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r10, r9
jbe 0x4fb6d7
movabs r8, 0x27d4eb2f165667c5
movabs rcx, 0x9e3779b185ebca87
nop dword [rax]
movzx eax, byte [r9]
add r9, 1
imul rax, r8
xor rax, rdx
rol rax, 0xb
imul rax, rcx
mov rdx, rax
cmp r10, r9
jne 0x4fb6b8
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4fd720
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
mov r12, rax
cmp rbx, rax
je 0x4fd753
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4fd760
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call fcn.004fd050
nop
nop dword [rax]
jmp qword [sym.imp.msvcrt.dll__fileno]

Function at 0x4fe160
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sub.msvcrt.dll_fwrite
mov rcx, r12
mov r13, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4fe196
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r12
call fcn.004fd050
nop
nop
Function at 0x4fe1a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [fcn.0058b090]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x4fe1e3
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.004fd1e0
cmp rsi, rbx
jg 0x4fe1c0
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x00594561]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x4fe540
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x4fe561
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x4fe5d0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.0058b090]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret
Function at 0x506a70
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x005f01e0], 0
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov byte [rbp - 0x119], 1
je 0x506b67
mov rax, qword [0x005e8240]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x005e8240], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x506b88
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x506b38
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sub.msvcrt.dll_strlen
lea r8, [0x005f0200]
lea rcx, [0x0058c040]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call fcn.00504f80
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x005f01e0]
mov rax, qword [0x005e8240]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x005e8240], rax
jne 0x506bf5
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x506c10
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x005e8240]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x005e8240], rax
mov rax, qword [0x005efe60]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x506bc5
add qword [rbx - 0x10], 8
mov rax, qword [0x005efe60]
test rax, rax
je 0x506be0
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x506be0
call fcn.005008f0
cmp qword [rbp - 0x110], 0
mov qword [0x005efe60], rbx
je 0x506b67
mov rcx, qword [0x005efe60]
test rcx, rcx
je 0x506c40
call fcn.00507000
jmp 0x506b67
mov ecx, 2
call qword [fcn.0058b090]
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x506b76
call fcn.005069e0
nop
nop word cs:[rax + rax]