joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414490
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eae1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push str.CUtility::GetFixedFileVersion
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.0055c1a0
mov dword [ebp - 4], 1
call fcn.004157d7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4144fa
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4145a1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
call fcn.0055cc70
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0055c840
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
push esi
push edi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x414595
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x585064
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414595
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx esi, word [eax + 8]
movzx edi, word [eax + 0xa]
push ecx
push edx
push esi
push edi
push str._u._u._u._u
push ebx
call fcn.00403f10
add esp, 0x18
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0055c540
push dword [ebx]
push str._CUtility::GetFixedFileVersion__Version____s_
push 2
call fcn.0055b0c0
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0055c210
mov eax, ebx
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 0x41698d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57396e
call fcn.0053ba14
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x4169b3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x416a07
call fcn.004157d7
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0053b924
push eax
call fcn.00401160
add esp, 0x14
test edi, edi
je 0x4169fa
push edi
call fcn.0053bb48
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401510
mov eax, esi
call fcn.0053b9e2
ret 8
Function at 0x41d5f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5fc128]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x41d642
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d65f
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5fc128], eax
jmp 0x41d64b
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41d65f
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41d6cc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41d67a
xor eax, eax
jmp 0x41d6cc
lea eax, [ebp - 0x210]
push eax
call fcn.0053bb48
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41d6ab
push 0x585064
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053d80d
add esp, 0xc
test eax, eax
jne 0x41d676
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053d80d
add esp, 0xc
test eax, eax
jne 0x41d676
lea eax, [ebp - 0x210]
push eax
call fcn.00422337
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00539682
leave
ret

Function at 0x41de73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41deb8
call fcn.00415bb3
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41deb8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41ded4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041bff4
mov ebx, eax
test edi, edi
je 0x41ded2
test esi, esi
je 0x41ded2
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42299d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00415bb3
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4229d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004229f3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4286e0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x428709
call fcn.00415bb3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x428736
push esi
push eax
mov ecx, 0x5fc17c
call fcn.00429741
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00428c9a
int3
Function at 0x42cd22
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5fc44c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x42cd7b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42cd98
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5fc44c], eax
jmp 0x42cd84
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42cd98
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x42ced5
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0055844b
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb48
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0053baec
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0055844b
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb48
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053baec
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0055844b
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb48
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053baec
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0055844b
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb48
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053baec
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0055844b
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb48
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053baec
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00539682
leave
ret
Function at 0x430643
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004165c9
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43067f
call fcn.0043085e
mov dword [esi + 0xc], 1
jmp 0x430684
call fcn.0043085e
cmp dword [esi], 0
je 0x4306cd
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4306a7
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00415499
jmp 0x4306b8
push 0xff
mov ecx, esi
call fcn.00401490
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004154bc
jmp 0x4306f1
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4306f1
push dword [esi]
push dword [ebp - 4]
call fcn.0042bbcd
pop esi
leave
ret 0xc

Function at 0x4307b5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043085e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4307fd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00415499
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004154bc
jmp 0x430808
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042bbcd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x438837
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x438881
call fcn.00415bb3
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43887e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4388ba
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x4388a3
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x4388a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x4388b8
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45a6df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45a6f7
call fcn.00415bb3
mov esi, dword [eax + 0xc]
push 0x592d98
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x45a74d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45a74c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45a72d
xor esi, esi
jmp 0x45a743
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0045a753
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x51ea5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x51ea79
mov edi, dword [esi + 0xc]
jmp 0x51eab9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x51ea92
call fcn.0041a385
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51eaa7
call fcn.0041a385
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51eab9
call fcn.0041a385
call fcn.00415bb3
cmp dword [eax + 0x3c], 0
je 0x51eace
push edi
mov ecx, ebx
call fcn.0051e37b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051ec91
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x51eaf1
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x51eafa
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54d698
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00542283
mov dword [ebp - 0x14], eax
cmp dword [0x600a20], edi
jne 0x54d789
push 0x800
push edi
push 0x5b6260
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x54d716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x54d869
push 0x5b6260
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x54d869
push 0x5b6278
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54d869
push eax
call ebx
push 0x5b6284
push esi
mov dword [0x600a20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5b6294
push esi
mov dword [0x600a24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x600a28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x600a30], eax
test eax, eax
je 0x54d786
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x600a2c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x54d7ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54d7a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x54d7c3
push 4
pop eax
jmp 0x54d86b
cmp dword [ebp - 0x14], edi
je 0x54d7c3
push dword [0x600a20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54d7a8
mov eax, dword [0x600a2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x54d821
cmp dword [0x600a30], esi
je 0x54d821
push eax
call ebx
push dword [0x600a30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x54d821
test eax, eax
je 0x54d821
call ecx
test eax, eax
je 0x54d816
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x54d816
test byte [ebp - 8], 1
jne 0x54d821
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x54d851
mov eax, dword [0x600a24]
cmp eax, esi
je 0x54d84e
push eax
call ebx
test eax, eax
je 0x54d84e
call eax
mov edi, eax
test edi, edi
je 0x54d84e
mov eax, dword [0x600a28]
cmp eax, esi
je 0x54d84e
push eax
call ebx
test eax, eax
je 0x54d84e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x600a20]
call ebx
test eax, eax
je 0x54d869
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x54d86b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00539682
leave
ret
Function at 0x558da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e1b1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157d7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x558df1
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x558e30
push 0x105
mov ecx, esi
call fcn.00401420
push dword [esi]
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jbe 0x558e79
lea edi, [eax + 1]
test edi, edi
jns 0x558e55
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x558e70
push edi
mov ecx, esi
call fcn.00401420
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x558ee6
push str._PSMisc::GetCurrentDirectory_
lea eax, [ebp - 0x14]
push eax
call fcn.00559120
mov dword [ebp - 4], 2
push dword [eax]
push 0x585068
push 0x10000
call fcn.0055b110
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x558eca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x558e4b
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x558f16
mov eax, dword [esi]
test eax, eax
je 0x558f00
push dword [eax - 8]
push eax
call fcn.0053a1a0
add esp, 8
test eax, eax
js 0x558e4b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x558e4b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x558f30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dea1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157d7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x558f7f
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x559013
lea edi, [eax + 1]
test edi, edi
jns 0x558fbe
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x558fd9
push edi
mov ecx, esi
call fcn.00401420
push edi
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x558fef
xor ecx, ecx
jmp 0x559001
push dword [eax - 8]
push eax
call fcn.0053a1a0
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x558fb4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x558fb4
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x55a320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e1b1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157d7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55a371
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x55a3b0
push 0x104
mov ecx, esi
call fcn.00401420
push dword [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp edi, 0x104
jbe 0x55a3fb
test edi, edi
jns 0x55a3d5
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x55a3f0
push edi
mov ecx, esi
call fcn.00401420
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x55a464
push 0x5bb770
lea eax, [ebp - 0x14]
push eax
call fcn.00559120
mov dword [ebp - 4], 2
push dword [eax]
push 0x585068
push 0x10000
call fcn.0055b110
add esp, 0xc
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55a448
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x55a3cb
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x55a494
mov eax, dword [esi]
test eax, eax
je 0x55a47e
push dword [eax - 8]
push eax
call fcn.0053a1a0
add esp, 8
test eax, eax
js 0x55a3cb
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x55a3cb
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x55a6b0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test bl, bl
je 0x55a6e6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55a6e6
test al, 1
je 0x55a6e6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x55a6e6
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
xor eax, eax
test bl, bl
setne al
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret 0xc