joyce8/EMBER2024-capa huggingface dataset:
Function at 0x622c1ac0
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 [0x622c7024]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x622c1bda
mov rax, qword [0x622c7028]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x622c1b0e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x622c1bc0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x622c1af2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x622c1c12
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x622c7028]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x622c7028]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x622c1bf5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x622c1bb9
sub eax, 0x40
and eax, 0xffffffbf
je 0x622c1bb9
mov r9, rbp
add r9, qword [0x622c7028]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x622c1be1
add dword [0x622c7024], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x622c1b1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x622c7028]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x622c27d0
Capabilities:
Parse pe header

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

Function at 0x622c27f0
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 0x622c2831
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 0x622c2828
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x622c2833
add rax, 0x28
cmp rax, r9
jne 0x622c2814
xor eax, eax
repz ret

Function at 0x622c28e0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x622c42f0]
cmp word [rbx], 0x5a4d
je 0x622c2900
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x622c28f4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x622c2b60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x622c7900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x622c78e0]
test rbx, rbx
je 0x622c2bb4
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 0x622c2bab
test rsi, rsi
je 0x622c2bab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x622c2b90
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x622c7900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140001028
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140084728]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140001082
mov r8, qword [0x1400820a1]
lea edx, [rax + 8]
mov rcx, qword [0x1400846f8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140084728]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.1400a6638
mov rdx, rbx
lea rcx, [0x1400010a8]
call fcn.140002d7c
mov rax, rbx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140084728], eax
add rsp, 0x28
jmp fcn.140001028

