joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.004b4970
add esp, 0xc
push 0
push 0x1a
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4e9694
lea eax, [esp + 8]
push eax
call esi
push str.menu.cfg
lea ecx, [esp + 8]
push ecx
call esi
lea eax, [esp + 4]
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a66
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 4]
push edx
mov ecx, 0x50cf44
call fcn.004020b0
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov al, 1
call fcn.004b3721
add esp, 0x804
ret

Function at 0x405c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e040b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
push 0x50fd60
call fcn.00405aa0
xor edi, edi
add esp, 4
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.0040ef90
test al, al
jne 0x405ca4
push str.can_not_found_menu_data__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x405d36
lea esi, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00459550
push edi
mov dword [esp + 0x104], edi
mov eax, dword [esp + 0x18]
push edi
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov edx, esi
push edx
call fcn.00459660
cmp dword [esp + 0x14], edi
jne 0x405d22
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x405ce8
mov dword [esp + 0x20], edi
jmp 0x405cfe
mov eax, dword [eax]
and eax, 0xffffffe0
mov eax, dword [eax]
cmp eax, edi
je 0x405cf8
add eax, 0xffffffe0
jmp 0x405cfa
xor eax, eax
mov dword [esp + 0x20], eax
mov ebx, str.items
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.00458f10
mov eax, dword [esp + 0x14]
push eax
push 0x50fd60
call fcn.00405fd0
add esp, 8
lea ebx, [esp + 0x24]
mov dword [esp + 0x100], 0xffffffff
call fcn.004595c0
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x405d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e040b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [0x50cf48]
mov ebx, 8
cmp dword [0x50cf5c], ebx
jae 0x405db7
mov eax, 0x50cf48
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405dcd
call fcn.00406800
jmp 0x405e8a
xor edi, edi
lea esi, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00459550
mov dword [esp + 0x100], edi
mov edi, dword [0x50cf48]
cmp dword [0x50cf5c], ebx
jae 0x405dfa
mov edi, 0x50cf48
lea ebx, [esp + 0x24]
call fcn.004595c0
mov esi, ebx
call fcn.00459550
push 0x4f373c
push edi
call fcn.004b6e1d
mov ecx, ebx
push ecx
lea edi, [esp + 0x24]
call fcn.00458d10
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x405e76
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x405e39
mov dword [esp + 0x10], eax
jmp 0x405e4f
mov eax, dword [eax]
and eax, 0xffffffe0
mov eax, dword [eax]
test eax, eax
je 0x405e49
add eax, 0xffffffe0
jmp 0x405e4b
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, str.settings
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00458f10
mov edx, eax
push edx
push 0x406620
push 0x50fd60
call fcn.00406540
add esp, 0xc
lea ebx, [esp + 0x24]
mov dword [esp + 0x100], 0xffffffff
call fcn.004595c0
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x406800
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e03cb
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x8e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x8f8]
mov dword fs:[0], eax
cmp dword [0x50cf5c], 8
mov eax, dword [0x50cf48]
jae 0x40684e
mov eax, 0x50cf48
lea edx, [esp + 0xf4]
call fcn.004058e0
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.menu.xml
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40694e
xor ebp, ebp
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00459550
mov ebx, esi
mov dword [esp + 0x900], ebp
call fcn.004595c0
call fcn.00459550
lea eax, [esp + 0xf4]
push 0x4f373c
push eax
call fcn.004b6e1d
mov ecx, esi
push ecx
lea edi, [esp + 0x2c]
call fcn.00458d10
add esp, 0xc
cmp dword [esp + 0x20], ebp
jne 0x40692c
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x4068ed
mov dword [esp + 0x18], ebp
jmp 0x406903
mov eax, dword [eax]
and eax, 0xffffffe0
mov eax, dword [eax]
cmp eax, ebp
je 0x4068fd
add eax, 0xffffffe0
jmp 0x4068ff
xor eax, eax
mov dword [esp + 0x18], eax
mov ebx, str.items
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.00458f10
mov edx, dword [esp + 0x1c]
push edx
push 0x50fd60
call fcn.00406980
add esp, 8
call fcn.00405eb0
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x900], 0xffffffff
call fcn.004595c0
mov al, 1
mov ecx, dword [esp + 0x8f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8e0]
xor ecx, esp
call fcn.004b3721
add esp, 0x8f0
ret
Function at 0x408c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408c87
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408cb8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408cb4
cmp esi, eax
jae 0x408cb8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408ca4
cmp esi, eax
jb 0x408cbe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4092d0
Capabilities:
Check mutex on windows

