joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afce0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push r15
mov eax, 0x42a8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0056fc10
sub rsp, rax
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, 0xffffffff
mov r8d, 0x1000
mov ebx, dword [0x00605de8]
lea rbp, [rsp + 0x290]
mov rdx, rcx
mov qword [rsp + 0x28], rcx
mov rsi, qword [rax]
mov qword [rsp + 0x4298], rsi
xor esi, esi
mov rcx, rbp
mov dword [rsp + 0x3c], 0
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4afed8
mov r9d, ebx
mov r8d, 0x104
mov rcx, rbp
call fcn.004af110
test eax, eax
js 0x4afe76
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
test eax, eax
je 0x4afe7b
call r13
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x4afdaa
cmp eax, 0x20
je 0x4afdaa
call r13
mov r12d, eax
call rdi
mov ecx, r12d
mov rbx, rax
call fcn.004abd60
mov dword [rbx], eax
call rdi
cmp dword [rax], 0xd
jne 0x4afe76
lea r12, [rsp + 0x2290]
mov rdx, rbp
lea rsi, [rsp + 0x40]
mov rcx, r12
lea rbx, [rsp + 0x6c]
lea r15, [0x00590bbe]
call sub.msvcrt.dll_wcscpy
mov rcx, r12
lea rdx, [0x00590bb8]
lea r14, [0x00590bc2]
call sub.msvcrt.dll_wcscat
mov rcx, r12
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x4afec0
nop dword [rax + rax]
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4afe2e
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4afea8
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4afe10
call r13
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp ebx, 0x12
sete al
test eax, eax
je 0x4afeb1
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x3c]
lea rdx, str.Deletion_of_directory__s_failed._Should_I_try_again_
call fcn.004ae3a0
test eax, eax
jne 0x4afd70
mov eax, 0xffffffff
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [rsp + 0x4298]
xor rsi, qword [rdi]
jne 0x4afef8
add rsp, 0x42a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
call rdi
mov dword [rax], 0x29
mov eax, 0xffffffff
jmp 0x4afe7b
call r13
cmp eax, 0x12
sete al
movzx eax, al
jmp 0x4afe54
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x4afe76
call rbx
mov dword [rax], 0x26
mov eax, 0xffffffff
jmp 0x4afe7b
call sub.libssp_0.dll___stack_chk_fail
nop
nop
Function at 0x4aff00
Capabilities:
Check if file exists
Get common file path

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x358
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x348], rax
xor eax, eax
mov qword [rsp + 0x28], r8
mov ebx, r9d
lea r12, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r13, [rsp + 0x240]
mov r9d, edx
lea r8, str._.s_s.exe
mov edx, 0x104
mov rcx, r13
call sub.libintl_8.dll_libintl_snprintf
mov rdx, r13
mov r9d, 0xffffffff
mov rcx, r12
mov r8d, 0x104
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4b0018
xor r9d, r9d
mov r8d, 0x104
mov rcx, r12
call fcn.004af110
test eax, eax
js 0x4affc0
test ebx, ebx
je 0x4affe8
mov rcx, r12
call sub.msvcrt.dll_wcslen
xor edx, edx
mov rbx, qword [sym.imp.msvcrt.dll__waccess]
mov word [rsp + rax*2 + 0x28], dx
xor edx, edx
mov rcx, r12
call rbx
test eax, eax
jne 0x4affc0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4b0030
nop word [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x348]
xor rbx, qword [rsi]
jne 0x4b007f
add rsp, 0x358
pop rbx
pop rsi
pop r12
pop r13
ret
xor edx, edx
mov rbx, qword [sym.imp.msvcrt.dll__waccess]
mov rcx, r12
call rbx
test eax, eax
je 0x4b0072
mov rcx, r12
call sub.msvcrt.dll_wcslen
xor ecx, ecx
cmp dword [rsp + 0x3a0], 1
mov word [rsp + rax*2 + 0x28], cx
je 0x4affc0
jmp 0x4affa2
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x4affc0
call rbx
mov dword [rax], 0x26
jmp 0x4affc0
mov rdx, r13
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4b0033
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ebx, eax
add bl, al
sbb rdx, 3
sub rdx, r13
mov byte [rsp + rdx + 0x23c], 0
mov rcx, r13
call fcn.004996c0
jmp 0x4affc2
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
Function at 0x4b0410
Capabilities:
Check if file exists
Get common file path

