joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], eax
cmp byte [esi + 0x38], al
je 0x49800c
mov edi, dword [ebp + 0xc]
lea esp, [esp]
cmp byte [esi + 0x39], 0
je 0x49800c
add eax, dword [ebp - 0x50]
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x48]
cmp eax, 0x6d
je 0x497fdf
test ecx, ecx
jne 0x497fe9
jmp 0x497ff8
cmp dword [ebp - 0x4c], 0
je 0x49809b
cmp ecx, edi
je 0x49800c
add dword [ebp - 0x44], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x49802a
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x38], 0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
jne 0x497fb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
push 0x11
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0x68ddd0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00403c30
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00498d10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x498085
push dword [ebp - 0x40]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x49810a
push 0x11
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x68ddd0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c30
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00498d10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x4980f6
push dword [ebp - 0x28]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x498126
cmp eax, 0xffffffff
je 0x498126
push eax
call edi
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x70]
test eax, eax
je 0x49813c
cmp eax, 0xffffffff
je 0x49813c
push eax
call edi
mov dword [esi + 0x70], 0
mov byte [esi + 0x39], 0
xor al, al
jmp 0x49800e
Function at 0x498980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, edx
xor ebx, ebx
push ebx
lea edx, [ebp - 4]
push edx
push esi
push eax
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4989e5
lea ebx, [ebx]
mov eax, dword [ebp - 4]
cmp eax, esi
ja 0x4989e5
jae 0x4989ef
add edi, eax
sub esi, eax
cmp ebx, 0x32
jg 0x4989e5
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4989b0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a00f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0
push 0
mov edi, ecx
push edi
push 0
mov esi, edx
xor bl, bl
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x4a018e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a0180
cmp word [ebp - 0x20c], 0
jne 0x4a0153
xor ecx, ecx
jmp 0x4a016f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0160
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403c30
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4a01d6
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4a01d6
cmp word [ebp - 0x20c], 0
jne 0x4a01ad
xor ecx, ecx
jmp 0x4a01c5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a01b6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403c30
mov bl, 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4a0229
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4a01e9
mov eax, dword [esi]
jmp 0x4a01eb
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4a0229
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x4a021d
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x4a0204
mov esi, dword [esi]
xor ecx, ecx
pop edi
mov word [esi + eax*2], cx
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00404e00
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005e96ad
mov esp, ebp
pop ebp
ret

Function at 0x4a03e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x2b
lea eax, [ebp - 0x20c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4a041e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
push 0x68e0f0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005eb07b
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x4a0445
xor ecx, ecx
jmp 0x4a045f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0450
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
Function at 0x4a0480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4a04be
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
push 0x68e0f0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005eb07b
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x4a04e5
xor ecx, ecx
jmp 0x4a04ff
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a04f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00403c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.005e96ad
mov esp, ebp
pop ebp
ret

Function at 0x4a05c0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
jmp dword [edx*4 + 0x4a076c]

Function at 0x4a0b60
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4a0b6d
mov eax, dword [esi]
jmp 0x4a0b6f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a0b90
cmp dword [esi + 0x14], 8
jb 0x4a0b82
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
pop esi
ret
cmp dword [esi + 0x14], 8
jb 0x4a0b98
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x4a0bc5
push esi
push 0x68e1e8
push 0x676964
push 0x68e138
push 0x32
push 0
call fcn.004a5da0
add esp, 0x18
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x4a0f70
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov bh, dl
cmp dword [esi + 0x14], 8
jb 0x4a0f83
mov eax, dword [esi]
jmp 0x4a0f85
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1088
cmp dword [esi + 0x14], 8
jb 0x4a0f9e
mov eax, dword [esi]
jmp 0x4a0fa0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x4a0fb1
mov eax, dword [esi]
jmp 0x4a0fb3
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4a1082
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test bh, bh
je 0x4a105a
call eax
cmp eax, 5
jne 0x4a1055
cmp dword [esi + 0x14], 8
jb 0x4a0fe6
mov eax, dword [esi]
jmp 0x4a0fe8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x4a1055
cmp dword [esi + 0x14], 8
jb 0x4a1000
mov eax, dword [esi]
jmp 0x4a1002
mov eax, esi
push ecx
push eax
push 0x68e318
push 0x676964
push 0x68e138
push 0x14
push dword [ebp + 8]
call fcn.004a5da0
add esp, 0x1c
cmp dword [esi + 0x14], 8
jb 0x4a102a
mov eax, dword [esi]
jmp 0x4a102c
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4a1042
mov eax, dword [esi]
jmp 0x4a1044
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4a1082
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x4a1062
mov esi, dword [esi]
call eax
push eax
push esi
push 0x68e3e8
push 0x676964
push 0x68e138
push 0x32
push dword [ebp + 8]
call fcn.004a5da0
add esp, 0x1c
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x4a1090
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4a10a1
mov eax, dword [edi]
jmp 0x4a10a3
mov eax, edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x4a10d0
push 0x68e4d0
push 0x676964
push 0x68e138
push 0x32
push eax
call fcn.004a5da0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x14], 8
jb 0x4a10da
mov eax, dword [esi]
jmp 0x4a10dc
mov eax, esi
push eax
call ebx
test eax, eax
je 0x4a10f5
push 0
mov dl, 1
mov ecx, esi
call fcn.004a0f70
add esp, 4
test al, al
je 0x4a10ca
cmp dword [esi + 0x14], 8
jb 0x4a10ff
mov ecx, dword [esi]
jmp 0x4a1101
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4a110b
mov eax, dword [edi]
jmp 0x4a110d
mov eax, edi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a11c4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x4a1184
cmp dword [esi + 0x14], 8
jb 0x4a1136
mov edx, dword [esi]
jmp 0x4a1138
mov edx, esi
sub esp, 8
call fcn.004a1350
add esp, 8
test al, al
je 0x4a1197
push 0x68e550
push 0x676964
push 0x68e138
push 0x1e
push 0
call fcn.004a5da0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4a116c
mov eax, dword [esi]
jmp 0x4a116e
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4a1176
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a11c4
cmp dword [esi + 0x14], 8
jb 0x4a118c
mov esi, dword [esi]
call ebx
push eax
push esi
push 0x68e458
jmp 0x4a11a8
cmp dword [edi + 0x14], 8
jb 0x4a119f
mov edi, dword [edi]
call ebx
push eax
push edi
push 0x68e238
push 0x676964
push 0x68e138
push 0x32
push 0
call fcn.004a5da0
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x14], 8
jb 0x4a11cc
mov esi, dword [esi]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4a4c80
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x4a4cc2
cmp dword [esi + 0x14], 8
jb 0x4a4c93
mov eax, dword [esi]
jmp 0x4a4c95
mov eax, esi
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x4a4cc2
cmp dword [esi + 0x14], 8
jb 0x4a4caa
mov esi, dword [esi]
push 1
push 0
push 0
push esi
push 0x679994
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x4a55e0
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov ax, dx
and edx, 0x3ff
shr ax, 0xa
dec edx
movzx eax, ax
cmp edx, 0x26
ja case.0x4a5606.3
jmp dword [edx*4 + 0x4a5884]
mov ecx, esi
cmp eax, 2
jne 0x4a5622
push 0x678da0
call fcn.00403800
xor al, al
pop esi
ret
push 0x678cbc
call fcn.00403800
xor al, al
pop esi
ret
cmp eax, 5
je 0x4a564f
cmp eax, 7
je 0x4a564f
cmp eax, 6
je 0x4a564f
push 0x68fbd8
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fbf0
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
mov ecx, esi
cmp eax, 3
jne 0x4a5674
push 0x68fbe4
call fcn.00403800
xor al, al
pop esi
ret
push 0x678cd4
call fcn.00403800
xor al, al
pop esi
ret
mov ecx, esi
cmp eax, 2
jne 0x4a5697
push 0x68fc14
call fcn.00403800
xor al, al
pop esi
ret
push 0x678cec
call fcn.00403800
xor al, al
pop esi
ret
cmp eax, 2
je 0x4a56bf
cmp eax, 4
je 0x4a56bf
push 0x678d28
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d1c
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fc20
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d7c
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d34
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d88
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678cc8
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d10
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678ce0
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d04
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d40
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d58
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d4c
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d70
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fbfc
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d64
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678dd0
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678dac
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fc08
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fc38
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678dc4
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678ddc
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678db8
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678d94
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fc44
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678de8
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x678cf8
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 0x68fc2c
mov ecx, esi
call fcn.00403800
xor al, al
pop esi
ret
push 5
push 0x678cbc
mov ecx, esi
call fcn.00403c30
xor al, al
pop esi
ret
Function at 0x4a5cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 4], ecx
test edi, edi
jne 0x4a5cec
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 8
call fcn.004c568c
mov esi, eax
add esp, 4
test esi, esi
je 0x4a5d07
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4a5d09
xor esi, esi
push 0
push 0
push esi
push 0x4a5d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4a5d3e
test esi, esi
je 0x4a5d4e
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004c56c2
add esp, 4
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov bl, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5d4e
mov dword [ecx], eax
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a8670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 8], 0
jb 0x4a868e
mov ecx, dword [ecx]
push 0x68fd3c
push ecx
lea eax, [ebp - 8]
push eax
call fcn.005eb0e7
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4a86e7
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.005ec0c1
push dword [ebp - 8]
call fcn.005ec87d
mov cl, byte [ebp - 4]
mov al, byte [ebp - 3]
add esp, 0x14
cmp cl, 0xff
jne 0x4a86cf
cmp al, 0xfe
je 0x4a86d8
cmp al, 0xff
jne 0x4a86e1
cmp cl, 0xfe
jne 0x4a86e1
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4a87e0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6384b1
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a88cc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004035b0
mov dword [ebp - 4], 0
xor bl, bl
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4a8884
cmp eax, 0xb7
je 0x4a8884
cmp eax, 0x50
jne 0x4a8886
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 8
jb 0x4a88a4
push dword [ebp - 0x234]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
test bl, bl
jne 0x4a88cc
xor al, al
jmp 0x4a8a45
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x21c], ax
jne 0x4a890a
xor ecx, ecx
jmp 0x4a8922
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8913
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403c30
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [esi], ax
jne 0x4a8976
xor ecx, ecx
jmp 0x4a898f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4a8980
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8980
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.00403c30
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.004aa9b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 8
mov bl, al
jb 0x4a89ce
push dword [ebp - 0x234]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
test bl, bl
je 0x4a8a08
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x24c]
cmp ecx, eax
je 0x4a8a06
push 0xffffffffffffffff
push 0
push eax
call fcn.00403b10
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x238], 8
jb 0x4a8a26
push dword [ebp - 0x24c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov word [ebp - 0x24c], ax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a8cd0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x677d04
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a8d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4a8d40
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x68fd58
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4