joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140150580
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.140002100
nop
mov r8d, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140006a60
mov qword [rsp + 0x98], rax
lea rdx, [0x14023b3bc]
mov rcx, qword [rsp + 0x98]
call fcn.140006d50
mov byte [rsp + 0x60], al
lea rcx, [rsp + 0x68]
call fcn.140001490
movzx r11d, byte [rsp + 0x60]
test r11d, r11d
je 0x14015064a
lea rcx, [rsp + 0x50]
call fcn.140001a40
mov r8d, eax
sub r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140006b20
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call fcn.140002db0
nop
lea rcx, [rsp + 0x70]
call fcn.140001490
lea rcx, [rsp + 0x20]
call fcn.1400767b0
nop
lea rcx, [rsp + 0x50]
call fcn.14000f8f0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400768b4
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x20]
call fcn.1400763e8
cmp dword [rsp + 0x5c], 0
je 0x1401506aa
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x20]
call fcn.14007680c
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov eax, dword [rsp + 0x78]
jmp 0x1401507aa
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x50]
call fcn.1400068a0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1401506e9
mov dword [rsp + 0x7c], 1
lea rcx, [rsp + 0x20]
call fcn.14007680c
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov eax, dword [rsp + 0x7c]
jmp 0x1401507aa
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140006b20
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.140002db0
nop
lea rcx, [rsp + 0x80]
call fcn.140001490
lea rcx, [rsp + 0x50]
call fcn.14000f8f0
mov rcx, rax
call fcn.140150580
test eax, eax
je 0x140150783
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x88], eax
lea rcx, [rsp + 0x20]
call fcn.14007680c
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov eax, dword [rsp + 0x88]
jmp 0x1401507aa
mov dword [rsp + 0x8c], 0
lea rcx, [rsp + 0x20]
call fcn.14007680c
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov eax, dword [rsp + 0x8c]
add rsp, 0xc8
ret
Function at 0x140160290
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x4c8
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0xffffffffffffffff
jne 0x1401602da
jmp 0x1401603d6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x278], eax
cmp dword [rsp + 0x278], 0
je 0x1401603c8
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0
je 0x1401603aa
lea r9, [rsp + 0x4a0]
mov r8d, 8
lea rdx, [rsp + 0x4a8]
mov rcx, qword [rsp + 0x280]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14016039c
mov r9d, 0x208
lea r8, [rsp + 0x290]
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x280]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x14016039c
movzx ecx, word [rsp + 0x290]
movzx eax, word [rsp + 0x4d0]
cmp ecx, eax
jne 0x14016039c
xor edx, edx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call sub.KERNEL32.dll_Process32NextW
mov dword [rsp + 0x278], eax
jmp 0x1401602f3
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x4c8
ret
Function at 0x140166da0
Capabilities:
Get disk size

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x708
mov qword [rsp + 0x6e0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x710]
add rcx, 0x410
call fcn.140014f10
mov edx, 0x53e
mov rcx, qword [rsp + 0x710]
call fcn.14007898c
mov edx, dword [rsp + 0x718]
mov rcx, rax
call fcn.140078c80
cmp dword [rsp + 0x718], 0
jne 0x140166e05
mov eax, 1
jmp 0x1401670c5
lea rcx, [rsp + 0x20]
call fcn.14000d040
nop
mov rax, qword [rsp + 0x710]
mov eax, dword [rax + 0x210]
mov dword [rsp + 0x1b8], eax
lea rcx, [rsp + 0x20]
call fcn.1401d5470
lea rcx, [rsp + 0x360]
call fcn.14000d040
nop
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x6c8], rax
lea rdx, [0x14023f008]
mov rcx, qword [rsp + 0x6c8]
call fcn.140002100
mov qword [rsp + 0x6e8], rax
mov rdx, qword [rsp + 0x6e8]
lea rcx, [rsp + 0x360]
call fcn.1401d6df0
test eax, eax
je 0x140167071
lea rdx, [rsp + 0x500]
lea r8, [0x14023e7a4]
lea rcx, [rsp + 0x6d0]
call fcn.1400010b0
mov qword [rsp + 0x6f0], rax
mov rcx, qword [rsp + 0x6f0]
call fcn.14000f8f0
xor r9d, r9d
lea r8, [rsp + 0x6a8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea rcx, [rsp + 0x6d0]
call fcn.140001490
xor edx, edx
mov rax, qword [rsp + 0x6a8]
mov ecx, 0x100000
div rcx
mov dword [rsp + 0x6a0], eax
movd xmm0, dword [rsp + 0x6a0]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140263800]
cvttsd2si rax, xmm0
mov dword [rsp + 0x6a0], eax
mov dword [rsp + 0x6b0], 0
jmp 0x140166f32
mov eax, dword [rsp + 0x6b0]
add eax, 1
mov dword [rsp + 0x6b0], eax
cmp dword [rsp + 0x6b0], 4
jae 0x140167019
lea rcx, [rsp + 0x6b8]
call fcn.140002de0
nop
mov eax, dword [rsp + 0x6a0]
cdq
mov ecx, 3
idiv ecx
imul eax, dword [rsp + 0x6b0]
xor edx, edx
mov ecx, pe_nt_image_headers64
div ecx
mov r8d, eax
imul r8d, r8d, 0x100
lea rdx, [0x14023f010]
lea rcx, [rsp + 0x6b8]
call fcn.140002c70
cmp dword [rsp + 0x6b0], 0
jbe 0x140166fc3
lea rdx, [0x14023e7b4]
lea rcx, [rsp + 0x6b8]
call fcn.140006d50
movzx eax, al
test eax, eax
je 0x140166fc3
lea rcx, [rsp + 0x6b8]
call fcn.140001490
jmp 0x140166f21
lea rcx, [rsp + 0x6b8]
call fcn.14000f8f0
mov rcx, qword [rsp + 0x710]
add rcx, 0x410
mov r8, rax
mov edx, dword [rsp + 0x6b0]
call fcn.140014b00
cmp dword [rsp + 0x6a0], 0
jg 0x140167007
lea rcx, [rsp + 0x6b8]
call fcn.140001490
jmp 0x140167019
lea rcx, [rsp + 0x6b8]
call fcn.140001490
jmp 0x140166f21
lea rcx, [rsp + 0x1d8]
call fcn.140006eb0
movzx eax, al
test eax, eax
je 0x14016703e
lea rax, [0x14023e7dc]
mov qword [rsp + 0x6f8], rax
jmp 0x140167053
lea rcx, [rsp + 0x1d8]
call fcn.14000f8f0
mov qword [rsp + 0x6f8], rax
mov rcx, qword [rsp + 0x710]
add rcx, 0x610
mov rdx, qword [rsp + 0x6f8]
call fcn.1400020d0
jmp 0x14016708c
mov rcx, qword [rsp + 0x710]
add rcx, 0x610
lea rdx, [0x14023e81c]
call fcn.1400020d0
xor edx, edx
mov rcx, qword [rsp + 0x710]
call fcn.14007c754
mov dword [rsp + 0x6d8], 1
lea rcx, [rsp + 0x360]
call fcn.140014ec0
nop
lea rcx, [rsp + 0x20]
call fcn.140014ec0
mov eax, dword [rsp + 0x6d8]
add rsp, 0x708
ret
Function at 0x140168a50
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x70]
call fcn.1400f4fe0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x24], 0x43
jmp 0x140168a88
movzx eax, byte [rsp + 0x24]
add al, 1
mov byte [rsp + 0x24], al
movsx eax, byte [rsp + 0x24]
cmp eax, 0x5a
jg 0x140168b8c
movsx ecx, byte [rsp + 0x24]
sub ecx, 0x41
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rsp + 0x20]
and eax, ecx
test eax, eax
jne 0x140168ab3
jmp 0x140168a7d
lea rcx, [rsp + 0x28]
call fcn.140002de0
nop
movsx r8d, byte [rsp + 0x24]
lea rdx, [0x14023f0c8]
lea rcx, [rsp + 0x28]
call fcn.140002c70
lea r8, [0x14023e844]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140168b11
mov dword [rsp + 0x50], 1
jmp 0x140168b19
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x38]
call fcn.140001490
movzx r11d, byte [rsp + 0x30]
test r11d, r11d
je 0x140168b46
lea rcx, [rsp + 0x28]
call fcn.140001490
jmp 0x140168a7d
lea rcx, [rsp + 0x28]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x140168b7d
lea rcx, [rsp + 0x28]
call fcn.14000f8f0
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
mov rdx, rax
call fcn.140014fc0
nop
lea rcx, [rsp + 0x28]
call fcn.140001490
jmp 0x140168a7d
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
call fcn.140014ff0
test eax, eax
je 0x140168bb4
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
xor edx, edx
call fcn.140014ad0
mov eax, 1
add rsp, 0x68
ret
Function at 0x14016b050
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4b0
mov qword [rsp + 0x498], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
call fcn.14000cf20
lea r8, [0x14023f360]
mov rdx, qword [rsp + 0x4c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x480], rax
cmp qword [rsp + 0x480], 0
jne 0x14016b0b7
xor eax, eax
jmp 0x14016b2e8
call fcn.14000cf20
mov rdx, qword [rsp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
call fcn.14000cf20
mov rdx, qword [rsp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
jne 0x14016b10a
xor eax, eax
jmp 0x14016b2e8
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14016b160
lea r8, [0x14023f368]
lea rdx, str._sTemp
lea rcx, [rsp + 0x40]
call fcn.1400a97a4
lea rcx, [rsp + 0x40]
call fcn.140004bf0
lea rcx, [rsp + 0x40]
call fcn.1400a8944
movzx eax, word [rsp + rax*2 + 0x3e]
cmp eax, 0x5c
jne 0x14016b188
lea rcx, [rsp + 0x40]
call fcn.1400a8944
mov rdx, rax
xor eax, eax
mov word [rsp + rdx*2 + 0x3e], ax
lea rcx, [rsp + 0x30]
call fcn.140002de0
nop
lea r8, [rsp + 0x40]
lea rdx, str._sexpand_resource.zip
lea rcx, [rsp + 0x30]
call fcn.140002c70
lea rcx, [rsp + 0x30]
call fcn.14000f8f0
lea rdx, [0x14023f3b0]
mov rcx, rax
call fcn.1400aa368
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14016b1f0
mov dword [rsp + 0x488], 0
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x488]
jmp 0x14016b2e8
mov edx, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rsp + 0x250]
call fcn.1400acb98
mov rcx, qword [rsp + 0x28]
call fcn.1400aa608
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.1401892b0
nop
lea rcx, [rsp + 0x30]
call fcn.14000f8f0
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140189060
movzx eax, al
test eax, eax
je 0x14016b2ab
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x260]
call fcn.140189200
lea rcx, [rsp + 0x260]
call fcn.140188130
lea rcx, [rsp + 0x30]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48c], 1
lea rcx, [rsp + 0x260]
call fcn.1401881a0
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x48c]
jmp 0x14016b2e8
lea rcx, [rsp + 0x30]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x490], 0
lea rcx, [rsp + 0x260]
call fcn.1401881a0
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x490]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x4b0
pop rdi
ret
Function at 0x140172010
Capabilities:
Manipulate boot configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov edx, 1
mov rcx, qword [rsp + 0xe0]
call fcn.14007c754
lea rcx, [rsp + 0x20]
call fcn.140001000
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, [0x140240070]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.1400010b0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14000f8f0
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x210
call fcn.14000f8f0
mov r9, rbx
mov r8, rax
lea rdx, [0x140240088]
lea rcx, [0x1402400a0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x28]
call fcn.140001490
nop
lea rcx, [rsp + 0x20]
call fcn.140001490
lea rcx, [rsp + 0x30]
call fcn.140001000
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea r8, [0x1402400c0]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000f8f0
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x218
call fcn.14000f8f0
mov r9, rbx
mov r8, rax
lea rdx, [0x1402400d8]
lea rcx, [0x1402400f0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x38]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
lea rcx, [rsp + 0x40]
call fcn.140001000
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea r8, [0x140240110]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400010b0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.14000f8f0
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x220
call fcn.14000f8f0
mov r9, rbx
mov r8, rax
lea rdx, [0x140240128]
lea rcx, [0x140240140]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x48]
call fcn.140001490
nop
lea rcx, [rsp + 0x40]
call fcn.140001490
lea rcx, [rsp + 0x50]
call fcn.140001000
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r8, [0x140240160]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.1400010b0
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.14000f8f0
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x228
call fcn.14000f8f0
mov r9, rbx
mov r8, rax
lea rdx, [0x140240178]
lea rcx, [0x140240190]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x58]
call fcn.140001490
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov rcx, qword [rsp + 0xe0]
call fcn.1400818d4
add rsp, 0xd0
pop rbx
ret
Function at 0x140173580
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14007c754
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x140172f80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x1401738f0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400f4fe0
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x140173a21
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x140173a21
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
and eax, 0xffffff
or eax, 0x1000000
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000e700
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400118c0
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140014b00
lea rcx, [rsp + 0x30]
call fcn.140002ea0
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
and eax, 0xffffff
or eax, 0xff000000
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000e700
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400118c0
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140014b00
lea rcx, [rsp + 0x38]
call fcn.140002ea0
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x140173918
cmp dword [rsp + 0x20], 0
jle 0x140173a4e
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
xor edx, edx
call fcn.140014ad0
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
xor edx, edx
call fcn.140014ad0
mov eax, 1
add rsp, 0x58
ret
Function at 0x1401761e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x20], 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140176224
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140176224
mov byte [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x25], al
mov rcx, qword [rsp + 0x40]
call fcn.140001490
mov al, byte [rsp + 0x25]
add rsp, 0x38
ret
Function at 0x140183cf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x140183d35
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400aa608
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.140006eb0
movzx eax, al
test eax, eax
jne 0x140183de5
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.14000f8f0
mov rcx, qword [rsp + 0x90]
add rcx, 0x170
lea r8, [0x140242394]
mov rdx, rax
call fcn.1400aa374
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x140183ddb
cmp dword [rsp + 0x24], 0
jne 0x140183ddb
mov eax, 0xfeff
mov word [rsp + 0x28], ax
mov r9, qword [rsp + 0x90]
mov r9, qword [r9 + 0x170]
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.1400acb98
jmp 0x140183de5
mov eax, 0x22
jmp 0x140183f16
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 1
jne 0x140183e40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x38]
call fcn.140001430
mov qword [rsp + 0x60], rax
lea r8, [fcn.140180c60]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.14017d750
mov dword [rsp + 0x20], eax
jmp 0x140183ed9
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 4
jne 0x140183e98
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x48]
call fcn.140001430
mov qword [rsp + 0x68], rax
lea r8, [fcn.140180c60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call fcn.14017d2c0
mov dword [rsp + 0x20], eax
jmp 0x140183ed9
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x58]
call fcn.140001430
mov qword [rsp + 0x70], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call fcn.140180c60
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x140183f12
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400aa608
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x140187f50
Capabilities:
Timestomp file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140187fa6
xor al, al
jmp 0x1401880c6
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
jne 0x140187fcf
mov dword [rsp + 0x78], 1
jmp 0x140187fd7
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140188029
mov eax, dword [rsp + 0xa8]
shr eax, 0x10
lea r8, [rsp + 0x40]
movzx edx, word [rsp + 0xa8]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x140188018
mov dword [rsp + 0x7c], 1
jmp 0x140188020
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14018806b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x140188054
mov dword [rsp + 0x80], 1
jmp 0x14018805f
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1401880b7
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
jne 0x1401880a0
mov dword [rsp + 0x84], 1
jmp 0x1401880ab
mov dword [rsp + 0x84], 0
movzx eax, byte [rsp + 0x84]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [rsp + 0x50]
add rsp, 0x98
ret

Function at 0x1401881d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
mov rcx, qword [rsp + 0x2b8]
call fcn.1400a87c0
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0xffffffff
jne 0x140188230
xor al, al
jmp 0x1401882a3
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x14018825a
xor al, al
jmp 0x1401882a3
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rsp + 0x44]
mov qword [rsp + 0x20], r11
movzx eax, byte [rsp + 0x2c0]
test eax, eax
je 0x14018828e
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov rdx, qword [rsp + 0x2b8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x2a8
ret
Function at 0x1401883e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x50], 0
je 0x140188400
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140188407
xor al, al
jmp 0x1401884b5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x140188441
mov eax, dword [rsp + 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x140188433
mov dword [rsp + 0x34], 1
jmp 0x14018843b
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x1401884b5
mov rcx, qword [rsp + 0x50]
call fcn.1400ac4a0
mov qword [rsp + 0x28], rax
mov dx, VarDateFromDisp
mov rcx, qword [rsp + 0x28]
call fcn.140001460
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401884b3
xor ecx, ecx
mov rax, qword [rsp + 0x20]
mov word [rax], cx
mov rcx, qword [rsp + 0x28]
call fcn.1401883e0
movzx eax, al
test eax, eax
jne 0x140188494
mov rcx, qword [rsp + 0x28]
call fcn.1400a8e60
xor al, al
jmp 0x1401884b5
mov rcx, qword [rsp + 0x28]
call fcn.1400a8e60
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401884b3
xor al, al
jmp 0x1401884b5
mov al, 1
add rsp, 0x48
ret