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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
mov eax, ecx
push 5
mov esi, str.GetRegistryDWORDValue
pop ecx
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x30c
lea ecx, [ebp - 0x334]
push esi
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call fcn.00437528
push dword [ebp - 0xc]
mov edi, eax
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call fcn.0043d480
add esp, 0xc
cmp edi, esi
jae 0x4376bf
cmp edi, ebx
jle 0x4376bf
cmp dword [ebp + 8], ebx
je 0x43766a
lea eax, [ebp - 0x334]
push 0x458374
push eax
call fcn.0043dae0
push dword [ebp + 8]
lea eax, [ebp - 0x334]
push eax
call fcn.0043dae0
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x334]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 8], ebx
je 0x4376bf
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4376a7
cmp dword [ebp - 0x10], 4
jne 0x4376b6
cmp eax, 0xea
je 0x4376b6
cmp eax, ebx
jne 0x4376b6
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4376c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
mov eax, ecx
push 5
mov esi, str.SetRegistryDWORDValue
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x30c
lea ecx, [ebp - 0x328]
push esi
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00437528
cmp eax, esi
jae 0x437789
cmp eax, ebx
jle 0x437789
cmp dword [ebp + 8], ebx
je 0x437733
lea eax, [ebp - 0x328]
push 0x458374
push eax
call fcn.0043dae0
push dword [ebp + 8]
lea eax, [ebp - 0x328]
push eax
call fcn.0043dae0
add esp, 0x10
lea eax, [ebp - 4]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
lea eax, [ebp - 0x328]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x437767
lea eax, [ebp - 0x328]
push eax
push esi
call sub.hccutils.DLL_CreateThisKey
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x437789
lea ecx, [ebp + 0x10]
push 4
push ecx
push 4
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x437780
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret 0xc
Function at 0x437c6c
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x44a1f8
call fcn.0043d3b4
sub esp, 0x48
mov al, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0x24], al
xor eax, eax
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov cl, byte [ebp + 0xb]
mov dword [ebp - 4], eax
mov byte [ebp - 0x44], cl
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004389d9
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call fcn.00437990
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x437d45
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi]
push dword [ebx]
call edi
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
test eax, eax
je 0x437d31
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x437d06
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [esi + 4]
push dword [ebx]
call edi
push 0
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x437d31
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
lea ecx, [ebp - 0x24]
call fcn.00438a38
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x44]
push eax
call fcn.00438a38
add esi, 8
cmp esi, dword [ebp - 0x2c]
jne 0x437ccd
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x40]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x1c]
cmp edi, eax
je 0x437d7f
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
cmp ecx, dword [edx]
je 0x437d73
push 1
push dword [esi + 4]
push dword [esi]
push ecx
mov ecx, ebx
call fcn.00437842
mov eax, dword [ebp - 0x1c]
add dword [ebp + 8], 8
add edi, 8
add esi, 8
jmp 0x437d54
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x437d8e
sub eax, dword [ebp - 0x20]
sar eax, 3
mov esi, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00438a86
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00438a86
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00438a86
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4381ef
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x2c]
push dword [esi + 0x48]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push dword [esi + 0x24]
push dword [esi + 0x48]
call edi
push 0
push eax
call ebx
push dword [esi + 0x20]
push dword [esi + 0x48]
call edi
push 0
push eax
call ebx
push dword [esi + 0x28]
push dword [esi + 0x48]
call edi
push 0
push eax
call ebx
push dword [esi + 0x44]
push dword [esi + 0x48]
call edi
push 1
push eax
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x438245
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x2c]
push dword [esi + 0x48]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push eax
call ebx
push dword [esi + 0x24]
push dword [esi + 0x48]
call edi
push 1
push eax
call ebx
push dword [esi + 0x20]
push dword [esi + 0x48]
call edi
push 1
push eax
call ebx
push dword [esi + 0x28]
push dword [esi + 0x48]
call edi
push 1
push eax
call ebx
push dword [esi + 0x44]
push dword [esi + 0x48]
call edi
push 0
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x43947a
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x44a2b2
call fcn.0043d3b4
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xc], eax
lea edi, [ebx + 0x24]
fild dword [0x461320]
fidiv dword [0x461324]
fstp qword [ebx + 0x48]
fild dword [0x461324]
fidiv dword [0x461320]
fstp qword [ebx + 0x50]
mov ecx, dword [0x461324]
mov eax, dword [0x461320]
push ecx
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00439a22
mov esi, eax
push 0x64
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x20], esi
call fcn.0043d464
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x439518
mov eax, dword [ebx + 0x5c]
mov edx, 0x44b544
cmp eax, esi
je 0x439501
mov edx, eax
push dword [0x461330]
lea eax, [ebx + 0x24]
push 3
push eax
push edx
push dword [ebp + 8]
call fcn.00439738
jmp 0x43951a
xor eax, eax
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov dword [ebx + 0x6c], eax
call fcn.00439a93
mov dword [ebx + 0x10], eax
push dword [0x46133c]
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x43adfb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xe4], 0
mov byte [ebx + 8], 1
jne 0x43ae2c
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x43ae1f
mov eax, 0x44b544
push eax
call fcn.0043aec5
pop ecx
mov dword [ebx + 0xe4], eax
push dword [ebx + 0x30]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
push eax
call esi
push 0
push eax
mov dword [ebx + 0x110], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x100]
lea esi, [ebx + 0xf8]
sub eax, dword [esi]
test eax, eax
jle 0x43ae98
mov eax, dword [ebx + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 4], eax
mov eax, dword [0x45da80]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043ade3
push dword [eax + 4]
mov ecx, dword [ebx + 0xe4]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439361
jmp 0x43aec0
mov eax, dword [0x45da80]
mov esi, dword [ebx + 0x30]
mov ecx, ebx
mov edi, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.0043ade3
push dword [eax + 4]
mov ecx, dword [ebx + 0xe4]
push dword [eax]
push esi
push edi
call fcn.0043947a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e00e733
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.2e02ec1d
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
add esp, 0xc
mov esi, 0x2e0484f0
push 0x2e001760
mov ecx, esi
mov dword [ebp - 0x3c], 0x100
mov dword [ebp - 0x34], 0x2e001758
mov dword [ebp - 0x30], edi
call fcn.2e0250a7
push edi
mov ecx, esi
call fcn.2e0250a7
push 0x2e001756
mov ecx, esi
call fcn.2e0250a7
push 0x2e001294
mov ecx, esi
call fcn.2e0250a7
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
test eax, eax
jne 0x2e00e7c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e040994
lea eax, [ebp + 8]
push eax
call fcn.2e02dc28
cmp dword [ebp - 8], 0
je 0x2e00e7d6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x2e00f2c2
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x2e00f300
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x2e040994
lea eax, [ebp + 0xc]
push eax
call fcn.2e02dc28
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x2e00f32d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
jmp 0x2e00f2e5
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x2e00f354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x2e00f320
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x2e00f341
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret 0xc
Function at 0x2e00f38a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x2e00f3d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e040994
lea eax, [ebp + 8]
push eax
call fcn.2e02dc28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x2e00f3f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x2e00f3b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 8

Function at 0x2e00f4e7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x2e048994]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call fcn.2e02ed96
lea eax, [ebp - 0x10c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2e00f51d
push edi
sub eax, edx
mov byte [ebp + eax - 0x10b], cl
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
mov eax, 0x414
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
test eax, eax
je 0x2e00f59a
push 0x3e3
lea ecx, [ebp - 0x114]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
push 0x2e040994
lea eax, [ebp - 0x110]
push eax
call fcn.2e02dc28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2e02e587
leave
ret 4

Function at 0x2e00f6e6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x50], 0
je 0x2e00f71d
cmp dword [ecx + 0x54], 0x10
jb 0x2e00f6fb
mov ecx, dword [ecx + 0x40]
jmp 0x2e00f6fe
add ecx, 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x2e00f71d
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x2e040b54
lea eax, [ebp - 1]
push eax
call fcn.2e02dc28
leave
ret
Function at 0x2e018877
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx], ecx
jne 0x2e0188a4
lea ecx, [ebp + 0x13]
call fcn.2e0187c3
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x2e041ea8
lea eax, [ebp + 0xf]
push eax
call fcn.2e02dc28
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x2e0188f0
dec eax
je 0x2e0188d9
dec eax
je 0x2e0188c5
lea ecx, [ebp + 0x13]
call fcn.2e00f17a
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x2e040dfc
jmp 0x2e01889b
mov esi, dword [ebp + 0xc]
push 2
mov eax, esi
pop edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x2e0188d0
jmp 0x2e0188eb
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, esi
inc edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x2e0188e4
sub eax, ecx
inc eax
jmp 0x2e018904
push dword [ebp + 0xc]
call fcn.2e02f299
pop ecx
push 4
mov dword [ebp - 4], eax
pop eax
lea esi, [ebp - 4]
mov edi, eax
push eax
push esi
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x2e018936
push eax
lea ecx, [ebp + 0x10]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x2e040994
lea eax, [ebp + 0xc]
jmp 0x2e01889e
leave
ret 0xc
Function at 0x2e01c890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x2e01c89e
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e01c8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x2e040994
lea eax, [ebp + 0xc]
push eax
call fcn.2e02dc28
leave
ret 8

Function at 0x2e021f8d
Capabilities:
Get common file path

Disassembly:
push 0x250
mov eax, 0x2e03f4e7
call fcn.2e02e634
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], ebx
mov byte [ebp - 0x118], 0
call fcn.2e02ec1d
and dword [ebp - 4], 0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x2e022011
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x158]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
push 0x2e040994
lea eax, [ebp - 0x154]
push eax
call fcn.2e02dc28
push 0xffffffffffffffff
push 0x2e007430
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.2e02f668
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.2e02f668
add esp, 0x20
mov esi, 0x2e0484f0
push 0x2e0073fc
mov ecx, esi
call fcn.2e0250a7
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.2e0250a7
push 0x2e001334
mov ecx, esi
call fcn.2e0250a7
push 0x2e001294
mov ecx, esi
call fcn.2e0250a7
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.2e025945
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 1
jae 0x2e02209b
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x25c]
call fcn.2e00f71f
push dword [eax]
mov ecx, dword [ebp - 0x148]
push ebx
mov byte [ebp - 4], 2
call fcn.2e020ca3
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x25c], eax
je 0x2e0220d3
push dword [ebp - 0x25c]
call fcn.2e02defb
pop ecx
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.2e00d134
call fcn.2e02e68d
ret 8
Function at 0x2e022ee2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x2e022f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e040994
lea eax, [ebp + 8]
push eax
call fcn.2e02dc28
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x2e022f0d
lea eax, [esi + 1]
push eax
call fcn.2e02ed6a
pop ecx
mov dword [edi], eax
cmp eax, ebx
jne 0x2e022f5e
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x2e0433c4
lea eax, [ebp + 0xb]
jmp 0x2e022f29
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2e022f0d
mov eax, dword [edi]
push dword [ebp + 8]
mov byte [esi + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x2e0251a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x2e048994]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x103
xor ebx, ebx
push esi
mov edi, ecx
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x2e025208
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x2e040994
lea eax, [ebp - 0x10c]
push eax
call fcn.2e02dc28
inc dword [ebp - 0x10c]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push 0x2e0089d8
push esi
push edi
call fcn.2e0250e0
add esp, 0x14
test eax, eax
jl 0x2e025252
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x2e025263
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x2e025208
jmp 0x2e025271
push 0x2e008998
mov ecx, 0x2e0484f0
call fcn.2e0250a7
jmp 0x2e025271
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.2e0250ff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e02e587
leave
ret
Function at 0x2e028f2b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x2e048994]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, edx
push esi
mov dword [ebp - 0x10c], edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2e028f4d
sub eax, esi
cmp eax, 2
je 0x2e029015
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push edx
call esi
test eax, eax
jne 0x2e029015
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x2e029013
cmp eax, 3
je 0x2e028fb3
push eax
lea ecx, [ebp - 0x110]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x2e040994
lea eax, [ebp - 0x10c]
push eax
call fcn.2e02dc28
push 0xffffffffffffffff
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.2e02ed96
add esp, 0x10
cmp eax, 0x50
jne 0x2e028fd8
push 0x7b
jmp 0x2e028f8f
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.2e02f2a1
pop ecx
pop ecx
test eax, eax
je 0x2e028fd4
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.2e028f2b
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x2e029013
call edi
cmp eax, ebx
jne 0x2e028f8e
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e02e587
leave
ret 4

Function at 0x2e02960d
Capabilities:
Create restart manager session

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 0x46], 0
je 0x2e029637
lea ecx, [ebp - 2]
call fcn.2e0187e9
mov al, byte [eax]
mov byte [ebp - 1], al
push 0x2e041f78
lea eax, [ebp - 1]
push eax
call fcn.2e02dc28
lea eax, [esi + 4]
push eax
push 0
push esi
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
je 0x2e02965f
push eax
lea ecx, [ebp - 0xc]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 8], eax
push 0x2e040994
lea eax, [ebp - 8]
jmp 0x2e029631
mov byte [esi + 0x46], 1
pop esi
leave
ret