joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x41d1ae
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x41d1c0
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x41d1ce
push edi
call fcn.0041d600
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.0041cf90
add esp, 0x10
test eax, eax
je 0x41d1f7
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x41d21a
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x41d252
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x41d2a0
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0041beb0
add esp, 4
test eax, eax
jne 0x41d2a0
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x41d2cd
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x41d2d9
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x41d319
mov al, byte [ebp]
test al, al
je 0x41d319
push eax
push ebx
call fcn.0041bc00
add esp, 8
inc ebp
jne 0x41d305
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41d750
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x41d832
cmp dword [ebp + 4], 0xffffffff
jne 0x41d832
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x41d7c2
cmp cl, 0x2f
je 0x41d7c2
mov edi, 0x42c28c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x41d7ee
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d7ee
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.0041c3d0
add esp, 0x10
test eax, eax
jne 0x41d811
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0041c8f0
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x41dd90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x41ddb8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ddb8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x41de92
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x41ddd8
cmp cl, 0x5c
jne 0x41ddda
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41ddce
push esi
cmp eax, ebp
push edi
je 0x41de1c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.0041dd90
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x41de48
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x41de92
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x41eb40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x423bbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x426bb0
lea ecx, [esi + 0x45c]
mov dword [esp + 0x10], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x458]
mov byte [esp + 0x10], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x454]
mov byte [esp + 0x10], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x10], 2
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41f2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_4
mov ecx, esi
mov byte [esp + 0x14], 0xa
mov dword [esi], 0x426bb4
call fcn.0041f3a0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0041f4a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4

Function at 0x41f3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423d73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x426bb4
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41f4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x20]
lea ecx, [esi + 0x30]
push eax
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0xc]
push eax
call fcn.004154a0
add esp, 8
lea edi, [esi + 0x38]
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0041f550
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x401e30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401e7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e74
test esi, esi
je 0x401e74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e50
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402188
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020ee
cmp eax, 4
jne 0x402110
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020fe
cmp edx, 4
je 0x4020fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402060
Function at 0x4014b0
Capabilities:
Check mutex on windows

Disassembly:
push str.Q360PopMgr
push 1
push 0
mov dword [0x468aa4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x468aa4], eax
je 0x4014e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4014e5
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4024f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x458070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi - 0x20], 0x45c5e8
mov dword [esi], 0x45c5f4
mov eax, dword [esi + 0x40]
lea ebp, [esi + 0x40]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x81c], edi
je 0x402641
mov eax, dword [0x468ad4]
cmp eax, edi
je 0x40254d
cmp dword [0x468ad8], edi
jne 0x402634
push ebx
lea eax, [esp + 0x18]
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call ebx
mov eax, dword [0x468adc]
test eax, eax
jle 0x402586
lea edx, [esp + 0x18]
push edx
call ebx
mov eax, dword [0x468adc]
inc edi
cmp edi, eax
jl 0x402575
lea eax, [esp + 0x18]
push str.MiniUI.dll
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004026a0
add esp, 8
test eax, eax
pop ebx
jne 0x4025f2
lea edx, [esp + 0x14]
test edx, edx
je 0x4025ee
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4025f2
lea ecx, [esp + 0x14]
push ecx
call fcn.00401e30
add esp, 4
test eax, eax
jne 0x4025f2
push 1
call fcn.004568c0
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00456b50
add esp, 0xc
xor eax, eax
jmp 0x4025fd
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x468ad8], eax
je 0x402641
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x468ad4], eax
jne 0x402634
mov ecx, dword [0x468ad8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x468ad8], 0
jmp 0x402641
call eax
test eax, eax
je 0x402641
mov edx, dword [eax]
push ebp
push eax
call dword [edx + 0x58]
mov dword [ebp], 0
mov dword [esi - 0x20], 0x45c60c
mov dword [esp + 0x10], esi
mov dword [esi], 0x45c600
mov ecx, esi
mov dword [esp + 0x81c], 2
call fcn.004491d0
lea ecx, [esi - 0x20]
mov byte [esp + 0x81c], 1
neg ecx
sbb ecx, ecx
and ecx, esi
call fcn.00448750
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x814
ret
Function at 0x403780
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x468ad4]
sub esp, 0x80c
test eax, eax
je 0x40379d
mov ecx, dword [0x468ad8]
test ecx, ecx
jne 0x4038eb
push esi
push edi
lea eax, [esp + 0x14]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x14]
push ecx
call edi
mov eax, dword [0x468adc]
xor esi, esi
test eax, eax
jle 0x4037da
lea edx, [esp + 0x14]
push edx
call edi
mov eax, dword [0x468adc]
inc esi
cmp esi, eax
jl 0x4037c9
lea eax, [esp + 0x14]
push str.MiniUI.dll
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 3
push 0
push 3
push 0x80
push str..360SelfProtection
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403858
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push 0x22204c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x403858
mov eax, dword [esp + 8]
test eax, eax
jne 0x403899
lea edx, [esp + 0x14]
test edx, edx
je 0x403895
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403899
lea ecx, [esp + 0x14]
push ecx
call fcn.00401e30
add esp, 4
test eax, eax
jne 0x403899
push 1
call fcn.004568c0
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00456b50
add esp, 0xc
xor eax, eax
jmp 0x4038a4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
mov dword [0x468ad8], eax
test eax, eax
pop esi
jne 0x4038b6
add esp, 0x80c
ret
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x468ad4], eax
jne 0x4038eb
mov ecx, dword [0x468ad8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x468ad8], 0
xor eax, eax
add esp, 0x80c
ret
call eax
add esp, 0x80c
ret
Function at 0x405ed0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xb0], ebp
jne 0x405feb
mov eax, dword [0x468ad4]
cmp eax, ebp
je 0x405eff
cmp dword [0x468ad8], ebp
jne 0x4060bf
lea eax, [esp + 0x18]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call ebx
mov eax, dword [0x468adc]
xor edi, edi
cmp eax, ebp
jle 0x405f39
lea edx, [esp + 0x18]
push edx
call ebx
mov eax, dword [0x468adc]
inc edi
cmp edi, eax
jl 0x405f28
lea eax, [esp + 0x18]
push str.MiniUI.dll
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004026a0
add esp, 8
test eax, eax
jne 0x405fa3
lea edx, [esp + 0x18]
test edx, edx
je 0x405f9f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405fa3
lea ecx, [esp + 0x18]
push ecx
call fcn.00401e30
add esp, 4
test eax, eax
jne 0x405fa3
push 1
call fcn.004568c0
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.00456b50
add esp, 0xc
xor eax, eax
jmp 0x405fae
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [0x468ad8], eax
je 0x405fe3
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x468ad4], eax
jne 0x4060bf
mov ecx, dword [0x468ad8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x468ad8], ebp
xor eax, eax
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x820]
cmp eax, ebp
jg 0x405ffb
mov eax, 1
mov ecx, dword [esi + 0xb0]
mov ebx, dword [esp + 0x824]
mov edi, dword [esp + 0x81c]
cmp ecx, ebp
mov dword [esi + 0xd0], eax
je 0x406034
mov eax, dword [ecx]
mov edx, edi
push ebp
and edx, 0xffff
push ebx
push edx
mov edx, dword [0x468aa0]
push edx
call dword [eax + 0x1c]
test eax, eax
jne 0x40604d
mov eax, dword [esi + 0xb0]
cmp eax, ebp
je 0x406047
push eax
call fcn.0044bf22
add esp, 4
mov dword [esi + 0xb0], ebp
mov ecx, dword [esi + 0xb0]
cmp ecx, ebp
je 0x40609b
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x40609b
mov ecx, dword [esi + 0xb0]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, eax
and edi, 0xffff
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0xb0]
mov dword [esp + 0x14], edx
cdq
idiv dword [esi + 0xd0]
mov ebp, dword [ecx]
push eax
mov eax, dword [0x468aa0]
push ebx
push edi
push eax
call dword [ebp + 0x1c]
mov ecx, dword [esi + 0xb0]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
je 0x4060d4
mov edx, dword [ecx]
call dword [edx]
test eax, eax
jne 0x4060d4
mov eax, 1
add esp, 0x808
ret 0xc
call eax
cmp eax, ebp
je 0x405fe3
mov edx, dword [eax]
push eax
call dword [edx + 0x54]
jmp 0x405fe5
xor eax, eax
add esp, 0x808
ret 0xc