joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400194b4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019328

Function at 0x1400194c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140021840
nop
cmp dword [0x1400b0450], 1
je 0x140019460
mov dword [0x1400b044c], 1
mov byte [0x1400b0448], r12b
test ebx, ebx
jne 0x14001944c
mov rcx, qword [0x1400c5950]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140019439
mov rcx, qword [0x1400c5948]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400193d8
call fcn.14001fdb8
cmp qword [rdi], rax
jne 0x1400193d8
jmp 0x1400193be
cmp rdi, rsi
jb 0x140019439
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001fdb8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400c5950]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400c5948]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140019417
cmp r13, rax
je 0x140019437
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400193be
lea rdx, [0x140097128]
lea rcx, [0x140097110]
call fcn.140019208
lea rdx, [0x140097138]
lea rcx, [0x140097130]
call fcn.140019208
nop
test r12d, r12d
je 0x14001946f
mov ecx, 8
call fcn.140021740
test r12d, r12d
jne 0x14001949a
mov dword [0x1400b0450], 1
lea ecx, [r12 + 8]
call fcn.140021740
mov ecx, r15d
call fcn.14001919c
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140019328
Function at 0x14002b6dc
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.14001fdb8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400b0d90], rbx
jne 0x14002b7e2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002b8b7
lea rdx, [0x140099948]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002b8b7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140099938]
mov rcx, rsi
mov qword [0x1400b0d90], 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 [0x1400b0d98], 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 [0x1400b0da0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400b0db0], rax
test rax, rax
je 0x14002b7d9
lea rdx, [0x1400998e8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400b0da8], rax
jmp 0x14002b7e9
mov rax, qword [0x1400b0da8]
jmp 0x14002b7f0
mov rax, qword [0x1400b0da8]
mov r11, qword [0x1400b0db0]
cmp rax, rdi
je 0x14002b858
cmp r11, rdi
je 0x14002b858
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400b0db0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002b858
test rax, rax
je 0x14002b858
call rsi
test rax, rax
je 0x14002b852
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 0x14002b852
test byte [rsp + 0x38], 1
jne 0x14002b858
bts ebp, 0x15
jmp 0x14002b896
mov rcx, qword [0x1400b0d98]
cmp rcx, rdi
je 0x14002b896
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002b896
call rax
mov rbx, rax
test rax, rax
je 0x14002b896
mov rcx, qword [0x1400b0da0]
cmp rcx, rdi
je 0x14002b896
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002b896
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400b0d90]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002b8b7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002b8b9
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 0x14002e8f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400ad258]
jne 0x14002764a
rol rcx, 0x10
test cx, 0xffff
jne 0x140027646
repz ret
ror rcx, 0x10
jmp 0x14002e850
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400b0e70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400b0f68]
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 0x14002e8d5
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, [0x1400b0e70]
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 0x14002e8f7
mov rax, qword [rsp + 0x88]
mov qword [0x1400b0f68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400b0f08], rax
mov rax, qword [0x1400b0f68]
mov qword [0x1400b0de0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400b0ef0], rax
mov dword [0x1400b0dd0], 0xc0000409
mov dword [0x1400b0dd4], 1
mov rax, qword [0x1400ad258]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400ad260]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400b0e68], eax
mov ecx, 1
call fcn.14002b6d4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400999d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b0e68], 0
jne 0x14002e97e
mov ecx, 1
call fcn.14002b6d4
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 0x14003f710
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 0x14003f897
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 0x14003f779
xor eax, eax
jmp 0x14003f8d4
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, [0x1400972b0]
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 0x14003f772
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 0x14003f864
cmp dword [r11], r13d
jne 0x14003f864
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 0x14003f89f
mov r9, r13
mov qword [rsp + 0x40], r13
mov rcx, qword [rsi + 0xb8]
cmp rcx, r13
je 0x14003f8b6
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 0x140040300
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, [0x1400c4630]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.140019a70
xor edx, edx
lea rdi, [0x1400c4610]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.140019a70
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 [0x1400c4630], 0x68
mov dword [0x1400c466c], eax
mov word [0x1400c4670], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x14004039c
mov rcx, qword [0x1400c4610]
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 0x1400407e0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov eax, dword [r8]
mov r14, r8
mov r10, rcx
cmp dword [r8 + 8], eax
jl 0x1400409ba
mov eax, dword [r8 + 0xc]
mov ecx, dword [r8 + 4]
or r15d, 0xffffffff
cmp eax, ecx
lea edi, [r15 + 2]
jge 0x14004082e
mov dword [r8 + 4], eax
mov dword [r8 + 0xc], ecx
mov r15d, edi
mov r9, rdx
mov edx, dword [r10 + 0x1d0]
lea r8, [rsp + 0xd0]
mov rcx, r10
call fcn.140040790
mov r11, qword [rsp + 0xd0]
mov eax, dword [rsp + 0xd4]
add dword [r14 + 8], r11d
add dword [r14 + 0xc], eax
mov ebx, dword [r14 + 8]
mov r12d, dword [r14 + 0xc]
add dword [r14], r11d
add dword [r14 + 4], eax
sub ebx, dword [r14]
sub r12d, dword [r14 + 4]
xor ecx, ecx
add ebx, edi
add r12d, edi
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, r12d
mov edx, ebx
mov rcx, rax
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r13
mov rbp, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [r14 + 4]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ecx
mov ecx, dword [r14]
mov r9d, ebx
mov dword [rsp + 0x30], ecx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov rdi, rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.dll_BitBlt]
mov eax, r12d
imul eax, r15d
mov dword [rsp + 0x58], eax
mov eax, 1
mov word [rsp + 0x5c], ax
xor r15d, r15d
mov eax, SafeArrayAllocDescriptor
mov word [rsp + 0x5e], ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], SafeArrayCreateEx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x60], r15d
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r11d, dword [rsp + 0x64]
mov rax, qword [rsp + 0xd8]
mov rcx, r11
mov dword [rax], r11d
call fcn.140018cc8
mov dword [rsp + 0x30], r15d
mov r9d, r12d
mov r14, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, rdi
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, r15d
je 0x1400409b2
mov rax, r14
jmp 0x1400409bc
mov rcx, r14
call fcn.140018ec8
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400409e0
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, [0x1400aebb0]
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 0x140040a7c
mov eax, edi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x140040a2a
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 0x140040de0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rbp, rdx
lea rdx, [rsp + 0x30]
mov esi, r9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140040e21
xor al, al
jmp 0x140040f67
xor ebx, ebx
lea rdx, [0x14009cf5c]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x140040e76
lea rdx, [0x1400a0230]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x140040e76
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, esi
or edx, dword [rsp + 0x2b0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x140040ea5
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x140040e23
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov sil, byte [rsp + 0x2c0]
cmp sil, bl
jne 0x140040eb3
mov al, 1
jmp 0x140040f67
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140040e1a
lea rdx, [rsp + 0x30]
lea rcx, [0x1400a0228]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140040f5a
test byte [rsp + 0x30], 0x10
je 0x140040f44
lea rdx, [0x14009cf5c]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x140040f44
lea rdx, [0x1400a0230]
lea rcx, [rsp + 0x5c]
call fcn.140019cfc
cmp eax, ebx
je 0x140040f44
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, dword [rsp + 0x2b8]
mov r8d, dword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
mov rdx, rbp
mov byte [rsp + 0x20], sil
call fcn.140040de0
cmp al, bl
je 0x140040f5c
lea rcx, [0x1400a0230]
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 0x140040ed2
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040f80
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 0x140040fc0
xor eax, eax
jmp 0x140041121
lea r8, [rsp + 0x880]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.140019e48
lea rcx, [rsp + 0x50]
call fcn.140019b5c
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14004100c
lea rcx, [rsp + 0x50]
call fcn.140019b5c
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14004100c
lea rcx, [rsp + 0x50]
call fcn.140019b5c
mov word [rsp + rax*2 + 0x4e], si
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x140041020
cmp dil, sil
je 0x140040fb9
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 0x140041060
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140040fb9
xor edx, edx
lea rcx, [rsp + 0x260]
lea r8d, [rdx + 0x14]
call fcn.140019a70
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x260], 0xa0000003
call fcn.140019b5c
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.140019b78
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 0x140041116
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140041052
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 0x140041260
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, [0x14009d4f8]
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 0x140041420
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 0x14004143e
cmp eax, r8d
jne 0x14004145a
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.14001b5b8
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 0x140041480
Capabilities:
Write file on windows

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

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

Function at 0x1400415e0
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 0x140041611
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140019640
jmp 0x14004161f
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14001b5b8
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.14001aa30
cmp eax, ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov r9d, 1
mov dword [0x1400c1460], ecx
lea rdx, [0x1400c1460]
mov r8d, r9d
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
lea rax, [0x1400c1e1c]
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
cmp rdx, rax
mov dword [rdx], ecx
jl 0x140041706
mov dword [reloc.WSOCK32.dll_accept], r9d
mov dword [0x1400c1e34], r9d
ret
Function at 0x140041a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x10030
call fcn.140031e20
sub rsp, rax
mov eax, 0x1f5
mov r12d, 0xffff
mov rbx, rcx
xchg dword [rcx + 0x60], eax
mov qword [rcx + 0x20], r12
mov rcx, r12
call fcn.140018cc8
mov qword [rbx + 0x10], rax
jmp 0x140041b62
cmp dword [rsp + 0x10040], 0
jbe 0x140041b8a
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x10040]
add rcx, rax
cmp qword [rbx + 0x20], rcx
jae 0x140041b2b
mov rcx, qword [rbx + 0x18]
call fcn.140018cc8
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
mov rsi, rax
call fcn.140019640
mov rcx, qword [rbx + 0x10]
call fcn.140018ec8
mov r11d, dword [rsp + 0x10040]
mov rcx, qword [rbx + 0x18]
pxor xmm0, xmm0
add r11, rcx
cvtsi2sd xmm0, r11
jns 0x140041acb
addsd xmm0, qword [0x1400a2c80]
mulsd xmm0, qword [0x1400a2c78]
xor eax, eax
comisd xmm0, xmmword [0x1400a2c70]
jbe 0x140041afe
subsd xmm0, qword [0x1400a2c70]
comisd xmm0, xmmword [0x1400a2c70]
jae 0x140041afe
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov qword [rbx + 0x20], rcx
call fcn.140018cc8
mov r8, qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call fcn.140019640
mov rcx, rsi
call fcn.140018ec8
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x10040]
lea rdx, [rsp + 0x30]
add rcx, qword [rbx + 0x10]
call fcn.140019640
mov r11d, dword [rsp + 0x10040]
mov rax, qword [rbx + 0x18]
add r11, rax
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x18], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10040]
lea rdx, [rsp + 0x30]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140041a54
lea r11, [rsp + 0x10030]
mov eax, 0x1f6
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov ecx, eax
xchg dword [rbx + 0x60], ecx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret

Function at 0x140041c20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x58], 0
mov rbx, rcx
jne 0x140041c57
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x140041bb0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret