joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cd10
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14000ccfb
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000ccf6
mov rcx, qword [0x1400148d4]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000cce8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x14000cb43
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140011f90]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14000cb6d
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x14000cc9b
mov esi, r10d
lea r10, [0x140011f90]
shr rsi, 3
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r10 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x14000cbc0
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140011f90]
test r9d, r9d
je 0x14000ccbc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x14000cca0
cmp r10d, 0x80000
je 0x14000cb51
mov rcx, qword [0x1400148d4]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x14000ca90
Function at 0x140007790
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
je 0x1400077c8
cmp qword [rsp + 0x38], 0
je 0x1400077c8
cmp qword [rsp + 0x40], 0
je 0x1400077c8
cmp qword [rsp + 0x48], 0
jne 0x1400077d2
mov eax, 0xffffffff
jmp 0x140007906
mov r9, qword [rsp + 0x30]
mov r8d, 1
mov edx, 0x3e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400077fc
mov eax, 0xfffffffe
jmp 0x140007906
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140007815
mov eax, 0xfffffffd
jmp 0x140007906
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x3c]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jge 0x14000783c
mov eax, 0xfffffffc
jmp 0x140007906
mov r9, qword [rsp + 0x30]
mov r8d, 1
mov edx, 0xf0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140007866
mov eax, 0xfffffffb
jmp 0x140007906
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x14000787d
mov eax, 0xfffffffa
jmp 0x140007906
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400078cf
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x3c]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rsp + 0x30]
mov r8d, 1
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400078cd
mov eax, 0xfffffff9
jmp 0x140007906
jmp 0x140007904
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x34], 0x400000
jb 0x1400078eb
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x34], 0x1000000
jbe 0x140007904
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
jne 0x140007904
mov eax, 0xfffffff8
jmp 0x140007906
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x1400079b8
cmp qword [rsp + 0x48], 0
je 0x1400079b8
cmp qword [rsp + 0x50], 0
je 0x1400079b8
cmp qword [rsp + 0x58], 0
jne 0x1400079c2
mov eax, 0xffffffff
jmp 0x140007b1c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x3e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x60], 0
je 0x140007a0d
movzx eax, word [rsp + 0x68]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0xf0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
sub rax, 0xd8
mov r9, qword [rsp + 0x40]
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140007a98
mov rax, qword [rsp + 0x20]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140007a62
cmp qword [rsp + 0x70], 0
je 0x140007abd
movzx eax, word [rsp + 0x78]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140007b1a
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x28], 0
je 0x140007b0a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x10], 0
je 0x140007b0a
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140007ac7
xor eax, eax
add rsp, 0x38
ret
Function at 0x140007b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140007b68
cmp qword [rsp + 0x48], 0
je 0x140007b68
cmp qword [rsp + 0x50], 0
je 0x140007b68
cmp qword [rsp + 0x58], 0
jne 0x140007b72
mov eax, 0xffffffff
jmp 0x140007ccc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x3e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x60], 0
je 0x140007bbd
movzx eax, word [rsp + 0x68]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
sub rax, 0xe8
mov r9, qword [rsp + 0x40]
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140007c48
mov rax, qword [rsp + 0x20]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140007c12
cmp qword [rsp + 0x70], 0
je 0x140007c6d
movzx eax, word [rsp + 0x78]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140007cca
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x28], 0
je 0x140007cba
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x10], 0
je 0x140007cba
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140007c77
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000ab50
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [rsp + 0x24], 0
jne 0x14000abb2
lea rdx, [0x14000f5a4]
mov rcx, qword [rsp + 0x60]
call fcn.140002800
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
jmp 0x14000ac5d
lea rcx, [rsp + 0x28]
call fcn.14000b270
nop
mov eax, dword [rsp + 0x24]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14000b130
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14000b1e0
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000ac25
lea rcx, [rsp + 0x28]
call fcn.14000b1a0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.14000b210
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x28]
call fcn.1400027d0
mov rax, qword [rsp + 0x60]
jmp 0x14000ac5d
lea rdx, [0x14000f5a8]
mov rcx, qword [rsp + 0x60]
call fcn.140002800
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x28]
call fcn.1400027d0
mov rax, qword [rsp + 0x60]
jmp 0x14000ac5d
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000cf70
add rsp, 0x58
ret

Function at 0x14000d910
Capabilities:
Parse pe header

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000b9f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000b9e0
ret
Function at 0x140014780
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001484c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001484c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140014865
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001483c
cmp byte [rax], 0x5c
jne 0x140014836
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140014836
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140014822
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140014833
test r8b, 0x10
jne 0x140014836
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140014836
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000f7a0
test edi, edi
jne 0x1400147a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000f790
int3

Function at 0x140017cfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017d46
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017d46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017d46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017d46
cmp dword [rcx + 0x84], 0xe
jbe 0x140017d46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017d48
xor al, al
add rsp, 0x28
ret
Function at 0x140001fb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ffe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ffe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ffe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ffe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ffe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002000
xor al, al
add rsp, 0x28
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140031f00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15, rdx
lea r14, [rdx - 1]
mov rsi, rcx
xor r12d, r12d
nop word [rax + rax]
mov rdi, r12
mov rbp, r12
test r14, r14
je 0x140032116
mov rdx, qword [rsi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + 0xff]
shl rdi, cl
add rdi, rdi
nop dword [rax]
mov r10, qword [rsi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140031fc4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140031f80
mov ecx, dword [r10]
jmp 0x1400320a7
cmp ecx, 0x4e0
jb 0x1400320a7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140031fe0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140032030
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
mov r8, qword [rsi + 0x10]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, r8
ja 0x140031f60
mov rdx, qword [rsi + 8]
or rdi, rax
lea ecx, [rdx + 0xff]
shl rbp, cl
add rbp, rbp
or rbp, r8
cmp rbp, r14
jb 0x140031f50
xor edx, edx
mov rax, rbp
div r15
mov rcx, rax
mov r8, rdx
xor edx, edx
mov rax, rdi
div r15
cmp rax, rcx
jb 0x14003213a
cmp r8, r14
jne 0x140031f30
mov rbx, qword [rsp + 0x20]
mov rax, rdi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15
mov rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x140032160
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov edi, r14d
mov ebp, r14d
mov rsi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl rdi, cl
add rdi, rdi
nop dword [rax]
mov r10, qword [rsi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140032204
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1400321c0
mov ecx, dword [r10]
jmp 0x1400322e7
cmp ecx, 0x4e0
jb 0x1400322e7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140032220
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140032270
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov ecx, edx
mov dword [r10], eax
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rdx, rcx
shr rdx, 0x12
xor rdx, rcx
cmp rdx, qword [rsi + 0x10]
ja 0x1400321a0
mov rax, qword [rsi + 8]
or rdi, rdx
add rbp, rax
cmp rbp, 0x40
jb 0x140032190
mov rbx, qword [rsp + 0x10]
mov rax, rdi
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop r14
ret
Function at 0x140032370
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve dns

Disassembly:
push rbp
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.14008f810
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1458], rbx
mov qword [rsp + 0x1460], rsi
mov qword [rsp + 0x1468], rdi
mov rdi, r8
mov rsi, rdx
mov rcx, qword [rcx]
call fcn.140030bb0
test al, al
jne 0x140032556
movdqa xmm0, xmmword [0x1400e31f0]
movdqu xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1400323eb
mov rdi, qword [rdi]
lea r9, [rbp + 0x1350]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140032516
mov rax, qword [rbp + 0x1350]
test rax, rax
je 0x14003242c
nop word [rax + rax]
inc rbx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140032420
call fcn.1400717b8
mov r9d, 0xffffffff
mov dword [rbp + 0x1334], r9d
mov dword [rbp - 0x4c], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rbp + rdx*4 - 0x4c], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x140032450
mov dword [rbp - 0x50], 0x270
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
mov rax, 0xffffffffffffffff
nop
dec rcx
shr rax, 1
cmp rax, r9
ja 0x140032490
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
test rbx, rbx
jne 0x1400324b6
call fcn.140032160
jmp 0x1400324be
mov rdx, rbx
call fcn.140031f00
mov rbx, qword [rbp + 0x1350]
test rax, rax
je 0x1400324da
nop word [rax + rax]
mov rbx, qword [rbx + 0x28]
sub rax, 1
jne 0x1400324d0
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
mov rcx, rsi
call fcn.1400332d0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rsi
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140032d70
nop
mov r8, rax
lea rdx, str.Ipv4Resolver::resolve__getaddrinfo_failed_
lea rcx, [rbp - 0x70]
call fcn.1400142b0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140002e70
lea rdx, [0x1401321a0]
lea rcx, [rsp + 0x20]
call fcn.1400ac7f8
nop
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.140002ba0
lea rdx, [0x1401322f0]
lea rcx, [rsp + 0x20]
call fcn.1400ac7f8
int3
Function at 0x140038650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r11, [r8 + 0x10]
mov rbx, qword [r11 + 0x10]
mov rsi, rdx
mov rdi, rcx
jb 0x140038677
mov r11, qword [r11]
xor r9d, r9d
movabs r10, 0xcbf29ce484222325
test rbx, rbx
je 0x1400386b4
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + r11]
inc r9
xor r10, rax
imul r10, rcx
cmp r9, rbx
jb 0x1400386a0
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x18]
and rdx, r10
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x1400386f4
cmp rax, r8
jne 0x1400386ea
mov rax, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x1400386ff
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x1400386ff
cmp rax, r8
jne 0x1400386ff
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
lea rcx, [rdi + 8]
mov rbx, qword [r8]
mov qword [rax], rbx
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov rdx, r8
dec qword [rcx + 8]
call fcn.140038930
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret