joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400856c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c55a1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140085768
lea rdx, [0x1400b04aa]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400857d0
mov rbx, qword [0x1400c5440]
jmp 0x140085705
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140085700
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140085757
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140074aa0
mov r8, rax
cmp rdi, rbx
jne 0x140085740
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c5440], rax
mov ebx, dword [rax]
mov qword [0x1400c5440], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c5440], rdx
call fcn.1400847f0
cmp eax, ebx
jne 0x140085838
mov byte [0x1400c55a1], 1
jmp 0x1400856e0
cmp byte [0x1400c55a0], 0
jne 0x1400856f7
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c6148], rax
call rbx
mov qword [0x1400c6140], rax
call rbx
mov qword [0x1400c6138], rax
call rbx
mov qword [0x1400c6130], rax
call rbx
mov qword [0x1400c6128], rax
call rbx
mov qword [0x1400c6120], rax
call rbx
mov qword [0x1400c6118], rax
call rbx
mov byte [0x1400c55a0], 1
mov qword [0x1400c6110], rax
jmp 0x1400856f7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14008e100
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009f890
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009f890
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008edd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c6608]
test eax, eax
je 0x14008ee6a
lea rax, [0x1400c65e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c6610]
mov qword [rbp - 8], rax
jmp 0x14008ee4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008ee42
cmp qword [rbp - 0x10], 0
je 0x14008ee42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008ee08
lea rax, [0x1400c65e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008ee6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008ef70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008ef98
mov eax, 0
jmp 0x14008efe6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008efc1
mov eax, 0
jmp 0x14008efe6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008efe1
mov eax, 0
jmp 0x14008efe6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008efec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008f06a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008f061
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008f061
mov rax, qword [rbp - 8]
jmp 0x14008f07f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008f034
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14009bd50]
mov dword [rax], 1
mov rax, qword [0x14009bd60]
mov dword [rax], 1
mov rax, qword [0x14009bd70]
mov dword [rax], 1
mov rax, qword [0x14009bca0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14005c2f0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14007d360
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14006f540
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14005c349
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14007c040
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14008d5f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14008d5f0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14007cd12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400a8608]
test eax, eax
je 0x14007cdaa
lea rax, [0x1400a85e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400a8610]
mov qword [rbp - 8], rax
jmp 0x14007cd8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14007cd82
cmp qword [rbp - 0x10], 0
je 0x14007cd82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14007cd48
lea rax, [0x1400a85e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14007cdab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14007ceb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14007ced8
mov eax, 0
jmp 0x14007cf26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14007cf01
mov eax, 0
jmp 0x14007cf26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14007cf21
mov eax, 0
jmp 0x14007cf26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14007cf2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14007cfaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14007cfa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14007cfa1
mov rax, qword [rbp - 8]
jmp 0x14007cfbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14007cf74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000302c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r15d, r15d
mov ebp, ecx
test ecx, ecx
je 0x140001460
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x20]
test rdi, rdi
je 0x140001460
mov r12d, 0x103
mov r14, qword [rdi + 0x50]
test r14, r14
je 0x140001460
cmp word [rdi + 0x48], r12w
jae 0x140001458
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140001e40
mov esi, r15d
cmp word [r14], r15w
je 0x14000143b
cmp esi, r12d
jae 0x14000143b
mov ebx, esi
mov cl, byte [r14 + rbx*2]
call fcn.140001f48
mov r14, qword [rdi + 0x50]
inc esi
mov byte [rsp + rbx + 0x20], al
cmp word [r14 + rsi*2], r15w
jne 0x14000141a
mov eax, esi
cmp rax, 0x104
jae 0x14000149a
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], r15b
call fcn.140001e64
cmp eax, ebp
je 0x140001494
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400013ef
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002450
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, qword [rdi + 0x20]
jmp 0x140001462
call fcn.140002114
int3
Function at 0x1400014a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14d, edx
mov rbx, rcx
test rcx, rcx
je 0x1400015fb
test edx, edx
je 0x1400015fb
movsxd r12, dword [rcx + 0x3c]
mov eax, dword [r12 + rcx + 0x88]
add rax, rcx
mov ebp, dword [rax + 0x20]
mov r13d, dword [rax + 0x1c]
add rbp, rcx
mov esi, dword [rax + 0x24]
add r13, rcx
mov r15d, dword [rax + 0x18]
add rsi, rcx
xor edi, edi
jmp 0x14000152d
mov ecx, dword [rbp]
dec r15d
add rcx, rbx
call fcn.140001e64
cmp eax, r14d
je 0x140001537
add rbp, 4
add rsi, 2
test r15d, r15d
jne 0x140001512
jmp 0x1400015f6
movzx eax, word [rsi]
mov ecx, dword [r12 + rbx + 0x88]
mov edx, dword [r13 + rax*4]
lea rdi, [rbx + rdx]
cmp ecx, edx
ja 0x1400015f6
add ecx, dword [r12 + rbx + 0x8c]
cmp ecx, edx
jb 0x1400015f6
mov ebx, 0x104
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call fcn.140001e40
mov r8d, ebx
lea rcx, [rsp + 0x130]
xor edx, edx
call fcn.140001e40
mov rcx, rdi
call fcn.140001edc
test eax, eax
je 0x1400015fb
mov r8d, eax
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov ebx, eax
call fcn.140001f78
lea rcx, [rbx + 1]
add rcx, rdi
call fcn.140001f18
lea rdx, [rbx + 1]
mov r8, rax
add rdx, rdi
lea rcx, [rsp + 0x130]
call fcn.140001f78
lea rcx, [rsp + 0x20]
call fcn.140001630
mov rbx, rax
test rax, rax
je 0x1400015f6
lea rcx, [rsp + 0x130]
call fcn.140001e64
mov edx, eax
mov rcx, rbx
call fcn.1400014a0
mov rdi, rax
mov rax, rdi
jmp 0x1400015fd
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002450
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000170c
Capabilities:
Check os version
Parse pe header

Disassembly:
mov qword [rsp + 8], rdi
xor r9d, r9d
cmp qword [0x140006158], r9
je 0x140001739
cmp qword [0x140006160], r9
je 0x140001739
cmp qword [0x140006168], r9
je 0x140001739
mov eax, 1
jmp 0x140001802
xor eax, eax
lea rdi, [0x140006138]
lea ecx, [rax + 0x38]
rep stosb byte [rdi], al
mov rax, qword gs:[0x60]
test rax, rax
je 0x140001800
cmp dword [rax + 0x118], 0xa
jne 0x140001800
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov rdx, qword [rcx]
sub rdx, 0x10
je 0x140001800
mov rdx, qword [rdx + 0x30]
mov eax, 0x5a4d
mov qword [0x140006138], rdx
mov qword [0x140006140], rdx
cmp word [rdx], ax
jne 0x140001800
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [0x140006148], rcx
cmp dword [rcx], 0x4550
jne 0x140001800
mov edi, dword [rcx + 0x88]
add rdi, rdx
mov qword [0x140006150], rdi
je 0x140001800
cmp dword [rdi + 0x10], r9d
je 0x140001800
mov ecx, dword [rdi + 0x1c]
add rcx, rdx
mov qword [0x140006158], rcx
mov r8d, dword [rdi + 0x20]
add r8, rdx
mov qword [0x140006160], r8
mov eax, dword [rdi + 0x24]
add rax, rdx
mov qword [0x140006168], rax
test rcx, rcx
je 0x140001800
test r8, r8
je 0x140001800
test rax, rax
jne 0x14000172f
xor eax, eax
mov rdi, qword [rsp + 8]
ret
Function at 0x140001cc0
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
and qword [rbp - 0x38], 0
xor ecx, ecx
and qword [rbp - 0x28], 0
xorps xmm0, xmm0
and dword [rbp - 0x40], 0
movups xmmword [rbp - 0x20], xmm0
lea r12d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r9, [rbp - 0x40]
movzx edx, r12w
mov rcx, rax
lea r8, [rbp - 0x38]
call fcn.14000197c
test eax, eax
je 0x140001e17
call fcn.140001050
test eax, eax
je 0x140001e17
mov edx, dword [rbp - 0x40]
lea r8, [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
and qword [rbp - 0x30], 0
call fcn.140001a94
mov rbx, rax
test rax, rax
je 0x140001e17
lea r8d, [r12 + 0xf]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140001f78
lea rsi, [rbx + 0x10]
mov rbx, qword [rbp - 0x30]
sub rbx, 0x10
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
lea edx, [r12 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001daf
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001f78
mov r9d, 0x10
lea r8, [rbp - 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140001a34
test eax, eax
je 0x140001e17
lea r8, [rbp - 0x28]
mov rdx, rbx
mov rcx, rdi
call fcn.1400010f8
test eax, eax
je 0x140001e17
mov rdx, rbx
mov rcx, rdi
call fcn.140001f58
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140001e13
call fcn.1400012c0
neg eax
sbb eax, eax
neg eax
sub eax, r12d
jmp 0x140001e1a
xor eax, eax
jmp 0x140001e1a
or eax, 0xffffffff
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002450
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140001e64
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [rcx]
mov r8, rcx
or edx, 0xffffffff
jmp 0x140001e9a
movzx eax, al
mov r9d, 7
xor edx, eax
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xed788320
mov edx, ecx
xor edx, eax
sub r9d, 1
jns 0x140001e79
inc r8
mov al, byte [r8]
test al, al
jne 0x140001e6e
not edx
mov eax, edx
ret

Function at 0x140002ee0
Capabilities:
Parse pe header

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

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

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x1400272a5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.140013da0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x140027414
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x14002738c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140027403
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1400273c9
mov r10, qword [rdx]
cmp r10, rax
je 0x1400273c3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140027403
cmp r9, rdx
je 0x1400273df
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x140027425
cmp r9, rdx
jne 0x1400273d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x140027310
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140027403
Function at 0x140028c10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [str.cYSWULRF_Y__I_]
xor edi, edi
cmp byte [0x1401ba64f], dil
mov rbx, rcx
mov qword [rcx], rdi
mov qword [rsp + 0x40], rax
je 0x140028d9f
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140028d63
movdqa xmm2, xmmword [0x1401c4b30]
mov eax, 5
movdqa xmm3, xmmword [0x1401c4b40]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1401c4ea0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, eax
mov eax, Ordinal_35
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401c4c20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401c4d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401c4db0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401c4c20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401c4d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401c4db0]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
jmp 0x140028d9f
lea r8, [rsp + 0x40]
mov ecx, edi
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x140028d70
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx + 8], xmm0
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x20], rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140028dc0
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 8]
call fcn.140010900
mov qword [rbx + 0x28], rdi
mov rax, rbx
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov dword [rbx + 0x40], edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret