joyce8/EMBER2024-capa huggingface dataset:
Function at 0x595d5f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push edi
mov edi, ecx
cmp byte [edi + 0x74], 0
je 0x595d85
push 0x596351
push 0x10
push 0x10
push 3
call fcn.005964d0
mov dword [edi + 0x68], eax
push 0x5969bb
push 9
push 9
push 2
mov ecx, edi
call fcn.005964d0
mov dword [edi + 0x6c], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x595db7
mov word [ebp - 0x208], ax
push 0x4011
mov ebx, 0x2b4
lea eax, [ebp - 0x4bc]
push ebx
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x4b8]
push 0x4013
mov dword [edi + 0x78], eax
lea eax, [ebp - 0x4bc]
push ebx
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4b8]
mov dword [edi + 0x7c], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5987d5
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6a9406
call fcn.006426c4
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x50], ebx
je 0x5988bb
push edi
mov edi, dword [esi + 4]
mov dword [ebp + 8], edi
test edi, edi
je 0x598804
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x50], ebx
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x59887a
push 0x14
call fcn.00642424
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
test edi, edi
je 0x598841
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [edi + 8], esi
mov dword [edi], 0x713614
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
jmp 0x598843
xor edi, edi
mov eax, dword [esi + 0x44]
mov ecx, ebx
or dword [ebp - 4], 0xffffffff
add ecx, ecx
push edi
push fcn.0058fdc4
push dword [eax + 4]
mov eax, dword [esi + 0x48]
push dword [eax + ecx*8]
push dword [0x7e4c80]
call fcn.0058ef9f
cmp byte [esi + 0x54], 0
mov dword [esi + 4], eax
je 0x598877
push eax
call fcn.0059002f
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x44]
or edx, 0xffffffff
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x38]
push 0x250
push eax
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x34]
push eax
push dword [esi + 0x38]
push dword [esi + 0x34]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0xc], 0
je 0x5988ba
push edi
push dword [ebp + 0xc]
call fcn.00596322
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x59d78d
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6bc76f
call fcn.006426c4
sub esp, 0x244
push ebx
xor ebx, ebx
inc ebx
cmp byte [ebp + 0xc], 0
push esi
mov dword [ebp - 0x10], ebx
je 0x59d7e0
call fcn.00494937
push eax
lea eax, [ebp - 0x28]
push str._s_Updater
push eax
call fcn.00465d5a
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x59d7ca
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040f95f
push 0x104
lea eax, [ebp - 0x250]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push 0x79587c
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x59d842
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], ebx
je 0x59d842
push dword [ebp + 0xc]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x59d842
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x59d842
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.004948f5
push eax
lea eax, [ebp - 0x28]
push str._s__BRINGTOFRONT
push eax
call fcn.00465d7f
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x59d864
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.005a15ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor esi, esi
mov bl, al
push 0
inc esi
push esi
call fcn.004285f6
test bl, bl
jne 0x59d8bd
call fcn.005817cb
test al, al
jne 0x59d8b9
push 0x6e3890
push 0x809
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0x10
call fcn.0058dfbe
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0058eef2
add esp, 0xc
mov byte [ebp - 0x10], 0
call fcn.0059e7bf
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59e5bd
Capabilities:
Create process on windows
Get common file path
Get comspec environment variable
Get startup folder
Query environment variable

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b198c
call fcn.006426c4
sub esp, 0x458
lea eax, [ebp - 0x464]
push ebx
push esi
push edi
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x59e7a9
xor ebx, ebx
lea eax, [ebp - 0x25c]
push ebx
push 0x25
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ping.exe
lea ecx, [ebp]
call fcn.00429d77
push 1
lea eax, [ebp]
mov dword [ebp - 4], ebx
push eax
sub esp, 0x18
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00429d77
lea eax, [ebp - 0x3c]
push eax
call fcn.00460bac
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004285f6
sub esp, 0x18
lea eax, [ebp - 0x24]
lea esi, [ebp - 0x3c]
push 6
pop ecx
mov edi, esp
push str._s__n_2_127.0.0.1_r_n
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00465d7f
add esp, 0x20
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0x18]
call fcn.00427fbe
push dword [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00428864
pop ecx
push eax
push dword [ebp + 0x70]
lea ecx, [ebp + 0x18]
call fcn.004286d2
push ebx
push ebx
lea eax, [ebp + 0x4c]
push eax
call fcn.00460dc6
mov esi, str..bat
mov byte [ebp - 4], 5
push esi
call fcn.00428864
pop ecx
push eax
push esi
lea ecx, [ebp + 0x4c]
call fcn.004286d2
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x59e6bd
lea eax, [ebp + 0x4c]
push 0x80
push 7
push eax
call fcn.00461def
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push eax
call fcn.00440ca9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x59e6e6
mov eax, dword [eax]
push dword [ebp + 0x28]
push eax
push dword [ebp + 0x64]
call fcn.004622b3
xor edi, edi
mov byte [ebp - 4], 5
push ebx
inc edi
lea ecx, [ebp]
push edi
call fcn.0040f95f
lea eax, [ebp + 0x64]
push eax
call fcn.00461d7f
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp + 0x30]
call fcn.00429d77
mov esi, str.__C
mov byte [ebp - 4], 7
push esi
call fcn.00428864
pop ecx
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.004286d2
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x30]
call fcn.00428642
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00440ca9
cmp dword [eax + 0x14], 0x10
jb 0x59e759
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x1f
lea ecx, [ebp - 0x54]
seta bl
xor esi, esi
push esi
push edi
call fcn.0040f95f
push esi
push edi
lea ecx, [ebp + 0x30]
call fcn.004285f6
push esi
push edi
lea ecx, [ebp + 0x4c]
call fcn.004285f6
push esi
push edi
lea ecx, [ebp + 0x18]
call fcn.004285f6
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.004285f6
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004285f6
mov al, bl
jmp 0x59e7ab
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret 4
Function at 0x5a1617
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0065d010
mov edi, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x54], esi
test edi, edi
je 0x5a167b
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [ebp + 0x14]
push 2
push 1
push ebx
push eax
call esi
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov ecx, dword [ebp - 0x28]
neg eax
mov dword [ebp - 0x18], edi
sbb eax, eax
or ecx, 0x100
and eax, dword [ebp + 0x14]
or ecx, 1
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
xor eax, eax
test edi, edi
push ebx
push ebx
setne al
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x5a16c2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x5a16b8
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
jmp 0x5a16bd
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
test edi, edi
je 0x5a16cb
push dword [ebp - 0x14]
call esi
xor eax, eax
test ebx, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x5a186d
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6aa30c
call fcn.006426c4
push ecx
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00427fbe
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00427fbe
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x32], al
mov eax, esi
mov byte [esi + 0x31], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a551b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6b24b4
call fcn.006426c4
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x716a50
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov byte [ebp - 4], 1
call fcn.005a5d2f
mov ecx, esi
call fcn.005a704e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5a5896
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b10e9
call fcn.006426c4
sub esp, 0x18
push ebx
push esi
push edi
push str.updates_
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
call fcn.00473fd0
mov edi, str.sua_pmr
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00428864
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.004286d2
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5a58dd
lea eax, [ebp - 0x24]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp byte [esi + 0x25], bl
jne 0x5a58f9
cmp eax, 0xffffffff
je 0x5a591a
mov bl, 1
cmp eax, 0xffffffff
je 0x5a591a
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5a5913
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x24]
mov byte [esi + 0x25], 0
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5a5d2f
Capabilities:
Create directory

Disassembly:
mov eax, 0x6b10e9
call fcn.006426c4
sub esp, 0x18
push str.updates_
lea eax, [ebp - 0x24]
push eax
call fcn.00473fd0
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5a5d5a
lea eax, [ebp - 0x24]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x5a5d92
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x5a5d92
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5a5d81
lea eax, [ebp - 0x24]
push eax
push str.Failed_to_create_directory:__S_n
call fcn.0040e3f1
pop ecx
pop ecx
xor bl, bl
jmp 0x5a5d94
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5a623d
Capabilities:
Get number of processors

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b2625
call fcn.006426c4
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
mov dword [ebp + 0x5c], 7
xor eax, eax
mov dword [ebp + 0x60], ebx
push edi
mov esi, ecx
mov dword [ebp + 0x58], ebx
mov word [ebp + 0x48], ax
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0x64]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp + 0x64], 0x75
call fcn.0043ffde
cmp eax, 0xffffffff
je 0x5a62a7
push dword [esi + 0x10]
mov ecx, esi
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00440c52
push eax
lea ecx, [ebp + 0x48]
call fcn.00428071
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.004285f6
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.005a64b9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x5a62be
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x30]
call fcn.0040f32f
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00440ca9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x5a62e4
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040f32f
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00439a88
mov edi, eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp]
push eax
call fcn.00439a88
mov ecx, eax
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x5a631f
mov edi, dword [edi]
cmp dword [ecx + 0x14], 0x10
jb 0x5a6327
mov ecx, dword [ecx]
movzx eax, byte [esi + 0x35]
push edi
push eax
push dword [esi + 0x38]
movzx eax, byte [esi + 0x34]
push eax
push dword [esi + 0x30]
push ecx
push str._path_:__s___version_:__d___blacklisted_:__d___crash_count_:__d___opt_out_:__d___running_:__s_
push dword [ebp + 0x70]
call fcn.00465d5a
add esp, 0x20
lea ecx, [ebp]
push ebx
push 1
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040f95f
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x68]
pop ebp
ret 4
Function at 0x5a7949
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b28df
call fcn.006426c4
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], 1
call fcn.00479151
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov esi, dword [eax]
cmp esi, dword [edi + 0x48]
je 0x5a7a00
mov ecx, dword [ebp + 8]
and ecx, 0x1ffeffff
mov dword [ebp + 8], ecx
push ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
and eax, 0x1ffeffff
sub eax, ecx
test eax, eax
jle 0x5a79f7
lea eax, [ebp - 0x2c]
mov ecx, edx
push eax
call fcn.005a61c3
push eax
mov byte [ebp - 4], 1
call fcn.00461896
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov bl, al
call fcn.004285f6
test bl, bl
je 0x5a79e3
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
call fcn.005a61c3
cmp dword [eax + 0x14], 8
jb 0x5a79d0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004285f6
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x44]
call fcn.005a88b3
mov ecx, dword [ebp + 8]
mov esi, dword [eax]
jmp 0x5a79fa
add esi, 4
cmp esi, dword [edi + 0x48]
jne 0x5a7982
pop ebx
mov ecx, edi
call fcn.005a8612
mov dword [ebp - 4], 2
call fcn.00479192
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5a7a27
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b10e9
call fcn.006426c4
mov eax, dword [ebp + 8]
sub esp, 0x18
push edi
mov edi, ecx
test eax, eax
jne 0x5a7a42
xor al, al
jmp 0x5a7a6b
push esi
mov esi, dword [edi + 0x44]
cmp esi, dword [edi + 0x48]
je 0x5a7a68
mov ecx, dword [eax + 0x30]
mov edx, 0x1ffeffff
and ecx, edx
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
and eax, edx
sub eax, ecx
je 0x5a7a7c
add esi, 4
cmp esi, dword [edi + 0x48]
jne 0x5a7a55
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.005a61c3
and dword [ebp - 4], 0
push eax
call fcn.00461896
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
mov bl, al
call fcn.004285f6
test bl, bl
pop ebx
je 0x5a7acf
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
push eax
call fcn.005a61c3
cmp dword [eax + 0x14], 8
jb 0x5a7abc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004285f6
push esi
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x44]
call fcn.005a88b3
mov ecx, edi
call fcn.005a8612
mov al, 1
jmp 0x5a7a6a
Function at 0x5af180
Capabilities:
Get file version info

Disassembly:
mov eax, 0x6b3237
call fcn.006426c4
sub esp, 0x48
push esi
push 2
pop esi
call fcn.005af0f1
push eax
lea ecx, [ebp - 0x3c]
call fcn.00427fbe
and dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00461896
test al, al
je 0x5af2d6
mov eax, dword [ebp - 0x3c]
xor esi, esi
inc esi
cmp dword [ebp - 0x28], 8
jae 0x5af1c3
lea eax, [ebp - 0x3c]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
or eax, 0
je 0x5af2d5
push edi
push 3
pop esi
push ebx
call fcn.00460621
mov edi, eax
test edi, edi
je 0x5af2d4
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x5af1f9
lea eax, [ebp - 0x3c]
push edi
push ebx
push dword [ebp - 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5af2cc
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
and dword [ebp - 0x18], 0
xor esi, esi
push eax
lea eax, [ebp - 0x18]
inc esi
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x14]
shr ecx, 2
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x5af2cc
xor ebx, ebx
test ecx, ecx
je 0x5af2cc
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + ebx*4 + 2]
push eax
movzx eax, word [ecx + ebx*4]
push eax
lea eax, [ebp - 0x54]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.00465d7f
add esp, 0x10
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 1
jae 0x5af27c
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5af295
cmp dword [ebp - 0x10], 0
jne 0x5af2ad
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004285f6
inc ebx
cmp ebx, dword [ebp - 0x24]
jl 0x5af245
jmp 0x5af2cc
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.00439135
xor esi, esi
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.004285f6
push 1
push edi
call fcn.00460614
pop edi
pop ebx
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5af4e9
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x6b32a5
call fcn.006426c4
sub esp, 0x58
push ebx
push esi
xor bl, bl
call fcn.005af0f1
push eax
call fcn.00461896
test al, al
je 0x5af620
and dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
call fcn.005af180
xor ecx, ecx
sub eax, ecx
je 0x5af690
dec eax
sub eax, 1
je 0x5af632
sub eax, 1
jne 0x5af5c1
mov dword [ebp - 0x38], 0x6c40ec
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
push str.oscode
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040f32f
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046ca1a
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040f95f
push str.verfail
lea ecx, [ebp - 0x28]
call fcn.0040f32f
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005aef9b
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f95f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00438f50
call fcn.005af707
call fcn.005af2f5
push eax
lea ecx, [ebp - 0x40]
call fcn.00427fbe
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 7
jae 0x5af5e4
lea eax, [ebp - 0x40]
push eax
call fcn.00461675
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004285f6
mov ecx, 0x7e60d0
call fcn.00694128
test al, al
jne 0x5af614
and dword [0x7e58f0], 0
call fcn.005aeb64
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x38], 0x6c40ec
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
push str.oscode
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040f32f
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046ca1a
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040f95f
push str.exegone
lea ecx, [ebp - 0x28]
call fcn.0040f32f
mov byte [ebp - 4], 3
jmp 0x5af59c
cmp dword [ebp - 0x54], ecx
je 0x5af5c1
lea eax, [ebp - 0x64]
mov esi, 0x7e5900
push eax
sub esp, 0xc
mov ecx, esi
push esp
call fcn.005aff77
sub esp, 0xc
mov ecx, esi
push esp
call fcn.004bb0fb
lea eax, [ebp - 0x1c]
push eax
call fcn.005ae0d2
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.005aff77
mov ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 8]
sete al
test al, al
je 0x5af5c1
lea eax, [ebp - 0x4c]
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
cmp word [ebp - 0x4c], 6
je 0x5af614
cmp word [ebp - 0x4c], 9
setne al
dec al
and bl, al
jmp 0x5af614