joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d950
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov byte [rcx + 0x80], 0
mov ecx, 0x10
call fcn.140094894
test rax, rax
je 0x14006d97d
mov qword [rax], rbx
lea rcx, [0x14006d900]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14006ba50]
xor edx, edx
xor ecx, ecx
call fcn.1400a4d34
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14006d9e2
cmp dword [rsp + 0x38], 0
je 0x14006d9d7
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400937d4
test eax, eax
jne 0x14006d9d7
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call fcn.140092b60
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.140092b60
int3

Function at 0x14006ecf0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140118458]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14012ad08]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x14006ee28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14006dc30
nop
mov r8, rax
lea rdx, [0x14012aff0]
lea rcx, [rsp + 0x40]
call fcn.14006dae0
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x14012add0]
mov rcx, rax
call fcn.14005eb70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14006edd3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006edce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ee63
call fcn.1400948d0
movdqa xmm0, xmmword [0x1400be960]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14006ee24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ee1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ee5d
call fcn.1400948d0
xor al, al
jmp 0x14006ee3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140094d60
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14009b27c
nop
call fcn.14009b27c
nop
int3
Function at 0x14006ee70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140118458]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14012ad08]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x14006efa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14006dc30
nop
mov r8, rax
lea rdx, [0x14012aff0]
lea rcx, [rsp + 0x40]
call fcn.14006dae0
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x14012add0]
mov rcx, rax
call fcn.14005eb70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14006ef53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ef4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006eff1
call fcn.1400948d0
movdqa xmm0, xmmword [0x1400be960]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14006efa4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ef9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006efeb
call fcn.1400948d0
xor al, al
jmp 0x14006efca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140094d60
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14009b27c
nop
call fcn.14009b27c
nop
int3
Function at 0x140070240
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov ecx, 0x10
call fcn.140094894
test rax, rax
je 0x140070266
mov qword [rax], rbx
lea rcx, [0x1400701e0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14006ba50]
xor edx, edx
xor ecx, ecx
call fcn.1400a4d34
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400702cb
cmp dword [rsp + 0x38], 0
je 0x1400702c0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400937d4
test eax, eax
jne 0x1400702c0
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call fcn.140092b60
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.140092b60
int3
Function at 0x14007f490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x14007f4f4
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x14007f4e8
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14007f4d0
test rdi, rdi
jne 0x14007f522
xor eax, eax
jmp 0x14007f5a7
mov rdx, r8
test rdi, rdi
je 0x14007f4ed
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14007f51c
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x14007f500
jmp 0x14007f4e8
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14007f59f
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14007f58e
cmp dword [rbx + 0x14], ebp
jne 0x14007f58e
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14007f57f
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.140096b20
test eax, eax
je 0x14007f596
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14007f566
test rbx, rbx
je 0x14007f59f
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140081760
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140118458]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x140081854
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x1400817e8
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x1400817c0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140080fd0
mov dword [rsi], eax
test eax, eax
jne 0x140081811
mov rax, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rax + 0x48]
call fcn.14008a540
mov dword [rsi], eax
cmp dword [rsi], r12d
jne 0x14008187c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400814a0
test eax, eax
je 0x140081854
mov ecx, dword [r14]
test eax, ecx
jne 0x140081875
or ecx, eax
xor r8d, r8d
mov dword [r14], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.14008aad0
cmp al, 2
jne 0x140081854
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x1400817a0
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140094d60
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x140081859
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.14008aad0
cmp al, 2
jne 0x1400818f3
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x1400818f3
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x1400818da
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x1400818b0
lea rcx, [rsp + 0x20]
call fcn.1400814a0
cmp eax, 0x10
jne 0x1400818f3
or dword [r14], eax
xor eax, eax
jmp 0x140081859
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x140081859
Function at 0x140095708
Capabilities:
Parse pe header

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

Function at 0x1400a5304
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400a5197
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a5197
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a5197
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a5197
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a5197
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a5197
cmp dword [rcx + 0xf8], 0
je 0x1400a5197
mov ecx, ebx
call fcn.1400a5238
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400a5028
cmp dword [rbp + 0x20], 0
je 0x1400a51e4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a51ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a5130
Function at 0x1400b6080
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b60a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b60a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1009058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010091df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1009089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x100906f
add dl, dl
jne 0x1009096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x10090f6
xor eax, eax
add dl, dl
jne 0x10090a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x10091ad
add dl, dl
jne 0x10090b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10090c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10090d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10090dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x10090ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x100907e
mov eax, 1
add dl, dl
jne 0x1009106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x10090fb
sub eax, ebx
mov ebx, 1
jne 0x100914c
mov ecx, 1
add dl, dl
jne 0x100912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x100913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1009123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x100907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1009168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1009175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x100915d
cmp eax, 0x7d00
jae 0x100919b
cmp eax, 0x500
jb 0x1009196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x100907e
cmp eax, 0x7f
ja 0x100919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x100907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x10091d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x100907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x4015ee
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xa8], 0x101
lea rdx, [rbp + 0xa8]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
setne al
test al, al
je 0x40166d
lea rax, [rbp + 0xae]
mov rcx, rax
call fcn.00446d40
lea rdx, [rbp + 0xae]
lea rax, [rbp - 0x60]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0xd0]
call fcn.0044fe60
lea rax, [rbp + 0xae]
mov rcx, rax
call fcn.00446d70
jmp 0x4016e4
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.00446d40
lea rax, [rbp + 0xaf]
mov r8, rax
lea rdx, [0x0048a003]
mov rcx, qword [rbp + 0xd0]
call fcn.0044fe60
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.00446d70
jmp 0x4016e4
mov rax, qword [rbp + 0xd0]
add rsp, 0x138
pop rbx
pop rbp
ret

Function at 0x4016f5
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.00446d40
lea rdx, [rbp + 0xc3]
lea rax, [rbp + 0xb0]
mov r8, rdx
lea rdx, [0x0048a003]
mov rcx, rax
call fcn.0044fe60
lea rax, [rbp + 0xc3]
mov rcx, rax
call fcn.00446d70
mov dword [rbp + 0xc8], 0
jmp 0x401807
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x40
jle 0x401800
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x59
jg 0x401800
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.0044f040
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movsx eax, al
mov r8d, 0
mov edx, eax
lea rcx, [0x004aa030]
call fcn.00426a80
cmp rax, 0x64
seta al
test al, al
je 0x401800
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 0x401775
lea rax, [rbp + 0xb0]
mov rdx, rax
lea rcx, [0x004aa030]
call fcn.00450480
movzx ebx, byte [rbp + 0xcf]
lea rax, [rbp + 0xb0]
mov rcx, rax
call fcn.004503d0
mov eax, ebx
jmp 0x401883
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x40e6d0
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 [0x004aa064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40e7ea
mov rax, qword [0x004aa068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40e71e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40e7d0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40e702
mov rcx, rbx
call fcn.0040f510
test rax, rax
mov r12, rax
je 0x40e822
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004aa068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040f630
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004aa068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40e805
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40e7c9
sub eax, 0x40
and eax, 0xffffffbf
je 0x40e7c9
mov r9, rbp
add r9, qword [0x004aa068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e7f1
add dword [0x004aa064], 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 0x40e72b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040e660
mov rax, qword [0x004aa068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040e660
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040e660
nop
nop word cs:[rax + rax]

Function at 0x40f420
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 0x40f461
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 0x40f458
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40f463
add rax, 0x28
cmp rax, r9
jne 0x40f444
xor eax, eax
repz ret

Function at 0x40f510
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048ebe0]
cmp word [rbx], 0x5a4d
je 0x40f530
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040f3e0
test eax, eax
je 0x40f524
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040f420
Function at 0x40f780
Capabilities:
Get thread local storage value

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

Function at 0x40ff70
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.0040feb0
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 0x410059
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4100f8
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410094
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410080
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4100f5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040fef0
cmp rax, rbx
mov rsi, rax
je 0x410110
mov rcx, rbx
call fcn.0041a4b8
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.0040fef0
mov rsi, rax
jmp 0x4100cf
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x4100cf
mov rcx, rbx
call r13
jmp 0x4100cf
Function at 0x41b2f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004ab508]
test rbx, rbx
je 0x41b320
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004ab508]
test rax, rax
je 0x41b344
cmp dword [rax], 0xffffffff
je 0x41b365
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041a780]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420620
mov rbx, rax
mov qword [0x004ab508], rax
jmp 0x41b301
lea r8, [0x0041a780]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420620
mov qword [0x004ab508], rax
jmp 0x41b315
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

Function at 0x41b800
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 [0x004ab510]
test rcx, rcx
je 0x41b940
call fcn.0041b770
mov rax, qword [0x004ab508]
test rax, rax
je 0x41b963
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41b843
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041b140
test rax, rax
mov rbx, rax
je 0x41b9ab
cmp qword [0x004ae050], 0
je 0x41b9ab
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 0x41b9b2
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 [0x004ab508]
test rax, rax
je 0x41b987
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41b9b2
mov rax, rbx
jmp 0x41b83a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00420620
mov rcx, rax
mov qword [0x004ab510], rax
jmp 0x41b818
lea r8, [0x0041a780]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420620
mov qword [0x004ab508], rax
jmp 0x41b82d
lea r8, [0x0041a780]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420620
mov qword [0x004ab508], rax
jmp 0x41b928
xor eax, eax
jmp 0x41b83a
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.00420620