joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400126c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1d0
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x140095070]
or edx, 0xffffffff
call fcn.1400125f0
lea rcx, [rsp + 0xc0]
mov rdx, rax
mov rbx, rax
call fcn.140015dc0
mov rcx, rbx
call fcn.140014a90
lea rcx, [rsp + 0x30]
call fcn.1400127b0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.140012840
xor ebp, ebp
mov dword [rdi + 0xc], ebp
mov edx, ebp
mov ecx, ebp
movzx eax, byte [rsp + rdx + 0x30]
add rdx, 4
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2d]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2e]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2f]
add ecx, eax
cmp rdx, 0x10
jl 0x14001272c
mov dword [rdi + 0xc], ecx
lea rdx, [0x140098660]
mov rcx, rsi
call fcn.1400173b4
mov qword [rdi], rax
test rax, rax
je 0x14002e480
mov rcx, rdi
call fcn.1400124c0
test eax, eax
je 0x14002e48a
mov rcx, qword [rdi]
mov ebx, eax
call fcn.14001743c
mov eax, ebx
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x14001278c
mov r9, qword [rdi]
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0xf]
call fcn.140017784
lea rcx, [rsp + 0x20]
mov edx, reloc.WSOCK32.dll_recv
mov r8d, 0x99f2
call fcn.140055230
mov dword [rdi + 0xc], ebp
mov ecx, ebp
movzx eax, byte [rsp + rbp + 0x20]
inc rbp
imul ecx, eax
cmp rbp, 0x10
jl 0x14002e4ba
mov dword [rdi + 0xc], ecx
mov rcx, qword [rdi]
call fcn.140017ad4
mov dword [rdi + 8], eax
xor eax, eax
jmp 0x14001278c

Function at 0x1400127b0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
add rcx, 0x44
lea r8d, [rdx + 8]
call fcn.140015500
mov dword [rbx + 0x34], 0x67452301
mov dword [rbx + 0x38], 0xefcdab89
mov dword [rbx + 0x3c], 0x98badcfe
mov dword [rbx + 0x40], 0x10325476
add rsp, 0x20
pop rbx
ret

Function at 0x1400139c0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov dword [rcx], 5
mov dword [rcx + 4], 5
mov word [rcx + 8], 1
mov qword [rcx + 0x10], 0
mov dword [rcx + 0x18], 0
mov word [rcx + 0x1c], 0
mov dword [rcx + 0x1e], 0
mov word [rcx + 0x22], 0
xor edx, edx
mov dword [rcx + 0xc], 4
mov rbx, rcx
lea ecx, [rdx + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x10]
mov byte [rbx + 0x35], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, LHashValOfNameSys
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, LHashValOfNameSys
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x11]
mov byte [rbx + 0x34], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x12]
mov byte [rbx + 0x30], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x1400152ec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001515c
Function at 0x140025a88
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400a81f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001b85c
xor ebx, ebx
cmp qword [0x1400af2b8], rbx
mov rdi, rax
jne 0x140025b9b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140025c72
lea rdx, [0x140094320]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140025c72
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140094310]
mov rcx, rsi
mov qword [0x1400af2b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400af2c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400af2c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400af2d8], rax
test rax, rax
je 0x140025b92
lea rdx, [0x1400942c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400af2d0], rax
jmp 0x140025ba2
mov rax, qword [0x1400af2d0]
jmp 0x140025ba9
mov rax, qword [0x1400af2d0]
mov r11, qword [0x1400af2d8]
cmp rax, rdi
je 0x140025c10
cmp r11, rdi
je 0x140025c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400af2d8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140025c10
test rax, rax
je 0x140025c10
call rsi
test rax, rax
je 0x140025c0a
lea rcx, [rsp + 0x30]
mov r9d, recvfrom
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140025c0a
test byte [rsp + 0x40], 1
jne 0x140025c10
bts ebp, 0x15
jmp 0x140025c50
mov rcx, qword [0x1400af2c0]
cmp rcx, rdi
je 0x140025c50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140025c50
call rax
mov rbx, rax
test rax, rax
je 0x140025c50
mov rcx, qword [0x1400af2c8]
cmp rcx, rdi
je 0x140025c50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140025c50
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400af2b8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140025c72
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140025c74
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001e390
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140027df7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400a81f0]
jne 0x14001e3aa
rol rcx, 0x10
test cx, 0xffff
jne 0x14001e3a6
repz ret
ror rcx, 0x10
jmp 0x140027d50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400af390]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400af488]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140027dd5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400af390]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140027df7
mov rax, qword [rsp + 0x88]
mov qword [0x1400af488], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400af428], rax
mov rax, qword [0x1400af488]
mov qword [0x1400af300], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400af410], rax
mov dword [0x1400af2f0], 0xc0000409
mov dword [0x1400af2f4], 1
mov rax, qword [0x1400a81f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400a81f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400af388], eax
mov ecx, 1
call fcn.14002586c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140094350]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400af388], 0
jne 0x140027e7e
mov ecx, 1
call fcn.14002586c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400372e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov rbx, r9
mov rsi, r8
mov rax, rdx
mov rdi, rcx
cmp word [rdx], r15w
je 0x140037459
mov qword [r11 - 0x78], r15
mov dword [r11 - 0x80], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14003734f
xor eax, eax
jmp 0x140037494
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 2
mov edx, eax
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
test rax, rax
je 0x140037348
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rbp + 0x38]
mov r8d, r14d
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x30]
mov edx, 1
mov rcx, r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x38]
lea r9, [0x1400922a0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], r15
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140037348
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x28]
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [rsi], r15d
jne 0x14003742b
cmp dword [rbx], r15d
jne 0x14003742b
mov eax, dword [rbp - 0x24]
mov dword [rsi], eax
mov eax, dword [rbp - 0x20]
mov dword [rbx], eax
mov r9d, dword [rbx]
mov r8d, dword [rsi]
mov rcx, qword [rbp - 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rbp - 0x40]
jmp 0x140037460
mov r9, r15
mov qword [rbp - 0x40], r15
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x140037476
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9, qword [rbp - 0x40]
mov rbx, qword [rdi]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
mov qword [rdi + 0xb8], r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
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 0x140037e70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
xor edx, edx
mov rbx, rcx
lea rbp, [0x1400c2c30]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.140015500
xor edx, edx
lea rdi, [0x1400c2c10]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.140015500
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbp
xor edi, edi
mov eax, 1
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_RegisterActiveObject
mov dword [0x1400c2c30], 0x68
mov dword [0x1400c2c6c], eax
mov word [0x1400c2c70], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140037f0c
mov rcx, qword [0x1400c2c10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400387f0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov eax, dword [r8 + 8]
mov rbx, r8
mov r8d, dword [r8]
mov r10d, dword [rbx + 0xc]
mov r11d, dword [rbx + 4]
cmp eax, r8d
setl dil
cmp r10d, r11d
mov r14, r9
setl sil
test dil, dil
je 0x14003883a
mov dword [rbx], eax
mov dword [rbx + 8], r8d
test sil, sil
je 0x140038847
mov dword [rbx + 4], r10d
mov dword [rbx + 0xc], r11d
mov ecx, dword [rcx + 0x1d0]
mov r8, rdx
lea rdx, [rbp + 0x67]
call fcn.1400387a0
mov eax, dword [rbp + 0x6b]
mov r11, qword [rbp + 0x67]
add dword [rbx + 0xc], eax
add dword [rbx + 4], eax
add dword [rbx + 8], r11d
mov r13d, dword [rbx + 8]
mov r12d, dword [rbx + 0xc]
add dword [rbx], r11d
sub r13d, dword [rbx]
sub r12d, dword [rbx + 4]
mov eax, 1
xor ecx, ecx
add r13d, eax
add r12d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, r12d
mov edx, r13d
mov rcx, rax
mov r15, rax
mov qword [rbp + 0x7f], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r15
mov qword [rbp + 0x77], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, qword [rbp + 0x77]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, r12d
mov qword [rbp - 0x19], rax
test sil, sil
je 0x1400388d0
neg ecx
mov eax, r13d
test dil, dil
je 0x1400388da
neg eax
test sil, sil
je 0x1400388e5
mov r8d, dword [rbx + 0xc]
jmp 0x1400388e9
mov r8d, dword [rbx + 4]
test dil, dil
je 0x1400388f3
mov edx, dword [rbx + 8]
jmp 0x1400388f5
mov edx, dword [rbx]
mov rsi, qword [rbp + 0x7f]
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
xor edx, edx
mov r9d, r13d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.dll_StretchBlt]
xor ebx, ebx
mov eax, r12d
neg eax
mov dword [rbp - 0xd], r13d
mov r13, qword [rbp + 0x77]
mov dword [rbp - 9], eax
mov eax, 1
mov dword [rsp + 0x30], ebx
mov word [rbp - 5], ax
mov eax, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov word [rbp - 3], ax
lea rax, [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r15
mov dword [rbp - 0x11], SafeArrayCreateEx
mov dword [rbp - 1], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r11d, dword [rbp + 3]
mov ecx, r11d
mov dword [r14], r11d
call fcn.140014ee8
mov dword [rsp + 0x30], ebx
mov r9d, r12d
mov rdi, rax
lea rax, [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rbp - 0x19]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x1400389ea
mov rax, rdi
jmp 0x1400389f4
mov rcx, rdi
call fcn.140014a90
xor eax, eax
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038a10
Capabilities:
Hash data with crc32

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 r12
mov edi, r9d
mov eax, r8d
mov ebp, r8d
shl eax, 2
mov esi, edx
or r10d, 0xffffffff
imul ebp, r9d
movsxd rbx, eax
add rsi, rcx
shl ebp, 2
add rbx, rcx
mov r11, rcx
mov r9, rcx
shl edi, 2
lea r12, [0x1400a9b70]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r12 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r12 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r12 + rcx*4]
xor r10d, r8d
cmp r11, rsi
jb 0x140038aa9
mov eax, edi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x140038a57
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pxor xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r12
ret
Function at 0x140038fb0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003905c
lea rdx, [0x14009811c]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14003904a
lea rdx, [0x14009b358]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14003904a
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, dword [rbp + 0x1c8]
or edx, dword [rbp + 0x1c0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140039075
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140038ff1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x1d0], bl
jne 0x140039085
mov al, sil
jmp 0x140039142
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x140039142
lea rdx, [rsp + 0x30]
lea rcx, [0x14009b350]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140039135
mov rsi, qword [rbp + 0x1b8]
test byte [rsp + 0x30], 0x10
je 0x14003911f
lea rdx, [0x14009811c]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14003911f
lea rdx, [0x14009b358]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14003911f
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, byte [rbp + 0x1d0]
mov r9d, dword [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1b0]
mov rdx, rsi
mov byte [rsp + 0x20], al
call fcn.140038fb0
test al, al
je 0x140039137
lea rcx, [0x14009b358]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400390ab
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140039150
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov dil, r8b
mov rbx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r12d, r12d
test eax, eax
jne 0x140039198
xor eax, eax
jmp 0x1400392d9
lea r8, [rbp + 0x780]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.1400158c0
lea rcx, [rsp + 0x50]
call fcn.140014a74
mov rsi, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x1400391d3
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x1400391d3
mov word [rsp + rax*2 + 0x4e], r12w
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400391e7
test dil, dil
je 0x140039191
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140039227
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140039191
xor edx, edx
lea rcx, [rbp + 0x160]
lea r8d, [rdx + 0x14]
call fcn.140015500
add si, si
lea rdx, [rsp + 0x50]
mov word [rbp + 0x16a], si
lea rcx, [rbp + 0x170]
add si, 2
mov r8d, 0x104
mov dword [rbp + 0x160], 0xa0000003
mov word [rbp + 0x16c], si
call fcn.1400155ec
movzx r11d, word [rbp + 0x16a]
mov qword [rsp + 0x38], r12
add r11w, 0xc
lea rax, [rbp + 0x9c8]
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], r12d
mov word [rbp + 0x164], r11w
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
test eax, eax
jne 0x1400392ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039219
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x1400393f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x140098688]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x230
pop rbx
ret

Function at 0x140039600
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test eax, eax
je 0x14003961e
cmp eax, r8d
jne 0x14003963a
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.140017784
and dword [rbx + 0x48c], 0
movsxd rdx, dword [rbx + 0x48c]
mov rax, qword [rbx + 0x480]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140039660
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x140039693
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.140016ba4
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400396a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x488]
mov rax, qword [rcx + 0x478]
mov rbx, rcx
mov byte [r8 + rax], dl
mov edx, 1
mov r8d, 0x10000
add dword [rcx + 0x488], edx
cmp dword [rcx + 0x488], r8d
jne 0x1400396ec
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.140016ba4
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400397d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140039801
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140014740
jmp 0x14003980f
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140017784
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.1400177c0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400398e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400bf980], ecx
lea rdx, [0x1400bf984]
mov ecx, r8d
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x270
jl 0x1400398f6
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400c0354], r8d
ret

Function at 0x14003a9d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x14003aa53
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14003aa48
cmp ecx, 0xf
jae 0x14003aa46
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003aa46
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x14009d840]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14003a9fe
jmp 0x14003aa4e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret