joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003950
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140003ad0
mov qword [rsp + 0x218], rsi
xor esi, esi
lea r9, [rsp + 0x40]
lea rdx, str.______________________________________________________________________r_n
lea r8d, [rsi + 0x47]
mov qword [rsp + 0x220], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x50]
movzx edx, word [rsp + 0x48]
movzx r11d, word [rsp + 0x54]
movzx eax, word [rsp + 0x52]
movzx r9d, word [rsp + 0x4e]
movzx r8d, word [rsp + 0x4a]
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._ld__ld__ld__02ld:_02ld:_02ld
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe0]
mov edi, eax
mov eax, 0x104
cmp edi, eax
cmova edi, eax
mov r8d, edi
call sub.MSVCR80.dll_memcpy
test edi, edi
je 0x140003a6c
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0xe0]
mov r8d, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea r8d, [rsi + 2]
lea rdx, [0x14000e08c]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, str._r_n
mov r8d, 0x47
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, str._r_n_r_n
mov r8d, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x220]
mov rsi, qword [rsp + 0x218]
mov qword [rbx + 0x50], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x200
pop rbx
ret
Function at 0x140003b80
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
movzx r13d, r9w
mov qword [rbp], 0
mov r14d, r8d
mov r15d, edx
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x140003cb9
cmp word [rax + 0x10], 2
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
jne 0x140003c7a
cmp word [rax + 0x12], 4
jne 0x140003c7a
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003c7a
nop
nop
nop
mov esi, dword [rcx]
mov edx, gethostbyaddr
lea ecx, [rdx - 0x2f]
call qword [sym.imp.MSVCR80.dll_calloc]
test rax, rax
mov rbx, rax
je 0x140003c60
mov edx, 0x10
lea ecx, [rdx - 0xf]
call qword [sym.imp.MSVCR80.dll_calloc]
test rax, rax
jne 0x140003c38
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_free]
xor ebx, ebx
jmp 0x140003c60
mov word [rax], 2
mov word [rax + 2], r13w
mov dword [rax + 4], esi
mov dword [rbx + 4], 2
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r14d
mov qword [rbx + shutdown], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x140003cb2
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x140003c00
mov r8, qword [r12]
mov rcx, qword [rsp + 0x70]
mov r9d, 0x400
lea edx, [r9 + 1]
call qword [sym.imp.MSVCR80.dll_strncpy_s]
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 8
jmp 0x140003c95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x140003cd0
sub eax, 1
je 0x140003cf6
sub eax, 1
je 0x140003ce3
mov eax, 0x2af9
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afb
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afa
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140004690
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1400132ac], 0
lea rax, [0x140004040]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1400043f0]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140003fe0]
mov qword [rsp + 0x48], rax
jne 0x14000486c
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140004862
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x290], rsi
call qword [sym.imp.MSVCR80.dll_strcpy_s]
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call qword [sym.imp.MSVCR80.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140004786
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400047e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call qword [sym.imp.MSVCR80.dll_strcpy_s]
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call qword [sym.imp.MSVCR80.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000485a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400047e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000485a
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop
nop
nop
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x140004849
add rdi, 1
add rbx, 0x10
cmp rdi, 3
jl 0x140004800
mov rax, qword [rsp + 0x28]
mov qword [0x140013130], rax
mov rax, qword [rsp + 0x38]
mov qword [0x140013140], rax
mov rax, qword [rsp + 0x48]
mov qword [0x140013150], rax
jmp 0x140004852
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1400132ac], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000be00
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1400069b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x520
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x550], rbx
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov r13, r9
mov rbp, r8
mov r12, rdx
mov rdi, rcx
mov qword [rsp + 0x30], r8
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov rdx, qword [r8]
movsxd rsi, dword [rdx - 0x10]
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [rsp + 0x570], ebx
je 0x140006b00
mov rdx, qword [0x1400132a0]
test rdx, rdx
je 0x140006a62
mov r8, qword [rbp]
lea rdx, str.deobfuscating:_m_strBqual___s
lea rcx, [rsp + 0x110]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x110]
lea edx, [rbx + 0xd]
mov rcx, qword [0x1400132a0]
call fcn.140003410
mov rdx, qword [0x1400132a0]
test esi, esi
jle 0x140006a85
nop
nop
nop
movzx eax, byte [rdi + rbx + 0x7c]
xor byte [rsp + rbx + 0x80], al
add rbx, 1
cmp rbx, rsi
jl 0x140006a70
test rdx, rdx
je 0x140006b00
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC80.DLL_Ordinal_310]
nop
mov r8d, 0x20
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.MFC80.DLL_Ordinal_4036]
mov r9, qword [rax]
mov r8d, 0x10
lea rdx, str.deobfuscating:_sizeof_GUID__d_GUID___s
lea rcx, [rsp + 0x110]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC80.DLL_Ordinal_589]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC80.DLL_Ordinal_589]
lea r8, [rsp + 0x110]
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [0x1400132a0]
call fcn.140003410
lea rbx, [rsp + 0x50]
lea rdi, [rsp + 0x80]
mov esi, shutdown
mov r8d, 3
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll_strtoul]
mov byte [rbx], al
add rdi, 2
add rbx, 1
sub rsi, 1
jne 0x140006b12
lea rax, [rsp + 0x50]
mov rdx, qword [rax]
mov qword [r13], rdx
mov rdx, qword [rax + 8]
mov qword [r13 + 8], rdx
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.MFC80.DLL_Ordinal_310]
nop
mov rcx, rbp
call qword [sym.imp.MFC80.DLL_Ordinal_589]
mov rax, r12
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.14000be00
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006be0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4f0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, r9
mov r13, r8
mov r12, rdx
mov rdi, rcx
mov qword [rsp + 0x28], r8
mov r14, qword [rsp + 0x550]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov rdx, qword [r8]
movsxd rbp, dword [rdx - 0x10]
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [rsp + 0x558], ebx
je 0x140006d57
mov rdx, qword [0x1400132a0]
test rdx, rdx
je 0x140006c92
mov r8, qword [r13]
lea rdx, str.deobfuscating:_m_strGtrid___s
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0xe0]
lea edx, [rbx + 0xd]
mov rcx, qword [0x1400132a0]
call fcn.140003410
mov rdx, qword [0x1400132a0]
test ebp, ebp
jle 0x140006cb2
nop
nop
nop
movzx eax, byte [rdi + rbx + 0x7c]
xor byte [rsp + rbx + 0x50], al
add rbx, 1
cmp rbx, rbp
jl 0x140006ca0
test rdx, rdx
je 0x140006cea
lea r8, [rsp + 0x50]
lea rdx, str.deobfuscating:_mygtrid___s
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0xe0]
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [0x1400132a0]
call fcn.140003410
mov r8d, 9
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCR80.dll_strtoul]
mov dword [r14], eax
mov ebx, 8
cmp qword [0x1400132a0], 0
je 0x140006d57
mov r9d, eax
lea r8, [rsp + 0x38]
lea rdx, str.deobfuscating:_mystr___s__fmtid___d
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0xe0]
lea edx, [rbx + 5]
mov rcx, qword [0x1400132a0]
call fcn.140003410
movsxd rax, ebx
lea rbp, [rsp + rax + 0x50]
mov rbx, rbp
mov edi, shutdown
nop
nop
nop
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCR80.dll_strtoul]
mov byte [rsi], al
add rbx, 2
add rsi, 1
sub rdi, 1
jne 0x140006d70
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.MFC80.DLL_Ordinal_310]
nop
mov rcx, r13
call qword [sym.imp.MFC80.DLL_Ordinal_589]
mov rax, r12
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x4f0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c290
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x140013e40], rbx
je 0x14000c2d6
cmp rax, rbx
jne 0x14000c2c9
mov edi, 1
jmp 0x14000c2d6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000c2b0
mov eax, dword [0x140013e3c]
cmp eax, 1
jne 0x14000c2eb
lea ecx, [rax + 0x1e]
call fcn.140182000
jmp 0x14000c32a
mov eax, dword [0x140013e3c]
test eax, eax
jne 0x14000c320
mov dword [0x140013e3c], 1
lea rdx, [0x14000d718]
lea rcx, [0x14000d700]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x14000c32a
mov eax, 0xff
jmp 0x14000c40b
mov dword [0x1400138ac], 1
mov eax, dword [0x140013e3c]
cmp eax, 1
jne 0x14000c352
lea rdx, [0x14000d6f8]
lea rcx, [0x14000d6e0]
call sub.MSVCR80.dll__initterm
mov dword [0x140013e3c], 2
test edi, edi
jne 0x14000c35d
xchg qword [0x140013e40], rsi
cmp qword [0x140013e48], 0
je 0x14000c386
lea rcx, [0x140013e48]
call fcn.14000c840
test eax, eax
je 0x14000c386
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140013e48]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x140013890]
mov qword [rcx], rax
mov r8, qword [0x140013890]
mov rdx, qword [0x140013898]
mov ecx, dword [0x140013888]
call fcn.140005f80
mov dword [0x1400138a8], eax
cmp dword [0x14001388c], 0
jne 0x14000c3c7
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x1400138ac], 0
jne 0x14000c3dc
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x1400138a8]
jmp 0x14000c40b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.14000c8c0
add rsp, 0x28
jmp 0x14000c290
Function at 0x14000c5f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140013240]
jne 0x14000be1a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000be16
repz ret
ror rcx, 0x10
jmp 0x14000c550
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140013950]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140013a48]
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 0x14000c5d5
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, [0x140013950]
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 0x14000c5f7
mov rax, qword [rsp + 0x88]
mov qword [0x140013a48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400139e8], rax
mov rax, qword [0x140013a48]
mov qword [0x1400138c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400139d0], rax
mov dword [0x1400138b0], 0xc0000409
mov dword [0x1400138b4], 1
mov rax, qword [0x140013240]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140013248]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140013948], eax
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000f938]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140013948], 0
jne 0x14000c67e
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
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 0x1400013f1
Capabilities:
Enumerate files on windows
Get common file path
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
call fcn.1400010e6
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000145a
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140001462
lea rcx, [0x14003c4c0]
lea rdx, str.Error_getting_Desktop_folder_path.
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov eax, 1
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, str..
lea rsi, [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400014f2
mov rdi, rax
xor esi, esi
lea rbx, [rsp + 0x30]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [rsp + 0x30]
and eax, 0x10
cmp eax, 1
adc esi, 0
mov rcx, rdi
mov rdx, rbx
call r14
test eax, eax
jne 0x14000149f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [0x14003c5f0]
lea rdx, str.Number_of_files_in_the_Desktop_folder:
call fcn.1400015a8
mov rcx, rax
mov edx, esi
call fcn.1400017e6
mov rcx, rax
call fcn.1400017b2
test esi, esi
jne 0x1400014f2
xor ecx, ecx
call fcn.14000de80
lea rsi, [0x14003c5f0]
lea rdx, str.___Executing_NtAllocateVirtualMemory...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
call fcn.1400012b5
mov rdi, rax
lea rdx, str._t___Allocated_at:_0x
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
mov rdx, rdi
call fcn.140001974
mov rcx, rax
call fcn.1400017b2
lea rbx, [rsp + 0x2c]
and dword [rbx], 0
lea rdx, str.___Executing_NtWriteVirtualMemory...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
mov rdx, rdi
mov r8, rbx
call fcn.140001317
lea rdx, str.___Executing_NtCreateThreadEx...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, rdi
call fcn.14000138d
lea rcx, str.pause
call fcn.14000de8c
int3

Function at 0x140005980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400059cc
xor al, al
add rsp, 0x28
ret
Function at 0x1400217f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140028f10
sub rsp, rax
mov rax, qword [0x14003b4f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a47c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021847
mov rax, rbp
jmp 0x14002194f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3d090]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022918
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3d090]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002194b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002194b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022918
test rax, rax
js 0x14002194b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002194b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002193d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002193d
cmp byte [rcx], 0xd
jne 0x140021923
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021932
cmp byte [rcx + 1], 0xa
jne 0x140021932
inc rcx
jmp 0x140021932
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3be40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021905
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002194f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140028ee0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140021b70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140021b86
mov al, 1
jmp 0x140021be6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140021b97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021be4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d870
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021be4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021be4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021be4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140021be6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021cb8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003d090]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140021d0f
cmp word [rdx], r13w
jne 0x140021d0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021d14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021e39
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021e5a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021d4d
mov rdx, r9
mov word [rbx], cx
jmp 0x140021d74
cmp r9, r8
jae 0x140021d84
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140021d2e
jmp 0x140021e39
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021e2e
cmp dword [rsp + 0x80], esi
je 0x140021e2e
lea r8, [0x14003d090]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021e06
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021dd6
mov word [rbx], r13w
jmp 0x140021e36
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140021de3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021e36
cmp word [rsp + 0x70], r13w
jne 0x140021e13
cmp rbx, r14
je 0x140021dd0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022920
cmp word [rsp + 0x70], r13w
je 0x140021e39
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003d090]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021e33
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021e39