joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52085a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0044c2fb
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x44c736
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004f94b2
push 0x56a740
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004f85a4
push edi
push esi
call fcn.0044c75f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 4

Function at 0x44db70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52075b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00405f2d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x44dbcb
push 1
mov dword [esi], 0
call fcn.0044c27f
add esp, 4
mov dword [esi], eax
jmp 0x44dbcd
xor esi, esi
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452e97
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x455580
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521226
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [edi], 0x534640
mov eax, dword [edi + 4]
mov dword [ebp - 4], 1
test eax, eax
je 0x4556d7
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push dword [edi + 0xc]
call esi
cmp eax, 0x102
jne 0x455606
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [edi + 0xc]
call esi
push dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x4556af
mov edi, edi
mov ebx, dword [esi + 8]
cmp dword [ebx + 4], 0
je 0x455695
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test al, 1
je 0x455652
and eax, 0xfffffffe
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], eax
call fcn.0046e3c0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test al, 2
je 0x455679
and eax, 0xfffffffd
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], eax
call fcn.0046e3c0
push dword [ebx]
mov ecx, dword [ebx + 4]
call fcn.00455740
mov ecx, dword [ebx + 4]
add ecx, 0x10
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebx + 4], 0
push ebx
call fcn.004085be
mov esi, dword [esi]
add esp, 4
cmp esi, dword [edi + 0x2c]
jne 0x455620
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0xc]
call ebx
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4556c2
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push dword [edi + 8]
call ebx
cmp dword [edi + 4], 0
je 0x4556d7
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x34]
push eax
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004114b0
push dword [edi + 0x34]
call fcn.004085be
mov eax, dword [edi + 0x2c]
add esp, 4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
mov dword [edi + 0x30], 0
cmp ecx, dword [edi + 0x2c]
je 0x455722
lea ecx, [ecx]
mov esi, dword [ecx]
push ecx
call fcn.004085be
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x455710
push dword [edi + 0x2c]
call fcn.004085be
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52129a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 6
mov dword [ebp - 0x14], 0
call fcn.00439b20
test al, al
je 0x455885
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push dword [esi]
call edi
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x455875
cmp dword [ebp - 0x14], 0x103
jne 0x455885
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [esi]
call edi
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4558a3
mov ecx, edi
call fcn.004559b0
push edi
call fcn.004085be
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x30]
mov byte [ebp - 4], 5
test eax, eax
je 0x4558be
push eax
call fcn.004039d2
add esp, 4
mov dword [esi + 0x30], 0
mov edi, dword [esi + 0x24]
mov byte [ebp - 4], 4
test edi, edi
je 0x4558d9
mov ecx, edi
call fcn.004559b0
push edi
call fcn.004085be
add esp, 4
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
test eax, eax
je 0x455909
cmp eax, 0xffffffff
je 0x455909
call fcn.00410f80
push dword [esi + 0x1c]
call edi
test eax, eax
jne 0x455902
call fcn.004103b0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x455933
cmp eax, 0xffffffff
je 0x455933
call fcn.00410f80
push dword [esi + 0x18]
call edi
test eax, eax
jne 0x45592c
call fcn.004103b0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x45595d
cmp eax, 0xffffffff
je 0x45595d
call fcn.00410f80
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x455956
call fcn.004103b0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x455987
cmp eax, 0xffffffff
je 0x455987
call fcn.00410f80
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x455980
call fcn.004103b0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00439940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
Function at 0x4569a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5214f6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov byte [edi], 0
lea ecx, [edi + 0x30]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.00405fb0
mov dword [edi + 0x30], eax
mov dword [edi + 0x50], 0
lea ecx, [edi + 0x54]
mov dword [ebp - 4], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
call fcn.00405fb0
mov dword [edi + 0x54], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x38]
push eax
mov byte [ebp - 4], 1
call esi
lea eax, [edi + 0x14]
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458d00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523068
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x458e6b
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x30], esi
xor eax, eax
movq qword [ebp - 0x38], xmm0
push 0x52da38
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.00407750
push 2
push 0x52da40
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.0040ef80
push 1
push 0x52da48
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 2
push 0x52da4c
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 2
push 0x52da54
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 1
push 0x52da48
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 2
push 0x52da5c
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 3
push 0x52da64
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 2
push 0x52da6c
lea ecx, [ebp - 0x28]
call fcn.0040ef80
push 1
push 0x52da74
lea ecx, [ebp - 0x28]
call fcn.0040ef80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push esi
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x458e5a
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x458e5a
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
jb 0x458e27
mov edi, dword [edi]
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x458e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x458e47
xor esi, esi
jmp 0x458e4c
mov esi, 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x458e5a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 8
jb 0x458e6b
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
Function at 0x459430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5235c9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov ecx, esi
push eax
push 0x52d9b8
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov word [esi], ax
call fcn.00407750
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x53104c
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4594f1
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x4594f1
cmp word [edx], 0
jne 0x4594ca
xor ecx, ecx
jmp 0x4594df
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4594d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00407750
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret

Function at 0x459510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], 0
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
test eax, eax
je 0x459568
lea eax, [ebp - 0x210]
push eax
jmp 0x45956d
push 0x52d9b8
call fcn.004076f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401590
mov esp, ebp
pop ebp
ret
Function at 0x459b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52181c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x38]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.00405fb0
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x54], 7
mov dword [edi + 0x50], 0
mov dword [ebp - 4], 0
mov word [edi + 0x40], ax
xor ecx, ecx
mov dword [edi + 0x6c], 7
mov dword [edi + 0x68], eax
mov word [edi + 0x58], cx
mov dword [edi + 0x84], 7
mov dword [edi + 0x80], ecx
mov word [edi + 0x70], ax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov byte [ebp - 4], 3
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi], ecx
mov byte [edi + 0xc], cl
mov byte [edi + 0x88], cl
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x459c7c
cmp word [edx], 0
jne 0x459c5e
xor ecx, ecx
jmp 0x459c72
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c63
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x40]
call fcn.00407750
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x459cab
cmp word [edx], 0
jne 0x459c8d
xor ecx, ecx
jmp 0x459ca1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c92
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x58]
call fcn.00407750
call fcn.004586f0
cmp eax, 0x68
jl 0x459ce8
push 0x52dac0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x459ce8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedPipeServerProcessId
push ebx
call esi
push str.GetNamedPipeClientProcessId
push ebx
mov dword [edi + 0x8c], eax
call esi
mov dword [edi + 0x90], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45a690
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x45a7c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45a72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x45a7b3
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x45a7b3
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45a7b3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x45a7a7
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x45a773
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x45a773
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push edi
call eax
test eax, eax
je 0x45a773
mov eax, dword [ebp - 8]
test eax, eax
je 0x45a773
cmp eax, ebx
je 0x45a773
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x45a7a7
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x45a7a7
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x45a7b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401590
mov esp, ebp
pop ebp
ret 0x20
Function at 0x45b000
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.004f9050
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f9050
add esp, 0x18
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
push 0x105
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x52dc10
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x45b0be
push 0x104
push esi
push dword [ebp - 0x420]
call fcn.0045b140
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x45b0f7
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x45b119
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
push 0x104
push esi
call fcn.0042ede0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45b10a
push eax
push 0x104
push esi
call fcn.0042ede0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401590
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45b0e7
cmp dword [ebp + 0x10], 0
jne 0x45b0e7
push str.TsnIorcAeBoda
jmp 0x45b0ec
Function at 0x45b1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x190000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45b1f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xd
pop edi
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x45b228
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45b23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
jmp 0x45b289
cmp dword [ebp + 0x10], esi
je 0x45b289
xor eax, eax
mov byte [ebp - 8], 0
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 8]
push eax
push edi
call fcn.0045b2b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45b289
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 8]
inc ecx
cmp eax, ecx
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0xc]
mov esi, 0xd
push eax
push 4
lea eax, [ebp - 0x14]
cmove esi, edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00401590
mov esp, ebp
pop ebp
ret

Function at 0x45b2b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
lea ebx, [edi + 0xd]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45b32b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
cmove esi, ebx
cmp esi, 0xe8
jne 0x45b318
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp edi, 0xa
jl 0x45b2d4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], 4
pop edi
cmove ebx, eax
xor ecx, ebp
pop esi
mov eax, ebx
pop ebx
call fcn.00401590
mov esp, ebp
pop ebp
ret