joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0048fd40]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0048fd50]
mov dword [rax], 1
mov rax, qword [0x0048fd60]
mov dword [rax], 1
mov rax, qword [0x0048fd30]
mov dword [rax], 1
mov rax, qword [0x0048fbb0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0048fd20]
mov dword [0x004ab008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x0048fc60]
mov qword [rdx], rax
mov rdx, qword [0x0048fc50]
mov qword [rdx], rax
mov rax, qword [0x0048fce0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0048f2a0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x402cd8
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x330], rcx
mov eax, 0x130
mov dword [rbp - 0x60], eax
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x318], rax
cmp qword [rbp + 0x318], 0xffffffffffffffff
jne 0x402d21
mov eax, 0
jmp 0x402e38
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x318]
mov rcx, rax
call sym.Process32First
mov dword [rbp + 0x314], eax
jmp 0x402e2b
mov rcx, qword [rbp + 0x330]
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, 0x2c
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x330]
mov rax, qword [sym.imp.msvcrt.dll__strnicmp]
call rax
test eax, eax
sete al
test al, al
je 0x402e12
mov eax, dword [rbp - 0x58]
mov edx, eax
mov ecx, 8
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x318], rax
cmp qword [rbp + 0x318], 0xffffffffffffffff
jne 0x402da3
mov eax, 0
jmp 0x402e38
mov eax, 0x238
mov dword [rbp + 0xd0], eax
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0x318]
mov rcx, rax
call sym.Module32First
test eax, eax
sete al
test al, al
je 0x402dd4
mov eax, 0
jmp 0x402e38
lea rax, [rbp + 0xd0]
add rax, 0x130
mov rdx, rax
lea rcx, [0x004e5a78]
call fcn.00451d80
lea rdx, [0x004e5a78]
mov rcx, qword [0x0048f790]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::basic_string_char__std::char_traits_char___std::allocator_char____const
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x318]
mov rcx, rax
call sym.Process32Next
mov dword [rbp + 0x314], eax
cmp dword [rbp + 0x314], 0
jne 0x402d3f
add rsp, 0x3a0
pop rbp
ret
Function at 0x402e41
Capabilities:
Enumerate processes
Enumerate threads
Suspend thread

Disassembly:
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0xffffffffffffffff
jne 0x402e83
mov eax, 0
jmp 0x403002
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x26
mov rdi, rdx
rep stosq qword [rdi], rax
mov eax, 0x130
mov dword [rbp - 0x60], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32First
mov dword [rbp + 0x10c], eax
jmp 0x402ff5
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x130]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x402fdc
mov eax, dword [rbp - 0x58]
mov edx, eax
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x402f06
mov eax, 0
jmp 0x403002
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xe8], 0
mov eax, 0x1c
mov dword [rbp + 0xd0], eax
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.Thread32First
mov dword [rbp + 0x108], eax
jmp 0x402fcc
mov edx, dword [rbp + 0xdc]
mov eax, dword [rbp - 0x58]
cmp edx, eax
jne 0x402fb0
mov eax, dword [rbp + 0xd8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f03ff
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.Thread32Next
mov dword [rbp + 0x108], eax
cmp dword [rbp + 0x108], 0
jne 0x402f5a
mov eax, 1
jmp 0x403002
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32Next
mov dword [rbp + 0x10c], eax
cmp dword [rbp + 0x10c], 0
jne 0x402ebd
add rsp, 0x198
pop rdi
pop rbp
ret
Function at 0x40300c
Capabilities:
Enumerate processes
Enumerate threads
Resume thread

Disassembly:
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0xffffffffffffffff
jne 0x40304e
mov eax, 0
jmp 0x4031e0
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x26
mov rdi, rdx
rep stosq qword [rdi], rax
mov eax, 0x130
mov dword [rbp - 0x60], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32First
mov dword [rbp + 0x10c], eax
jmp 0x4031d3
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x130]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x4031ba
mov eax, dword [rbp - 0x58]
mov edx, eax
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x4030d1
mov eax, 0
jmp 0x4031e0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xe8], 0
mov eax, 0x1c
mov dword [rbp + 0xd0], eax
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.Thread32First
mov dword [rbp + 0x108], eax
jmp 0x403197
mov edx, dword [rbp + 0xdc]
mov eax, dword [rbp - 0x58]
cmp edx, eax
jne 0x40317b
mov eax, dword [rbp + 0xd8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f03ff
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.Thread32Next
mov dword [rbp + 0x108], eax
cmp dword [rbp + 0x108], 0
jne 0x403125
mov rax, qword [rbp + 0xf8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x4031e0
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.Process32Next
mov dword [rbp + 0x10c], eax
cmp dword [rbp + 0x10c], 0
jne 0x403088
add rsp, 0x198
pop rdi
pop rbp
ret

Function at 0x4031ea
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov eax, 0x130
mov dword [rbp - 0x60], eax
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x40322c
mov eax, 0
jmp 0x4032b1
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
mov dword [rbp + 0xdc], eax
mov dword [0x004e5a6c], 1
jmp 0x4032a3
mov eax, dword [0x004e5a6c]
cdqe
lea rdx, [rax*8]
lea rax, [0x004ab040]
add rax, rdx
lea rdx, [rbp - 0x60]
add rdx, 0x2c
mov rcx, rax
call fcn.00451d80
mov eax, dword [0x004e5a6c]
add eax, 1
mov dword [0x004e5a6c], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
mov dword [rbp + 0xdc], eax
cmp dword [rbp + 0xdc], 0
jne 0x403251
mov eax, 1
add rsp, 0x160
pop rbp
ret
Function at 0x4032ba
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov eax, 0x130
mov dword [rbp - 0x60], eax
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x4032fc
mov eax, 0
jmp 0x403381
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
mov dword [rbp + 0xdc], eax
mov dword [0x004e5a68], 1
jmp 0x403373
mov eax, dword [0x004e5a68]
cdqe
lea rdx, [rax*8]
lea rax, [0x004be900]
add rax, rdx
lea rdx, [rbp - 0x60]
add rdx, 0x2c
mov rcx, rax
call fcn.00451d80
mov eax, dword [0x004e5a68]
add eax, 1
mov dword [0x004e5a68], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
mov dword [rbp + 0xdc], eax
cmp dword [rbp + 0xdc], 0
jne 0x403321
mov eax, 1
add rsp, 0x160
pop rbp
ret

Function at 0x4034e8
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 8]
mov r8, rax
mov edx, 0x28
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
sete al
test al, al
je 0x403524
mov eax, 0
jmp 0x4035e4
lea rax, [rbp - 0x10]
mov r8, rax
lea rdx, [0x0048b090]
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
sete al
test al, al
je 0x403563
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x4035e4
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], 2
mov ecx, 0x10
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ecx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
test eax, eax
sete al
test al, al
je 0x4035cf
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x4035e4
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x410520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0050ada4]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x41063a
mov rax, qword [0x0050ada8]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x41056e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x410620
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x410552
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x410672
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0050ada8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0050ada8]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410655
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x410619
sub eax, 0x40
and eax, 0xffffffbf
je 0x410619
mov r9, rbp
add r9, qword [0x0050ada8]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410641
add dword [0x0050ada4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x41057b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0050ada8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x411250
Capabilities:
Parse pe header

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

Function at 0x411270
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 0x4112b1
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 0x4112a8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4112b3
add rax, 0x28
cmp rax, r9
jne 0x411294
xor eax, eax
repz ret

Function at 0x411360
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048fbb0]
cmp word [rbx], 0x5a4d
je 0x411380
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x411374
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4115d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0050b700]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0050b6e0]
test rbx, rbx
je 0x411624
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 0x41161b
test rsi, rsi
je 0x41161b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411600
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0050b700]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x411dc0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00411d00
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x411ea9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x411f48
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x411ee4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x411ed0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x411f45
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x411f60
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
mov rsi, rax
jmp 0x411f1f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x411f1f
mov rcx, rbx
call r13
jmp 0x411f1f
Function at 0x418360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rcx
movzx ecx, word [rcx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x4183f3
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x418422
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x40]
mov rcx, rax
mov rbx, rdx
mov rdx, rsi
call dbg.__emovi
mov rdx, rdi
mov rcx, rbx
call dbg.__emovi
movzx r8d, word [rsp + 0x20]
xor eax, eax
lea rcx, [rsi + 2]
cmp r8w, word [rsp + 0x40]
lea rdx, [rdi + 2]
je 0x418440
cmp word [rcx + rax], 0
jne 0x418480
cmp word [rdx + rax], 0
jne 0x418480
add rax, 2
cmp rax, 0xe
jne 0x4183c9
xor al, al
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, [rax + 0xa]
mov rcx, rax
add rcx, 2
cmp word [rcx - 2], 0
jne 0x418495
cmp rcx, r8
jne 0x4183fa
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
jne 0x41838e
lea r8, [rdx + 0xa]
mov rcx, rdx
add rcx, 2
cmp word [rcx - 2], 0
jne 0x418495
cmp rcx, r8
jne 0x418429
jmp 0x41838e
cmp r8w, 1
sbb eax, eax
xor ecx, ecx
add rsi, 2
and eax, 2
sub eax, 1
movzx edx, word [rsi + rcx]
add rcx, 2
movzx r8d, word [rdi + rcx]
cmp dx, r8w
jne 0x4184a2
cmp rcx, 0xe
jne 0x418453
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, 1
sbb eax, eax
and eax, 2
sub eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, dx
setae dl
movzx edx, dl
mov ecx, edx
neg ecx
xor eax, ecx
add eax, edx
jmp 0x4183eb

Function at 0x41d150
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x0050c248]
test rbx, rbx
je 0x41d180
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x0050c248]
test rax, rax
je 0x41d1a4
cmp dword [rax], 0xffffffff
je 0x41d1c5
add rsp, 0x20
pop rbx
ret
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rbx, rax
mov qword [0x0050c248], rax
jmp 0x41d161
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x0050c248], rax
jmp 0x41d175
call sym.abort
nop
nop dword [rax + rax]
Function at 0x41d660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x0050c250]
test rcx, rcx
je 0x41d7a0
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x0050c248]
test rax, rax
je 0x41d7c3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41d6a3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41d80b
cmp qword [sym.__dyn_tls_pthread], 0
je 0x41d80b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41d812
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x0050c248]
test rax, rax
je 0x41d7e7
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41d812
mov rax, rbx
jmp 0x41d69a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x0050c250], rax
jmp 0x41d678
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x0050c248], rax
jmp 0x41d68d
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x0050c248], rax
jmp 0x41d788
xor eax, eax
jmp 0x41d69a
call sym.abort
nop
nop dword [rax + rax]

Function at 0x41d820
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d840
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41d860
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_concur_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41d880
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41d8a0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab
Function at 0x41d8c0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init__pthread_key_lock_shmem]
lea rcx, str._pthread_key_lock_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d8e0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_max_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41d900
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_sch_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41d920
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.pthr_root_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d940
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.pthr_last_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d960
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rcx, str.mtx_pthr_locked_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d980
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idList_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d9a0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListCnt_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d9c0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListMax_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41d9e0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListNextId_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab