joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ddf10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140132040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400de0ac
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400de0ac
cmp r10d, r14d
jne 0x1400ddfb0
sub rbx, 0x10
jmp 0x1400de0f4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400de022
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400ddfe4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400ddfec
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400de00b
movzx edx, r11b
mov rcx, rsi
call fcn.1400df0c0
test al, al
jne 0x1400de105
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400df730
test al, al
jne 0x1400de105
mov edx, dword [rsi + 0x64]
lea r9, [0x1400dfa90]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400de04e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400ddd90
jmp 0x1400de0a2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400ddd90
test dil, dil
je 0x1400de09a
cmp byte [rsi + 0x6a], 0
jne 0x1400de09a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400de105
sub rbx, 0x10
jmp 0x1400de0f4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400de109
mov ebp, dword [rbx]
jmp 0x1400ddf70
mov al, 1
jmp 0x1400de112
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400e9040
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400e4460
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400e447c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e44d0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e45f5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400e45f5
test rax, rax
je 0x1400e45f5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400e45f5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400e456a
lea rax, [0x1400e4650]
jmp 0x1400e45c3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400e45f5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e45e3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400e4590
lea rax, [0x1400e4620]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400e460a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400e5350
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400e535b
xor eax, eax
ret
lea r11, [0x14010c550]
not ecx
cmp r8d, 8
jb 0x1400e5431
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400e5380
test r8d, r8d
je 0x1400e545d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400e5440
not ecx
mov eax, ecx
ret
Function at 0x1400e9fe0
Capabilities:
Parse pe header

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

Function at 0x1400ea220
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400ea25a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ea25f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ea2a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14010cd30]
cmp byte [rcx + rax], 0
je 0x1400ea2a8
dec r8
sub rdx, 1
jne 0x1400ea28e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400eaa6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400ea338
mov ebx, eax
test eax, eax
jne 0x1400eaa9c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400eaaff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400eaaf6
test al, 0x10
je 0x1400eaaf6
bt eax, 0xa
jae 0x1400eaaef
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400eab10
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400eaaeb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400eaaeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400eaaf6
and dword [rsp + 0x3c], 0
jmp 0x1400eaafb
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001482
Capabilities:
Resume thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, qword [rdx + 8]
mov rcx, rbx
lea rdi, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100002
mov rsi, r8
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400014d2
mov qword [rsp + 0xa0], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400014d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001583
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, rcx
mov esi, edx
mov r9, r8
test r8, r8
je 0x1400015a3
cmp byte [r8], 0
jne 0x1400015b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140001644
lea rdx, [rsp + 0x8c]
xor eax, eax
lea rbp, [rsp + 0x70]
mov ecx, 0x19
mov rdi, rdx
lea r8, section..rdata
mov edx, 0x400
mov dword [rsp + 0x88], 0x68
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbp
lea r12, [rsp + 0x88]
rep stosd dword [rdi], eax
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov rdx, rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001671
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001671
movups xmm0, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x50]
movsxd r9, esi
mov r8, rbx
mov rax, qword [rsp + 0x80]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
call fcn.1400014dd
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000167f
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x68
lea rsi, [0x140055003]
xor eax, eax
mov r9, rcx
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov r10d, edx
rep movsd dword [rdi], dword [rsi]
mov rdx, r8
lea r8, [rsp + 0x20]
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r8 + rax], cl
inc rax
cmp rax, 0x40
jne 0x1400016a8
xor eax, eax
cmp r10d, eax
jle 0x1400016d7
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r9 + rax], cl
inc rax
jmp 0x1400016c0
mov rcx, r9
call fcn.140001450
mov edx, r10d
call fcn.140001583
nop
add rsp, 0x68
pop rsi
pop rdi
ret
Function at 0x140001720
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov rdi, rcx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov edx, 0x40000000
lea rcx, [0x140058060]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400017c1
xor edx, edx
mov ebp, 0x19000
lea r12, [rsp + 0x4c]
mov dword [rsp + 0x4c], edx
test ebx, ebx
jle 0x1400017a0
cmp ebp, ebx
mov r9, r12
mov rdx, rdi
mov rcx, rsi
cmovg ebp, ebx
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400017ab
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017c1
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rdi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000177a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400017ea
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rdi, rcx
xor ecx, ecx
mov esi, edx
mov rbx, r8
mov dword [rsp + 0x34], ecx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], ecx
xor edx, edx
mov rcx, qword [0x140058040]
mov r9, rbp
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
xor edx, edx
call r12
test eax, eax
je 0x140001867
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x140001867
xor eax, eax
mov rcx, qword [0x140058040]
add rdx, rdi
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x140001816
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400018e1
Capabilities:
Create mailslot
Create thread

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rbx, [0x140058060]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov r8d, 0x5c
mov rcx, rbx
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call fcn.1400016f0
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x140058040], rax
inc rax
je 0x1400019cc
xor eax, eax
xor edx, edx
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x1400017cc]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.140001879
mov rcx, qword [0x140058040]
sub rsp, 0xffffffffffffff80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop rbx
ret
Function at 0x140001d40
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.1400079c0
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.1400079c0
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 0x140001db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140058144]
mov rbx, rcx
test esi, esi
jle 0x140001ee0
mov rax, qword [0x140058148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001de0
mov rcx, rbx
call fcn.140002800
mov rdi, rax
test rax, rax
je 0x140001f02
mov rax, qword [0x140058148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002940
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140058148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e90
add dword [0x140058144], 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 [0x140058148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d40
nop dword [rax]
xor esi, esi
jmp 0x140001e08
mov rax, qword [0x140058148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400581a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140058180]
test rbx, rbx
je 0x1400024cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400024c3
test rsi, rsi
je 0x1400024c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024a8
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 0x140002800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400557c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000287d
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 0x140002874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002820
add rax, 0x28
cmp rax, r9
jne 0x140002860
xor eax, eax
ret

Function at 0x140002880
Capabilities:
Parse pe header

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

Function at 0x140002940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400557c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000295f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1402511e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
mov eax, dword [0x140cc54c8]
mov edx, dword [0x140cc54cc]
shrd edx, eax, 0xe
xor edx, 0x844ba0a
cmp dword [0x140cc760c], edx
je 0x1402512a0
lea r10, [r8 + 0x16]
xor eax, eax
nop dword [rax]
movsxd r11, eax
mov eax, dword [0x140cc54d0]
mov edx, dword [0x140cc54d4]
shrd edx, eax, 0xf
movzx ebx, byte [r10 + r11]
mov esi, edx
xor esi, 0x73ef0ca0
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
mov eax, dword [0x140cc54d8]
mov edx, dword [0x140cc54dc]
shrd edx, eax, 0x1a
xor edx, 0x71367c2
imul eax, dword [0x140cc54e0], 0x7c0be98d
add edx, r11d
imul r9d, dword [0x140cc54e4], 0xbebc1166
add r9d, eax
add r9d, 0x914c4c39
mov eax, edx
cmp edx, r9d
jne 0x140251210
mov eax, dword [0x140cc54e8]
mov ecx, dword [0x140cc54ec]
shrd ecx, eax, 0x16
xor ecx, 0x239e3063
mov dword [0x140cc760c], ecx
mov eax, dword [0x140cc54f0]
mov ecx, dword [0x140cc54f4]
shrd ecx, eax, 9
mov eax, ecx
xor eax, 0x4fed1d1d
pop rbx
pop rsi
ret

Function at 0x1402512c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
imul eax, dword [0x140cc54f8], 0xe1f399e6
imul edx, dword [0x140cc54fc], 0x2ee6abeb
add eax, edx
add eax, 0x278e8244
cmp dword [0x140cc7648], eax
je 0x1402513a1
lea r10, [r8 + 0x17]
xor eax, eax
nop word cs:[rax + rax]
movsxd r11, eax
movzx ebx, byte [r10 + r11]
imul eax, dword [0x140cc5500], 0xfb7bdb93
imul edx, dword [0x140cc5504], 0x3c4e19c2
lea esi, [rax + rdx]
add esi, 0xf76916b1
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
imul eax, dword [0x140cc5508], 0xfdbcbb9d
imul edx, dword [0x140cc550c], 0x1081b7cc
add edx, eax
mov eax, r11d
imul r9d, dword [0x140cc5510], 0x8ad7d0c7
add edx, eax
add edx, 0x14a314b5
imul eax, dword [0x140cc5514], 0xbe7db988
add r9d, eax
add r9d, 0x4a7c1de2
mov eax, edx
cmp edx, r9d
jne 0x140251300
mov eax, dword [0x140cc5518]
mov ecx, dword [0x140cc551c]
shrd ecx, eax, 0xd
xor ecx, 0xbbc9d0e0
mov dword [0x140cc7648], ecx
mov eax, dword [0x140cc5520]
mov ecx, dword [0x140cc5524]
shrd ecx, eax, 0x11
mov eax, ecx
xor eax, 0x1ff335a4
pop rbx
pop rsi
ret
Function at 0x1402513c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
imul eax, dword [0x140cc5528], 0x654e164a
imul edx, dword [0x140cc552c], 0xb47a2b6
add eax, edx
add eax, 0x759fd331
cmp dword [0x140cc765c], eax
je 0x14025149c
lea r10, [r8 + 0x18]
xor eax, eax
nop word cs:[rax + rax]
movsxd r11, eax
movzx ebx, byte [r10 + r11]
imul eax, dword [0x140cc5530], 0xd7521d67
imul edx, dword [0x140cc5534], 0xf93804e4
lea esi, [rax + rdx]
add esi, 0xf15200db
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
imul eax, dword [0x140cc5538], 0xb6d11098
imul edx, dword [0x140cc553c], 0x53986589
add edx, eax
mov eax, r11d
add edx, eax
add edx, 0xd8ad27de
mov eax, dword [0x140cc5540]
mov r9d, dword [0x140cc5544]
shrd r9d, eax, 0xf
xor r9d, 0x31051a04
mov eax, edx
cmp edx, r9d
jne 0x140251400
imul eax, dword [0x140cc5548], 0xed4be88a
imul ecx, dword [0x140cc554c], 0x7c551a82
add eax, ecx
add eax, 0xec4635f9
mov dword [0x140cc765c], eax
imul eax, dword [0x140cc5550], 0xebbf995a
imul ecx, dword [0x140cc5554], 0x41383ab9
add eax, ecx
add eax, 0x75eee747
pop rbx
pop rsi
ret

Function at 0x1402514c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
imul eax, dword [0x140cc5558], 0xf7e2005a
imul edx, dword [0x140cc555c], 0xa31de34e
add eax, edx
add eax, 0x73729157
cmp dword [0x140cc7674], eax
je 0x140251595
lea r10, [r8 + 0x1f]
xor eax, eax
nop word cs:[rax + rax]
movsxd r11, eax
movzx ebx, byte [r10 + r11]
imul eax, dword [0x140cc5560], 0x26cedc16
imul edx, dword [0x140cc5564], 0x36780ca9
lea esi, [rax + rdx]
add esi, 0xb49ff0da
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
mov eax, dword [0x140cc5568]
mov edx, dword [0x140cc556c]
shrd edx, eax, 0x1f
xor edx, 0x285e66f2
imul eax, dword [0x140cc5570], 0xc677b8f7
add edx, r11d
imul r9d, dword [0x140cc5574], 0x18d6cfc8
add r9d, eax
add r9d, 0xe5520904
mov eax, edx
cmp edx, r9d
jne 0x140251500
mov eax, dword [0x140cc5578]
mov ecx, dword [0x140cc557c]
shrd ecx, eax, 0x13
xor ecx, 0x428cd11a
mov dword [0x140cc7674], ecx
imul eax, dword [0x140cc5580], 0x3611f560
imul ecx, dword [0x140cc5584], 0xa806ed6d
add eax, ecx
add eax, 0xdcdab317
pop rbx
pop rsi
ret