joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e058
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4a5010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
call fcn.004595d0
cmp dword [eax], 2
jl 0x40153d
mov edi, 1
call fcn.004595d0
cmp dword [eax], edi
jle 0x40153d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call fcn.004595d6
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
cmp word [eax], 0x2d
jne 0x4014c2
call fcn.004595d6
mov eax, dword [eax]
mov esi, dword [eax + edi*4]
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x401494
test esi, 0xffff0000
jne 0x40147e
movzx esi, si
mov ecx, esi
call fcn.004031b0
test eax, eax
je 0x4014a0
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00402300
jmp 0x4014a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401483
sub eax, edx
sar eax, 1
jmp 0x401496
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402560
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
lea ecx, [ecx + 4]
call fcn.00401820
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
jmp 0x401517
call fcn.004595d6
mov eax, dword [eax]
push dword [eax + edi*4]
call ebx
test eax, eax
je 0x40152f
call fcn.004595d6
mov eax, dword [eax]
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40152f
call fcn.004595d6
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.00401980
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
mov ecx, 0x4a9ccc
call fcn.00401820
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40152f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
call fcn.004595d0
cmp edi, dword [eax]
jl 0x401421
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 0x4032d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4032e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403326
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403322
nop word [eax + eax]
cmp esi, edx
jae 0x403326
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403310
cmp esi, edx
jb 0x40332d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411490
Capabilities:
Check if file exists
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f878
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xffffff00
and ax, cx
movzx edi, ax
mov eax, dword [ebp + 8]
add eax, 0xffffffe5
cmp eax, 0x35
ja case.0x4114e9.28
movzx eax, byte [eax + 0x411678]
jmp dword [eax*4 + 0x411658]
test di, di
je case.0x4114e9.28
mov ecx, esi
call fcn.004116b0
jmp case.0x4114e9.28
mov ecx, dword [esi + 0x40c]
push 1
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsVisible_int_]
test eax, eax
je case.0x4114e9.28
test di, di
je case.0x4114e9.28
mov ecx, esi
call fcn.00414990
jmp case.0x4114e9.28
mov ecx, dword [esi + 0x444]
push 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsVisible_int_]
test eax, eax
je case.0x4114e9.28
mov ecx, dword [esi + 0x444]
push 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsDisabled_int_]
test eax, eax
jne case.0x4114e9.28
test di, di
je case.0x4114e9.28
mov ecx, dword [esi + 0x494]
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00406ce0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 8
jb 0x41158e
mov edx, dword [edx]
sub esp, 0x18
mov ecx, esp
call fcn.0043abf0
call fcn.0043a9f0
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.004072a0
jmp case.0x4114e9.28
push ecx
push str.imageError
lea ecx, [esi + 4]
call fcn.0041c940
mov ecx, dword [esi + 0x494]
mov ebx, eax
call fcn.00406520
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.0x4114e9.28
mov ecx, dword [esi + 0x43c]
push 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsDisabled_int_]
mov edi, dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsVisible_int_]
test eax, eax
jne 0x4115f9
mov ecx, dword [esi + 0x40c]
push 1
call edi
test eax, eax
jne 0x411603
push 1
mov ecx, ebx
call edi
test eax, eax
je case.0x4114e9.28
mov ecx, esi
call fcn.00416190
jmp case.0x4114e9.28
mov ecx, esi
call fcn.00415450
jmp case.0x4114e9.28
mov ecx, esi
call fcn.004154a0
jmp case.0x4114e9.28
mov ecx, dword [esi + 0x458]
push 0
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsVisible_int_]
test eax, eax
jne case.0x4114e9.28
mov ecx, esi
call fcn.00416380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe06
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4a5010]
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 ecx, dword [esi + 0x494]
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00406ce0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x14], 8
jb 0x4149ec
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401980
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414a4c
mov ecx, dword [esi + 0x494]
push dword [ecx + 0x1cc]
call fcn.00406d70
push eax
call fcn.00412ec0
mov esi, eax
test esi, esi
je 0x414a4c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 4], 1
mov edi, dword [ecx - 0xc]
jle 0x414a3b
push edi
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov ecx, dword [ebp - 0x14]
push esi
push ecx
lea edx, [edi*2 + 2]
call fcn.0043a150
add esp, 8
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414a6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x414a99
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x414a99
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x414a99
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.0043f53f
mov esp, ebp
pop ebp
ret
Function at 0x418800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4705b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x404]
mov edi, dword [ebp + 8]
push 0
push dword [0x4a5b94]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push edi
mov ecx, esi
call fcn.00418a00
mov ecx, dword [esi + 0x494]
push edi
call fcn.0040bb60
mov ecx, esi
call fcn.00418210
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x40c]
mov dword [ecx + 0x190], eax
inc dword [0x4a9f90]
mov eax, dword [esi + 0x494]
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x4188a3
test eax, eax
je 0x4188a3
mov eax, dword [ecx + edi*8]
cmp dword [eax + 0x14], 8
jb 0x4188a5
mov eax, dword [eax]
jmp 0x4188a5
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
call fcn.00401980
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4188c9
push 0x80070057
call fcn.00403340
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4188e6
push esi
lea ecx, [ebp - 0x14]
call fcn.004023a0
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00459808
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4188bf
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x4189c3
push dword [ebp - 0x14]
mov ebx, dword [0x4a9f58]
lea eax, [ebp - 0x14]
mov edx, dword [0x4a9f5c]
mov ecx, ebx
push eax
call fcn.0041e750
add esp, 8
cmp eax, dword [0x4a9f5c]
je 0x418955
push eax
lea eax, [ebp - 0x18]
mov ecx, 0x4a9f58
push eax
call fcn.0041ab30
mov ebx, dword [0x4a9f58]
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
lea eax, [ebp - 0x18]
mov ecx, 0x4a9f58
push eax
call fcn.0041b6e0
mov ecx, dword [0x4a9f5c]
mov eax, ecx
sub eax, dword [0x4a9f58]
sar eax, 2
cmp eax, 0x14
jbe 0x4189b9
nop
mov edx, dword [ecx - 4]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41899a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4a9f5c]
sub ecx, 4
mov eax, ecx
mov dword [0x4a9f5c], ecx
sub eax, dword [0x4a9f58]
sar eax, 2
cmp eax, 0x14
ja 0x418980
mov ecx, 0x4a9d08
call fcn.00424990
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4189e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret 4
Function at 0x423d90
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 5
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.ABCPhoto
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x423df1
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
push str.PhotoViewer
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x423e16
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ABCPhoto
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x423e4e
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push str.PhotoViewer
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x423e73
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423e80
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a9d10
call fcn.00402560
push dword [0x4a9f9c]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop edi
lea ecx, [ebp - 0x20c]
pop esi
lea edx, [ecx + 2]
pop ebx
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423ec0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a9fa0
call fcn.00402560
call fcn.00423f00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x4a9d08], eax
call fcn.0043f53f
mov esp, ebp
pop ebp
ret
Function at 0x439f70
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474d08
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a5010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439fbc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x439fa8
lea edi, [eax + 1]
push edi
call fcn.0043fb6b
mov esi, eax
mov dword [ebp - 0x20], esi
push edi
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00458500
add esp, 0x10
push esi
push dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43a036
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43a036
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.00401b40
mov edi, 1
jmp 0x43a038
xor edi, edi
test esi, esi
je 0x43a047
push 1
push esi
call fcn.0043f550
add esp, 8
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

Function at 0x43a150
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
push str.Preferred_DropEffect
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [ebp - 0x10], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movaps xmm0, xmmword [0x4916c0]
lea edi, [edi*2 + 0x1c]
push edi
push 0x2042
mov dword [ebp - 0x24], 0x14
movups xmmword [ebp - 0x20], xmm0
call ebx
mov ebx, eax
push ebx
call esi
mov esi, eax
mov edx, edi
lea eax, [ebp - 0x24]
mov ecx, esi
push 0x14
push eax
call fcn.00439a10
mov edx, dword [ebp - 8]
lea ecx, [esi + 0x14]
push edx
push dword [ebp - 0xc]
call fcn.00439a10
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43a220
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x43a20d
push eax
push 8
call esi
push ebx
push 0xf
call esi
push dword [ebp - 4]
push dword [ebp - 0x10]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
push esi
pextrw eax, xmm0, 6
mov esi, ecx
movq qword [ebp - 0x21c], xmm0
mov ecx, 0x414
mov word [ebp - 0x214], 0
movups xmmword [ebp - 0x22c], xmm0
or ax, cx
push 0x20a
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00458500
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00459bde
or word [ebp - 0x220], 0x40
lea eax, [ebp - 0x210]
add esp, 0x18
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], 0
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043f53f
mov esp, ebp
pop ebp
ret

Function at 0x43a2f0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474d40
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a5010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401980
push str._select_
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00401980
push 2
push 0x491054
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041c7b0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.0041c7b0
push 1
push 0x49105c
lea ecx, [ebp - 0x14]
call fcn.0041c7b0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x43a37c
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024e0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43a394
xor edi, edi
jmp 0x43a3f5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x43a3ae
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov eax, dword [ebp - 0x14]
push 5
push esi
push eax
push 0x491060
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
mov eax, dword [ebp - 0x10]
sbb edi, edi
neg edi
push dword [eax - 8]
push eax
call fcn.0045c9bb
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x43a448
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x43a448
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43a416
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43a435
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80070057
call fcn.00403340
int3
Function at 0x43a4c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43a529
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret

Function at 0x43a540
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474d68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4a5010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43a5b2
push 0x48c2c0
mov ecx, esi
call fcn.00401980
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
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.0046d440
movsd qword [ebp - 0x28], xmm0
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test ecx, ecx
jg 0x43a669
jl 0x43a60e
cmp eax, 0x400
jae 0x43a617
push ecx
push eax
push str._I64dB
jmp 0x43a683
test ecx, ecx
jg 0x43a669
jl 0x43a624
cmp eax, 0x100000
jae 0x43a640
movsd xmm0, qword [ebp - 0x28]
sub esp, 8
mulsd xmm0, qword [0x4915b8]
movsd qword [esp], xmm0
push str._.2fKB
jmp 0x43a683
test ecx, ecx
jg 0x43a669
jl 0x43a64d
cmp eax, 0x40000000
jae 0x43a669
movsd xmm0, qword [ebp - 0x28]
sub esp, 8
mulsd xmm0, qword [0x4915b0]
movsd qword [esp], xmm0
push str._.2fMB
jmp 0x43a683
movsd xmm0, qword [ebp - 0x28]
sub esp, 8
mulsd xmm0, qword [0x4915a8]
movsd qword [esp], xmm0
push str._.2fGB
lea eax, [ebp - 0x10]
push eax
call fcn.0041c920
mov edi, dword [ebp - 0x10]
add esp, 0x10
add edi, 0xfffffff0
mov ecx, edi
call fcn.00401e20
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43a6bd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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
Function at 0x43af70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474eae
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x43b0ba
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x43afde
xor ecx, ecx
jmp 0x43afec
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43afe3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00439ab0
push 0x49117c
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00439910
push edi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00439910
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x43b055
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43b03a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00421800
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00439c10
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x43b06a
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00421800
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x43b091
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00421800
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x43b0db
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00421800
jmp 0x43b0db
cmp byte [edi], 0
jne 0x43b0c3
xor ecx, ecx
jmp 0x43b0d1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b0c8
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00439ab0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push esi
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43b10d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00421800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret