joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7da520
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7fb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7da6a8
mov rax, qword [0x6d7fb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7da56c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7da5f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7da550
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7da6dd
mov rax, qword [0x6d7fb5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7fb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7da6c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7da5ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7da650
add dword [0x6d7fb5e4], 1
cmp edi, 8
jae 0x6d7da623
test dil, 4
jne 0x6d7da694
test edi, edi
je 0x6d7da618
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7da6af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7da618
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7da63c
jmp 0x6d7da618
add rsi, qword [0x6d7fb5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7da5ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7da618
xor esi, esi
jmp 0x6d7da577
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7da618
mov rax, qword [0x6d7fb5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7dae30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7fb8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7fb8a0]
test rbx, rbx
je 0x6d7dae84
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7dae7b
test rsi, rsi
je 0x6d7dae7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7dae60
lea rcx, [0x6d7fb8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7db0c0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7db0d0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7db0e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7db121
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7db118
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7db123
add rax, 0x28
cmp rax, r9
jne 0x6d7db104
xor eax, eax
ret

Function at 0x6d7db1c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7db22d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db22d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7db22d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7db224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7db22f
add rax, 0x28
cmp rax, r9
jne 0x6d7db210
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7db330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7db350
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db348
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7db3ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7db3a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7db3b4
add rax, 0x28
cmp rax, r9
jne 0x6d7db390
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7db3d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7db43e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db43e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7db43e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7db43e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7db435
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7db445
add rcx, 0x28
cmp rcx, rax
jne 0x6d7db420
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7db458
jmp 0x6d7db43e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7db466
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7db43e
test r9d, r9d
jg 0x6d7db450
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7db7a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x30f9f14b1
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x30f9f14e3
mov eax, 1
jmp 0x30f9f15a2
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rdx, qword [rbp - 0x28]
mov eax, 0x80000000
cmp rdx, rax
jae 0x30f9f1512
mov eax, 1
jmp 0x30f9f15a2
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.30f9f13d0
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x5a]
mov rdx, qword [rbp + 0x62]
mov qword [rbp - 0x56], rax
mov qword [rbp - 0x4e], rdx
lea rax, [rbp - 0x60]
mov rcx, rax
call method.int_safe_print_skc.skCrypter_26___char_57___char_51__char____skc::skCrypter_26___char_57___char_51__char__
mov r8, qword [sym.demon.dll_oSjMKmkhFgmSCZJezqw]
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call r8
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x30f9f159d
mov eax, 1
jmp 0x30f9f15a2
mov eax, 0
add rsp, 0x100
pop rbp
ret
Function at 0x30f9f15ab
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x30f9f1711
jmp 0x30f9f16f0
mov rax, qword [rbp + 0x130]
lea rdx, [rbp - 0x20]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x30f9f16f0
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.30f9f13c4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [sym.demon.dll_XIGjCElSHEHDhJQuJAe]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x30f9f16d4
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x30f9f16d4
mov rdx, qword [sym.demon.dll_QNUwxpvEWgOLZWxeUjd]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x30f9f172b
mov rdx, qword [sym.demon.dll_QNUwxpvEWgOLZWxeUjd]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x30f9f172b
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x30f9f1610
mov rdx, qword [sym.demon.dll_QNUwxpvEWgOLZWxeUjd]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x30fa01f60
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.30fa0c230
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.30fa0c230
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 0x30fa01fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x30faf3104]
mov rbx, rcx
test esi, esi
jle 0x30fa02100
mov rax, qword [0x30faf3108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x30fa0201b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x30fa020a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x30fa02000
mov rcx, rbx
call fcn.30fa02830
mov rdi, rax
test rax, rax
je 0x30fa02122
mov rax, qword [0x30faf3108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.30fa02970
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x30faf3108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x30fa02107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x30fa0209e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x30fa020b0
add dword [0x30faf3104], 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 [0x30faf3108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x30fa0209e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.30fa01f60
nop dword [rax]
xor esi, esi
jmp 0x30fa02028
mov rax, qword [0x30faf3108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.30fa01f60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.30fa01f60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x30fa024a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x30faf3140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x30faf3120]
test rbx, rbx
je 0x30fa024fc
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 0x30fa024f3
test rsi, rsi
je 0x30fa024f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x30fa024d8
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 0x30fa02830
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x30fa028b0
Capabilities:
Parse pe header

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

Function at 0x30fa02970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x30facd4f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x30fa0298f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x30fa02998
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x30fa03630
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x30faf31c0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x30faf31c8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x30fa03680
lea rdx, [0x30fa03540]
mov ecx, eax
mov dword [0x30faf31b8], eax
call fcn.30fa0cbf0
test eax, eax
jne 0x30fa03688
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x30fa03677
call sub.msvcrt.dll_abort
nop
nop
Function at 0x30fa03690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x30facc930]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x30fa036c8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x30fa03730
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x30fa03740
mov esi, dword [0x30faf31b8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x30fa037b0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x30fa037f8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x30fa036b7
mov rcx, rbx
call fcn.30fa03590
mov qword [rsi + r12*8 + 8], rax
jmp 0x30fa036b7
call fcn.30fa03590
mov qword [rbx + 0x10], rax
jmp 0x30fa036b7
mov r10d, dword [rsi]
test r10d, r10d
je 0x30fa0385a
mov r9d, dword [0x30fac3cb0]
test r9d, r9d
je 0x30fa03888
lock add dword [0x30faf31c0], 1
jne 0x30fa038bc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x30fa03867
mov eax, dword [rsi]
test eax, eax
je 0x30fa036d1
lock sub dword [0x30faf31c0], 1
js 0x30fa036d1
mov rcx, qword [0x30faf31c8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x30fa036d1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x30fa038e3
mov qword [rax], rdi
mov ecx, dword [0x30faf31b8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x30fa0370b
call r13
jmp 0x30fa0370b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x30fa038e3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x30fa037d3
call fcn.30fa03630
mov dword [0x30fac3cb0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x30fa0375c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x30fa036d1
mov rax, qword [0x30faf31b0]
lea r12, [rax + 1]
mov qword [0x30faf31b0], r12
mov qword [rbx + 0x10], r12
jmp 0x30fa03777
lock add dword [0x30fac3cb4], 1
je 0x30fa03841
mov r8d, dword [0x30fac3cb0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x30fac3cb0]
test r8d, r8d
jne 0x30fa03850
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x30fa038b0
jmp 0x30fa03850
mov rcx, qword [0x30faf31c8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x30fa0376a
lock sub dword [0x30faf31c0], 1
jmp 0x30fa0376a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x30fa6fe10
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x30fa6fe58
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x30fa6fe2a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x30faaa910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x30fac6be0]
jmp sym.demon.dll___emutls_get_address

Function at 0x30faaa920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x30fac6be0]
jmp sym.demon.dll___emutls_get_address
Function at 0x140095eb0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x20], rcx
lea rax, [0x140073af0]
mov qword [rcx], rax
xor esi, esi
mov dword [rcx + 8], esi
mov word [rcx + 0xc], si
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], 0xf
mov byte [rcx + 0x20], sil
lea rax, [0x140073a48]
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], 0xf
mov byte [rcx + 0x48], sil
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x80], rsi
mov qword [rcx + 0x88], 0xf
mov byte [rcx + 0x70], sil
mov qword [rcx + 0x68], rax
mov byte [rcx + 0x90], sil
mov dword [rcx + 0x94], esi
mov qword [rcx + 0xb0], rsi
mov qword [rcx + 0xb8], rsi
mov qword [rcx + 0xc0], rsi
mov byte [rcx + 0xc8], 1
mov dword [rcx + 0xcc], 1
mov qword [rcx + 0xd0], rsi
mov qword [rcx + 0xd8], rsi
mov qword [rcx + 0xe0], rsi
lea rbp, [0x140073ae0]
mov qword [rcx + 0xa8], rbp
mov qword [rcx + 0xa0], rsi
mov byte [rcx + 0x1e0], sil
xor edx, edx
mov r8d, 0x150
add rcx, 0x1e4
call fcn.140174eb0
mov edx, esi
cmp byte [rdi + 0x1e0], sil
setne dl
lea rcx, [rdi + 0x1e4]
call fcn.140100e80
nop
mov dword [rdi + 0x334], esi
mov qword [rdi + 0x348], rsi
mov qword [rdi + 0x350], rsi
mov qword [rdi + 0x358], rsi
lea rbx, [rdi + 0x360]
mov qword [rsp + 0x28], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea ecx, [rsi + 0x70]
call fcn.1401724f0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rdi + 0x370], rsi
mov qword [rdi + 0x378], rsi
mov qword [rdi + 0x380], rsi
mov qword [rdi + 0x390], rsi
mov qword [rdi + 0x398], rsi
mov qword [rdi + 0x3a0], rsi
mov ecx, dword [0x1401c32c8]
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax + rcx*8]
lea rbx, [0x1401c11c0]
mov eax, dword [rdx + rcx]
cmp dword [0x1401c1338], eax
jg 0x1400960c5
mov qword [rdi + 0x3a8], rbx
mov qword [rdi + 0x3d0], rsi
mov qword [rdi + 0x3d8], rsi
mov qword [rdi + 0x3e0], rsi
mov byte [rdi + 0x3e8], 1
mov dword [rdi + 0x3ec], 1
mov qword [rdi + 0x3f0], rsi
mov qword [rdi + 0x3f8], rsi
mov qword [rdi + 0x400], rsi
mov qword [rdi + 0x3c8], rbp
mov rcx, rdi
call fcn.140099ec0
nop
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1401c1338]
call fcn.140172a00
cmp dword [0x1401c1338], 0xffffffff
jne 0x14009605b
mov rcx, rbx
call fcn.140101930
lea rcx, [0x140190d50]
call fcn.140172850
nop
lea rcx, [0x1401c1338]
call fcn.1401729a0
jmp 0x14009605b
Function at 0x1400aac50
Capabilities:
Identify system language via api

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, dword [0x1401c32c8]
mov ecx, 0x18
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1401c1394], eax
jg 0x1400aae02
cmp byte [0x1401c1390], 0
jne 0x1400aac91
mov al, 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov byte [0x1401c1390], 0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
and eax, 0x3ff
lea rsi, [0x140070000]
mov ecx, eax
bts rcx, 0xb
xor ebx, ebx
nop dword [rax]
cmp rcx, qword [rsi + rbx*8 + 0x40d0]
je 0x1400aad59
cmp rcx, qword [rsi + rbx*8 + 0x40d8]
je 0x1400aad04
cmp rcx, qword [rsi + rbx*8 + 0x40e0]
je 0x1400aacfe
cmp rcx, qword [rsi + rbx*8 + 0x40e8]
je 0x1400aacf8
add rbx, 4
cmp rbx, 0x10
jb 0x1400aacc0
jmp 0x1400aad0d
add rbx, 3
jmp 0x1400aad07
add rbx, 2
jmp 0x1400aad07
inc rbx
cmp rbx, 0x10
jb 0x1400aad59
xor ebx, ebx
nop
cmp rax, qword [rsi + rbx*8 + 0x40d0]
je 0x1400aad59
cmp rax, qword [rsi + rbx*8 + 0x40d8]
je 0x1400aad50
cmp rax, qword [rsi + rbx*8 + 0x40e0]
je 0x1400aad4a
cmp rax, qword [rsi + rbx*8 + 0x40e8]
je 0x1400aad44
add rbx, 4
cmp rbx, 0x10
jb 0x1400aad10
jmp 0x1400aad69
add rbx, 3
jmp 0x1400aad53
add rbx, 2
jmp 0x1400aad53
inc rbx
cmp rbx, 0x10
jae 0x1400aad69
mov rdx, qword [rsi + rbx*8 + 0x145010]
mov rcx, rdi
call fcn.1400aae40
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1400aad8c
cmp rbx, 0x10
jae 0x1400aad8c
mov rdx, qword [rsi + rbx*8 + 0x145010]
mov rcx, rdi
call fcn.1400ab070
mov rax, qword [rdi + 8]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x1400aadf9
mov rdx, qword [0x1401b5010]
mov rcx, rdi
call fcn.1400aae40
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1400aadf9
mov rdx, qword [0x1401b5010]
mov rcx, rdi
call fcn.1400ab070
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1400aadf9
lea rdx, [0x140073888]
mov rcx, rdi
call fcn.1400aae40
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1400aadf9
lea rdx, [0x140073888]
mov rcx, rdi
call fcn.1400ab070
mov rax, qword [rdi + 8]
test rax, rax
setne al
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1401c1394]
call fcn.140172a00
cmp dword [0x1401c1394], 0xffffffff
jne 0x1400aac80
cmp qword [rdi + 8], 0
lea rcx, [0x1401c1394]
sete byte [0x1401c1390]
call fcn.1401729a0
jmp 0x1400aac80