Disassembly:
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, esi
mov dword [esi + 4], ecx
ret
Function at 0x40ae20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc3b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea ecx, [esi + 0x8c]
mov dword [esp + 0x14], eax
call fcn.0040b390
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
push 0x50
mov dword [esi + 0x30], eax
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], eax
push ecx
mov dword [esi + 0x38], eax
call fcn.004b4970
add esp, 0xc
push 0x30
lea edx, [esi + 0xa4]
push 0
push edx
call fcn.004b4970
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x40d2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dec58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0xc]
mov ebx, edx
push eax
mov edx, 0x40e1d0
call fcn.0040d360
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 8
mov edx, dword [esp + 0xc]
jae 0x40d329
lea edx, [esp + 0xc]
call fcn.0040cfa0
cmp dword [esp + 0x20], 8
jb 0x40d342
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004b3716
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004b3721
add esp, 0x2c
ret

Function at 0x40e520
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4dc254
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x24]
push esi
call fcn.0041ec30
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x20], 0
call fcn.0041ec30
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x20], 1
call fcn.0041ec30
lea edx, [esi + 0x48]
push edx
mov byte [esp + 0x20], 2
call fcn.0041ec30
mov byte [esp + 0x1c], 3
mov eax, dword [0x50e150]
mov edx, dword [eax + 0xc]
mov ecx, 0x50e150
lea edi, [esi + 0x60]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 4
test ebx, ebx
jne 0x40e5a6
xor eax, eax
jmp 0x40e5bf
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40e5b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e5b0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, edi
call fcn.00408980
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40e6d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
mov eax, dword [eax + 0x60]
push eax
push 0xff
lea eax, [esp + 0xc]
push eax
push 0x4ed9d8
push edx
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
mov ecx, 0x4ed9d8
test eax, eax
je 0x40e71c
lea ecx, [esp + 8]
call fcn.00408670
mov ecx, dword [esp + 0x204]
xor ecx, esp
mov eax, esi
call fcn.004b3721
add esp, 0x208
ret 4
Function at 0x40e740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4dc1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x50e150]
mov edx, dword [eax + 0xc]
mov ecx, 0x50e150
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
push 0x4ee930
lea edi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0040a310
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x60]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
add esp, 8
push eax
mov eax, dword [esp + 0x28]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x40f150
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x144
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.004b4970
add esp, 0xc
push 0x7f
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea eax, [esp + 0x40]
push eax
push str.Progman
call edi
test eax, eax
jne 0x40f1ce
push 0x7f
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x40]
push edx
push str.Program_Manager
call edi
test eax, eax
je 0x40f28a
push 1
push esi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x40f28a
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40f28a
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40f28a
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x30]
jne 0x40f271
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x38]
jne 0x40f271
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x34]
jne 0x40f271
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
jne 0x40f271
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004b3721
add esp, 0x144
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004b3721
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004b3721
add esp, 0x144
ret
Function at 0x40f2b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.004b4970
add esp, 0xc
cmp byte [esp + 0x44], 0
mov dword [esp], 0x3c
mov dword [esp + 4], 0x40
mov dword [esp + 8], 0
je 0x40f2ea
mov dword [esp + 0xc], 0x4ee968
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40f300
cmp word [esi], 0
je 0x40f300
mov dword [esp + 0x14], esi
lea edx, [esp]
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40f32c
xor al, al
add esp, 0x3c
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40f34b
test edi, edi
je 0x40f344
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x3c
ret

Function at 0x40f360
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x258
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
mov dword [esp + 0x1c], 0x122
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f3b7
xor al, al
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004b3721
add esp, 0x258
ret
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f3da
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x258]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004b3721
add esp, 0x258
ret

Function at 0x40fac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4da753
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004a2459
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x40fb11
mov eax, dword [esi + 0x1c]
push eax
call fcn.004b3716
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4101c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [0x50fd5c]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test al, al
jne 0x41020e
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
mov ecx, dword [esi + 0x20]
movzx eax, al
push eax
push 0xf
push ecx
call fcn.0041bf40
lea edx, [esp + 0xc]
push edx
call fcn.0048d670
add esp, 4
push eax
mov dword [esp + 0x34], 0
call fcn.0048e6f0
push eax
push 0x66
push str..AppBase.cpp
push str.AppBase::Quit
lea ecx, [esp + 0x28]
call fcn.0048e6d0
mov ecx, dword [esi + 0x10]
push eax
call fcn.0048cf40
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0048e610
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e0bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [0x50f6bc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
xor bl, bl
mov esi, ecx
mov byte [esp + 0x1b], bl
call edx
test al, al
je 0x410477
mov edi, esi
call fcn.00410580
test al, al
je 0x410477
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
or edi, 0xffffffff
test al, al
je 0x41034c
push 0xac
call fcn.004b383b
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x410323
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
push ecx
push eax
call fcn.00411940
mov bl, byte [esp + 0x1b]
jmp 0x410325
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x410477
add eax, 4
mov ecx, eax
call fcn.0048f160
mov edx, dword [0x50f6bc]
mov ecx, dword [edx + 0x18]
call fcn.00411ea0
push 0x18
call fcn.004b383b
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 1
test eax, eax
je 0x410375
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0041bd90
jmp 0x410377
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x20], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str.Explorer.exe
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x11
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x410425
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x2bf20
jae 0x41042d
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ebp, eax
test ebp, ebp
je 0x410413
xor ecx, ecx
cmp cx, word [ebp]
je 0x410413
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x28]
mov dword [esp + 0x24], eax
cmp dword [edi + 0xc], eax
jbe 0x4103e9
call fcn.004b3c6c
mov ebx, dword [edi]
push ebp
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.0040ceb0
mov edi, eax
test ebx, ebx
je 0x410401
cmp ebx, dword [edi]
je 0x410406
call fcn.004b3c6c
mov eax, dword [esp + 0x24]
mov bl, byte [esp + 0x1b]
cmp eax, dword [edi + 4]
je 0x41042d
mov dword [esp + 0x20], 0x78
mov dword [esp + 0x1c], 0xc
jmp 0x41042d
mov dword [esp + 0x1c], 0x10
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x78]
call edx
mov ecx, dword [esp + 0x20]
movzx eax, al
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0041c040
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x41046c
mov ecx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
call fcn.00410ab0
add esp, 8
call fcn.00410490
test al, al
mov al, 1
jne 0x410479
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x411ea0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e0aab
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x38]
xor ebx, ebx
cmp ecx, ebx
je 0x411f8b
mov dword [esi + 0x18], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
cmp dword [esi + 0x10], ebx
jne 0x41207c
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
call edx
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00408670
mov edx, str._UpdateSyncMutex
lea edi, [esp + 0x10]
mov dword [esp + 0x38], ebx
call fcn.00414bd0
push 8
call fcn.004b383b
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x411f40
mov edx, dword [esp + 0x10]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi + 4], ecx
jmp 0x411f42
xor edi, edi
mov dword [esi + 0x5c], edi
cmp dword [edi + 4], ebx
je 0x411fa0
mov eax, dword [edi]
cmp eax, ebx
je 0x411f57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b3716
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
mov dword [esi + 0x5c], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
call fcn.00423b50
push 0x34
call fcn.004b383b
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 1
cmp eax, ebx
je 0x411fd6
push str.update
mov ecx, eax
call fcn.0048ea70
jmp 0x411fd8
xor eax, eax
mov byte [esp + 0x38], bl
mov ecx, eax
mov dword [esi + 0x10], eax
call fcn.0048f000
test al, al
jne 0x41201a
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x411ff9
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [esp + 0x10]
mov dword [esi + 0x10], ebx
call fcn.00414b20
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
xor ecx, ecx
push ecx
mov eax, 0x4121f0
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.00419ae0
add esp, 0xc
mov byte [esp + 0x38], 3
mov edx, dword [esi + 0x10]
mov esi, dword [edx + 0x10]
push eax
call fcn.0048e6f0
push eax
push 0x62
push str..UpdateThread.cpp
push str.UpdateThread::Startup
lea ecx, [esp + 0x34]
call fcn.0048e6d0
push eax
mov ecx, esi
call fcn.0048cf40
mov ecx, ebx
mov byte [esp + 0x38], 0
call fcn.0048e610
lea eax, [esp + 0x10]
call fcn.00414b20
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret