joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140152b30
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.140002050
nop
mov r8d, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140006ae0
mov qword [rsp + 0x98], rax
lea rdx, [0x14024bd7c]
mov rcx, qword [rsp + 0x98]
call fcn.140006dd0
mov byte [rsp + 0x60], al
lea rcx, [rsp + 0x68]
call fcn.140007060
movzx r11d, byte [rsp + 0x60]
test r11d, r11d
je 0x140152bfa
lea rcx, [rsp + 0x50]
call fcn.1400019a0
mov r8d, eax
sub r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140006ba0
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.140002ce0
nop
lea rcx, [rsp + 0x70]
call fcn.140007060
lea rcx, [rsp + 0x20]
call fcn.1400777f0
nop
lea rcx, [rsp + 0x50]
call fcn.140050200
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400778f4
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x20]
call fcn.140077428
cmp dword [rsp + 0x5c], 0
je 0x140152c5a
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x20]
call fcn.14007784c
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
mov eax, dword [rsp + 0x78]
jmp 0x140152d5a
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x50]
call fcn.140006920
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140152c99
mov dword [rsp + 0x7c], 1
lea rcx, [rsp + 0x20]
call fcn.14007784c
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
mov eax, dword [rsp + 0x7c]
jmp 0x140152d5a
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140006ba0
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.140002ce0
nop
lea rcx, [rsp + 0x80]
call fcn.140007060
lea rcx, [rsp + 0x50]
call fcn.140050200
mov rcx, rax
call fcn.140152b30
test eax, eax
je 0x140152d33
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.14007784c
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
mov eax, dword [rsp + 0x88]
jmp 0x140152d5a
mov dword [rsp + 0x8c], 0
lea rcx, [rsp + 0x20]
call fcn.14007784c
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
mov eax, dword [rsp + 0x8c]
add rsp, 0xc8
ret
Function at 0x140164540
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x4c8
mov rax, qword [0x1402bd5c0]
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 0x14016458a
jmp 0x140164686
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 0x140164678
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 0x14016465a
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 0x14016464c
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 0x14016464c
movzx ecx, word [rsp + 0x290]
movzx eax, word [rsp + 0x4d0]
cmp ecx, eax
jne 0x14016464c
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 0x1401645a3
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x4c8
ret
Function at 0x14016b050
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.1400161e0
mov edx, 0x53e
mov rcx, qword [rsp + 0x710]
call fcn.1400799cc
mov edx, dword [rsp + 0x718]
mov rcx, rax
call fcn.140079cc0
cmp dword [rsp + 0x718], 0
jne 0x14016b0b5
mov eax, 1
jmp 0x14016b375
lea rcx, [rsp + 0x20]
call fcn.14000dfa0
nop
mov rax, qword [rsp + 0x710]
mov eax, dword [rax + 0x210]
mov dword [rsp + 0x1b8], eax
lea rcx, [rsp + 0x20]
call fcn.1401e4240
lea rcx, [rsp + 0x360]
call fcn.14000dfa0
nop
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x6c8], rax
lea rdx, [0x140250218]
mov rcx, qword [rsp + 0x6c8]
call fcn.140002050
mov qword [rsp + 0x6e8], rax
mov rdx, qword [rsp + 0x6e8]
lea rcx, [rsp + 0x360]
call fcn.1401e5bd0
test eax, eax
je 0x14016b321
lea rdx, [rsp + 0x500]
lea r8, [0x14024f6e4]
lea rcx, [rsp + 0x6d0]
call fcn.1400010b0
mov qword [rsp + 0x6f0], rax
mov rcx, qword [rsp + 0x6f0]
call fcn.140050200
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.140007060
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 [0x140275290]
cvttsd2si rax, xmm0
mov dword [rsp + 0x6a0], eax
mov dword [rsp + 0x6b0], 0
jmp 0x14016b1e2
mov eax, dword [rsp + 0x6b0]
add eax, 1
mov dword [rsp + 0x6b0], eax
cmp dword [rsp + 0x6b0], 4
jae 0x14016b2c9
lea rcx, [rsp + 0x6b8]
call fcn.140002d10
nop
mov eax, dword [rsp + 0x6a0]
cdq
mov ecx, 3
idiv ecx
imul eax, dword [rsp + 0x6b0]
xor edx, edx
mov ecx, 0x100
div ecx
mov r8d, eax
imul r8d, r8d, 0x100
lea rdx, [0x140250220]
lea rcx, [rsp + 0x6b8]
call fcn.140002ba0
cmp dword [rsp + 0x6b0], 0
jbe 0x14016b273
lea rdx, [0x14024f73c]
lea rcx, [rsp + 0x6b8]
call fcn.140006dd0
movzx eax, al
test eax, eax
je 0x14016b273
lea rcx, [rsp + 0x6b8]
call fcn.140007060
jmp 0x14016b1d1
lea rcx, [rsp + 0x6b8]
call fcn.140050200
mov rcx, qword [rsp + 0x710]
add rcx, 0x410
mov r8, rax
mov edx, dword [rsp + 0x6b0]
call fcn.140015df0
cmp dword [rsp + 0x6a0], 0
jg 0x14016b2b7
lea rcx, [rsp + 0x6b8]
call fcn.140007060
jmp 0x14016b2c9
lea rcx, [rsp + 0x6b8]
call fcn.140007060
jmp 0x14016b1d1
lea rcx, [rsp + 0x1d8]
call fcn.140006ea0
movzx eax, al
test eax, eax
je 0x14016b2ee
lea rax, [0x14024f7dc]
mov qword [rsp + 0x6f8], rax
jmp 0x14016b303
lea rcx, [rsp + 0x1d8]
call fcn.140050200
mov qword [rsp + 0x6f8], rax
mov rcx, qword [rsp + 0x710]
add rcx, 0x610
mov rdx, qword [rsp + 0x6f8]
call fcn.140002020
jmp 0x14016b33c
mov rcx, qword [rsp + 0x710]
add rcx, 0x610
lea rdx, [0x14024f83c]
call fcn.140002020
xor edx, edx
mov rcx, qword [rsp + 0x710]
call fcn.14007d790
mov dword [rsp + 0x6d8], 1
lea rcx, [rsp + 0x360]
call fcn.140005e30
nop
lea rcx, [rsp + 0x20]
call fcn.140005e30
mov eax, dword [rsp + 0x6d8]
add rsp, 0x708
ret
Function at 0x14016cce0
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.1400f6860
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x24], 0x43
jmp 0x14016cd18
movzx eax, byte [rsp + 0x24]
add al, 1
mov byte [rsp + 0x24], al
movsx eax, byte [rsp + 0x24]
cmp eax, 0x5a
jg 0x14016ce1c
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 0x14016cd43
jmp 0x14016cd0d
lea rcx, [rsp + 0x28]
call fcn.140002d10
nop
movsx r8d, byte [rsp + 0x24]
lea rdx, [0x1402502d8]
lea rcx, [rsp + 0x28]
call fcn.140002ba0
lea r8, [0x14024f89c]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14016cda1
mov dword [rsp + 0x50], 1
jmp 0x14016cda9
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x38]
call fcn.140007060
movzx r11d, byte [rsp + 0x30]
test r11d, r11d
je 0x14016cdd6
lea rcx, [rsp + 0x28]
call fcn.140007060
jmp 0x14016cd0d
lea rcx, [rsp + 0x28]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x14016ce0d
lea rcx, [rsp + 0x28]
call fcn.140050200
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
mov rdx, rax
call fcn.140016290
nop
lea rcx, [rsp + 0x28]
call fcn.140007060
jmp 0x14016cd0d
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
call fcn.1400162c0
test eax, eax
je 0x14016ce44
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
xor edx, edx
call fcn.140015dc0
mov eax, 1
add rsp, 0x68
ret
Function at 0x14016f870
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 [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
call fcn.14000dda0
lea r8, [0x140250608]
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 0x14016f8d7
xor eax, eax
jmp 0x14016fb08
call fcn.14000dda0
mov rdx, qword [rsp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
call fcn.14000dda0
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 0x14016f92a
xor eax, eax
jmp 0x14016fb08
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 0x14016f980
lea r8, [0x140250610]
lea rdx, str._sTemp
lea rcx, [rsp + 0x40]
call fcn.1400aa834
lea rcx, [rsp + 0x40]
call fcn.140004b40
lea rcx, [rsp + 0x40]
call fcn.1400a99d4
movzx eax, word [rsp + rax*2 + 0x3e]
cmp eax, 0x5c
jne 0x14016f9a8
lea rcx, [rsp + 0x40]
call fcn.1400a99d4
mov rdx, rax
xor eax, eax
mov word [rsp + rdx*2 + 0x3e], ax
lea rcx, [rsp + 0x30]
call fcn.140002d10
nop
lea r8, [rsp + 0x40]
lea rdx, str._sexpand_resource.zip
lea rcx, [rsp + 0x30]
call fcn.140002ba0
lea rcx, [rsp + 0x30]
call fcn.140050200
lea rdx, [0x140250658]
mov rcx, rax
call fcn.1400ab5cc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14016fa10
mov dword [rsp + 0x488], 0
lea rcx, [rsp + 0x30]
call fcn.140007060
mov eax, dword [rsp + 0x488]
jmp 0x14016fb08
mov edx, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rsp + 0x250]
call fcn.1400ade24
mov rcx, qword [rsp + 0x28]
call fcn.1400ab86c
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.14018dce0
nop
lea rcx, [rsp + 0x30]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.14018da90
movzx eax, al
test eax, eax
je 0x14016facb
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x260]
call fcn.14018dc30
lea rcx, [rsp + 0x260]
call fcn.14018cb60
lea rcx, [rsp + 0x30]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48c], 1
lea rcx, [rsp + 0x260]
call fcn.14018cbd0
nop
lea rcx, [rsp + 0x30]
call fcn.140007060
mov eax, dword [rsp + 0x48c]
jmp 0x14016fb08
lea rcx, [rsp + 0x30]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x490], 0
lea rcx, [rsp + 0x260]
call fcn.14018cbd0
nop
lea rcx, [rsp + 0x30]
call fcn.140007060
mov eax, dword [rsp + 0x490]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x4b0
pop rdi
ret
Function at 0x140176a60
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.14007d790
lea rcx, [rsp + 0x20]
call fcn.140001000
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, [0x1402514c0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.1400010b0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140050200
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x210
call fcn.140050200
mov r9, rbx
mov r8, rax
lea rdx, [0x1402514d8]
lea rcx, [0x1402514f0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x28]
call fcn.140007060
nop
lea rcx, [rsp + 0x20]
call fcn.140007060
lea rcx, [rsp + 0x30]
call fcn.140001000
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea r8, [0x140251510]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140050200
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x218
call fcn.140050200
mov r9, rbx
mov r8, rax
lea rdx, str.Read_RGB
lea rcx, [0x140251540]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x38]
call fcn.140007060
nop
lea rcx, [rsp + 0x30]
call fcn.140007060
lea rcx, [rsp + 0x40]
call fcn.140001000
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea r8, [0x140251560]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400010b0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140050200
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x220
call fcn.140050200
mov r9, rbx
mov r8, rax
lea rdx, [0x140251578]
lea rcx, [0x140251590]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x48]
call fcn.140007060
nop
lea rcx, [rsp + 0x40]
call fcn.140007060
lea rcx, [rsp + 0x50]
call fcn.140001000
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r8, [0x1402515b0]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.1400010b0
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140050200
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x228
call fcn.140050200
mov r9, rbx
mov r8, rax
lea rdx, [0x1402515c8]
lea rcx, [0x1402515e0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x58]
call fcn.140007060
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
mov rcx, qword [rsp + 0xe0]
call fcn.140082910
add rsp, 0xd0
pop rbx
ret
Function at 0x140177fd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14007d790
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x1401779d0]
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 0x140178340
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400f6860
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x140178471
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x140178471
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.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000f540
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14000f5d0
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140015df0
lea rcx, [rsp + 0x30]
call fcn.140002dd0
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.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000f540
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000f5d0
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140015df0
lea rcx, [rsp + 0x38]
call fcn.140002dd0
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x140178368
cmp dword [rsp + 0x20], 0
jle 0x14017849e
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
xor edx, edx
call fcn.140015dc0
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
xor edx, edx
call fcn.140015dc0
mov eax, 1
add rsp, 0x58
ret
Function at 0x14017ac30
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.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14017ac74
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14017ac74
mov byte [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x25], al
mov rcx, qword [rsp + 0x40]
call fcn.140007060
mov al, byte [rsp + 0x25]
add rsp, 0x38
ret
Function at 0x140188720
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 0x140188765
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400ab86c
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.140006ea0
movzx eax, al
test eax, eax
jne 0x140188815
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.140050200
mov rcx, qword [rsp + 0x90]
add rcx, 0x170
lea r8, [0x140253804]
mov rdx, rax
call fcn.1400ab5d8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x14018880b
cmp dword [rsp + 0x24], 0
jne 0x14018880b
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.1400ade24
jmp 0x140188815
mov eax, 0x22
jmp 0x140188946
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 1
jne 0x140188870
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.140185690]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140182190
mov dword [rsp + 0x20], eax
jmp 0x140188909
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 4
jne 0x1401888c8
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.140185690]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call fcn.140181d00
mov dword [rsp + 0x20], eax
jmp 0x140188909
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.140185690
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x140188942
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400ab86c
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x14018c980
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 0x14018c9d6
xor al, al
jmp 0x14018caf6
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 0x14018c9ff
mov dword [rsp + 0x78], 1
jmp 0x14018ca07
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14018ca59
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 0x14018ca48
mov dword [rsp + 0x7c], 1
jmp 0x14018ca50
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14018ca9b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x14018ca84
mov dword [rsp + 0x80], 1
jmp 0x14018ca8f
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14018cae7
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 0x14018cad0
mov dword [rsp + 0x84], 1
jmp 0x14018cadb
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 0x14018cc00
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 [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
mov rcx, qword [rsp + 0x2b8]
call fcn.1400a9850
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0xffffffff
jne 0x14018cc60
xor al, al
jmp 0x14018ccd3
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 0x14018cc8a
xor al, al
jmp 0x14018ccd3
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 0x14018ccbe
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.1400a9820
add rsp, 0x2a8
ret
Function at 0x14018ce10
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 0x14018ce30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14018ce37
xor al, al
jmp 0x14018cee5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14018ce71
mov eax, dword [rsp + 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x14018ce63
mov dword [rsp + 0x34], 1
jmp 0x14018ce6b
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x14018cee5
mov rcx, qword [rsp + 0x50]
call fcn.1400ad72c
mov qword [rsp + 0x28], rax
mov dx, VarDateFromDisp
mov rcx, qword [rsp + 0x28]
call fcn.14000b150
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018cee3
xor ecx, ecx
mov rax, qword [rsp + 0x20]
mov word [rax], cx
mov rcx, qword [rsp + 0x28]
call fcn.14018ce10
movzx eax, al
test eax, eax
jne 0x14018cec4
mov rcx, qword [rsp + 0x28]
call fcn.1400a9ef0
xor al, al
jmp 0x14018cee5
mov rcx, qword [rsp + 0x28]
call fcn.1400a9ef0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14018cee3
xor al, al
jmp 0x14018cee5
mov al, 1
add rsp, 0x48
ret