Function at 0x1400016e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400015fc]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140003fcc
xor r8d, r8d
mov qword [0x140084778], rax
xor edx, edx
mov ecx, ebx
call fcn.140001b08
xor ebx, ebx
mov qword [0x140084788], rax
cmp word [0x140084770], bx
jne 0x140001803
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140001748
movzx eax, di
jmp 0x14000174a
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140084770], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140084780], rax
test rax, rax
je 0x140001803
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140084780]
lea rdx, str.freeaddrinfo
mov qword [0x140084750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140084780]
lea rdx, str.getnameinfo
mov qword [0x140084758], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140084780]
lea rdx, str.WSAStringToAddressA
mov qword [0x140084760], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140084750], rbx
mov qword [0x140084768], rax
je 0x140001803
cmp qword [0x140084758], rbx
je 0x140001803
cmp qword [0x140084760], rbx
je 0x140001803
mov ecx, dword [0x140084774]
test rax, rax
cmovne ecx, edi
mov dword [0x140084774], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140001a70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400847b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140001af1
mov r8, qword [0x1400847b0]
lea edx, [rax + 8]
mov rcx, qword [0x1400846f8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400847b8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400847a8]
jmp 0x140001add
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140001ada
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001ac8
mov rdx, rdi
lea rcx, [0x140001c0c]
call fcn.140002d7c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x140001b32
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400847b0]
test rbx, rbx
jne 0x140001b78
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400846f8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400847b8], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400847b8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400847b0]
jmp 0x140001b7b
movsxd rdi, edi
mov ecx, dword [0x1400847b8]
lea rax, [rdi + rbx]
mov qword [0x1400847b0], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400847b0]
mov edx, 8
mov rcx, qword [0x1400846f8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400847b8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140001bca
test rbp, rbp
je 0x140001bf1
mov edx, 0x28
lea rcx, [0x1400847a8]
call fcn.14000a094
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140001bf1
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f60
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400847d0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400826f0], eax
add rsp, 0x28
jmp 0x14000a4c0
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400847d0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400847d0]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov ecx, dword [0x1400826f0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140002d7c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140084838], 0
lea rbx, [0x140084848]
mov r14, rdx
mov r15, rcx
jne 0x140002dc9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x14008483c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140084838], 1
mov ecx, dword [0x14008483c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140002e9e
mov rcx, qword [0x1400846f8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140002ec9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140084840]
test rax, rax
je 0x140002e19
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140084840], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x140002f98]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x14008483c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400846f8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140002ec9
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000319c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140003218
movsxd rdx, ecx
lea rcx, [0x1400032a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140084878]
test rbx, rbx
je 0x14000328b
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000320e
cmp byte [rbx + 0x20], 0
je 0x14000320e
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400031d4
jmp 0x14000328b
mov rbx, qword [0x140084878]
test rbx, rbx
je 0x14000328b
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140003283
cmp byte [rbx + 0x21], 0
je 0x140003247
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140003273
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140084878]
call fcn.140003d64
mov rbx, rsi
test rsi, rsi
jne 0x140003224
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140008ab0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x30], rbx
mov ebp, 1
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140008c8e
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140008b3c
test eax, eax
jle 0x140008b3c
mov rdx, qword [0x140084818]
lea r9, [rsp + 0x80]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008b3c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140008c89
mov rax, qword [0x140084818]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x140008c89
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x140008c84
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x140008c7c
mov qword [rsp + 0x78], r13
lea r13, [0x140000000]
nop dword [rax + rax]
cmp dword [rax], 0x434e5354
lea rsi, [rax + 8]
movsxd rdi, dword [rax + 4]
jne 0x140008c60
test edi, edi
jle 0x140008c60
mov rcx, qword [0x1400846f8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140008c60
lea rcx, [rax + 0x28]
mov dword [rax + 0x10], edi
mov r8, rdi
mov qword [rax + 8], rcx
mov rdx, rsi
mov dword [rax + 0x14], r12d
call fcn.140003570
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x8c98]
add rdx, r13
jmp rdx
lea rax, [0x140008780]
mov qword [rbx + 0x18], rax
lea rax, [0x140008790]
jmp 0x140008c4b
lea rax, [0x1400087a0]
mov qword [rbx + 0x18], rax
lea rax, [0x140008890]
jmp 0x140008c4b
lea rax, [0x1400088c0]
mov qword [rbx + 0x18], rax
lea rax, [0x140008a40]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400850f0]
mov qword [rbx], rax
mov qword [0x1400850f0], rbx
mov rdx, qword [0x140084818]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x140008bb0
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a624
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a76c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000a7db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a7db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a7db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a7db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a7db
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a7db
cmp dword [rcx + 0xf8], 0
je 0x14000a7db
mov ecx, ebx
call fcn.14000a6a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000a900
nop
cmp dword [rbp + 0x20], 0
je 0x14000a829
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a738
int3
Function at 0x1400171b0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140017870
call fcn.14001c5e0
xor ecx, ecx
call fcn.1400164d0
test eax, eax
jne 0x1400171c0
mov rbx, qword [0x1400847f8]
test rbx, rbx
je 0x1400172a0
cmp dword [0x1400847f4], eax
je 0x1400172a0
cmp dword [0x140085160], 0
mov eax, dword [0x1400847f0]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14001726b
mov rcx, qword [0x140084818]
mov rdx, rbx
movsxd r8, eax
call fcn.140003570
xor r9d, r9d
cmp dword [0x1400847f0], r9d
jle 0x140017264
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x140084818]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x1400847f0]
jl 0x140017230
mov rbx, qword [0x140084818]
call fcn.140044630
lea rcx, [0x140086260]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140085188]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140044630
lea rcx, [0x140086260]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140085188]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140085188]
call qword [rax + 0x28]
lea rcx, [0x140086220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400862a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140085178]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140085178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140085180]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140085180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140086220]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400862a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140086220]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400862a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x14001b910
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rdi, rcx
xor ebx, ebx
call fcn.14001b310
test eax, eax
je 0x14001ba09
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140028638
test eax, eax
jne 0x14001ba09
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.140028638
test eax, eax
jne 0x14001ba09
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001ba09
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001ba00
test eax, eax
jle 0x14001ba00
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.140045498
mov rsi, rax
test rax, rax
je 0x14001ba00
lea r9, [rsp + 0x138]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ba00
cmp dword [rsp + 0x138], edi
jne 0x14001ba00
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14001b640
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001ba30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
xor edi, edi
lea r9, [rsp + 0x20]
sub r9, rcx
mov rbp, r8
mov r14, rdx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001ba60
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14001ba80
movzx eax, word [0x14007223c]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14001baa0
lea rbx, [rsp + 0x20]
add rbx, rax
lea rdx, [rsp + 0x130]
mov eax, 0x2a
lea rcx, [rsp + 0x20]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb93
lea rax, [rsp + 0x15c]
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x15c]
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14001bb00
test byte [rsp + 0x130], 0x10
je 0x14001bb56
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x14001bb44
cmp al, cl
jne 0x14001bb3b
cmp byte [rsp + 0x15e], dil
je 0x14001bb6a
cmp cl, 0x2e
jne 0x14001bb44
test al, al
je 0x14001bb6a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14001ba30
jmp 0x14001bb66
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14001b910
test eax, eax
jne 0x14001bb85
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14001baf0
jmp 0x14001bb8a
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x270]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret