joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f420
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40f46f
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40f43a
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40f449
cmp eax, 1
jne 0x40f449
test ecx, ecx
je 0x40f449
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0xc], 0
push ecx
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x40f890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x44a638
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
and eax, 0xffff
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x40f8d2
xor eax, eax
jmp 0x40f9d9
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
jne 0x40f8e7
xor eax, eax
jmp 0x40f9d9
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
jne 0x40f903
xor eax, eax
jmp 0x40f9d9
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x40f920
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x40f9d9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x40f940
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x40f9d9
mov ecx, edi
mov edi, eax
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 dword [esp + 0x20], ebp
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebp
je 0x40f971
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40f9ba
mov edi, dword [esp + 0x20]
push 0x10
call fcn.0040ec60
mov esi, eax
cmp esi, ebp
je 0x40f9b8
lea eax, [esp + 0x28]
mov dword [esi], 0x44d6a4
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.0040ef60
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x40f9ba
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
cmp eax, ebp
je 0x40f9d7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x411040
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
jne 0x41124d
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp ebp, 0x110
jne 0x411088
push 1
call fcn.00410ff0
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.0040a490
mov ecx, esi
call fcn.00411260
jmp 0x4110fd
cmp ebp, 0xf
jne 0x4110a8
push 1
mov ecx, esi
call fcn.00410ff0
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edi
call fcn.00411330
jmp 0x4110c1
cmp ebp, 0x113
jne 0x4110e2
push 1
mov ecx, esi
call fcn.00410ff0
push edi
mov ecx, esi
call fcn.004116a0
mov ecx, esi
mov dword [ebx], 0
call fcn.00410fe0
test eax, eax
je 0x411180
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebp, 0x4a
jne 0x411116
push 1
mov ecx, esi
call fcn.00410ff0
mov ecx, dword [esp + 0x20]
push ecx
push edi
mov ecx, esi
call fcn.004130e0
mov ecx, esi
mov dword [ebx], eax
call fcn.00410fe0
test eax, eax
je 0x411180
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebp, 0x111
jne 0x411152
cmp di, 0x3f2
jne 0x411138
mov ecx, esi
call fcn.004114f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp di, 0x3f6
jne 0x411180
mov ecx, esi
call fcn.004132d0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebp, 0x7e9
jne 0x411180
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 1
push edx
push eax
push ebp
mov ecx, esi
call fcn.00411740
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
push ebx
push edx
push edi
push ebp
push eax
lea ecx, [esi + 0x1c]
call fcn.0041c940
test eax, eax
jne 0x411241
cmp ebp, 5
lea eax, [esi + 0x78]
jne 0x411217
test eax, eax
je 0x4111b0
lea esi, [eax - 0x78]
jmp 0x4111b2
xor esi, esi
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x4111e7
mov ecx, dword [esi + 4]
push 0xe801
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, 2
jne 0x4111d8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4111ec
test edi, edi
jne 0x4111e7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4111ec
cmp edi, 1
je 0x41123b
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 0x10
movsx ecx, dx
movsx edx, ax
push ecx
push edx
lea ecx, [esi + 0x78]
call fcn.00413730
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebp, 0x24
jne 0x41124d
mov edx, dword [eax + 0x14]
or ecx, 0xffffffff
cmp edx, ecx
je 0x41123b
cmp dword [eax + 0x18], ecx
je 0x41123b
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
Function at 0x412660
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
je 0x412771
mov eax, dword [ebp + 0x3e4]
test eax, eax
jne 0x412771
lea esi, [ebp + 0x394]
lea edx, [esp + 8]
push edi
push edx
mov ecx, esi
call fcn.0041bf30
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [0x455054]
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4126d1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4126d1
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
test edi, edi
pop edi
je 0x412771
lea eax, [esp + 8]
push ebx
push eax
mov ecx, esi
call fcn.0041bf30
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x455054]
test eax, eax
mov eax, dword [esp + 0xc]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412724
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412724
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
test bl, bl
pop ebx
je 0x412771
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0041bf30
mov ecx, dword [eax]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 8]
mov ecx, dword [0x455054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x412771
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412771
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
mov eax, dword [ebp + 0x70]
push 3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
pop esi
pop ebp
pop ecx
ret
Function at 0x414950
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414968
mov eax, 0x1001
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.00435f50
add esp, 4
test eax, eax
jne 0x41497f
mov eax, 0x1003
pop esi
ret
mov eax, dword [esi + 4]
push eax
call fcn.004014d0
add esp, 4
test eax, eax
jne 0x4149cf
mov cl, byte [0x45c550]
mov al, 1
test al, cl
jne 0x4149bc
mov dl, cl
mov ecx, 0x45c560
or dl, al
mov byte [0x45c550], dl
call fcn.00428c20
push 0x404c10
call fcn.0043667e
add esp, 4
push 0x1f
mov ecx, 0x45c560
call fcn.00428ef0
mov eax, 0x1002
pop esi
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x414a2a
mov esi, dword [esi + 4]
push esi
push eax
call fcn.00406790
add esp, 8
test eax, eax
jne 0x414a2a
mov cl, byte [0x45c550]
mov al, 1
test al, cl
jne 0x414a17
mov dl, cl
mov ecx, 0x45c560
or dl, al
mov byte [0x45c550], dl
call fcn.00428c20
push 0x404c10
call fcn.0043667e
add esp, 4
push 0x1e
mov ecx, 0x45c560
call fcn.00428ef0
mov eax, 0x1004
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x414a30
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x414a60
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.0043801f
add esp, 0x18
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret
Function at 0x417c70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
je 0x417c9c
mov esi, dword [esp + 8]
push 5
mov eax, dword [esi - 0x5c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi - 0x60]
call fcn.00416fb0
mov eax, 1
pop esi
ret 8
mov esi, dword [esp + 8]
push 0
mov ecx, dword [esi - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x648]
test eax, eax
je 0x417cc0
push 1
lea ecx, [esi - 0x60]
call fcn.00416fb0
mov eax, 1
pop esi
ret 8
Function at 0x41a6e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push edi
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x41a71e
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x41a720
xor eax, eax
add esp, 0x114
ret

Function at 0x41bcb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
xor eax, eax
push ecx
push eax
push esi
push 0x41bce0
push eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x4c], eax
call fcn.0043801f
add esp, 0x18
mov dword [esi + 0x20], eax
mov eax, 1
pop esi
pop ecx
ret

Function at 0x41c260
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44b356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x44d888
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push eax
mov dword [esp + 0x2c], 1
call ebx
lea edi, [esi + 8]
push str.liveupdatelogP2SP_360installer.log
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.004018f0
mov edx, dword [eax]
push 4
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41c2ed
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41c2ed
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
push str.liveupdatelog
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004018f0
mov ecx, dword [eax]
push 4
push 0
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x455054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41c331
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41c331
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
mov ecx, dword [edi]
push 4
push 0
push ecx
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [0x455054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41c363
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41c363
mov eax, dword [esi + 0xc]
sub eax, 0xc
push eax
call fcn.0042ac06
add esp, 4
mov eax, dword [edi]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41c38a
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41c38a
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.0042ac06
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41c7c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
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 + 0x24], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c82f
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
lea edx, [esp + 0x1c]
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
pop edi
je 0x41c82f
mov eax, dword [esp + 4]
test eax, eax
jne 0x41c86e
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x41c83e
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c86e
push esi
call fcn.004014d0
add esp, 4
test eax, eax
jne 0x41c86e
push 1
call fcn.00435ba0
push eax
push esi
call fcn.00435e30
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x41cd40
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44b3b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004240c0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], eax
lea eax, [esi + 0x5c]
cmp eax, edi
je 0x41cd83
lea ecx, [eax - 0x5c]
jmp 0x41cd85
xor ecx, ecx
push eax
add ecx, 0x44
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 2
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
call fcn.0040f320
lea ecx, [esi + 0x8c]
mov byte [esp + 0x14], 3
call fcn.0040f320
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], edi
mov dword [esi], 0x44d8f4
mov dword [esi + 0x3c], 0x44d8e8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41e170
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44b547
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004240c0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], eax
lea eax, [esi + 0x5c]
cmp eax, edi
je 0x41e1b3
lea ecx, [eax - 0x5c]
jmp 0x41e1b5
xor ecx, ecx
push eax
add ecx, 0x44
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 2
call fcn.0040f320
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 3
call fcn.0040f320
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 4
call fcn.0040f320
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi], 0x44d904
mov dword [esi + 0x3c], 0x44d8f8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41ed50
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004240c0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x58], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x54], edi
cmp eax, edi
je 0x41ed75
lea ecx, [eax - 0x5c]
jmp 0x41ed77
xor ecx, ecx
push eax
push 0x40
add ecx, 0x44
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x455050]
mov eax, esi
mov dword [esi + 0x64], ecx
mov dword [esi + 0x28], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi], 0x44d918
mov dword [esi + 0x3c], 0x44d90c
pop edi
pop esi
ret
Function at 0x41f270
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44b668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x455050]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x28], 0
mov edi, 0x64
jg 0x41f2b4
cmp dword [eax - 4], edi
jge 0x41f31c
mov esi, dword [eax - 8]
cmp esi, edi
mov dword [esp + 0x14], esi
jle 0x41f2c1
mov edi, esi
push edi
lea ecx, [esp + 0x14]
call fcn.00401820
test eax, eax
je 0x41f31c
lea ecx, [esi + esi + 2]
lea eax, [edi + edi + 2]
cmp eax, ecx
jb 0x41f2f4
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], esi
mov eax, dword [0x455054]
cmp ebp, eax
je 0x41f318
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f318
push ebp
call fcn.0042ac06
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x40]
push 0x64
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x41f373
lea ecx, [esp + 0x10]
call fcn.00401880
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00401820
test eax, eax
je 0x41f373
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x10]
add esi, 0xc
lea edx, [ecx + ecx + 2]
mov ecx, dword [eax - 4]
push edx
push esi
lea edx, [ecx + ecx + 2]
push edx
push eax
call fcn.004017c0
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], si
mov eax, dword [ebx + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [ebx + 0x24]
push 1
push esi
push esi
lea ecx, [esp + 0x24]
push esi
push ecx
push edx
lea ecx, [ebx + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00422b60
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x40]
add esp, 0x24
push 6
push eax
push ecx
push esi
push esi
push esi
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x41f40d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f40d
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41fdf0
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x84]
mov esi, dword [ebp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x10], edi
jg 0x41fe27
cmp esi, dword [eax - 4]
jle 0x41feb8
mov eax, dword [eax - 8]
cmp esi, eax
mov dword [esp + 0x24], eax
jge 0x41fe34
mov esi, eax
test esi, esi
jne 0x41fe42
mov ecx, dword [0x455050]
mov dword [ebx], ecx
jmp 0x41fe6f
lea edx, [esi + esi + 0xe]
push edx
call fcn.0043649a
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41feba
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], cx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax + 2]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x41fe96
mov eax, ecx
lea esi, [edi + 0xc]
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov eax, dword [0x455054]
cmp edi, eax
je 0x41feb8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41feb8
push edi
call fcn.0042ac06
add esp, 4
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x88]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x41ff4e
mov ecx, dword [0x455054]
add eax, 0xfffffff4
cmp eax, ecx
je 0x41ff1a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ff13
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0042ac06
add esp, 4
mov eax, dword [0x455050]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.00401820
test eax, eax
je 0x41ff4e
mov edi, dword [ebx]
mov edx, dword [esi + 4]
mov eax, dword [edi - 4]
lea ecx, [edx + edx + 2]
lea edx, [eax + eax + 2]
cmp edx, ecx
jb 0x41ff4e
mov eax, ecx
add esi, 0xc
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 [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx]
pop edi
pop esi
mov dword [edx - 8], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4208d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
test esi, esi
push edi
je 0x4209c2
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x4209c2
mov ebp, dword [esp + 0x128]
cmp ebp, 0x80
jl 0x4209c2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4209c2
cmp eax, 0xff
ja 0x4209c2
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4209c2
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x455860
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4209c2
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push ebp
push ebx
call fcn.004062a0
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc