joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004588c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r10, qword [0x14009d080]
xor ebx, ebx
mov bpl, r9b
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
test r10, r10
jne 0x14004592a
cmp byte [0x14009d078], bl
jne 0x14004592a
lea rcx, str.Crypt32.dll
call fcn.140048bbc
mov qword [0x14009d070], rax
test rax, rax
je 0x140045913
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009d070]
lea rdx, str.CryptUnprotectMemory
mov qword [0x14009d080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009d088], rax
jmp 0x14004591a
mov rax, qword [0x14009d088]
mov r10, qword [0x14009d080]
mov byte [0x14009d078], 1
jmp 0x140045931
mov rax, qword [0x14009d088]
mov rcx, rsi
mov r8d, ebx
and rcx, 0xfffffffffffffff0
test bpl, bpl
setne r8b
test r14b, r14b
je 0x140045985
test r10, r10
je 0x14004599e
mov edx, ecx
mov rcx, rdi
call r10
test eax, eax
jne 0x1400459b9
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140097a10]
mov rcx, rbx
call fcn.14001c41c
mov rcx, rbx
call fcn.14001c72c
mov edx, 2
mov rcx, rbx
call fcn.14001c3f0
jmp 0x1400459b9
test rax, rax
je 0x14004599e
mov edx, ecx
mov rcx, rdi
call rax
test eax, eax
jne 0x1400459b9
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14004595f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rsi, rsi
je 0x1400459b9
add al, 0x4b
lea ecx, [rbx + rax]
xor byte [rbx + rdi], cl
inc rbx
cmp rbx, rsi
jb 0x1400459ab
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400470e0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x140047172
jbe 0x140047145
lea edx, [rbp + 8]
cmp edi, edx
jae 0x140047143
sub edx, edi
mov eax, edi
add rcx, 0x20
mov r8d, edx
xor edx, edx
add rcx, rax
call fcn.140059eb0
xor edi, edi
test edi, edi
jne 0x14004715d
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140045ef8
mov eax, edi
lea rcx, [rbx + 0x20]
sub ebp, edi
add rcx, rax
mov r8d, ebp
xor edx, edx
call fcn.140059eb0
mov rax, r14
lea r8, [rbx + 0x20]
shr rax, 0x20
lea rdx, [rsp + 0x20]
bswap eax
bswap r14d
mov r9b, 1
mov dword [rbx + 0x58], eax
mov rcx, rbx
mov dword [rbx + 0x5c], r14d
call fcn.140045ef8
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rdx + rsi]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x1400471a4
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140057de0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400471fc
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret
Function at 0x1400473f0
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x20]
mov esi, 0x38
mov rbp, qword [rcx + 0x20]
and ebx, 0x3f
shl rbp, 3
mov r14, rdx
mov rdi, rcx
mov byte [rbx + rcx + 0x28], 0x80
inc ebx
cmp ebx, esi
je 0x14004746e
jbe 0x14004744d
lea edx, [rsi + 8]
cmp ebx, edx
jae 0x14004744b
sub edx, ebx
mov eax, ebx
add rcx, 0x28
mov r8d, edx
xor edx, edx
add rcx, rax
call fcn.140059eb0
xor ebx, ebx
test ebx, ebx
jne 0x140047459
mov rcx, rdi
call fcn.1400475f4
mov eax, ebx
lea rcx, [rdi + 0x28]
sub esi, ebx
add rcx, rax
mov r8d, esi
xor edx, edx
call fcn.140059eb0
mov rax, rbp
mov rcx, rdi
shr rax, 0x20
bswap eax
bswap ebp
mov dword [rdi + 0x60], eax
mov dword [rdi + 0x64], ebp
call fcn.1400475f4
mov eax, dword [rdi]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
bswap eax
mov dword [r14], eax
mov eax, dword [rdi + 4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rdi + 8]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rdi + 0xc]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rdi + 0x10]
bswap eax
mov dword [r14 + 0x10], eax
mov eax, dword [rdi + 0x14]
bswap eax
mov dword [r14 + 0x14], eax
mov eax, dword [rdi + 0x18]
bswap eax
mov dword [r14 + 0x18], eax
mov eax, dword [rdi + 0x1c]
bswap eax
mov dword [r14 + 0x1c], eax
mov dword [rdi], 0x6a09e667
mov dword [rdi + 4], 0xbb67ae85
mov dword [rdi + 8], 0x3c6ef372
mov dword [rdi + 0xc], 0xa54ff53a
mov dword [rdi + 0x10], 0x510e527f
mov dword [rdi + 0x14], 0x9b05688c
mov dword [rdi + 0x18], 0x1f83d9ab
mov dword [rdi + 0x1c], 0x5be0cd19
and qword [rdi + 0x20], 0
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140047524
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x1400475f4
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r9, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov r8d, 0x10
lea rdx, [r9 + 0x28]
mov eax, dword [rdx]
lea rdx, [rdx + 4]
bswap eax
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x14004763c
lea r11, [rsp + 0x70]
lea r10, [rsp + 0x68]
lea ebx, [r8 + 0x30]
mov ecx, dword [r10 - 0x34]
mov r8d, ecx
mov edx, dword [r10]
mov eax, ecx
rol r8d, 0xe
lea r10, [r10 + 4]
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 - 0x3c]
add r8d, dword [r10 - 0x18]
mov dword [r11], r8d
lea r11, [r11 + 4]
sub rbx, 1
jne 0x14004765e
movups xmm0, xmmword [r9]
lea r12d, [rbx + 0x40]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp], xmm0
mov edi, dword [rsp + 8]
mov esi, dword [rsp + 4]
mov r11d, dword [rsp]
mov r9d, dword [rsp + 0xc]
movups xmmword [rsp + 0x10], xmm1
mov r13d, dword [rsp + 0x1c]
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov eax, r10d
mov r8d, r10d
rol eax, 7
mov ecx, r10d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, r10d
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, r15d
and eax, r10d
xor ecx, eax
lea rax, [0x140072ee0]
add r8d, ecx
mov ecx, esi
add r8d, dword [rbx + rax]
xor ecx, edi
add r8d, dword [rsp + rbx + 0x30]
lea rbx, [rbx + 4]
add r8d, r13d
and ecx, r11d
mov eax, r11d
mov r13d, r14d
rol eax, 0xa
mov r14d, r15d
xor edx, eax
mov r15d, r10d
mov eax, r11d
lea r10d, [r9 + r8]
ror eax, 2
mov r9d, edi
xor edx, eax
mov eax, esi
and eax, edi
mov edi, esi
xor ecx, eax
mov esi, r11d
add edx, ecx
lea r11d, [rdx + r8]
sub r12, 1
jne 0x1400476e2
mov dword [rsp + 0xc], r9d
lea rcx, [rsp]
mov r9, qword [rsp + 0x20]
lea edx, [r12 + 8]
sub rcx, r9
mov dword [rsp + 0x10], r10d
mov dword [rsp], r11d
mov dword [rsp + 8], edi
mov dword [rsp + 4], esi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 0x1c], r13d
mov eax, dword [rcx + r9]
add dword [r9], eax
lea r9, [r9 + 4]
sub rdx, 1
jne 0x1400477a3
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140057de0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140048b0c
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x140048b99
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140057de0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140048bbc
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.140057d70
sub rsp, rax
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140048bf8
xor eax, eax
jmp 0x140048c1b
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140033738
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140057de0
add rsp, 0x1030
pop rbx
ret

Function at 0x140048d30
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140048da9
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp ebx, 1
jne 0x140048dbc
mov edx, 0x80000000
lea ecx, [rbx + 4]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp ebx, 3
jne 0x140048dcd
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.POWRPROF.dll_SetSuspendState
cmp ebx, 2
jne 0x140048dde
xor r8d, r8d
xor edx, edx
mov cl, 1
call sub.POWRPROF.dll_SetSuspendState
cmp ebx, 4
jne 0x140048df1
mov edx, 0x80000000
lea ecx, [rbx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140057de0
add rsp, 0x50
pop rbx
ret
Function at 0x1400491ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14004928e
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14004940c]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140049264
lea rdx, str.CreateThread_failed
lea rcx, [0x140097a10]
call fcn.14001c41c
lea rcx, [0x140097a10]
call fcn.14001c72c
lea edx, [rsi + 2]
lea rcx, [0x140097a10]
call fcn.14001c3f0
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x108]
mov edx, dword [0x1400a10b0]
test edx, edx
je 0x140049284
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140049208
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14006005c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14005fe30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005fe30
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005fe30
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005fe30
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005fe30
cmp dword [rcx + 0x84], 0xe
jbe 0x14005fe30
cmp dword [rcx + 0xf8], esi
je 0x14005fe30
mov ecx, r14d
call fcn.14005ff78
mov ecx, 2
call fcn.1400641e8
nop
cmp byte [0x1400a1b10], 0
jne 0x14005fefa
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a1b00], eax
test ebx, ebx
jne 0x14005fea3
mov rdi, qword [0x140084ee0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400a1b08]
cmp rcx, rax
je 0x14005fe9a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14002335c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a1c78]
jmp 0x14005feaf
cmp ebx, r15d
jne 0x14005feb5
lea rcx, [0x1400a1c90]
call fcn.140061ccc
nop
test ebx, ebx
jne 0x14005fecc
lea rdx, [0x14006e630]
lea rcx, [0x14006e610]
call fcn.140061f94
lea rdx, [0x14006e640]
lea rcx, [0x14006e638]
call fcn.140061f94
movzx eax, byte [0x1400a1b10]
test esi, esi
cmove eax, r15d
mov byte [0x1400a1b10], al
jmp 0x14005fefa
mov ecx, 2
call fcn.14006423c
test esi, esi
jne 0x14005ff11
mov ecx, r14d
call fcn.14005ff2c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14005fdc0
Function at 0x4015c5
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
call fcn.0040fc10
lea rcx, str.pause
call sub.msvcrt.dll_system
lea rax, [rbp + 0x4f]
mov rcx, rax
call fcn.0045f190
lea rdx, [rbp + 0x4f]
lea rax, [rbp + 0x20]
mov r8, rdx
lea rdx, str.What_is_the_name_of_the_file_youre_trying_to_compile__Enter_it_here:
mov rcx, rax
call fcn.0048efb0
mov rax, rbp
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.00401550
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0x4f]
mov rcx, rax
call fcn.0045f1c0
lea rax, [rbp + 0x7f]
mov rcx, rax
call fcn.0045f190
lea rdx, [rbp + 0x7f]
lea rax, [rbp + 0x50]
mov r8, rdx
lea rdx, str.What_is_the_name_of_the_output_file__Enter_it_here:
mov rcx, rax
call fcn.0048efb0
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.00401550
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0x7f]
mov rcx, rax
call fcn.0045f1c0
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.0045f190
lea rdx, [rbp + 0xaf]
lea rax, [rbp + 0x80]
mov r8, rdx
lea rdx, str.Do_you_have_any_commands_that_you_want_to_append__If_so__enter_them_here__enter__s_otherwise_:
mov rcx, rax
call fcn.0048efb0
lea rax, [rbp - 0x40]
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.00401550
lea rax, [rbp + 0x80]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.0045f1c0
lea rax, [rbp + 0x130]
lea rdx, [rbp - 0x20]
mov r8, rdx
lea rdx, str.g__o
mov rcx, rax
call fcn.0049ebe0
lea rax, [rbp + 0x110]
lea rdx, [rbp + 0x130]
lea r8, [0x004a6198]
mov rcx, rax
call fcn.0049eb40
lea rax, [rbp + 0xf0]
mov rcx, rbp
lea rdx, [rbp + 0x110]
mov r8, rcx
mov rcx, rax
call fcn.0049eb90
lea rax, [rbp + 0xd0]
lea rdx, [rbp + 0xf0]
lea r8, str.__static_libgcc__static_libstdc__Wl__Bstatic__lstdc__lpthread__Wl__Bdynamic
mov rcx, rax
call fcn.0049eb40
lea rax, [rbp + 0xb0]
lea rdx, [rbp + 0xd0]
lea r8, [0x004a6198]
mov rcx, rax
call fcn.0049eb40
lea rax, [rbp - 0x60]
lea rcx, [rbp - 0x40]
lea rdx, [rbp + 0xb0]
mov r8, rcx
mov rcx, rax
call fcn.0049eb90
lea rax, [rbp + 0xb0]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0xd0]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0x110]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp + 0x130]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00429f40
mov qword [rbp + 0x158], rax
lea rdx, str.Executing_command...
mov rcx, qword [0x004ab0b0]
call fcn.0049e580
mov rax, qword [rbp + 0x158]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x40184d
lea rdx, str.Execution_failed__Error_code
mov rcx, qword [0x004ab0b0]
call fcn.0049e580
mov rcx, rax
mov eax, dword [rbp + 0x154]
mov edx, eax
call fcn.00467630
mov rdx, qword [0x004ab0c0]
mov rcx, rax
call fcn.00467420
lea rcx, str.pause
call sub.msvcrt.dll_system
mov ebx, 0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.0048f4c0
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.0048f4c0
mov rax, rbp
mov rcx, rax
call fcn.0048f4c0
mov eax, ebx
jmp 0x4019b5
add rsp, 0x1e8
pop rbx
pop rbp
ret
Function at 0x40ca10
Capabilities:
Allocate thread local storage

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

Function at 0x40cf30
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x40cf53
call fcn.0040c8d0
cmp eax, 1
je 0x40cf5e
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 0x40cfd5
mov eax, 0x28
jmp 0x40cfba
add rax, 1
cmp rax, 0x6b
je 0x40cfc7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x40cfb0
cmp eax, 0x6a
jne 0x40cfda
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 0x40cfc7

Function at 0x40d080
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 [0x004cf0b0], 1
je 0x40d096
call fcn.0040cff0
mov ecx, dword [0x004a3038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x40d0c0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0040ce70
cmp qword [0x004d3050], 0
mov rsi, rax
je 0x40d0aa
test rax, rax
je 0x40d0aa
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.0040cf30
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 0x40d1b0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x004a3038]
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 0x40d1b0
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 0x410080
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004cf6c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410208
mov rax, qword [0x004cf6c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4100cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x410155
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4100b0
mov rcx, rbx
call fcn.00410d20
test rax, rax
mov r12, rax
je 0x41023d
mov rax, qword [0x004cf6c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00410e50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004cf6c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410220
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41014e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4101b0
add dword [0x004cf6c4], 1
cmp edi, 8
jae 0x410183
test dil, 4
jne 0x4101f4
test edi, edi
je 0x410178
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41020f
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 0x410178
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 0x41019c
jmp 0x410178
add rsi, qword [0x004cf6c8]
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 0x41014e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a1fe0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x410178
xor esi, esi
jmp 0x4100d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x410178
mov rax, qword [0x004cf6c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a1fe0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a1fe0
nop
nop dword [rax]

Function at 0x410990
Capabilities:
Get thread local storage value

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

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004ab660]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x410d8d
mov rcx, r8
call fcn.00410c00
test eax, eax
je 0x410d8d
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 0x410d8d
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 0x410d84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410d8f
add rax, 0x28
cmp rax, r9
jne 0x410d70
xor eax, eax
add rsp, 0x28
ret