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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x90], 0xfffffffffffffffe
cmp qword [rsp + 0xb8], 0
jne 0x180034445
xor eax, eax
jmp 0x18003466a
mov qword [rsp + 0x40], 0xffffffffffffffff
cmp dword [rsp + 0xc0], 0
je 0x1800345cd
lea rdx, [rsp + 0x48]
lea rcx, [0x1800a0478]
call fcn.180038e70
jmp 0x180034481
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180038a20
lea rdx, [rsp + 0x80]
lea rcx, [0x1800a0478]
call fcn.180022350
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18001e830
movzx eax, al
test eax, eax
je 0x1800344de
lea rcx, [rsp + 0x48]
call fcn.180038a00
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
call fcn.180002c80
test eax, eax
jne 0x1800344dc
lea rcx, [rsp + 0x48]
call fcn.180038a00
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
jmp 0x1800344de
jmp 0x18003446f
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x18003456f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x18003456f
lea rcx, [rsp + 0x58]
call fcn.180034680
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call fcn.1800017e0
lea rdx, [rsp + 0x58]
lea rcx, [0x1800a0478]
call fcn.180038920
nop
lea rcx, [rsp + 0x58]
call fcn.180011c50
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1800345c8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x68], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xb8]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, ecx
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180034668
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x180034668
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x6c], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xb8]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6c]
mov r8d, ecx
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xa0
pop rdi
ret
Function at 0x1800346a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rcx, [rsp + 0x20]
call fcn.180001700
nop
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.1800017e0
lea rcx, [rsp + 0x20]
call fcn.18000b500
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x20]
call fcn.18001d3d0
movzx eax, ax
cmp eax, 0x5c
je 0x1800346fe
lea rdx, [0x18006b84c]
lea rcx, [rsp + 0x20]
call fcn.180002c50
mov dword [rsp + 0x28], 0
mov r8d, dword [rsp + 0x28]
lea rdx, [0x18006c99c]
lea rcx, [rsp + 0x20]
call fcn.1800036f0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jle 0x1800347a3
lea rcx, [rsp + 0x30]
call fcn.180001700
nop
mov r8d, dword [rsp + 0x28]
add r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.18000b7a0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180002bf0
nop
lea rcx, [rsp + 0x38]
call fcn.1800017c0
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
call fcn.18000b4f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rsp + 0x30]
call fcn.1800017c0
jmp 0x180034706
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x20]
call fcn.1800017c0
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x180035d10
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x328
mov qword [rsp + 0x2f0], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x318], rax
mov dword [rsp + 0x2e8], 0
lea rcx, [rsp + 0x28]
call fcn.180001700
nop
lea rcx, [rsp + 0x290]
call fcn.18001e330
nop
lea rcx, [rsp + 0x20]
call fcn.180001700
nop
xor r8d, r8d
lea rdx, str.6a0e18da81acaf56eabd81be180cb2aa6a21259245286b79
lea rcx, [rsp + 0x2d0]
call fcn.180041660
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x300], rax
mov rdx, qword [rsp + 0x300]
lea rcx, [rsp + 0x20]
call fcn.180002bf0
nop
lea rcx, [rsp + 0x2d0]
call fcn.1800017c0
lea rcx, [rsp + 0x20]
call fcn.18000b4f0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180035e4b
movzx eax, word [rsp + 0x6c]
cmp eax, 0x2e
jne 0x180035deb
jmp 0x180035e2c
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x180035e2c
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x2d8]
call fcn.180001760
nop
lea rdx, [rsp + 0x2d8]
lea rcx, [rsp + 0x290]
call fcn.180038810
nop
lea rcx, [rsp + 0x2d8]
call fcn.1800017c0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180035ddd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x290]
call fcn.1800387a0
cmp rax, 1
jbe 0x180035f4b
lea rcx, [rsp + 0x290]
call fcn.1800387a0
sub rax, 1
mov edx, eax
xor ecx, ecx
call fcn.18000a630
mov dword [rsp + 0x2c8], eax
lea rcx, [rsp + 0x2c0]
call fcn.180001700
nop
movsxd rdx, dword [rsp + 0x2c8]
lea rcx, [rsp + 0x290]
call fcn.1800387c0
mov rdx, rax
lea rcx, [rsp + 0x2c0]
call fcn.180002bf0
lea rcx, [rsp + 0x2c0]
call fcn.180038760
movzx eax, al
test eax, eax
je 0x180035ede
lea rdx, str.addins
lea rcx, [rsp + 0x2c0]
call fcn.1800017e0
xor r8d, r8d
lea rdx, str.6a0e18da81acaf56eabd81be180cb2aafb25f9fe6cf93b3b
lea rcx, [rsp + 0x2e0]
call fcn.180041660
mov qword [rsp + 0x308], rax
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x310], rax
mov rcx, qword [rsp + 0x310]
call fcn.18000b4f0
mov r8, qword [rsp + 0x2c0]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1800053c0
nop
lea rcx, [rsp + 0x2e0]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1800017c0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x330]
call fcn.180001730
mov eax, dword [rsp + 0x2e8]
or eax, 1
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x20]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x290]
call fcn.18001db40
nop
lea rcx, [rsp + 0x28]
call fcn.1800017c0
mov rax, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x328
ret
Function at 0x180035fc0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xb0], 0
je 0x180036165
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test rcx, rcx
jbe 0x180036165
cmp qword [rsp + 0xb8], 0
je 0x180036165
cmp dword [rsp + 0xc0], 0
jbe 0x180036165
mov eax, dword [rsp + 0xc0]
add rax, 4
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x40]
call fcn.180011eb0
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
call fcn.180001760
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x88]
lea rdx, [0x180072b38]
lea rcx, [rsp + 0x70]
call fcn.180004d70
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.18000b4f0
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x68]
call fcn.1800017c0
cmp qword [rsp + 0x38], 0
je 0x180036165
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x180036165
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0xc0]
mov dword [rcx], eax
mov r9d, dword [rsp + 0xc0]
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
add rcx, 4
mov r8, qword [rsp + 0xb8]
call fcn.18004f95c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
add rsp, 0xa0
pop rdi
ret
Function at 0x180036180
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xa0], 0
je 0x180036332
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test rcx, rcx
jbe 0x180036332
cmp qword [rsp + 0xb0], 0
je 0x180036332
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.180001760
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x78]
lea rdx, [0x180072b48]
lea rcx, [rsp + 0x60]
call fcn.180004d70
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.18000b4f0
mov r8, rax
xor edx, edx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x58]
call fcn.1800017c0
cmp qword [rsp + 0x38], 0
je 0x180036332
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180036327
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0xb0], 0
je 0x1800362e4
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x54]
mov dword [rcx], eax
cmp qword [rsp + 0xa8], 0
je 0x18003631c
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jb 0x18003631c
mov r9d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa8]
call fcn.18004f95c
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
add rsp, 0x90
pop rdi
ret
Function at 0x18003bfb0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x18003bfc3
jmp 0x18003c003
lea rcx, [0x180070e60]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180070e48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18003bff8
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x20]
jmp 0x18003c003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
add rsp, 0x38
ret

Function at 0x18003c060
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0x1000
jae 0x18003c082
xor eax, eax
jmp 0x18003c0fc
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
je 0x18003c0a0
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18003c0a4
xor eax, eax
jmp 0x18003c0fc
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x18003c0ca
xor eax, eax
jmp 0x18003c0fc
mov rax, qword [rsp + 8]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x18003c0e4
mov dword [rsp + 0x10], 1
jmp 0x18003c0ec
mov dword [rsp + 0x10], 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x10]
mov dword [rcx], eax
mov eax, 1
add rsp, 0x28
ret
Function at 0x18003c980
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x18003ca63
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x58]
call fcn.18004f654
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003ca58
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x50]
call fcn.18003c530
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.18004f750
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x18003d130
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
lea rdx, [0x180070af8]
lea rcx, [rsp + 0x48]
call fcn.180001760
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.180008e90
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000b4f0
mov r8, rax
xor edx, edx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x48]
call fcn.1800017c0
cmp qword [rsp + 0x30], 0
je 0x18003d22a
mov qword [rsp + 0x20], 0xc
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18003d21f
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x40]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
add rsp, 0x88
pop rdi
pop rsi
ret

Function at 0x18003d240
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x40], eax
lea rdx, [0x180070b08]
lea rcx, [rsp + 0x50]
call fcn.180001760
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.180008e90
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.18000b4f0
mov r8, rax
xor edx, edx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x50]
call fcn.1800017c0
cmp qword [rsp + 0x30], 0
je 0x18003d371
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003d366
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsi, rax
mov rdi, qword [rsp + 0xa8]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [rsp + 0x3c], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x3c]
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x18003d380
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x298
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x270], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x18003d472
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x18003d464
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call fcn.18000e4b0
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0
je 0x18003d456
mov dword [rsp + 0x280], 0
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x18003d448
cmp dword [rsp + 0x280], 0
je 0x18003d448
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x20], 0
je 0x18003d45f
jmp 0x18003d464
jmp 0x18003d3d7
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x298
ret
Function at 0x18003d490
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4a8
mov qword [rsp + 0x490], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x498], rax
mov dword [rsp + 0x478], 0
call fcn.18003d380
mov dword [rsp + 0x470], eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x434
rep stosb byte [rdi], al
mov edx, dword [rsp + 0x470]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x474], eax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x18003d64e
cmp qword [rsp + 0x20], 0
je 0x18003d64e
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x18003d643
lea rcx, [rsp + 0x480]
call fcn.180001700
nop
lea rcx, [rsp + 0x488]
call fcn.180001700
nop
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x480]
call fcn.1800017e0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x488]
call fcn.1800017e0
lea rcx, [rsp + 0x480]
call fcn.18001d350
xor r8d, r8d
lea rdx, str.syswow64
lea rcx, [rsp + 0x480]
call fcn.1800036f0
test eax, eax
jle 0x18003d611
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x488]
call fcn.180002c80
test eax, eax
jne 0x18003d611
mov dword [rsp + 0x478], 1
lea rsi, [rsp + 0x30]
mov rdi, qword [rsp + 0x4c8]
mov ecx, 0x438
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x488]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x480]
call fcn.1800017c0
jmp 0x18003d643
lea rcx, [rsp + 0x488]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x480]
call fcn.1800017c0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x18003d551
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x478]
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x4a8
pop rdi
pop rsi
ret
Function at 0x18003d990
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x18003da80
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x58]
call fcn.18004f654
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003da75
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
call fcn.18003d670
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.18004f750
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret

Function at 0x18003dba0
Capabilities:
Enumerate threads

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x50
mov edx, dword [rsp + 0x60]
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x18003dbc8
xor eax, eax
jmp 0x18003dc3e
mov dword [rsp + 0x20], 0x1c
lea rdi, [rsp + 0x24]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x18003dc00
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18003dc3e
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x2c], eax
jne 0x18003dc1c
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
jmp 0x18003dc2f
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18003dc08
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x18003e2c0
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x470], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x434
rep stosb byte [rdi], al
mov dword [rsp + 0x474], 0
jmp 0x18003e32c
mov eax, dword [rsp + 0x474]
add eax, 1
mov dword [rsp + 0x474], eax
mov eax, dword [rsp + 0x4c8]
cmp dword [rsp + 0x474], eax
jae 0x18003e483
mov dword [rsp + 0x478], 0
lea rdx, [rsp + 0x478]
mov rcx, qword [rsp + 0x4b8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x18003e377
cmp dword [rsp + 0x478], 0x103
je 0x18003e377
jmp 0x18003e483
mov qword [rsp + 0x480], 0
mov edx, dword [rsp + 0x4b0]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x480], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x488], eax
cmp qword [rsp + 0x480], 0xffffffffffffffff
je 0x18003e465
cmp qword [rsp + 0x480], 0
je 0x18003e465
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x18003e457
lea rdx, [0x180070c78]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x18003e441
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x18003e441
mov rcx, qword [rsp + 0x4d8]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x4e0]
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov dword [rsp + 0x470], 1
jmp 0x18003e457
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x18003e3e5
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x470], 0
je 0x18003e471
jmp 0x18003e483
mov ecx, dword [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18003e31b
mov eax, dword [rsp + 0x470]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x4a0
pop rdi
ret