joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f394
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x18], rdx
mov rbx, rdx
mov rcx, qword [rcx]
add rcx, 0x18
call fcn.140010af0
lea rcx, [rax + 8]
call fcn.140010af0
test rax, rax
je 0x14000f3dd
mov rdx, rax
mov rcx, rbx
call fcn.14000f214
jmp 0x14000f444
mov cl, 0x4d
mov dword [rbp - 0x18], 0x7272724d
mov dword [rbp - 0x14], 0x2c212e12
xor eax, eax
mov dword [rbp - 0x10], 0x2c233e3e
mov word [rbp - 0xc], 0x2820
mov byte [rbp - 0xa], 0
xor byte [rbp + rax - 0x17], cl
inc rax
cmp rax, 0xd
jae 0x14000f412
mov cl, byte [rbp - 0x18]
jmp 0x14000f400
xorps xmm0, xmm0
mov byte [rbp - 0xa], 0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
lea rax, [rbp - 0x17]
and qword [rbx + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000f42e
lea rdx, [rbp - 0x17]
mov rcx, rbx
call fcn.140004a9c
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006aff0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret

Function at 0x140010c78
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.14006b010
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140011754]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140010cd2
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14002d7b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], r9
mov r15, r8
mov r13, rdx
mov r14, rcx
xor esi, esi
mov dword [rbp - 0x51], esi
mov qword [rbp - 0x41], rdx
mov rbx, rdx
lea rax, [r8 - 1]
mov qword [rbp - 0x51], rax
mov r12, rax
sar r12, 1
cmp rdx, r12
jge 0x14002d87d
lea rdi, [rbx + rbx]
lea rbx, [rdi + 2]
shl rbx, 5
add rbx, r14
lea rdx, [rbx - 0x20]
lea rcx, [rbp - 0x19]
call fcn.140003a6c
or esi, 1
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140003a6c
or esi, 2
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
call fcn.14002c954
movzx ebx, al
lea rcx, [rbp - 0x39]
call fcn.140003a08
nop
lea rcx, [rbp - 0x19]
call fcn.140003a08
xor rbx, 1
inc rbx
add rbx, rdi
mov rdx, rbx
shl rdx, 5
add rdx, r14
shl r13, 5
lea rcx, [r14 + r13]
call fcn.14000afd4
mov r13, rbx
cmp rbx, r12
jl 0x14002d803
mov rdi, rbx
cmp rbx, r12
jne 0x14002d8a7
test r15b, 1
jne 0x14002d8a7
shl r15, 5
lea rdx, [r14 - 0x20]
add rdx, r15
shl rbx, 5
lea rcx, [r14 + rbx]
call fcn.14000afd4
mov rdi, qword [rbp - 0x51]
lea rbx, [rdi - 1]
mov r12, qword [rbp - 0x49]
mov r13, qword [rbp - 0x41]
sar rbx, 1
cmp r13, rdi
jge 0x14002d902
mov rdx, r12
lea rcx, [rbp - 0x39]
call fcn.140003a6c
or esi, 0x10
or esi, 4
mov dword [rbp - 0x51], esi
mov rdx, rbx
shl rdx, 5
add rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140003a6c
or esi, 0x20
or esi, 8
mov dword [rbp - 0x51], esi
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.14002c954
test al, al
je 0x14002d902
mov r15b, 1
jmp 0x14002d905
xor r15b, r15b
test sil, 8
je 0x14002d918
and esi, 0xfffffff7
lea rcx, [rbp - 0x19]
call fcn.140003a08
nop
test sil, 4
je 0x14002d92a
and esi, 0xfffffffb
lea rcx, [rbp - 0x39]
call fcn.140003a08
shl rdi, 5
lea rcx, [rdi + r14]
test r15b, r15b
je 0x14002d951
mov rdx, rbx
shl rdx, 5
add rdx, r14
call fcn.14000afd4
mov rdi, rbx
dec rbx
jmp 0x14002d8b3
mov rdx, r12
call fcn.14000afd4
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14006aff0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14002f67c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14002f6d6
mov r11b, 0x23
lea rbx, [0x1400735a0]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x14002f6c0
cmp rdx, 2
jb 0x14002f6c0
cmp byte [r10], r11b
jne 0x14002f6c0
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x14002f69e
jmp 0x14002f717
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14002f717
mov r11b, 0x23
lea rbx, [0x1400735a0]
cmp dl, r11b
jne 0x14002f6fb
cmp byte [r10], r11b
jne 0x14002f6fb
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x14002f6e9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x14002f854
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14002f875
and qword [r8], 0
lea rdx, [0x140080648]
call fcn.14002f728
mov rbx, rax
test rax, rax
je 0x14002f938
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14002f92f
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002f92f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14002f92f
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002f92f
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x14002f92f
mov rcx, rdi
call fcn.14003297c
mov rdi, rax
test rax, rax
je 0x14002f92f
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x14002f91c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.1400329c4
jmp 0x14002f938
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14002f92a
mov qword [r14], rsi
mov rax, rdi
jmp 0x14002f93a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140032114
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
mov r11d, 4
mov rax, qword [rcx + 0x108]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1400735a0]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x140032143
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x4054], ebx
jne 0x14003217d
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.140043a94
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140032188
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x120]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x124]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0x108]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0x100]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x1400735a0]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x1400321f6
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1400427d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5f90], 0
lea rdi, [rcx + 0x5f98]
mov rbx, rcx
mov rsi, r8
mov rcx, rdi
mov rbp, rdx
je 0x14004284d
xor edx, edx
call fcn.140044738
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.1400301e8
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x5f90]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x14008e56c]
movsxd r8, eax
mov rax, qword [rbx + 0x5fa0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140042852
call fcn.1400301e8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140042e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14008e580]
mov rbx, rcx
and dword [rax + 0x5eec], 0
test rcx, rcx
je 0x140042ee9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140042ef4
lea rdx, [0x140080650]
mov rcx, rbx
mov rdi, rax
call fcn.14002f728
mov rbx, rax
test rax, rax
je 0x140042ee9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140052d00
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x14008e580]
test rax, rax
je 0x140052d1b
mov rbx, qword [rax + 0x90]
jmp 0x140052d1d
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140052d48
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006bd28
Capabilities:
Parse pe header

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

Function at 0x14006bf60
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 0x14006bf9a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006bf9f
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 0x14006bfe8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140071c70]
cmp byte [rcx + rax], 0
je 0x14006bfe8
dec r8
sub rdx, 1
jne 0x14006bfce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006c7ac
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.14006c078
mov ebx, eax
test eax, eax
jne 0x14006c7dc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14006c83f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006c836
test al, 0x10
je 0x14006c836
bt eax, 0xa
jae 0x14006c82f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14006c850
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14006c82b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14006c82b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14006c836
and dword [rsp + 0x3c], 0
jmp 0x14006c83b
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 0x140001b00
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140004440]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.user32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.ntdll.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rbx, rbx
je 0x140001c03
test rdi, rdi
je 0x140001c03
test rax, rax
je 0x140001c03
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetWindowCompositionAttribute
mov rcx, rdi
mov qword [rsi + 0x1d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x93
mov rcx, rbx
mov qword [rsi + 0x1d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xa3
mov rcx, rbx
mov qword [rsi + 0x1a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xa4
mov rcx, rbx
mov qword [rsi + 0x1b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xa3
mov rcx, rbx
mov qword [rsi + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xa4
mov rcx, rbx
mov qword [rsi + 0x1c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x1c8], rax
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180014f10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x180014f1d
mov rax, rdx
ret
Function at 0x1800215f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18002161f
and qword [r8], 0
call fcn.180021704
mov rbx, rax
test rax, rax
je 0x1800216e7
mov rcx, rax
call fcn.180021580
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800216de
mov rax, qword [0x18014e068]
test rax, rax
je 0x180021657
inc dword [rax + 0xec]
mov rdx, qword [0x18014e078]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1800216de
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x1800216b6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18014e068]
test rax, rax
je 0x1800216a4
dec dword [rax + 0xec]
mov rdx, qword [0x18014e078]
mov rcx, rsi
call qword [0x18014c008]
jmp 0x1800216e7
test ebp, ebp
jle 0x1800216c8
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800216d9
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800216e9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180021a5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x180021a8a
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800c1400]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x180021a67
not r8d
mov eax, r8d
ret

Function at 0x180021a94
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180021aee
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1800c1400]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x180021ad8
cmp rdx, 2
jb 0x180021ad8
cmp byte [r10], r11b
jne 0x180021ad8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x180021ab6
jmp 0x180021b2f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180021b2f
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1800c1400]
cmp dl, r11b
jne 0x180021b13
cmp byte [r10], r11b
jne 0x180021b13
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x180021b01
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180023b08
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180023ba1
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x180023b59
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800304b4
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18002fbb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x18014e070]
movsxd r8, eax
mov rax, qword [rdi + 0x5cb0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180023ba9
mov rcx, rbx
call fcn.18002fbb0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18002af68
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x18014e068]
mov rbx, rcx
and dword [rax + 0x5bfc], 0
test rcx, rcx
je 0x18002afd1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18002afdc
lea rdx, [0x1800c2b1c]
mov rcx, rbx
mov rdi, rax
call fcn.180021704
mov rbx, rax
test rax, rax
je 0x18002afd1
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18005ab14
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x18014d880]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18014ffb0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18005ab59
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005ab8f
mov eax, 0xa
jmp 0x18005ac1e
test esi, esi
je 0x18005abb1
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005abd2
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005abd2
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005abcc
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005abd2
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800bc8c0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18005ac80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18014d880]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18005ae1c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18005adbe
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x18005ad7a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18005ad7a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18005ad7a
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18005ad3c
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18014e4b0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18005ada2
jmp 0x18005ad6d
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x18005ad6d
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x18014e4b0]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005ada2
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18005acea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18005adbe
mov esi, ebx
cmp qword [rdi], rbx
je 0x18005adbe
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18014e4b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18005ae1c
cmp qword [rdi], rbx
je 0x18005ae21
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18005ae21
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18005ae13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.18005b060
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x18005add7
jmp 0x18005ae21
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800bc8c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005b1fc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18005b260
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18005b24e
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005b247
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005b21b
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18014e4b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18005b5d4
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18005b5eb
cmp r8b, 0x90
je 0x18005b5eb
cmp r8b, 0xcc
jne 0x18005b60d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18005b609
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18005b60d
add edx, r10d
cmp edx, r9d
jb 0x18005b5f9
mov eax, r10d
ret
xor eax, eax
ret