joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c7f8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c84b
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c844
sub edx, 2
je 0x14000c83b
sub edx, 1
je 0x14000c832
cmp edx, 1
je 0x14000c829
lea rdx, [0x1400f9fae]
jmp 0x14000c84b
lea rdx, str.step_out
jmp 0x14000c84b
lea rdx, str.step_over
jmp 0x14000c84b
lea rdx, str.step_into
jmp 0x14000c84b
lea rdx, [0x1400fbee4]
mov rcx, qword [rcx + 0x98]
lea rax, [0x1400f9fae]
test rcx, rcx
je 0x14000c866
cmp qword [rcx], 0
cmovne rax, qword [rcx]
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
lea rdx, str._response_command__s__status__s__reason__s__transaction_id__e___
call 0x14000d2a4
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c894

Function at 0x14000c894
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, 0xa
add rcx, 0x26
call fcn.1400c3fb4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400ba7b8
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400fccb0]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e6c4
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
xor r9d, r9d
add r8, rbx
lea rax, [rsp + 0x20]
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c945
mov r8d, 1
lea rdx, [0x1400f9b70]
lea rcx, [rdi + 0x60]
call 0x14000d22c
test eax, eax
jne 0x14000c945
mov r8d, dword [rdi + 0x70]
xor r9d, r9d
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c945
and qword [rdi + 0x70], 0
and dword [rdi + 0x78], 0
xor eax, eax
jmp 0x14000c951
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000ce8c
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000e47c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e4df
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e512
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e4d4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e4c7
call fcn.1400beb90
mov edx, 0x28
mov rcx, rdi
call fcn.1400b836c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e512
xor edx, edx
mov rcx, rbx
call fcn.14000e8d8
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e71c
mov rax, qword [rbx + 8]
mov r8d, edi
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140045cc0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x2e8], 0
mov rbx, rcx
je 0x140045e67
mov r8, qword [0x14011c188]
movzx ecx, byte [0x140122d9d]
test dl, dl
jne 0x140045d0e
cmp byte [rbx + 0x810], dl
jne 0x140045e67
movzx eax, byte [0x140125e49]
cmp byte [r8 + 0x7c], al
jne 0x140045d0e
cmp cl, byte [0x140125e48]
je 0x140045e67
movzx edx, byte [r8 + 0x7c]
mov qword [rsp + 0x48], rdi
test dl, dl
je 0x140045d2d
xor edi, edi
test cl, cl
setne dil
add rdi, 0xcf
jmp 0x140045d3c
test cl, cl
mov edi, 0x9f
mov eax, 0xce
cmovne edi, eax
mov rax, qword [rbx + 0x800]
test rax, rax
je 0x140045d61
cmp byte [rbx + 0x810], 0
jne 0x140045e14
test dl, dl
jne 0x140045d61
test cl, cl
je 0x140045e14
mov eax, dword [0x140126048]
mov qword [rsp + 0x40], rsi
mov qword [rbx + 0x300], 0
test al, 1
jne 0x140045da8
or eax, 1
lea rcx, str.user32.dll
mov dword [0x140126048], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetDpiForWindow
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140126050], rax
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp qword [0x140126050], 0
mov esi, eax
je 0x140045dea
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [0x140126050]
mov r8d, dword [0x14012458c]
mov ecx, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov rcx, qword [0x140122b10]
mov r9d, esi
mov dword [rsp + 0x28], 0x8000
mov r8d, 1
mov rdx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_LoadImageW]
mov rsi, qword [rsp + 0x40]
lea rdx, [rbx + 0x2e0]
mov qword [rbx + 0x300], rax
mov ecx, 1
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140045e49
lea rdx, [rbx + 0x2e0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x140045e67
mov rax, qword [0x14011c188]
movzx ecx, byte [rax + 0x7c]
movzx eax, byte [0x140122d9d]
mov byte [0x140125e48], al
mov byte [0x140125e49], cl
add rsp, 0x30
pop rbx
ret
Function at 0x1400628a0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400628d8
cmp word [rcx + 2], 0x3a
jne 0x1400628d8
cmp word [rcx + 4], 0
jne 0x1400628d8
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400628f0
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140124d3c], 0
je 0x140062901
mov rcx, rbx
call fcn.140062910
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140062910
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d8050
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006293d
lea rbx, [rsp + 0x20]
jmp 0x140062942
test rbx, rbx
je 0x140062951
mov rdx, rbx
lea rcx, [0x14011eaf8]
call fcn.14005f930
add rsp, 0x10020
pop rbx
ret

Function at 0x140062960
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400d8050
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140062993
lea rcx, [rsp + 0x20]
call fcn.1400ca890
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret

Function at 0x1400712e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x14011eac0]
mov r8, rdx
cmp eax, 3
je 0x14007132b
add eax, 0xfffffffc
cmp eax, 1
ja 0x14007133c
mov rcx, qword [0x14011ea48]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x14011ea40]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x14011eacc]
jge 0x14007133c
cmp qword [0x14011ea68], r8
je 0x14007133c
mov rdx, r8
jmp fcn.140008980
ret
Function at 0x14009ce50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
mov r15d, ebx
test rcx, rcx
je 0x14009ce8e
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14009ce95
mov rdi, qword [0x140122b10]
test rdi, rdi
je 0x14009d05d
mov qword [rsp + 0x80], rbp
lea rbp, [0x1401250c4]
test r14d, r14d
jns 0x14009cebe
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14009cef6
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14009ce30]
mov dword [rsp + 0x40], eax
mov edx, 0xe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14009d028
mov r8d, 0xe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14009d028
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009d028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009d028
cmp r12d, 0xffffffff
cmovne esi, r12d
test esi, esi
jne 0x14009cf58
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
cmp bx, ax
jae 0x14009d028
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop word [rax + rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14009cf98
cmp r9d, esi
setl cl
jmp 0x14009cf9d
cmp eax, esi
setge cl
test ecx, ecx
je 0x14009cfa7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14009cf80
test r11, r11
je 0x14009d028
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14009d028
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009d028
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009d028
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r15, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14009d04a
test r15, r15
je 0x14009d04a
mov qword [rcx], rdi
mov rax, r15
jmp 0x14009d07e
test r13, r13
je 0x14009d058
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
jne 0x14009d045
test r14d, r14d
jle 0x14009d068
lea ebx, [r14 - 1]
jmp 0x14009d070
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00493080]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00493090]
mov dword [rax], 1
mov rax, qword [0x004930a0]
mov dword [rax], 1
mov rax, qword [0x00493070]
mov dword [rax], 1
mov rax, qword [0x00492ef0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00493060]
mov dword [0x004ae008], 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 [0x00492fa0]
mov qword [rdx], rax
mov rdx, qword [0x00492f90]
mov qword [rdx], rax
mov rax, qword [0x00493020]
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 [0x004925e0]
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 0x410dc0
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 [0x004ae124]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x410eda
mov rax, qword [0x004ae128]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x410e0e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x410ec0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x410df2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x410f12
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004ae128]
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 [0x004ae128]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410ef5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x410eb9
sub eax, 0x40
and eax, 0xffffffbf
je 0x410eb9
mov r9, rbp
add r9, qword [0x004ae128]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410ee1
add dword [0x004ae124], 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 0x410e1b
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 [0x004ae128]
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 0x411af0
Capabilities:
Parse pe header

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

Function at 0x411b10
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 0x411b51
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 0x411b48
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x411b53
add rax, 0x28
cmp rax, r9
jne 0x411b34
xor eax, eax
repz ret

Function at 0x411c00
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00492ef0]
cmp word [rbx], 0x5a4d
je 0x411c20
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 0x411c14
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x411e70
Capabilities:
Get thread local storage value

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

Function at 0x412660
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.004125a0
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 0x412749
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4127e8
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x412784
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x412770
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4127e5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x412800
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 0x4127bf
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x4127bf
mov rcx, rbx
call r13
jmp 0x4127bf
Function at 0x418c00
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 0x418c93
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x418cc2
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 0x418ce0
cmp word [rcx + rax], 0
jne 0x418d20
cmp word [rdx + rax], 0
jne 0x418d20
add rax, 2
cmp rax, 0xe
jne 0x418c69
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 0x418d35
cmp rcx, r8
jne 0x418c9a
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
jne 0x418c2e
lea r8, [rdx + 0xa]
mov rcx, rdx
add rcx, 2
cmp word [rcx - 2], 0
jne 0x418d35
cmp rcx, r8
jne 0x418cc9
jmp 0x418c2e
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 0x418d42
cmp rcx, 0xe
jne 0x418cf3
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 0x418c8b

Function at 0x41da10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004af5c8]
test rbx, rbx
je 0x41da40
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004af5c8]
test rax, rax
je 0x41da64
cmp dword [rax], 0xffffffff
je 0x41da85
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 [0x004af5c8], rax
jmp 0x41da21
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 [0x004af5c8], rax
jmp 0x41da35
call sym.abort
nop
nop dword [rax + rax]
Function at 0x41df20
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 [0x004af5d0]
test rcx, rcx
je 0x41e060
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x004af5c8]
test rax, rax
je 0x41e083
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41df63
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41e0cb
cmp qword [sym.__dyn_tls_pthread], 0
je 0x41e0cb
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 0x41e0d2
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 [0x004af5c8]
test rax, rax
je 0x41e0a7
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41e0d2
mov rax, rbx
jmp 0x41df5a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x004af5d0], rax
jmp 0x41df38
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 [0x004af5c8], rax
jmp 0x41df4d
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 [0x004af5c8], rax
jmp 0x41e048
xor eax, eax
jmp 0x41df5a
call sym.abort
nop
nop dword [rax + rax]

Function at 0x41e0e0
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 0x41e100
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 0x41e120
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 0x41e140
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 0x41e160
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 0x41e180
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 0x41e1a0
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 0x41e1c0
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 0x41e1e0
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 0x41e200
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 0x41e220
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 0x41e240
Capabilities:
Check mutex on windows

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

Function at 0x41e260
Capabilities:
Check mutex on windows

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

Function at 0x41e280
Capabilities:
Check mutex on windows

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

Function at 0x41e2a0
Capabilities:
Check mutex on windows

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