joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ad23c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x5abfb4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], 2
setle al
leave
ret

Function at 0x5ad25c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call fcn.006a5c3a
pop ecx
pop ecx
test eax, eax
je 0x5ad27e
xor al, al
jmp 0x5ad33b
cmp dword [ebp + 0xc], edi
je 0x5ad322
push esi
push 0x230
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0068ccc0
add esp, 0xc
lea eax, [ebp - 0x230]
mov esi, str.hh.exe
push 0x118
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
add eax, eax
lea ecx, [ebp - 0x230]
sub eax, esi
add ecx, eax
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x5ad2c0
push dword [ebp + 0xc]
lea eax, [ebp - 0x668]
push dword [ebp + 8]
push str.ms_its:_s::_s
push 0x438
push eax
call fcn.00474b43
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x230]
push eax
push str.Opening_help_file:__S__S
call fcn.0040f570
add esp, 0x20
lea eax, [ebp - 0x668]
push 1
push edi
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
jmp 0x5ad331
push 1
push edi
push edi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop edi
leave
ret 8
Function at 0x5ae493
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x10]
push esi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [0x7e5b28], 0
push 0x1bc
push dword [esi + 4]
je 0x5ae4d0
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x14]
jmp 0x5ae4e4
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
lea edx, [esi + 0x9c]
and dword [esi + 0xa0], 0
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xa4], eax
mov eax, dword [ebp - 4]
sub eax, ecx
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x74]
pop esi
test eax, eax
je 0x5ae51b
push edx
push dword [eax + 4]
call fcn.005bccdd
leave
ret
Function at 0x5bb509
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x6cfb28
call fcn.006899cc
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 8]
lea edi, [eax + 1]
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
push ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.0045b087
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5bb559
mov eax, dword [esi]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x5bb56e
mov ecx, dword [esi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5bb571
sub ecx, edx
sar ecx, 1
push ebx
push ecx
mov ecx, esi
call fcn.0045b087
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x5bb61c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
push ebp
push esi
push edi
push 5
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
je 0x5bb67b
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x5bb67b
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push edi
push dword [esp + 0x18]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add ecx, ebx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x5bb684
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push ebx
push ebp
push edi
call fcn.0068b600
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5bb6a0
mov dword [eax], ebx
mov eax, edi
jmp 0x5bb67d
Function at 0x5bd03b
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x20
lea eax, [esp + 4]
push ebp
push edi
xor ebp, ebp
mov edi, ecx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x5bd163
push esi
cmp eax, 0xffffffff
je 0x5bd14c
mov edx, dword [esp + 0x14]
cmp edx, 0x8012
je 0x5bd162
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x5bd100
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x5bd100
cmp byte [edi + 8], 0
jne 0x5bd14c
cmp edx, 0x100
jne 0x5bd0b4
push dword [esp + 0x10]
mov eax, dword [ecx]
push dword [esp + 0x1c]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x30]
test eax, eax
jne 0x5bd14c
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push 0x5bca0a
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc], ebp
jne 0x5bd0fc
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0x10]
jne 0x5bd0ec
mov edx, dword [esp + 0x14]
cmp edx, 0x100
jne 0x5bd100
cmp dword [esp + 0x18], 9
jne 0x5bd136
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x5bd14c
mov edx, dword [esp + 0x14]
cmp edx, 0x20a
jne 0x5bd136
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x5bd136
cmp esi, dword [esp + 0x10]
je 0x5bd136
push ebp
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x81bb00]
jne 0x5bd136
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x5bd05b
pop esi
mov eax, dword [esp + 0x14]
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x5bdc2a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x6e4802
call fcn.006899cc
sub esp, 0x34
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
xor ecx, ecx
push edi
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x71d708
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ecx
push eax
mov word [esi + 0x18], cx
call fcn.004848ce
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
jb 0x5bdc76
mov eax, dword [ebp - 0x40]
push 0x7464a8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047ecc9
push eax
mov ecx, esi
call fcn.00448080
lea ecx, [ebp - 0x28]
call fcn.0044823e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5bdc9f
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048fcb1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x5bdcb5
mov eax, dword [ebp - 0x28]
push 0x7464b0
push eax
call fcn.0069ab9c
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040fad0
test edi, edi
je 0x5bdcf5
push edi
push dword [ebp + 0xc]
mov byte [esi + 0x18], 1
push 1
push dword [ebp + 8]
call fcn.0069b116
add esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x5bdcee
mov byte [esi + 0x19], 1
push edi
call fcn.0069a5ee
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5bfaf2
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov eax, 0x6e4982
call fcn.006899cc
sub esp, 0x4ac
push ebx
push esi
xor ecx, ecx
lea eax, [ebp - 0x268]
push edi
push ecx
push 0x25
push eax
push ecx
mov dword [ebp - 4], ecx
mov bl, cl
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 7
xor edi, edi
pop esi
test eax, eax
je 0x5bfc0b
xor eax, eax
mov dword [ebp - 0x30], edi
push str.macromed_flash
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.004482e2
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004487f4
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
call fcn.004704c7
mov bl, al
test bl, bl
je 0x5bfbbc
push str._flash.ocx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00447d78
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
jb 0x5bfb95
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
setne bh
je 0x5bfbb2
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x48]
and bl, bh
call fcn.0044823e
lea ecx, [ebp - 0x60]
call fcn.0044823e
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x5bfbff
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x5bfbf6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044810a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 1
test bl, bl
je 0x5bfc42
push esi
push str.CurrentVersion
push str.SOFTWAREMacromediaFlashPlayer
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0049a392
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5c06ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call section..text
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5c06c2
sub esi, ecx
mov eax, 0x7d0
sar esi, 1
cmp esi, eax
jl 0x5c06dc
mov esi, eax
lea eax, [esi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push eax
call fcn.00449524
add esi, esi
lea edx, [ebp - 0x2000]
mov ecx, 0x746568
mov eax, esi
sub eax, ecx
add edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x5c0702
push 0x82d
lea eax, [ebp - 0x1ffa]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop esi
leave
ret 8

Function at 0x5c084b
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x5c085a
mov eax, dword [esi]
push 0x6fd85c
push eax
call fcn.0048f860
test al, al
jne 0x5c0882
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x5c0873
mov eax, dword [esi]
push 0x6ff6d0
push eax
call fcn.0048f860
test al, al
je 0x5c089c
cmp dword [esi + 0x14], 0x10
jb 0x5c088a
mov esi, dword [esi]
push 1
xor eax, eax
push eax
push eax
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret 8
Function at 0x5c21bb
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x6d356b
call fcn.006899cc
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor ebx, ebx
mov dword [ebp - 0x14], eax
push 0x81bfd8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00448193
cmp dword [ebp - 0x1c], 8
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
jb 0x5c21fa
mov esi, dword [ebp - 0x30]
push edi
mov byte [ebp - 0xd], 1
mov edi, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.0048f831
push 0x7c
push dword [ebp - 0x18]
mov esi, eax
call fcn.0048e318
mov edx, eax
mov eax, dword [ebp - 0x18]
cmp word [eax], bx
je 0x5c2244
inc edi
mov ecx, ebx
test edx, edx
je 0x5c2232
push edx
call fcn.005bfcea
mov ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.005bdd8f
mov byte [ebp - 0xd], 1
jmp 0x5c225e
cmp byte [ebp - 0xd], 0
je 0x5c225b
push ebx
push ebx
push edi
push 0x800
push dword [ebp - 0x14]
call fcn.005bdd8f
inc edi
mov byte [ebp - 0xd], bl
test esi, esi
jne 0x5c2201
push ebx
push 0x370
inc edi
call fcn.005ba91d
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.005bdd8f
push ebx
push ebx
push 0x800
push dword [ebp - 0x14]
mov esi, edi
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x8000
push 0x10
push 0x10
push 1
push 0x15a
push dword [0x81bb0c]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 0x36c
add edi, 2
call fcn.005ba91d
push eax
push edi
push ebx
push dword [ebp - 0x14]
call fcn.005bdd8f
mov eax, dword [0x81c024]
push 0x80
inc eax
push eax
push dword [ebp - 0x14]
push dword [0x81bb1c]
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov eax, dword [ebp + 8]
push ebx
push dword [0x81bb1c]
push ebx
push dword [eax + 4]
push dword [eax]
movzx eax, byte [ebp + 0xc]
xor eax, 1
lea eax, [eax*8 + 0x182]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x5c232c
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x5c2349
push 0x12
call fcn.006158de
jmp 0x5c2349
test eax, eax
je 0x5c2349
cmp eax, edi
push 0x10
sete byte [0x81c028]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x5c2349
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
cmp eax, 8
jb 0x5c2385
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x5c237c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5c4439
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 0x5c445f
push 0x5c4a45
push 0x10
push 0x10
push 3
call fcn.005c4ba2
mov dword [edi + 0x68], eax
push 0x5c5104
push 9
push 9
push 2
mov ecx, edi
call fcn.005c4ba2
mov dword [edi + 0x6c], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x5c4491
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
leave
ret
Function at 0x5c6f53
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6da038
call fcn.006899cc
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x54], ebx
je 0x5c7039
push edi
mov edi, dword [esi + 4]
mov dword [ebp + 8], edi
test edi, edi
je 0x5c6f82
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x50]
mov dword [esi + 0x54], ebx
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x5c6ff8
push 0x14
call fcn.0068973d
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
test edi, edi
je 0x5c6fbf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [edi + 8], esi
mov dword [edi], 0x746288
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
jmp 0x5c6fc1
xor edi, edi
mov eax, dword [esi + 0x48]
mov ecx, ebx
or dword [ebp - 4], 0xffffffff
add ecx, ecx
push edi
push fcn.005bc652
push dword [eax + 4]
mov eax, dword [esi + 0x4c]
push dword [eax + ecx*8]
push dword [0x81bb0c]
call fcn.005bb828
cmp byte [esi + 0x58], 0
mov dword [esi + 4], eax
je 0x5c6ff5
push eax
call fcn.005bc8b5
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x48]
or edx, 0xffffffff
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x3c]
push 0x250
push eax
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x38]
push eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0xc], 0
je 0x5c7038
push edi
push dword [ebp + 0xc]
call fcn.005c4a18
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5cc710
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6cf68d
call fcn.006899cc
sub esp, 0x240
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
je 0x5cc758
call fcn.004a64bb
push eax
lea eax, [ebp - 0x24]
push str._s_Updater
push eax
call fcn.004756fb
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x5cc747
mov eax, dword [eax]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
lea ecx, [ebp - 0x24]
call fcn.0040fad0
push 0x104
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push 0x7c96ec
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x5cc7ba
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], ebx
je 0x5cc7ba
push esi
push dword [ebp + 0xc]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x5cc7b9
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x5cc7b9
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
call fcn.004a6479
push eax
lea eax, [ebp - 0x24]
push str._s__BRINGTOFRONT
push eax
call fcn.00475719
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x5cc7dc
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.005d1ace
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0044823e
test bl, bl
je 0x5cc800
mov bl, 1
jmp 0x5cc835
call fcn.005ac51c
test al, al
jne 0x5cc833
push 0x7120e0
push 0x820
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x10
call fcn.005ba91d
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005bb77f
add esp, 0xc
xor ebx, ebx
call fcn.005cda09
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x5d1ae6
Capabilities:
Create a process with modified i/o handles and window
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.0068ccc0
mov edi, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x54], esi
test edi, edi
je 0x5d1b42
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]
neg eax
mov dword [ebp - 0x18], edi
sbb eax, eax
or dword [ebp - 0x28], 0x101
and eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
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 0x5d1b89
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x5d1b7f
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
jmp 0x5d1b84
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
test edi, edi
je 0x5d1b92
push dword [ebp - 0x14]
call esi
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x5d1f5e
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6d33f6
call fcn.006899cc
push ecx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00448193
push dword [ebp + 8]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00448193
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], bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x5d63b3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6e5e83
call fcn.006899cc
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x74995c
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [ebp - 4], 1
call fcn.005d6c81
mov ecx, esi
call fcn.005d87d2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x5d6659
Capabilities:
Delete file

Disassembly:
mov eax, 0x6cf68d
call fcn.006899cc
sub esp, 0x18
push ebx
push esi
push str.updates_
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
call fcn.004849d5
xor ebx, ebx
lea ecx, [ebp - 0x24]
push str.sua_pmr
mov dword [ebp - 4], ebx
call fcn.004578e2
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5d6696
mov eax, dword [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 + 0x29], bl
jne 0x5d66b2
cmp eax, 0xffffffff
je 0x5d66d3
mov bl, 1
cmp eax, 0xffffffff
je 0x5d66d3
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5d66cc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x24]
mov byte [esi + 0x29], 0
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5d6c81
Capabilities:
Create directory

Disassembly:
mov eax, 0x6cf68d
call fcn.006899cc
sub esp, 0x18
push ebx
push str.updates_
lea eax, [ebp - 0x24]
push eax
call fcn.004849d5
xor ebx, ebx
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], ebx
jb 0x5d6cae
mov eax, dword [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x5d6ce2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x5d6ce2
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5d6cd3
mov eax, dword [ebp - 0x24]
push eax
push str.Failed_to_create_directory:__S_n
call fcn.00412af0
pop ecx
pop ecx
jmp 0x5d6ce4
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret