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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r13, rdx
mov edx, r8d
mov edi, r9d
mov r14d, r8d
mov rbx, rcx
xor ebp, ebp
call fcn.140058124
call fcn.14005a454
and dword [rbx + 0x320], ebp
cmp edi, 2
lea r12d, [rbp + 1]
jne 0x14005c190
mov rax, qword [rbx + 0x368]
mov dword [rbx + 0x320], r12d
or rsi, 0xffffffffffffffff
mov dword [rax + 0x14], 0x8000
mov rax, qword [rbx + 0x368]
lea rdx, [0x140076a00]
mov dword [rax + 0x10], r12d
mov rcx, qword [rbx + 0x368]
or r8d, esi
call fcn.140061678
jmp 0x14005c1fa
cmp word [r13], bp
je 0x14005c1a3
xor edx, edx
mov rcx, r13
call fcn.140062fe4
jmp 0x14005c1ae
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x14005c363
test edi, edi
jne 0x14005c1fa
cmp dword [rbx + 0x40], ebp
je 0x14005c1fa
and dword [rsp + 0x78], ebp
and qword [rsp + 0x20], rbp
cmp dword [rbx + 0x44], ebp
lea r9, [rsp + 0x78]
mov rcx, rax
je 0x14005c1e7
lea r8d, [rdi + 3]
lea rdx, [0x140077d60]
jmp 0x14005c1f4
mov r8d, 2
lea rdx, [0x140077d64]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, r12d
call fcn.140063184
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14005c024
cmp dword [rsp + 0x80], 0
mov rcx, qword [rbx + 0x328]
je 0x14005c2b1
mov r12d, 0x100c
mov r9d, 2
or r8, 0xffffffffffffffff
mov edx, r12d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
test eax, eax
js 0x14005c337
lea rdx, [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call fcn.14005a2b4
test eax, eax
je 0x14005c294
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call qword [rax + 0xf0]
test eax, eax
je 0x14005c294
mov rax, qword [rbx]
mov r8, qword [rsp + 0x60]
mov r9d, r14d
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x108]
test eax, eax
je 0x14005c335
mov rcx, qword [rbx + 0x328]
movsxd r8, edi
mov r9d, 2
mov edx, r12d
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
jmp 0x14005c241
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
test eax, eax
mov r12, rax
jle 0x14005c337
lea rdx, [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call fcn.14005a2b4
test eax, eax
je 0x14005c32c
cmp dword [rbx + 0x390], 0
mov edx, edi
mov rcx, rbx
je 0x14005c2f4
call fcn.140058934
jmp 0x14005c2f9
call fcn.140059d84
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call qword [rax + 0xf0]
test eax, eax
je 0x14005c32c
mov rax, qword [rbx]
mov r8, qword [rsp + 0x60]
mov r9d, r14d
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x108]
test eax, eax
je 0x14005c335
add edi, ebp
cmp edi, r12d
jge 0x14005c337
jmp 0x14005c2cb
xor ebp, ebp
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14005a6f4
cmp word [r13], 0
je 0x14005c356
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14008af78]
call qword [sym.imp.USER32.dll_SetCursor]
mov rbx, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14005c680
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2040
call fcn.1400751b0
sub rsp, rax
and word [rsp + 0x30], 0
mov ebx, r8d
mov rdi, rcx
mov rsi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
xor edx, edx
call sub.msvcrt.dll_memset
lea rbp, [0x14008e1f0]
lea r9, [rsp + 0x30]
lea r8, [0x140076a00]
lea rcx, [0x14008e400]
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14005c6fc
test ebx, ebx
jne 0x14005c6fc
xor eax, eax
jmp 0x14005c712
lea rcx, [0x14008e400]
mov r9, rbp
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14005c740
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.1400751b0
sub rsp, rax
and word [rsp + 0x30], 0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rax - 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
lea r11, [0x14008e1f0]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x140076a00]
lea rcx, [0x14008e400]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14005c7cb
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
sub rdi, rax
movzx eax, word [rcx]
mov word [rdi + rcx], ax
add rcx, 2
test ax, ax
jne 0x14005c7b4
mov eax, 1
jmp 0x14005c7cd
xor eax, eax
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x14005c7f0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
and word [rdx], 0
lea rax, [0x14008e1f0]
mov rbx, rdx
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x140076a00]
lea rcx, [0x14008e400]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
lea r9, [0x14008e1f0]
mov rdx, r9
sub rdx, rcx
xor ebx, ebx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, bx
jne 0x14005cbf5
mov rdx, rbx
lea rcx, [0x14008e400]
lea rax, str.general
movzx eax, word [rdx + rax]
mov word [rdx + rcx], ax
add rdx, 2
cmp ax, bx
jne 0x14005cc0f
lea rdx, [0x140077528]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x14008e490]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x14008e1e4], ebx
mov ebx, 0x3f
mov r8d, ebx
call 0x14005c7f0
lea rdx, [0x14008e510]
lea rcx, str.TranslatorName
mov r8d, ebx
call 0x14005c7f0
lea rdx, [0x14008e590]
lea rcx, str.TranslatorURL
mov r8d, 0xff
add rsp, 0x20
pop rbx
jmp 0x14005c7f0
Function at 0x14005cbe0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
and word [rdx], 0
lea rax, [0x14008e1f0]
mov rbx, rdx
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x140076a00]
lea rcx, [0x14008e400]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
lea r9, [0x14008e1f0]
mov rdx, r9
sub rdx, rcx
xor ebx, ebx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, bx
jne 0x14005cbf5
mov rdx, rbx
lea rcx, [0x14008e400]
lea rax, str.general
movzx eax, word [rdx + rax]
mov word [rdx + rcx], ax
add rdx, 2
cmp ax, bx
jne 0x14005cc0f
lea rdx, [0x140077528]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x14008e490]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x14008e1e4], ebx
mov ebx, 0x3f
mov r8d, ebx
call 0x14005c7f0
lea rdx, [0x14008e510]
lea rcx, str.TranslatorName
mov r8d, ebx
call 0x14005c7f0
lea rdx, [0x14008e590]
lea rcx, str.TranslatorURL
mov r8d, 0xff
add rsp, 0x20
pop rbx
jmp 0x14005c7f0

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

Disassembly:
sub rsp, 0x238
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
call fcn.14005d230
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005d2d3
lea rcx, [rsp + 0x20]
call fcn.14005cbe0
add rsp, 0x238
ret
Function at 0x14005e4ec
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
mov eax, 0x6430
call fcn.1400751b0
sub rsp, rax
mov rbp, rcx
call fcn.14005e1cc
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14005e644
mov rdx, rax
mov rcx, rbp
call fcn.14005e42c
cmp eax, 5
jb 0x14005e63b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, 0x5000
cmp eax, ebx
mov r12d, eax
jbe 0x14005e63b
lea rax, [rsp + 0x6460]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6468]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14005e34c
test eax, eax
je 0x14005e62f
mov eax, dword [rsp + 0x64]
mov ecx, 0x68
mov edx, 0x40
cmp eax, 0x100
cmova eax, ecx
lea rcx, [rsp + rax + 0x30]
call sub.msvcrt.dll_strchr
test rax, rax
mov rsi, rax
je 0x14005e621
add rsi, 1
mov edx, 0x3f
mov rcx, rsi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14005e5c1
mov byte [rax], 0
mov rcx, rsi
call sub.msvcrt.dll__strlwr
and word [rsp + 0x2230], 0
lea rcx, [rsp + 0x2232]
xor edx, edx
mov r8d, 0x41fe
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x2230]
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0x10]
lea rdx, [rsp + 0x2230]
xor r8d, r8d
call fcn.140061748
mov eax, dword [rsp + 0x6460]
shl eax, 7
add ebx, eax
jmp 0x14005e632
sub ebx, 0xffffff80
cmp ebx, r12d
jb 0x14005e54b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14005e88c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x248
mov rbx, rcx
add rcx, 0x40
call fcn.1400611a8
lea rcx, [0x14008ad40]
mov edx, 0xe7
call fcn.140066f78
lea rcx, [rsp + 0x288]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005e9e0
lea rcx, [rbx + 0xa0]
mov edx, 0x2000
xor esi, esi
call fcn.140061028
and dword [rsp + 0x278], 0
and word [rsp + 0x40], 0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x1fe
mov dword [rsp + 0x280], 0xff
mov dword [rsp + 0x270], 0x2000
call sub.msvcrt.dll_memset
cmp qword [rbx + 0xa0], 0
lea rcx, [rsp + 0x270]
lea rax, [0x140076a00]
lea r9, [rsp + 0x280]
cmovne rax, qword [rbx + 0xa0]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x278]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005e9d2
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__wcsupr
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x40]
or r8d, 0xffffffff
call fcn.1400610b8
cmp qword [rbx + 0xa0], 0
mov r8d, dword [rsp + 0x270]
lea rdx, [0x140076a00]
lea rcx, [rbx + 0x70]
cmovne rdx, qword [rbx + 0xa0]
call fcn.1400610b8
add esi, 1
jmp 0x14005e8f3
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x248
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005ec8c
Capabilities:
Enumerate internet cache

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
and word [rsp + 0x40], 0
mov rdi, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov edx, 0x22
call fcn.14004ec0c
mov ebx, dword [rdi + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005e7cc
lea r11, [0x140077448]
lea r12, [rdi + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r12
call fcn.14005fd9c
cmp ebx, dword [rdi + 0x38]
jne 0x14005ee1e
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
mov esi, 0xfa00
lea rcx, [rsp + 0x20]
mov edx, esi
mov dword [rsp + 0x2c], 0x1388
call fcn.140060478
mov rdi, qword [rsp + 0x20]
lea r8, [rsp + 0x270]
lea rcx, str.visited:
mov rdx, rdi
mov dword [rsp + 0x270], esi
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
test rax, rax
mov rbx, rax
je 0x14005ee14
mov rcx, qword [rdi + 8]
mov dx, 0x40
call sub.msvcrt.dll_wcschr
test rax, rax
mov rbp, rax
je 0x14005eda0
lea rdx, [rax + 2]
xor r8d, r8d
mov rcx, r12
call fcn.140061748
mov rcx, qword [rdi + 8]
mov dx, 0x3f
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14005eda0
and word [rax], 0
lea rdx, [rbp + 2]
xor r8d, r8d
mov rcx, r12
call fcn.140061748
lea r8, [rsp + 0x270]
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x270], esi
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x14005ed57
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005ee0b
mov esi, dword [rsp + 0x270]
lea rcx, [rsp + 0x20]
add esi, 0x2710
mov edx, esi
call fcn.140060478
mov rdi, qword [rsp + 0x20]
lea r8, [rsp + 0x270]
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x270], esi
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x14005ed57
mov rcx, rbx
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
lea rcx, [rsp + 0x20]
call fcn.140060398
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14005f4dc
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbx, rcx
xor r12d, r12d
mov rsi, r8
mov word [rcx], r12w
mov rcx, r8
mov rbp, rdx
call fcn.140068508
cmp eax, r12d
mov edi, eax
jne 0x14005f6c1
cmp dword [rsi + 0x420], 0x20
jne 0x14005f6c1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xa0]
mov rdx, rbp
mov rcx, rbx
mov dword [rsp + 0xa0], r12d
mov qword [rsp + 0x40], r12
call fcn.14005f16c
cmp eax, r12d
je 0x14005f6c1
lea rcx, [rsp + 0x48]
mov edx, 0x8000
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x1388
call fcn.140060478
mov r8d, dword [rsp + 0xa0]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbp, rax
je 0x14005f6a4
mov qword [rsp + 0xb8], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0xb8]
mov r8, rax
mov rcx, rbp
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0xb8]
cmp rcx, r12
je 0x14005f69b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rdx, [0x140077210]
mov rcx, rbx
mov r15d, eax
call fcn.140062a54
xor edx, edx
mov rcx, rbx
call fcn.140062fe4
mov rcx, qword [rsp + 0xb8]
lea r8d, [r12 + 2]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r12
mov r14, rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp rax, r12
mov r13, rax
je 0x14005f684
lea edx, [r12 + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov r12, rax
je 0x14005f678
and dword [rsp + 0xa0], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov r8d, r15d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [rbx], r12w
je 0x14005f6b7
mov rdx, rbx
mov rcx, rsi
call fcn.140068508
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.140060398
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005fbfc
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x6d0
or qword [r11 - 0x468], 0xffffffffffffffff
xor r15d, r15d
mov r14, rcx
lea eax, [r15 + 0x20]
mov qword [r11 - 0x488], r15
mov dword [r11 - 0x480], r15d
mov dword [r11 - 0x54], eax
mov dword [r11 - 0x2c], eax
lea rax, [r11 - 0x460]
lea r8, [r11 - 0x468]
lea rcx, [rsp + 0x50]
mov esi, r15d
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x60], r15
mov dword [r11 - 0x50], r15d
mov dword [r11 - 0x58], r15d
mov qword [r11 - 0x38], r15
mov dword [r11 - 0x28], r15d
mov dword [r11 - 0x30], r15d
mov dword [rsp + 0x26c], 0x1388
mov word [rsp + 0x50], r15w
call fcn.14005f4dc
cmp eax, r15d
je 0x14005fd3e
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x280]
mov rcx, r14
mov dword [rsp + 0x40], 0x400
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x28], r15d
call fcn.14005f9ec
cmp dword [rsp + 0x48], r15d
jle 0x14005fd27
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea esi, [r15 + 1]
mov ebp, r15d
mov rdi, r15
cmp rdi, r15
jl 0x14005fd09
cmp ebp, dword [rsp + 0x48]
jge 0x14005fd09
mov eax, dword [r13 + rdi*4]
lea r8, [r12 + rax*2]
jmp 0x14005fd0c
mov r8, r15
lea rdx, [rsp + 0x280]
mov rcx, r14
call fcn.14005f6ec
add ebp, esi
add rdi, rsi
cmp ebp, dword [rsp + 0x48]
jl 0x14005fcf3
lea rcx, [rsp + 0x280]
call fcn.1400674f8
lea rcx, [rsp + 0x20]
call fcn.1400611a8
cmp word [rsp + 0x50], r15w
je 0x14005fd57
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rsp + 0x50], r15w
lea rcx, [rsp + 0x260]
call fcn.140060398
lea rcx, [rsp + 0x280]
call fcn.140067558
lea r11, [rsp + 0x6d0]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14005fd9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
and word [rsp + 0x230], 0
mov rbx, rcx
mov edi, 0x208
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x230]
mov edx, 0x1c
call fcn.14004ec0c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
add rcx, 0x2a
cmp rcx, 0x1ff
jae 0x14005fe2f
lea r8, [rsp + 0x20]
lea rdx, str.MicrosoftWindowsWebCacheWebCacheV01.dat
lea rcx, [rsp + 0x230]
call fcn.1400639e4
jmp 0x14005fe34
and word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005fe85
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
add rcx, 0x2a
cmp rcx, 0x1ff
jae 0x14005fe80
lea r8, [rsp + 0x20]
lea rdx, str.MicrosoftWindowsWebCacheWebCacheV24.dat
lea rcx, [rsp + 0x230]
call fcn.1400639e4
jmp 0x14005fe85
and word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005fea4
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14005fbfc
jmp 0x14005fea6
xor eax, eax
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret

Function at 0x140060c88
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, rdx
mov rsi, rcx
xor edx, edx
mov rcx, rax
mov rbp, r8
xor ebx, ebx
call fcn.140063024
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x140060d17
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp rbp, rbx
mov edi, eax
je 0x140060ccd
mov dword [rbp], eax
mov edx, dword [rsi + 8]
cmp eax, edx
jl 0x140060ce3
add edx, dword [rsi + 0xc]
cmp edx, eax
jle 0x140060cd4
mov rcx, rsi
call fcn.1400603d8
mov rdx, qword [rsi]
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r12
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x140060d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140060d1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140061268
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0xffffffffffffffff
mov rbx, rcx
jne 0x1400612b0
add rcx, 8
call fcn.1400627d4
lea rdx, [rbx + 0x410]
lea rcx, [rbx + 8]
mov qword [rbx + 0x408], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, esi
cmp rax, 0xffffffffffffffff
mov qword [rbx], rax
setne sil
jmp 0x1400612ce
lea rdx, [rcx + 0x410]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov esi, eax
jne 0x1400612d2
mov rcx, rbx
call fcn.1400605d8
test esi, esi
je 0x140061323
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbx + 0xa60]
repne scasw ax, word [rdi]
lea rdx, [rbx + 0x43c]
lea r8, [rbx + 0x660]
not rcx
mov rdi, rdx
lea r9, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rax, [r9 + rcx]
cmp rax, 0x1ff
jae 0x14006131e
lea rcx, [rbx + 0xa60]
call fcn.1400639e4
jmp 0x140061323
and word [r8], 0
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140061a44
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x90
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
lea rax, str.RunAs
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, str._NoStartWindow
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x40
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
add rsp, 0x90
pop rbx
ret

Function at 0x140061bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rdi, rax
je 0x140061c3d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140061c3f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400622a4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x140076a00]
mov r8, rdx
lea rdx, [0x140077100]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp rax, 0x20
seta cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x1400625e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp word [0x14008ecc0], 0
mov rdi, rcx
lea rbx, [0x14008ecc0]
jne 0x14006261b
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r11d, eax
mov dword [0x14008eecc], eax
jmp 0x140062622
mov r11d, dword [0x14008eecc]
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx], ax
add rbx, 2
test ax, ax
jne 0x140062625
mov eax, r11d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret