joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f24c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14002f168]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.1400326c0
xor r8d, r8d
mov qword [0x1400f74a8], rax
xor edx, edx
mov ecx, ebx
call fcn.1400323e8
xor ebx, ebx
mov qword [0x1400fc860], rax
cmp word [0x1400f74a0], bx
jne 0x14002f36f
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14002f2b4
movzx eax, di
jmp 0x14002f2b6
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1400f74a0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400f74b0], rax
test rax, rax
je 0x14002f36f
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f74b0]
lea rdx, str.freeaddrinfo
mov qword [0x1400f7480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f74b0]
lea rdx, str.getnameinfo
mov qword [0x1400f7488], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f74b0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400f7490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400f7480], rbx
mov qword [0x1400f7498], rax
je 0x14002f36f
cmp qword [0x1400f7488], rbx
je 0x14002f36f
cmp qword [0x1400f7490], rbx
je 0x14002f36f
mov ecx, dword [0x1400f74a4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400f74a4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140030004
Capabilities:
Get common file path

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 edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.1400337a0
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14003007e
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030075
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.140033850
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140030554
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140030567
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x140030660
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400306a4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140031f60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140031f47
cmp word [rdx], si
je 0x140031f47
test r8d, r8d
jne 0x140031e7e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x140031ede
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140031e90
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x140031ebb
call fcn.1400320f0
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.140032200
mov rdi, rax
test rax, rax
je 0x140031f42
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x140031f1d
mov rcx, rbx
call fcn.1400320f0
mov dword [rsp + 0x48], eax
jmp 0x140031f30
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1400f5f60]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1400fc8c0]
call fcn.140032590
test rax, rax
je 0x140031f90
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140031e50
add rsp, 0x20
pop rbx
ret

Function at 0x140032090
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400fc8c0]
call fcn.140032590
mov rbx, rax
test rax, rax
je 0x1400320e3
cmp qword [rax + 8], 0
je 0x1400320c2
cmp dword [rax + 0x1c], 0
jne 0x1400320c2
mov rcx, rax
call fcn.140030660
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x1400320f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x1400321ea
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14003214b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x1400321ac
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x1400321a4
sub edx, 1
je 0x14003219b
cmp edx, 2
je 0x140032194
mov r8, rbx
mov rdx, r14
call fcn.140021d20
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14003217a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14003217a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14003217a
mov rcx, rsi
call fcn.140030660
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x1400321db
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x140032180
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140032175
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x140032350
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 [0x1400f7538]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400323d1
mov r8, qword [0x1400f7530]
lea edx, [rax + 8]
mov rcx, qword [0x1400f5f60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f7538]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f7528]
jmp 0x1400323bd
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400323ba
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400323a8
mov rdx, rdi
lea rcx, [0x1400322b4]
call fcn.140001514
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400323e8
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 0x140032412
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400f7530]
test rbx, rbx
jne 0x140032458
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400f5f60]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400f7538], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f7538]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f7530]
jmp 0x14003245b
movsxd rdi, edi
mov ecx, dword [0x1400f7538]
lea rax, [rdi + rbx]
mov qword [0x1400f7530], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400f7530]
mov edx, 8
mov rcx, qword [0x1400f5f60]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400f7538]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400324aa
test rbp, rbp
je 0x1400324d1
mov edx, 0x28
lea rcx, [0x1400f7528]
call fcn.140033094
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x1400324d1
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 0x1400334b0
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 [0x1400fc940], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f31d0], eax
add rsp, 0x28
jmp 0x1400338c0
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400fc940]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400fc940]
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
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x1400f31d0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1400334e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400f31d0]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140033530
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret
Function at 0x1400335a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x1400335d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x1400336a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x1400337a0
Capabilities:
Get 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
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400337d0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x1400337f1
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140033803
mov eax, 0x100000
cmp r8, rax
jle 0x140033820
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1400fc940]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140033850
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1400f31d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x1400399c0
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 0x140039b9e
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 0x140039a4c
test eax, eax
jle 0x140039a4c
mov rdx, qword [0x1400fd1e0]
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 0x140039a4c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140039b99
mov rax, qword [0x1400fd1e0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x140039b99
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x140039b94
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x140039b8c
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 0x140039b70
test edi, edi
jle 0x140039b70
mov rcx, qword [0x1400f5f60]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140039b70
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.140021d20
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x39ba8]
add rdx, r13
jmp rdx
lea rax, [0x140039bd0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003cb30]
jmp 0x140039b5b
lea rax, [0x140039be0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003cb40]
jmp 0x140039b5b
lea rax, [0x140039cd0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003cb70]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400f7e30]
mov qword [rbx], rax
mov qword [0x1400f7e30], rbx
mov rdx, qword [0x1400fd1e0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x140039ac0
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 0x14003cea0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400fc960]
call fcn.140032350
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x14003cf17
cmp qword [0x1400fc980], rdi
jne 0x14003cf17
cmp dword [0x1400f7e40], 0
je 0x14003cf17
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400f7e70]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14003cf07
cmp rbx, rdi
je 0x14003cefc
cmp dword [rbx + 0x38], esi
jne 0x14003cefc
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003cee8
mov rbx, qword [rsp + 0x30]
mov dword [0x1400f7e40], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003cf20
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1400fc960]
call fcn.140032350
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x14003d060
cmp dword [0x1400f7e40], 0
jne 0x14003d060
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400f7e48]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400f75a8], 0
je 0x14003cf96
lea rcx, [0x1400fd260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400fc9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14010d680]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1400fc980], rsi
xor edx, edx
mov dword [0x1400f7e40], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1400f7e70]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14003d013
cmp rbx, rsi
je 0x14003d00b
cmp dword [rbx + 0x38], 0
jne 0x14003d00b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14003cffb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14003cfe0
cmp dword [rbx + 0x38], 0
jne 0x14003d00b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003cfd3
cmp dword [0x1400f75a8], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14003d04d
lea rcx, [0x1400fc9c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fd260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f7e48]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140042050
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140041e60
call fcn.14003cf20
xor ecx, ecx
call fcn.140042310
test eax, eax
jne 0x140042060
mov rbx, qword [0x1400f75c8]
test rbx, rbx
je 0x140042140
cmp dword [0x1400f75c4], eax
je 0x140042140
cmp dword [0x1400f7e80], 0
mov eax, dword [0x1400f75c0]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14004210b
mov rcx, qword [0x1400fd1e0]
mov rdx, rbx
movsxd r8, eax
call fcn.140021d20
xor r9d, r9d
cmp dword [0x1400f75c0], r9d
jle 0x140042104
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400fd1e0]
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 [0x1400f75c0]
jl 0x1400420d0
mov rbx, qword [0x1400fd1e0]
call fcn.1400548f0
lea rcx, [0x14010d6a0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f7ea8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400548f0
lea rcx, [0x14010d6a0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f7ea8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400f7ea8]
call qword [rax + 0x28]
lea rcx, [0x1400fc9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400fd260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400f7e98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f7e98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400f7ea0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f7ea0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400fc9c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fd260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fc9c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14010d6a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400fd260]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140046a20
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.1400472e0
test eax, eax
je 0x140046b19
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140079714
test eax, eax
jne 0x140046b19
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.140079714
test eax, eax
jne 0x140046b19
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 0x140046b19
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140046b10
test eax, eax
jle 0x140046b10
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.1400595e0
mov rsi, rax
test rax, rax
je 0x140046b10
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 0x140046b10
cmp dword [rsp + 0x138], edi
jne 0x140046b10
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140047010
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 0x140047610
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 0x140047640
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140047660
movzx eax, word [0x1400c15c4]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140047680
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 0x140047773
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 0x1400476e0
test byte [rsp + 0x130], 0x10
je 0x140047736
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x140047724
cmp al, cl
jne 0x14004771b
cmp byte [rsp + 0x15e], dil
je 0x14004774a
cmp cl, 0x2e
jne 0x140047724
test al, al
je 0x14004774a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140047610
jmp 0x140047746
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140046a20
test eax, eax
jne 0x140047765
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400476d0
jmp 0x14004776a
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