joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10138962
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], edx
push edi
and dword [eax], ebx
mov edi, dword [edx + 4]
mov dword [ebp - 8], ecx
test edi, edi
jne 0x10138988
xor eax, eax
inc eax
jmp 0x10138a4b
push esi
lea esi, [edx + 0x14]
mov ecx, dword [esi + 0x10]
dec edi
test ecx, ecx
je 0x10138a37
mov eax, dword [esi + 0x18]
test al, 4
jne 0x10138a34
or eax, 4
mov dword [ebp - 0x30], 0x24
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x101389f6
lea eax, [ebp - 0x30]
xor edx, edx
push eax
inc edx
mov ecx, esi
call fcn.1005662b
cmp eax, 0x80004001
je 0x10138a31
test eax, eax
jns 0x10138a22
and dword [esi + 0x18], 0xfffffffb
xor eax, eax
jmp 0x10138a4a
test byte [esi + 0x3c], 2
jne 0x10138a34
xor edx, edx
mov ecx, esi
inc edx
call fcn.10138916
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10138a31
lea ecx, [ebp - 0x30]
push ecx
push 1
mov ecx, eax
call dword [0x101d880c]
call dword [ebp - 0xc]
test eax, eax
je 0x101389ee
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10138a2e
cmp eax, 0xc
jb 0x101389ee
mov dword [esi + 0x20], eax
mov edx, dword [ebp - 4]
add ebx, dword [esi + 0x20]
add esi, 0x78
test edi, edi
jne 0x1013898c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1013abf9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], esi
test ebx, ebx
je 0x1013acf6
test edi, edi
je 0x1013acf6
push 0x1001d750
push ebx
call sub.msvcrt.dll_wcsstr
pop ecx
pop ecx
test eax, eax
jne 0x1013acf6
lea eax, [ebp - 0x210]
mov dword [edi], esi
push eax
mov edx, 0x103
mov ecx, ebx
call fcn.10134ca9
mov esi, eax
test esi, esi
js 0x1013acfe
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x1013acef
mov esi, 0x103
cmp ecx, esi
jae 0x1013acef
mov eax, dword [ebp - 0x210]
add eax, ecx
cmp eax, esi
jae 0x1013acef
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x20c], ax
lea edx, [esi + 1]
push ebx
lea ecx, [ebp - 0x20c]
call fcn.10045073
mov esi, eax
test esi, esi
js 0x1013acfe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x1013aceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1013acfe
movzx esi, si
or esi, 0x80070000
jmp 0x1013acfe
mov dword [edi], eax
jmp 0x1013acfe
mov esi, 0x80004005
jmp 0x1013acfe
and dword [edi], 0
mov esi, 0x80070057
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret

Function at 0x1013aff4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
and dword [ebp - 4], esi
push edi
mov edi, edx
test ebx, ebx
je 0x1013b0a4
test edi, edi
je 0x1013b0a4
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1002fd08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1013b049
jg 0x1013b03c
mov esi, eax
jmp 0x1013b045
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x1013b0a0
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10
push ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1013b07f
jg 0x1013b074
mov esi, eax
jmp 0x1013b097
movzx esi, ax
or esi, 0x80070000
jmp 0x1013b097
cmp dword [ebp - 0xc], 4
jne 0x1013b092
cmp dword [ebp - 8], 4
jne 0x1013b092
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
jmp 0x1013b097
mov esi, 0x8007000d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1013b0a9
mov eax, 0x80004003
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1013b49f
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1003f8e3
push 0x2000
mov ebx, edx
mov dword [ebp - 0xc], ecx
call fcn.10188c5c
mov edi, eax
mov esi, edi
mov dword [ebp - 0x14], edi
neg esi
pop ecx
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
pop ecx
test edi, edi
je 0x1013b504
push ebx
push 0x1000
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x1013b626
cmp eax, 0xffe
jne 0x1013b504
mov esi, 0x8007007a
jmp 0x1013b626
test esi, esi
js 0x1013b626
xor ecx, ecx
cmp word [edi], cx
je 0x1013b623
mov ebx, edi
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x1013b51e
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
sub ebx, ecx
push 0x100300b4
push edi
sar ebx, 1
call dword [sym.imp.msvcrt.dll_wcstok_s]
add esp, 0xc
test eax, eax
je 0x1013b613
cmp dword [ebp - 4], 0
je 0x1013b613
mov ecx, eax
call fcn.1013b3a7
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.1013b3a7
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 4], eax
cmp word [edx], cx
je 0x1013b615
cmp word [eax], cx
je 0x1013b615
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x101c6c80]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [ecx], 0
jne 0x1013b5af
push dword [eax + 0x101c6c7c]
push edx
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1013b5be
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xf0
jb 0x1013b586
jmp 0x1013b613
mov ecx, dword [ebp - 4]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1013b5c6
sub ecx, edx
sar ecx, 1
push 0x1003f8e3
push 2
pop edx
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10188c5c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x1013b605
mov esi, 0x8007000e
jmp 0x1013b613
push dword [ebp - 4]
mov edx, esi
mov ecx, eax
call fcn.1004503e
mov esi, eax
xor ecx, ecx
lea edi, [edi + ebx*2]
add edi, 2
test esi, esi
jns 0x1013b50e
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1013b63d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, edx
mov ebx, ecx
mov esi, eax
mov dword [ebp - 8], eax
neg esi
mov dword [ebp - 4], ebx
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
test eax, eax
je 0x1013b679
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1013b679
mov esi, 0x80070002
jmp 0x1013b6f2
test esi, esi
js 0x1013b6f2
push edi
push 0x1003f8e3
push 0x50
call fcn.10188c5c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1013b6ec
xor ecx, ecx
mov eax, dword [ecx + 0x101c6c80]
add ecx, 0xc
and dword [eax + edi], 0
cmp ecx, 0xf0
jb 0x1013b694
push edi
mov edx, ebx
mov ecx, 0x1002ff40
call fcn.1013b49f
mov esi, eax
mov ebx, edi
test esi, esi
js 0x1013b6d9
mov edx, dword [ebp - 4]
mov ecx, 0x1002ff2c
push edi
call fcn.1013b49f
mov esi, eax
test esi, esi
js 0x1013b6d9
mov eax, dword [ebp - 8]
mov dword [eax], edi
jmp 0x1013b6f1
push 1
mov ecx, ebx
call fcn.1013b45d
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x1013b6f1
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1013b6fe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, 0x104
push edi
mov edx, ebx
mov dword [ebp - 0xc], eax
call fcn.1013d9f0
mov esi, eax
test esi, esi
js 0x1013b7b0
push 0x1001d750
mov edx, edi
mov ecx, ebx
call fcn.10045073
mov esi, eax
test esi, esi
js 0x1013b7b0
and dword [ebp - 4], 0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1013b748
sub ecx, edx
sar ecx, 1
sub edi, ecx
mov ecx, ebx
add edi, edi
mov dword [ebp - 4], edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1013b766
sub ecx, edx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebx + ecx*2]
push eax
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1013b7a5
jg 0x1013b79a
mov esi, eax
jmp 0x1013b7b0
movzx esi, ax
or esi, 0x80070000
jmp 0x1013b7b0
cmp dword [ebp - 0x10], 1
je 0x1013b7b0
mov esi, 0x8000ffff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1013d9f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
call fcn.1013d99d
mov esi, eax
test esi, esi
js 0x1013da85
and dword [ebp - 4], 0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1013da1b
sub ecx, edx
sar ecx, 1
sub edi, ecx
mov ecx, ebx
add edi, edi
mov dword [ebp - 4], edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1013da39
sub ecx, edx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebx + ecx*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 2
push 0x1001d58c
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1013da7a
jg 0x1013da6f
mov esi, eax
jmp 0x1013da85
movzx esi, ax
or esi, 0x80070000
jmp 0x1013da85
cmp dword [ebp - 0xc], 1
je 0x1013da85
mov esi, 0x8000ffff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1014064a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
push 0x100308c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101406a8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push 0x10030910
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1014069f
cmp dword [ebp - 8], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x101406d1
test byte [eax + 0x1c], 4
je 0x101406d1
movzx ecx, bl
mov edx, 0x100309c0
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.1004a069
mov al, bl
pop ebx
leave
ret

Function at 0x1014330c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10143330
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x10143379
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x10143377
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x1014336b
pop esi
pop ebx
pop edi
leave
ret

Function at 0x10145171
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ax, dx
mov dword [ebp - 4], edx
push esi
movzx esi, ax
lea edx, [ebp - 4]
shr ax, 4
inc ax
push edi
movzx ebx, ax
mov word [ebp - 4], ax
call fcn.101450b1
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10145229
push 6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10145229
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10145229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10145229
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
cmp cx, 2
jb 0x10145229
add ecx, 0xffff
and esi, 0xf
jmp 0x101451f5
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
sub esi, 1
jns 0x101451ec
movzx esi, word [edi]
test esi, esi
je 0x10145223
movzx eax, cx
cmp esi, eax
jbe 0x1014520a
mov esi, eax
mov edx, dword [ebp + 8]
lea ecx, [edi + 2]
add esi, esi
xor eax, eax
push esi
push ecx
push edx
mov word [esi + edx], ax
call sub.msvcrt.dll_memcpy
add esp, 0xc
shr esi, 1
mov eax, esi
jmp 0x1014522b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101456f0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x234
push 8
pop eax
mov ebx, edx
mov edi, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x101458cd
lea eax, [ebp - 0x20]
mov dword [esi + 4], edi
push eax
mov ecx, 0x208
mov dword [esi], 0x666e7469
push ecx
lea edi, [esi + 0xc]
mov dword [esi + 8], ebx
push edi
push 1
push 0
push 0
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
test eax, eax
je 0x101458c2
push 0x5c
push edi
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x10145767
xor ecx, ecx
mov word [eax], cx
push 0x10030f24
mov edx, 0x104
mov ecx, edi
call fcn.10045073
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101458c2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x101458c2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x101458c2
push dword [ebp - 0x1c]
mov edx, 0x104
mov ecx, edi
call fcn.10045073
push 0x10030f18
mov edx, 0x104
mov ecx, edi
call fcn.10045073
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor eax, eax
push eax
push 0x10100000
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x214], eax
cmp eax, 0xffffffff
je 0x101458c2
mov edi, dword [ebp + 8]
mov eax, edi
and dword [esi + 0x220], 0
push 8
pop ecx
mul ecx
mov dword [esi + 0x224], 2
test edx, edx
ja 0x101458c2
jb 0x10145830
cmp eax, 0xffffffff
ja 0x101458c2
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x22c], eax
test eax, eax
je 0x101458c2
and dword [esi + 0x230], 0
push 0x30
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x218], eax
test eax, eax
je 0x101458c2
push 0x24
mov eax, edi
pop ecx
mul ecx
test edx, edx
ja 0x101458c2
jb 0x10145871
cmp eax, 0xffffffff
ja 0x101458c2
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x21c], eax
test eax, eax
je 0x101458c2
mov eax, dword [esi + 0x218]
push 0x30
pop ecx
mov dword [eax], 0x31464655
mov eax, dword [esi + 0x218]
mov dword [eax + 4], 0x10001
mov eax, dword [esi + 0x218]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x218]
mov dword [eax + 0xc], edi
test edi, edi
je 0x101458cb
mov eax, dword [esi + 0x218]
mov dword [eax + 0x18], ecx
jmp 0x101458cb
mov ecx, esi
call fcn.10145503
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret 4
Function at 0x101458e4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x10145949
cmp dword [esi], 0x666e7469
jne 0x10145949
test byte [esi + 0x224], 2
je 0x10145949
push edi
xor edi, edi
cmp dword [esi + 0x220], edi
je 0x10145922
push edi
push edi
push edi
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x220], eax
push edi
lea eax, [ebp - 4]
push eax
push 0x30
push dword [esi + 0x218]
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
je 0x1014594c
mov eax, dword [ebp - 4]
add dword [esi + 0x220], eax
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x10145955
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x101459f9
cmp dword [esi], 0x666e7469
jne 0x101459f9
test byte [esi + 0x224], 2
je 0x101459f9
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x101459f9
cmp dword [esi + 0x220], eax
je 0x101459ad
push 0
push 0
push eax
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x218]
mov dword [esi + 0x220], eax
mov eax, dword [ecx + 0xc]
xor edx, edx
mov ecx, dword [esi + 0x21c]
dec eax
push eax
call fcn.101462fa
mov eax, dword [esi + 0x218]
push 0
or dword [eax + 0x1c], 1
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x218]
imul eax, dword [eax + 0xc], 0x24
push eax
push dword [esi + 0x21c]
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101459fc
mov ecx, dword [ebp - 4]
add dword [esi + 0x220], ecx
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1014613e
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, 0x666e7469
test edi, edi
je 0x10146166
cmp dword [edi], eax
jne 0x1014616e
test esi, esi
je 0x10146175
cmp dword [esi], eax
je 0x10146175
xor eax, eax
jmp 0x10146249
xor eax, eax
mov word [ebp - 0x414], ax
mov word [ebp - 0x20c], ax
push ebx
test esi, esi
je 0x101461a3
lea eax, [esi + 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.1004503e
mov ebx, dword [esi + 4]
jmp 0x101461a5
mov ebx, eax
test edi, edi
je 0x101461bd
lea eax, [edi + 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x414]
call fcn.1004503e
mov ecx, edi
call fcn.10145503
mov ecx, esi
call fcn.10145503
cmp dword [ebp + 8], 0
je 0x1014622e
xor esi, esi
cmp word [ebp - 0x414], si
je 0x10146259
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1014622e
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x101461fe
sub ecx, edx
sar ecx, 1
test ebx, ebx
je 0x1014622e
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0x1002a814
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
cmp word [ebp - 0x20c], 0
je 0x10146245
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101885f0
leave
ret 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10146262
sub ecx, edx
sar ecx, 1
test ebx, ebx
je 0x10146245
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x1002a814
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
jmp 0x10146245

Function at 0x1014629a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
movzx eax, word [edx + 4]
add eax, dword [edx + 8]
push eax
push edx
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101462f1
mov eax, dword [ebp - 4]
add eax, 3
add eax, dword [esi + 0x220]
push 0
and eax, 0xfffffffc
push 0
push eax
push dword [esi + 0x214]
mov dword [esi + 0x220], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x220], eax
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1014a8ff
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov edi, esi
call fcn.1014702b
mov dword [ebp - 8], eax
test eax, eax
je 0x1014aa2f
push esi
push 0x100080
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x1014aa26
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1014aa1f
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1014aa1f
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1014aa1c
mov eax, dword [ebp - 0xc]
cmp eax, 0xdc
jbe 0x1014a9f7
cmp eax, dword [ebx]
jb 0x1014a9f7
cmp dword [ebx + 8], 0x190073
jne 0x1014a9f7
cmp dword [ebx + 4], 0x47504420
jne 0x1014a9f7
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.1014ab78
test eax, eax
je 0x1014a9f7
push 0x9c
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1014a9f7
push 0xb
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, edi
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], eax
call fcn.1014a81c
neg eax
sbb esi, esi
and esi, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x1014aa08
mov eax, edi
jmp 0x1014aa31
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10134c85
jmp 0x1014aa2f
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1014f3ed
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x2c], edx
call fcn.1014702b
mov edi, eax
test edi, edi
je 0x1014f486
push esi
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1014f42c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1014f47e
push ebx
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1014f47d
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1014f46b
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x30], eax
jne 0x1014f46b
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1014f47d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.101885f0
leave
ret 4