joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001aa25
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 0x400
push eax
push 0x20019
xor esi, esi
mov edi, ecx
push esi
push 0x100090d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x40c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001aa76
mov esi, 0x89721508
jmp 0x1001aac2
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 0x10009128
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001aa6f
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [edi], esi
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
cmp dword [ebp - 0x40c], 0
je 0x1001aad7
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10055284
mov esp, ebp
pop ebp
ret

Function at 0x1001aae9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x41c
mov eax, 0x1006c882
call fcn.10065833
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x424], 0x400
push 0x10009140
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
call fcn.1001753f
push 0x10007554
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 1
call fcn.1001478b
push esi
lea ecx, [ebp - 0x41c]
call fcn.1001478b
push 0x10007554
lea ecx, [ebp - 0x41c]
call fcn.1001478b
push 0x10009190
lea ecx, [ebp - 0x41c]
call fcn.1001478b
lea eax, [ebp - 0x420]
push eax
push 0x20019
push ebx
push dword [ebp - 0x41c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x41c]
test eax, eax
je 0x1001ab96
mov esi, 0x89721508
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001ac0b
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1001abca
mov esi, 0x89721508
jmp 0x1001ac0b
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [edi], esi
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
jmp 0x1001ac0b
cmp dword [ebp - 0x420], 0
je 0x1001ac20
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10065780
ret
Function at 0x1001b5fa
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x1006c90e
call fcn.10065833
mov esi, ecx
mov dword [ebp - 0x280], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x290], eax
mov byte [ebp - 0x26d], bl
mov dword [ebp - 0x27c], ebx
call fcn.10014460
push eax
lea ecx, [ebp - 0x278]
call fcn.100122c3
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
lea eax, [esi + 4]
je 0x1001b662
lea eax, [esi + 8]
push eax
call fcn.10011797
push dword [edi]
lea eax, [ebp - 0x278]
push 0x10009998
push eax
call fcn.100130a3
add esp, 0xc
lea ecx, [ebp - 0x274]
push dword [ebp - 0x278]
call fcn.1001753f
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x27c], edi
cmp edi, 0xffffffff
jne 0x1001b6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1001b6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001b6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001b6d8
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0x280]
mov dword [ecx], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001b7fa
mov bl, 1
jmp 0x1001b6e0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x288]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x26c], 0x10
je 0x1001b700
mov byte [ebp - 4], 3
call fcn.10014460
push eax
lea ecx, [ebp - 0x274]
call fcn.100122c3
mov byte [ebp - 4], 4
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
lea eax, [ebp - 0x240]
push eax
jne 0x1001b747
lea eax, [ebp - 0x274]
push 0x10008f64
push eax
call fcn.1001cc6f
add esp, 0xc
jmp 0x1001b77b
lea ecx, [ebp - 0x28c]
call fcn.100117fd
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x274]
push 0x10008f64
push eax
call fcn.1001cc6f
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28c]
call fcn.100122a8
push dword [ebp - 0x274]
mov ecx, dword [ebp - 0x290]
call fcn.1001ccc4
test eax, eax
jns 0x1001b7a5
mov ecx, dword [ebp - 0x280]
mov dword [ecx], eax
lea ecx, [ebp - 0x274]
call fcn.100122a8
jmp 0x1001b7f6
lea ecx, [ebp - 0x274]
call fcn.100122a8
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001b700
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1001b7f6
mov bl, 1
jmp 0x1001b7f6
test edi, edi
je 0x1001b801
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x278]
call fcn.100122a8
mov al, bl
call fcn.10065780
ret 8
Function at 0x1001e4c5
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x1006ce8f
call fcn.100657fc
mov edi, ecx
mov dword [ebp - 0x20], edi
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
call fcn.10014460
push eax
lea ecx, [ebp - 0x28]
call fcn.100122c3
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10011680
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.10011797
lea ecx, [ebp - 0x1c]
call fcn.100122a8
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 5
push eax
mov ecx, edi
call fcn.1001e810
mov esi, dword [ebp - 0x18]
test eax, eax
jns 0x1001e542
mov dword [edi + 4], eax
jmp 0x1001e603
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push 0x10008fe4
push esi
call dword [eax]
test eax, eax
js 0x1001e53a
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x24]
call fcn.1001753f
mov ecx, eax
mov byte [ebp - 4], 0xa
push dword [ecx]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
jns 0x1001e588
mov dword [edi + 4], ebx
jmp 0x1001e603
push 5
pop ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 0xc
call fcn.10014460
push eax
lea ecx, [ebp - 0x1c]
call fcn.100122c3
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x1c]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x78]
call fcn.10018607
lea ecx, [ebp - 0x1c]
test eax, eax
jns 0x1001e5c3
mov dword [edi + 4], eax
call fcn.100122a8
jmp 0x1001e603
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.1001e83c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
call fcn.100122a8
mov dword [ebp - 4], ebx
mov byte [ebp - 0x11], 1
jmp 0x1001e603
lea ecx, [ebp - 0x28]
call fcn.100122a8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001e61c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
test esi, esi
je 0x1001e62a
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp + 8]
call fcn.100122a8
lea ecx, [ebp + 0xc]
call fcn.100122a8
mov al, byte [ebp - 0x11]
call fcn.1006575a
ret 8
Function at 0x10045cad
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], ecx
push edi
xor edi, edi
mov esi, edi
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x10045cc0
sub ebx, edx
mov edi, ecx
sar ebx, 1
cmp ebx, 1
jae 0x10045ce0
mov esi, 0x80070057
jmp 0x10045db2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10045cf4
xor esi, esi
jmp 0x10045db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10045ced
cmp eax, 3
jne 0x10045da1
mov eax, edi
push 0x5c
pop edx
cmp word [eax + 2], 0x3a
jne 0x10045d20
cmp ebx, 3
jb 0x10045cd6
lea edi, [eax + 6]
jmp 0x10045d28
cmp word [eax], dx
jne 0x10045d28
lea edi, [eax + 2]
xor ebx, ebx
jmp 0x10045d68
cmp word [edi], dx
je 0x10045d3e
add edi, 2
cmp word [edi], bx
jne 0x10045d2c
cmp word [edi], dx
jne 0x10045d68
push ebx
xor ecx, ecx
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10045d5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10045d6f
mov eax, dword [ebp - 4]
push 0x5c
pop edx
mov word [edi], dx
add edi, 2
cmp word [edi], bx
jne 0x10045d2c
jmp 0x10045d86
test eax, eax
jg 0x10045d77
mov esi, eax
jmp 0x10045d80
movzx esi, ax
or esi, 0x80070000
push 0x5c
pop eax
mov word [edi], ax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10045db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10045db2
test eax, eax
jg 0x10045da9
mov esi, eax
jmp 0x10045db2
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10045ed3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test esi, esi
jne 0x10045ef5
push 0x57
pop eax
jmp 0x10045f5b
push edi
mov edi, 0x104
cmp edx, edi
jb 0x10045f08
xor ecx, ecx
mov word [esi], cx
test eax, eax
jne 0x10045f0c
push 0x57
jmp 0x10045f34
push dword [ebp + 0x10]
mov dword [ebp - 0x210], edi
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push 0x1000cd48
push eax
call fcn.1004f9c7
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10045f37
push 0x6f
pop eax
jmp 0x10045f5a
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push 2
push 0x1000cda0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10055284
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10049181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x840]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x848], eax
mov eax, dword [ebx]
xor edi, edi
and dword [ebp - 0x844], edi
push ecx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x840], 0x838
call dword [eax + 0x24]
mov esi, eax
test esi, esi
jne 0x1004927c
cmp dword [ebp - 0x820], 2
jne 0x100491ee
mov esi, dword [ebp - 0x82c]
test esi, esi
jne 0x1004927c
jmp 0x10049200
cmp dword [ebp - 0x820], 3
je 0x10049276
cmp dword [ebp - 0x820], 4
je 0x10049270
cmp dword [ebp - 0x808], 0x800
jbe 0x10049213
mov edi, 0x80070057
jmp 0x1004924e
push 0
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004924e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1004924e
movzx edi, di
or edi, 0x80070000
mov eax, dword [ebx]
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x83c]
push ecx
push 0xffffffffffffffff
push ebx
call dword [eax + 0x24]
mov esi, eax
test esi, esi
je 0x100491d5
jmp 0x10049276
mov esi, dword [ebp - 0x82c]
test esi, esi
jne 0x1004927c
mov esi, edi
mov eax, dword [0x10077790]
cmp eax, 0x10077790
je 0x100492a8
test byte [eax + 0x1c], 2
je 0x100492a8
cmp byte [eax + 0x19], 5
jb 0x100492a8
push esi
push dword [eax + 0x14]
mov edx, 0x100062dc
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.1000e7be
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055284
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004d568
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [0x10077014]
xor eax, esp
mov dword [esp + 0x288], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
je 0x1004d643
test esi, esi
je 0x1004d643
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004d643
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1004d5c8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x40]
lea ecx, [ebx + 0x1c]
mov ebx, dword [esp + 0x10]
and eax, 0xfffffffe
mov dword [esp + 0x18], eax
xor edi, edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push ebx
push ecx
call dword [eax + 0x34]
mov esi, eax
test esi, esi
jns 0x1004d63f
cmp esi, 0x80070020
jne 0x1004d63f
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, 3
jl 0x1004d610
mov eax, esi
jmp 0x1004d65a
push 0
push 0x10006844
push 0x80070057
push 0
push ebx
call fcn.1004cd47
add esp, 0x14
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10055284
mov esp, ebp
pop ebp
ret 8
Function at 0x10050fd3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x14], edx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
xor edi, edi
push ecx
push eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x10051020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100510a4
movzx esi, si
or esi, 0x80070000
jmp 0x100510a4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1005103c
mov esi, 0x8007000e
jmp 0x100510a4
push edi
push ebx
push 0
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10051064
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10051094
movzx esi, si
or esi, 0x80070000
jmp 0x10051094
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10007554
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10051083
mov esi, 0x8973150f
jmp 0x10051094
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.10065d40
add esp, 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100510ad
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x218
mov dword [ebp - 0x490], eax
xor esi, esi
lea eax, [ebp - 0x21c]
mov ebx, edx
push esi
push eax
mov edi, ecx
call fcn.10057cb0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1005112c
cmp eax, 0x104
jbe 0x1005110e
mov esi, 0x80004005
jmp 0x100511aa
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x1000d440
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10051141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10051143
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x100511aa
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push 0xffffffffffffffff
push ecx
push dword [ebp - 0x490]
push 0x75300
push edi
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
jne 0x100511aa
lea edx, [ebp - 0x458]
mov ecx, ebx
call fcn.10050fd3
mov esi, eax
test esi, esi
jne 0x100511aa
lea edx, [ebp - 0x48c]
lea ecx, [ebp - 0x21c]
call fcn.10050fd3
mov esi, eax
test esi, esi
jne 0x100511a5
lea eax, [ebp - 0x458]
push 0x34
push eax
push eax
call fcn.100662b4
add esp, 0xc
test eax, eax
je 0x100511aa
mov esi, 0x8973150f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055284
mov esp, ebp
pop ebp
ret 4
Function at 0x10051260
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x454], edx
push edi
lea ecx, [ebp - 0x444]
xor edi, edi
push ecx
mov eax, dword [ebx]
push edx
push ebx
mov dword [ebp - 0x448], edi
call dword [eax + 0x28]
test eax, eax
jne 0x100512a3
cmp dword [ebp - 0x444], 0xffffffff
setne al
jmp 0x100512be
mov edx, eax
lea ecx, [ebp - 0x448]
call fcn.100511cc
test eax, eax
jne 0x100513b8
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x100512c9
xor eax, eax
jmp 0x100513b8
lea eax, [ebp - 0x41c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100512fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100513b8
movzx eax, ax
or eax, 0x80070000
jmp 0x100513b8
lea eax, [ebp - 0x210]
push eax
push edi
push 0x1000d448
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100512df
push esi
push edi
push 0x80
push 2
push edi
push edi
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10051350
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100513b7
movzx eax, ax
or eax, 0x80070000
jmp 0x100513b7
push edi
push edi
push 4
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x444d5900
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x450], edi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edi, eax
lea eax, [ebp - 0x450]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x454]
push edi
push 0
push 0x493e0
push ebx
call dword [ecx + 0x1c]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10055284
mov esp, ebp
pop ebp
ret