Disassembly:
push r14
mov eax, 0x2058
push r13
push r12
push rbx
call fcn.0056fc10
sub rsp, rax
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, 0xffffffff
mov r8d, 0x1000
mov r13d, dword [0x00605de8]
mov rax, qword [rbx]
mov qword [rsp + 0x2048], rax
xor eax, eax
lea r12, [rsp + 0x40]
mov rdx, rcx
mov rcx, r12
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4b0538
mov r9d, r13d
mov r8d, 0x104
mov rcx, r12
call fcn.004af110
test eax, eax
js 0x4b0547
mov rax, qword [0x005aae60]
mov eax, dword [rax]
test eax, eax
je 0x4b04eb
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x30], 0
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x4b058a
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je 0x4b0561
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.004ab060
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wchdir]
xor edx, edx
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [0x005ee9b8], eax
mov rax, qword [rsp + 0x2048]
xor rax, qword [rbx]
jne 0x4b05b3
mov eax, r12d
add rsp, 0x2058
pop rbx
pop r12
pop r13
pop r14
ret
mov r12, qword [sym.imp.msvcrt.dll__errno]
call r12
cmp dword [rax], 0x22
je 0x4b0550
mov r12d, 0xffffffff
jmp 0x4b050f
call r12
mov r12d, 0xffffffff
mov dword [rax], 0x26
jmp 0x4b050f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r14d
mov r12, rax
call fcn.004abd60
mov rcx, r13
mov dword [r12], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0547
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r13d
mov r12, rax
call fcn.004abd60
mov dword [r12], eax
mov r12d, 0xffffffff
jmp 0x4b050f
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax]
Function at 0x4b05c0
Capabilities:
Check if file exists

Disassembly:
push r15
mov eax, 0x2040
push r14
push r13
push r12
push rdi
push rsi
push rbx
call fcn.0056fc10
sub rsp, rax
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, 0xffffffff
mov r8d, 0x1000
mov r12d, dword [0x00605de8]
mov rax, qword [rsi]
mov qword [rsp + 0x2038], rax
xor eax, eax
lea r14, [rsp + 0x30]
mov rbx, rdx
mov rdx, rcx
mov rcx, r14
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4b0778
mov r9d, r12d
mov r8d, 0x104
mov rcx, r14
call fcn.004af110
test eax, eax
js 0x4b0790
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12d, eax
cmp eax, 0xffffffff
je 0x4b064e
test al, 1
jne 0x4b0738
mov edx, 0x8002
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wopen]
mov r13d, eax
test eax, eax
js 0x4b0790
test rbx, rbx
je 0x4b07a0
imul rdx, qword [rbx + 8], 0x989680
movabs rcx, 0x19db1ded53e8000
imul rax, qword [rbx], 0x989680
lea rbx, [rsp + 0x20]
add rdx, rcx
add rax, rcx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rax
mov ecx, r13d
xor r15d, r15d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9, rbx
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4b0710
mov ecx, r13d
call sub.msvcrt.dll__close
cmp r12d, 0xffffffff
je 0x4b06e0
mov rdi, qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test r12b, 1
jne 0x4b0768
mov rax, qword [rsp + 0x2038]
xor rax, qword [rsi]
jne 0x4b07bd
mov eax, r15d
add rsp, 0x2040
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r13d
mov r15d, 0xffffffff
mov dword [rax], 0x16
call sub.msvcrt.dll__close
cmp r12d, 0xffffffff
jne 0x4b06cf
jmp 0x4b06e0
mov edx, eax
mov rcx, r14
mov rdi, qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and edx, 0xfffffffe
call rdi
mov edx, 0x8002
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wopen]
mov r13d, eax
test eax, eax
jns 0x4b0667
mov r15d, 0xffffffff
mov edx, r12d
mov rcx, r14
call rdi
jmp 0x4b06e0
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x4b0790
call rbx
mov dword [rax], 0x26
nop
mov r15d, 0xffffffff
jmp 0x4b06e0
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
jmp 0x4b069e
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop
Function at 0x4b0b90
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push rbp
mov eax, 0x3060
push r14
push r13
push r12
push rdi
push rsi
push rbx
call fcn.0056fc10
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rdi]
mov qword [rbp + 0x2fd8], rax
xor eax, eax
mov r13, rdx
mov rsi, r8
mov eax, 0x4000
call fcn.0056fc10
mov r9d, 0xffffffff
mov r8d, 0x1000
mov r14d, dword [0x00605de8]
lea r12, [rbp - 0x30]
mov rdx, rcx
sub rsp, rax
mov rcx, r12
lea rbx, [rsp + 0x40]
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4b0d60
mov r9d, r14d
mov r8d, 0x104
mov rcx, r12
call fcn.004af110
test eax, eax
js 0x4b0d1c
mov rcx, r12
mov dword [rsp + 0x28], 0x2200000
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x4b0daf
lea rax, [rbp - 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rax
mov edx, 0x900a8
mov rcx, r12
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x4000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4b0d80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbx]
cmp eax, 0xa0000003
je 0x4b0d48
cmp eax, 0xa000000c
jne 0x4b0d10
movzx eax, word [rbx + 8]
xor r8d, r8d
lea rcx, [rbx + rax + 0x14]
movzx eax, word [rbx + 0xa]
mov word [rcx + rax], r8w
call fcn.004ab060
lea r12, [rbp + 0x1fd0]
mov r8d, 0x1000
mov rdx, rax
mov rcx, r12
call fcn.004add30
mov ebx, eax
test eax, eax
js 0x4b0d1c
lea r8d, [rax + 1]
mov rdx, r12
mov rcx, r13
movsxd r8, r8d
cmp r8, rsi
cmova r8, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
cmp rax, rsi
cmova rax, rsi
jmp 0x4b0d21
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
mov rsi, qword [rbp + 0x2fd8]
xor rsi, qword [rdi]
jne 0x4b0dd5
lea rsp, [rbp + 0x2fe0]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
movzx eax, word [rbx + 8]
xor edx, edx
lea rcx, [rbx + rax + 0x10]
movzx eax, word [rbx + 0xa]
mov word [rcx + rax], dx
jmp 0x4b0cc6
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x4b0d1c
call rbx
mov dword [rax], 0x26
mov eax, 0xffffffff
jmp 0x4b0d21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r13d
mov rbx, rax
call fcn.004abd60
mov rcx, r12
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x4b0d21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, r12d
mov rbx, rax
call fcn.004abd60
mov dword [rbx], eax
mov eax, 0xffffffff
jmp 0x4b0d21
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]
Function at 0x4b11d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call sub.msvcrt.dll_strlen
cmp eax, 3
jle 0x4b1200
cdqe
lea rdx, str..exe
lea rcx, [r12 + rax - 4]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x4b12e0
mov rcx, r12
xor edx, edx
call fcn.004b0de0
mov r12d, eax
test eax, eax
js 0x4b12e0
mov ecx, eax
mov r8d, 0x63
lea rdx, [0x005ee920]
call sub.msvcrt.dll__read
mov ecx, r12d
movsxd rbx, eax
call sub.msvcrt.dll__close
cmp ebx, 3
jle 0x4b12e0
cmp byte [0x005ee920], 0x23
lea r12, [0x005ee920]
jne 0x4b12e0
cmp byte [0x005ee921], 0x21
jne 0x4b12e0
mov rcx, r12
lea rdx, [0x00590d07]
mov byte [r12 + rbx], 0
call sub.msvcrt.dll_strcspn
add r12, rax
cmp byte [r12], 0
je 0x4b12e0
mov byte [r12], 0
mov edx, 0x2f
lea rcx, [0x005ee922]
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x4b12c0
lea r12, [rax + 1]
mov edx, 0x20
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4b12e3
mov byte [rax], 0
mov rax, r12
add rsp, 0x28
pop rbx
pop r12
ret
mov edx, 0x5c
lea rcx, [0x005ee922]
call sub.msvcrt.dll_strrchr
test rax, rax
jne 0x4b1297
nop word cs:[rax + rax]
xor r12d, r12d
mov rax, r12
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x4b12f0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.004afa50
mov rcx, rax
test rax, rax
je 0x4b1315
mov r8d, 0x180
mov edx, 0x102
add rsp, 0x28
jmp fcn.004b0de0
mov eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x4b33e0
Capabilities:
Check if file exists
Copy file
Delete directory
Move file

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
mov eax, dword [0x005764a0]
mov qword [rsp + 0x30], 0
cmp eax, 0xffffffff
je 0x4b3420
mov rdx, qword [rsp + 0x38]
xor rdx, qword [rbx]
jne 0x4b3468
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
lea rdx, str.SYSTEMCurrentControlSetServicescexecsvc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete al
movzx eax, al
mov dword [0x005764a0], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x005764a0]
jmp 0x4b340a
call sub.libssp_0.dll___stack_chk_fail
nop
nop
Function at 0x4b4e30
Capabilities:
Create pipe
Create thread

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov ecx, 1
mov rax, qword [rdi]
mov qword [rsp + 0x88], rax
xor eax, eax
call fcn.004b4090
mov ecx, 2
mov esi, eax
call fcn.004b4090
xor ecx, ecx
mov ebx, eax
call fcn.004b4090
mov eax, esi
or eax, ebx
je 0x4b4ff0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x40]
mov edx, 0x1f
lea r8, str..pipewinansi_lu
mov r9d, eax
mov rcx, r12
call fcn.004b4d60
test eax, eax
js 0x4b5045
mov qword [rsp + 0x38], 0
xor r8d, r8d
mov edx, 2
mov r9d, 1
mov dword [rsp + 0x30], 0
mov rcx, r12
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [0x005f2a38], rax
cmp rax, 0xffffffffffffffff
je 0x4b5039
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, r12
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x005f2a40], rax
cmp rax, 0xffffffffffffffff
je 0x4b502d
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x004b4500]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x005f2a48], rax
cmp rax, 0xffffffffffffffff
je 0x4b5021
lea rcx, [0x004b4030]
call fcn.00401560
test eax, eax
jne 0x4b5015
test esi, esi
jne 0x4b4fc8
test ebx, ebx
jne 0x4b4fa0
mov rax, qword [rsp + 0x88]
xor rax, qword [rdi]
jne 0x4b5010
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rcx, qword [0x005f2a38]
call fcn.004b4310
mov ecx, 2
mov rdx, rax
call fcn.004b4390
mov qword [0x005f2a28], rax
jmp 0x4b4f7c
mov rcx, qword [0x005f2a38]
call fcn.004b4310
mov ecx, 1
mov rdx, rax
call fcn.004b4390
mov qword [0x005f2a30], rax
test ebx, ebx
je 0x4b4f7c
jmp 0x4b4fa0
xor ecx, ecx
call fcn.004b4180
mov ecx, 1
call fcn.004b4180
mov ecx, 2
call fcn.004b4180
jmp 0x4b4f7c
call sub.libssp_0.dll___stack_chk_fail
lea rcx, str.atexit_winansi_exit__failed
call fcn.00494800
lea rcx, str.CreateThread_console_thread__failed
call fcn.004b42b0
lea rcx, str.CreateFile_for_named_pipe_failed
call fcn.004b42b0
lea rcx, str.CreateNamedPipe_failed
call fcn.004b42b0
lea rcx, str.Could_not_initialize_winansi_pipe_name
call fcn.00494770
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x4b50c0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1f8
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
xor edx, edx
mov ecx, 2
mov rdi, qword [rax]
mov qword [rsp + 0x1e8], rdi
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x4b51de
lea r13, [rsp + 0x40]
xor edx, edx
and byte [rsp + 0x70], 0xfc
xor r15d, r15d
mov rax, qword [0x005ab200]
mov rcx, r13
mov qword [rsp + 0x40], 0
lea rsi, [rsp + 0xb0]
lea rdi, [rsp + 0x80]
lea r14, [rsp + 0xdc]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rax
lea rbp, [rsp + 0x84]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call fcn.0050b260
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0xb0], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4b5223
mov rcx, r13
call fcn.0050b730
mov qword [rsp + 0x28], r13
mov edx, 0x76
lea rax, str.windows_ancestry
mov qword [rsp + 0x20], rax
mov rax, qword [0x005ab240]
lea r8, [0x00591504]
lea rcx, str.compat_win32_trace2_win32_process_info.c
mov r9, qword [rax]
call fcn.00481ca0
mov rcx, r13
call fcn.0050ae20
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [rsp + 0x1e8]
xor rsi, qword [rax]
jne 0x4b52b3
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rsi
mov rcx, r12
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4b5192
cmp ebx, dword [rsp + 0xb8]
jne 0x4b5210
mov dword [rsp + 0x3c], r15d
test r15, r15
jne 0x4b5250
mov dword [rdi + r15*4], ebx
mov ebx, dword [rsp + 0xd0]
add r15, 1
jmp 0x4b5174
mov rdx, r14
mov rcx, r13
call fcn.0050b320
lea edx, [r15 - 1]
mov rax, rdi
lea rdx, [rbp + rdx*4]
jmp 0x4b5279
add rax, 4
cmp rdx, rax
je 0x4b5298
cmp dword [rax], ebx
jne 0x4b5270
lea rdx, str._cycle_
mov rcx, r13
call fcn.0050b320
jmp 0x4b5192
cmp dword [rsp + 0x3c], 0xa
jne 0x4b5236
lea rdx, str._truncated_
mov rcx, r13
call fcn.0050b320
jmp 0x4b5192
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax]

Function at 0x4b56f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor edx, edx
mov qword [rcx + 0x10], r9
mov rbx, rcx
mov r9, rcx
mov qword [rcx + 8], r8
lea r8, [0x004b56c0]
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
xor r8d, r8d
mov qword [rbx], rax
test rax, rax
je 0x4b5740
mov eax, r8d
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov r8d, dword [rax]
mov eax, r8d
add rsp, 0x30
pop rbx
ret
Function at 0x4b6a00
Capabilities:
Get thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4b6a20
mov eax, dword [rax]
test eax, eax
jg 0x4b6a30
xor eax, eax
add rsp, 0x20
pop r12
ret
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004b5b80

Function at 0x4b6a40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov edx, 0xffffffff
mov rbx, rcx
lea rcx, str.GIT_TEST_FSCACHE
call fcn.00412940
cmp eax, 0xffffffff
je 0x4b6b60
mov rdx, qword [0x005aabc0]
mov dword [rdx], eax
test eax, eax
jne 0x4b6a80
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [0x00605e00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x005f2a84]
test eax, eax
jne 0x4b6adb
mov eax, dword [0x005f2a80]
test eax, eax
je 0x4b6b70
mov rax, qword [0x005ab020]
lea rdx, [0x004b68e0]
lea rcx, [0x004b6750]
mov qword [rax], rdx
mov rax, qword [0x005aaf20]
lea rdx, [0x004b6550]
mov qword [rax], rdx
mov rax, qword [0x005ab360]
mov qword [rax], rcx
mov eax, dword [0x005f2a84]
mov rcx, r12
add eax, 1
mov dword [0x005f2a84], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4b6b98
mov edx, dword [rax]
add edx, 1
mov dword [rax], edx
movabs rax, 0x1ffffffff
movabs rdx, 0x100000000
and rax, qword [0x00576658]
cmp rax, rdx
je 0x4b6a71
lea r9, str.fscache:_enable_n
lea r8, str.GIT_TRACE_FSCACHE
mov edx, 0x1fe
lea rcx, str.compat_win32_fscache.c
call fcn.0047ff50
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
mov rax, qword [0x005aabc0]
mov eax, dword [rax]
jmp 0x4b6a6d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x005f2a80], eax
cmp eax, 0xffffffff
jne 0x4b6aa8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4b6a71
mov edx, 0x10050
mov ecx, 1
call fcn.004997f0
xor r8d, r8d
lea r9, [rbx*4]
lea rdx, [fcn.004b5bc0]
mov dword [rax], 1
mov r12, rax
lea rcx, [rax + 8]
call fcn.00426ac0
xor edx, edx
lea rcx, [r12 + 0x38]
call fcn.00514b70
mov ecx, dword [0x005f2a80]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4b6b0f
lea r8, str.TlsSetValue_error
mov edx, 0x1fb
lea rcx, str.compat_win32_fscache.c
call fcn.00494ad0
nop
nop word [rax + rax]