joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403960
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x120]
push ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x80
mov eax, dword [edx]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 8], 1
jne 0x403a9f
cmp word [esp + 0x10], 0
je 0x403a9f
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x403a9f
mov ecx, dword [0x4b7080]
lea edx, [esp + 0x10]
test edx, edx
push esi
mov dword [esp + 8], ecx
je 0x403a46
lea eax, [esp + 0x14]
shr eax, 0x10
jne 0x403a06
xor ecx, ecx
lea edx, [esp + 0x14]
mov cx, dx
push ecx
lea ecx, [esp + 0xc]
call fcn.004068b0
jmp 0x403a46
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x403a46
push esi
lea ecx, [esp + 0xc]
call fcn.00406c50
test eax, eax
je 0x403a46
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x403a46
mov edi, dword [esp + 8]
mov eax, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 8]
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [0x4b7084]
pop esi
test eax, eax
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
jne 0x403aab
cmp ecx, edx
je 0x403a9f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403a9f
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
pop edi
add esp, 0x10c
ret 0xc
cmp ecx, edx
je 0x403acd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403acd
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, 1
pop edi
add esp, 0x10c
ret 0xc

Function at 0x403f40
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
call fcn.0043ea40
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4c71f0
call fcn.0041f270
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403f78
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x403f90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403fb6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x403fed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x34]
push 0x4b7550
push ecx
call edi
add esp, 8
test eax, eax
je 0x404020
lea edx, [esp + 0x34]
push str.360Inst_
push edx
call ebx
add esp, 8
test eax, eax
je 0x404021
inc ebp
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403ffa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x22c
ret
Function at 0x404400
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push str.UninstallString
mov ebp, 1
mov ebx, 0x104
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x40458f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40458f
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
push 0x4c712c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
call esi
test eax, eax
jne 0x40457d
lea ecx, [esp + 0x18]
test ecx, ecx
jne 0x4044bc
xor ebx, ebx
jmp 0x4044c9
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov ebp, dword [esp + 0x224]
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x4044e3
cmp ebx, dword [eax - 4]
jle 0x40454c
mov edx, dword [0x4b7084]
add eax, 0xfffffff4
cmp eax, edx
je 0x404513
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40450a
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.00437568
add esp, 4
mov ecx, dword [0x4b7080]
mov dword [ebp], ecx
test ebx, ebx
jne 0x404522
mov edx, dword [0x4b7080]
mov dword [ebp], edx
jmp 0x40454c
lea eax, [ebx + ebx + 0xe]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x40457d
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x40456e
mov edi, dword [ebp]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [edx + eax], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret 4
Function at 0x4045a0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], si
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push 0x4c712c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4046ec
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4046ec
lea ecx, [esp + 0x10]
push ebx
test ecx, ecx
push ebp
jne 0x40461b
xor ebx, ebx
jmp 0x404628
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov ebp, dword [esp + 0x224]
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x404642
cmp ebx, dword [eax - 4]
jle 0x4046a9
mov edx, dword [0x4b7084]
add eax, 0xfffffff4
cmp eax, edx
je 0x404672
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404669
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.00437568
add esp, 4
mov ecx, dword [0x4b7080]
mov dword [ebp], ecx
cmp ebx, esi
jne 0x404681
mov edx, dword [0x4b7080]
mov dword [ebp], edx
jmp 0x4046a9
lea eax, [ebx + ebx + 0xe]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x4046da
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], si
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x4046cb
mov edi, dword [ebp]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [edx + eax], 0
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x210
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x210
ret 4
Function at 0x4071b0
Capabilities:
Check if file exists
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a04d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 3
push 0x80
push str..360SelfProtection
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x407251
lea eax, [ebp - 0x1c]
push 0
push eax
lea ecx, [ebp - 0x14]
push 4
push ecx
lea edx, [ebp - 0x18]
push 4
push edx
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 0x407251
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407251
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40727e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40727e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40733a
mov ecx, dword [ebp + 8]
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x407322
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp + 0xc]
push edi
push edx
lea eax, [ebp - 0x5c]
push 0x40
push eax
push esi
call ebx
test eax, eax
je 0x407317
cmp dword [ebp + 0xc], 0x40
jne 0x407317
cmp word [ebp - 0x5c], 0x5a4d
jne 0x407317
mov ecx, dword [ebp - 0x20]
push edi
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x20]
jne 0x407317
lea edx, [ebp + 0xc]
push edi
push edx
lea eax, [ebp - 0x154]
push 0xf8
push eax
push esi
call ebx
test eax, eax
je 0x407317
cmp dword [ebp + 0xc], 0xf8
jne 0x407317
cmp dword [ebp - 0x154], 0x4550
jne 0x407317
cmp word [ebp - 0x14e], di
je 0x407317
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40733a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
test edi, edi
je 0x40734e
mov dword [edi], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
xor esi, esi
mov dword [ebp + 0xc], 0xffffffff
call fcn.004104c0
add esp, 8
test eax, eax
jne 0x40736f
xor ecx, ecx
jmp 0x40738f
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x407383
cmp eax, 0xffffffff
je 0x407383
mov ecx, 1
jmp 0x407385
xor ecx, ecx
xor edx, edx
cmp eax, 3
sete dl
mov esi, edx
test edi, edi
je 0x407395
mov dword [edi], esi
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407480
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a04eb
push eax
mov eax, 0x12854
mov dword fs:[0], esp
call fcn.004999f0
mov ecx, dword [esp + 0x12864]
mov eax, dword [esp + 0x12868]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4075b7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4075b7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040af30
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push edi
push esi
push ebp
mov dword [esp + 0x1287c], 0
call fcn.0040b440
mov esi, dword [esp + 0x1287c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x40756e
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00423c20
xor eax, eax
jmp 0x4075bc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.00437568
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00423c20
mov eax, 1
mov ecx, dword [esp + 0x12864]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12860
ret
Function at 0x408050
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
mov eax, dword [eax]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x408083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40807c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x408b40
Capabilities:
Check os version

Disassembly:
sub esp, 0x140
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
rep stosd dword es:[edi], eax
mov ecx, 0x47
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x11c
push eax
call esi
test eax, eax
jne 0x408b8c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push ecx
call esi
test eax, eax
je 0x408bcd
push str.GetNativeSystemInfo
push 0x4b7d94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408bcd
lea edx, [esp + 8]
push edx
call eax
mov ax, word [esp + 8]
cmp ax, 9
je 0x408bbf
cmp ax, 6
jne 0x408bcd
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret

Function at 0x408be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 5
sete al
add esp, 0x114
ret

Function at 0x408c40
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x224
push esi
xor esi, esi
cmp edx, esi
je 0x408cce
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
push esi
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push esi
push eax
push edx
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x408cce
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
add esp, 0x224
ret
xor eax, eax
pop esi
add esp, 0x224
ret
Function at 0x4095a0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0628
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push 0x4b7df0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040a210
mov edx, dword [esp + 0x10]
mov dword [esp + 8], 0
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409637
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push eax
call fcn.004071b0
test eax, eax
je 0x409637
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409623
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409623
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, 1
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409666
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409666
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov ecx, dword [esp]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x40a830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0717
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.0040aa80
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.0040a760
cmp eax, dword [esi + 0xc]
jne 0x40a8d1
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x40a89c
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
mov byte [esp + 0x24], 2
push edx
push 1
push eax
call fcn.0040ab80
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
test eax, eax
je 0x40a8fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a8fb
mov esi, dword [eax + 4]
mov ecx, dword [esp + 8]
cmp esi, ecx
je 0x40a8ff
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40a8f1
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
test esi, esi
je 0x40a8ff
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
je 0x40a913
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 1
test ecx, ecx
mov byte [esp + 0x24], 0
je 0x40a92a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

Function at 0x40aa80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [ebp]
cmp eax, ebx
je 0x40aaa0
mov dword [ebp], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x40aab3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x40aad6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x14], ebx
jle 0x40aafa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ab42
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push esi
call fcn.0040a950
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40c110
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c122
pop esi
ret
mov ecx, esi
call fcn.0040b8f0
call fcn.00408b40
test eax, eax
je 0x40c139
push str.Product64
jmp 0x40c13e
push str.Product32
mov ecx, esi
call fcn.0040ef10
mov ecx, dword [esi + 0x1c]
call fcn.00435030
test eax, eax
jg 0x40c15d
push 0x4b9480
mov ecx, esi
call fcn.0040ef10
mov ecx, 0x4c6f80
call fcn.00405600
mov ecx, 0x4c6f80
call fcn.00405670
mov ecx, esi
call fcn.0040f330
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c18a
push eax
mov ecx, esi
call fcn.0040c450
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c19c
push eax
mov ecx, esi
call fcn.0040c770
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c1ae
push eax
mov ecx, esi
call fcn.0040c870
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c1c0
push eax
mov ecx, esi
call fcn.0040c970
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c1d2
push eax
mov ecx, esi
call fcn.0040cb10
mov eax, 1
pop esi
ret
Function at 0x40c700
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esi + 0xc]
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
ret 4

Function at 0x40c770
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004999f0
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40c7a5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40c7a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40c7b3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40c7d9
xor eax, eax
jmp 0x40c831
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x40c7fb
mov eax, 1
jmp 0x40c831
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40c817
mov eax, 2
jmp 0x40c831
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x158], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x15c], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4