Function at 0x1005304e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10053093
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100530d7
movzx eax, ax
or eax, 0x80070000
jmp 0x100530d7
cmp eax, ebx
jbe 0x1005309e
mov eax, 0x80004005
jmp 0x100530d7
push esi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push 0x1000d440
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1005307f
push ebx
push 0x100
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1005307f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055284
mov esp, ebp
pop ebp
ret
Function at 0x1005312a
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10053222
xor ecx, ecx
push ebx
mov ebx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], cl
cmp word [eax], cx
je 0x100531fc
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x1005316a
push 3
sub ecx, edx
sar ecx, 1
push 0x1000d794
push ebx
mov dword [ebp - 0xc], ecx
call fcn.100624fa
add esp, 0xc
test eax, eax
jne 0x100531dd
cmp byte [ebp - 1], al
jne 0x100531a8
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.1005304e
mov edi, dword [ebp - 8]
test eax, eax
js 0x100531ff
mov eax, dword [ebp - 0xc]
mov edx, ebx
add eax, eax
mov ecx, edi
push eax
call fcn.100530e8
mov esi, eax
test esi, esi
js 0x100531ff
push 2
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xa
mov ecx, edi
call fcn.100530e8
mov esi, eax
test esi, esi
js 0x100531ff
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x100531e6
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 1]
lea ebx, [ebx + eax*2]
add ebx, 2
xor eax, eax
cmp word [ebx], ax
jne 0x10053165
test dl, dl
je 0x100531fc
mov esi, eax
jmp 0x100531ff
xor esi, esi
inc esi
pop ebx
cmp edi, 0xffffffff
je 0x10053219
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x10053219
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005322a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x418]
call fcn.1005312a
mov esi, eax
test esi, esi
js 0x100532ea
cmp esi, 1
je 0x100532ef
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10057cb0
push dword [edi + 0x3c]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.10058b4d
add esp, 0x18
test eax, eax
je 0x10053294
mov esi, 0x80070057
jmp 0x100532dd
push 0x1000d7a0
lea ecx, [ebp - 0x210]
call fcn.10051bd7
mov esi, eax
test esi, esi
js 0x100532dd
mov ecx, dword [edi + 0xb8]
lea edx, [ebp - 0x41c]
and dword [ebp - 0x41c], 0
push edx
push 0xffffffffffffffff
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push edx
lea edx, [ebp - 0x418]
push edx
push 0
push 0x493e0
push ecx
call dword [eax + 0x1c]
mov esi, eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 1
jne 0x100532f3
xor eax, eax
jmp 0x100532f5
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10055284
mov esp, ebp
pop ebp
ret