joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d2a8
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001d331
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x14001d2f3
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x14001d341
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x14001d309
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x14001d341
cmp dword [rax + 0x84], 0xe
ja 0x14001d31d
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x14001d341
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x14001d341
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x140000000]
mov ecx, 1
call fcn.140020ca8
test eax, eax
jne 0x14001d371
cmp dword [0x1400b4558], 1
jne 0x14001d35d
call fcn.14001ef68
mov ecx, 0x1c
call fcn.14001ed40
mov ecx, 0xff
call fcn.140016fe0
call fcn.14001d88c
test eax, eax
jne 0x14001d39c
cmp dword [0x1400b4558], 1
jne 0x14001d388
call fcn.14001ef68
mov ecx, reloc.WSOCK32.dll_recv
call fcn.14001ed40
mov ecx, 0xff
call fcn.140016fe0
call fcn.14001f200
nop
call fcn.140021c60
test eax, eax
jns 0x14001d3b5
mov ecx, 0x1b
call fcn.140016f74
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x1400c8ac8], rax
call fcn.1400294d8
mov qword [0x1400b4550], rax
call fcn.1400293e8
test eax, eax
jns 0x14001d3e0
mov ecx, 8
call fcn.140016f74
call fcn.140029118
test eax, eax
jns 0x14001d3f3
mov ecx, 9
call fcn.140016f74
mov ecx, 1
call fcn.140017080
test eax, eax
je 0x14001d408
mov ecx, eax
call fcn.140016f74
call fcn.1400290bc
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.1400120d0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x14001d43f
mov ecx, eax
call fcn.1400172bc
call fcn.1400172d4
jmp 0x14001d460
mov eax, edi
jmp 0x14001d469
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.14002956c
add rsp, 0x28
jmp 0x14001d2a8
Function at 0x14002a090
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001d560
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400b4e68], rbx
jne 0x14002a196
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002a26b
lea rdx, [0x14009a980]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a26b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14009a970]
mov rcx, rsi
mov qword [0x1400b4e68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400b4e70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400b4e78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400b4e88], rax
test rax, rax
je 0x14002a18d
lea rdx, [0x14009a920]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400b4e80], rax
jmp 0x14002a19d
mov rax, qword [0x1400b4e80]
jmp 0x14002a1a4
mov rax, qword [0x1400b4e80]
mov r11, qword [0x1400b4e88]
cmp rax, rdi
je 0x14002a20c
cmp r11, rdi
je 0x14002a20c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400b4e88]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002a20c
test rax, rax
je 0x14002a20c
call rsi
test rax, rax
je 0x14002a206
lea rcx, [rsp + 0x88]
mov r9d, recvfrom
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002a206
test byte [rsp + 0x38], 1
jne 0x14002a20c
bts ebp, 0x15
jmp 0x14002a24a
mov rcx, qword [0x1400b4e70]
cmp rcx, rdi
je 0x14002a24a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a24a
call rax
mov rbx, rax
test rax, rax
je 0x14002a24a
mov rcx, qword [0x1400b4e78]
cmp rcx, rdi
je 0x14002a24a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a24a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400b4e68]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a26b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002a26d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14002dc9b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400aeaa0]
jne 0x140028d4a
rol rcx, 0x10
test cx, 0xffff
jne 0x140028d46
repz ret
ror rcx, 0x10
jmp 0x14002dbf4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400b4f40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400b5038]
mov qword [rsp + 0x58], r11
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 0x14002dc79
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, [0x1400b4f40]
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 0x14002dc9b
mov rax, qword [rsp + 0x88]
mov qword [0x1400b5038], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400b4fd8], rax
mov rax, qword [0x1400b5038]
mov qword [0x1400b4eb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400b4fc0], rax
mov dword [0x1400b4ea0], 0xc0000409
mov dword [0x1400b4ea4], 1
mov rax, qword [0x1400aeaa0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400aeaa8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400b4f38], eax
mov ecx, 1
call fcn.14002a014
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14009aa20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b4f38], 0
jne 0x14002dd22
mov ecx, 1
call fcn.14002a014
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 0x14003d040
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x80
xor r13d, r13d
mov rbp, r9
mov rax, r8
mov rsi, rdx
mov qword [r11 - 0x50], r13
cmp word [r8], r13w
je 0x14003d1c7
mov qword [r11 - 0x68], r13
mov dword [r11 - 0x70], r13d
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 0x14003d0a9
xor eax, eax
jmp 0x14003d204
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 2
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0xb0]
mov r8d, ebx
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x48]
lea r9, [0x1400982e0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x14003d0a2
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
mov edx, SafeArrayAllocDescriptor
call qword [sym.imp.GDI32.dll_GetObjectW]
mov r11, qword [rsp + 0xc0]
cmp dword [rbp], r13d
jne 0x14003d194
cmp dword [r11], r13d
jne 0x14003d194
mov eax, dword [rsp + 0x5c]
mov dword [rbp], eax
mov eax, dword [rsp + 0x60]
mov dword [r11], eax
mov r9d, dword [r11]
mov r8d, dword [rbp]
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rsp + 0x40]
jmp 0x14003d1cf
mov r9, r13
mov qword [rsp + 0x40], r13
mov rcx, qword [rsi + 0xb8]
cmp rcx, r13
je 0x14003d1e6
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9, qword [rsp + 0x40]
mov rbx, qword [rsi]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
mov qword [rsi + 0xb8], r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14003dc30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rbx, rdx
xor edx, edx
lea rbp, [0x1400c87c0]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.140017520
xor edx, edx
lea rdi, [0x1400c87a0]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.140017520
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], SafeArrayDestroyDescriptor
mov dword [0x1400c87c0], 0x68
mov dword [0x1400c87fc], eax
mov word [0x1400c8800], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x14003dccc
mov rcx, qword [0x1400c87a0]
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 0x14003e2e0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
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 r13, r9
setl sil
test dil, dil
je 0x14003e325
mov dword [rbx], eax
mov dword [rbx + 8], r8d
test sil, sil
je 0x14003e332
mov dword [rbx + 4], r10d
mov dword [rbx + 0xc], r11d
mov r9, rdx
mov edx, dword [rcx + 0x1d0]
lea r8, [rsp + 0xd0]
call fcn.14003e290
mov eax, dword [rsp + 0xd4]
mov r11, qword [rsp + 0xd0]
add dword [rbx + 0xc], eax
add dword [rbx + 4], eax
add dword [rbx + 8], r11d
mov r12d, dword [rbx + 8]
mov ebp, dword [rbx + 0xc]
add dword [rbx], r11d
sub r12d, dword [rbx]
sub ebp, dword [rbx + 4]
mov eax, 1
xor ecx, ecx
add r12d, eax
add ebp, eax
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, ebp
mov edx, r12d
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r15
mov qword [rsp + 0xe0], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
mov r14, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, ebp
mov qword [rsp + 0xe8], rax
test sil, sil
je 0x14003e3cb
neg ecx
mov eax, r12d
test dil, dil
je 0x14003e3d5
neg eax
test sil, sil
je 0x14003e3e0
mov r8d, dword [rbx + 0xc]
jmp 0x14003e3e4
mov r8d, dword [rbx + 4]
test dil, dil
je 0x14003e3ee
mov edx, dword [rbx + 8]
jmp 0x14003e3f0
mov edx, dword [rbx]
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
mov r9d, r12d
xor edx, edx
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], ebp
call qword [sym.imp.GDI32.dll_StretchBlt]
mov rsi, qword [rsp + 0xe0]
mov eax, ebp
mov dword [rsp + 0x64], r12d
neg eax
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x68], eax
mov eax, 1
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x6c], ax
mov eax, SafeArrayAllocDescriptor
xor r8d, r8d
mov word [rsp + 0x6e], ax
lea rax, [rsp + 0x60]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, r14
mov dword [rsp + 0x60], SafeArrayCreateEx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x70], r12d
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r11d, dword [rsp + 0x74]
mov rcx, r11
mov dword [r13], r11d
call fcn.140016ed8
mov dword [rsp + 0x30], r12d
mov r9d, ebp
mov rdi, rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rsp + 0xe8]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, r12d
je 0x14003e4f6
mov rax, rdi
jmp 0x14003e500
mov rcx, rdi
call fcn.140016a60
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003e520
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 ecx, dword [rsp + 0x30]
mov eax, r9d
mov ebp, r9d
shl eax, 2
mov esi, r8d
mov edi, ecx
imul ebp, ecx
movsxd rbx, eax
or r10d, 0xffffffff
shl ebp, 2
add rsi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
lea r12, [0x1400afbc0]
shl edi, 2
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 0x14003e5bc
mov eax, edi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14003e56a
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 0x14003ead0
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 rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003eb75
lea rdx, [0x14009e2cc]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14003eb63
lea rdx, [0x1400a14c0]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14003eb63
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, ebp
or edx, dword [rsp + 0x2c0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x14003eb93
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14003eb0d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
cmp bpl, bl
jne 0x14003eba3
mov al, sil
jmp 0x14003ec5e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14003ec5e
lea rdx, [rsp + 0x30]
lea rcx, [0x1400a14b8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003ec51
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14003ec3b
lea rdx, [0x14009e2cc]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14003ec3b
lea rdx, [0x1400a14c0]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14003ec3b
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8d, dword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.14003ead0
cmp al, bl
je 0x14003ec53
lea rcx, [0x1400a14c0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14003ebc9
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003ec70
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa90
mov dil, r9b
mov rbx, r8
mov rcx, rdx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x880]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor esi, esi
cmp eax, esi
jne 0x14003ecb0
xor eax, eax
jmp 0x14003ee11
lea r8, [rsp + 0x880]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.1400178dc
lea rcx, [rsp + 0x50]
call fcn.140016a44
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14003ecfc
lea rcx, [rsp + 0x50]
call fcn.140016a44
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14003ecfc
lea rcx, [rsp + 0x50]
call fcn.140016a44
mov word [rsp + rax*2 + 0x4e], si
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x14003ed10
cmp dil, sil
je 0x14003eca9
mov qword [rsp + 0x30], rsi
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 0x14003ed50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003eca9
xor edx, edx
lea rcx, [rsp + 0x260]
lea r8d, [rdx + 0x14]
call fcn.140017520
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x260], 0xa0000003
call fcn.140016a44
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x270]
add ax, ax
mov r8d, 0x104
mov word [rsp + 0x26a], ax
add ax, 2
mov word [rsp + 0x26c], ax
call fcn.14001760c
movzx r11d, word [rsp + 0x26a]
add r11w, 0xc
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
lea r8, [rsp + 0x260]
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], esi
mov word [rsp + 0x264], r11w
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
cmp eax, esi
jne 0x14003ee06
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003ed42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14003ef50
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x14009e838]
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 0x14003f110
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 0x14003f12e
cmp eax, r8d
jne 0x14003f14a
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.140019a28
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 0x14003f170
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x14003f1a3
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.140018ce4
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003f1b0
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 0x14003f1fc
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.140018ce4
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003f2d0
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 0x14003f301
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140016710
jmp 0x14003f30f
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140019a28
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, [0x14009e820]
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.140019a60
cmp eax, ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov r9d, 1
mov dword [0x1400c5530], ecx
lea rdx, [0x1400c5530]
mov r8d, r9d
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
lea rax, [0x1400c5eec]
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
cmp rdx, rax
mov dword [rdx], ecx
jl 0x14003f3f6
mov dword [reloc.WSOCK32.dll_accept], r9d
mov dword [0x1400c5f04], r9d
ret

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

Disassembly:
test ecx, ecx
js 0x140040613
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x140040608
cmp ecx, 0xf
jae 0x140040606
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140040606
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 [0x1400a3ca0]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x1400405be
jmp 0x14004060e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret