joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40603c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor ebx, ebx
push eax
push 0x20
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40613e
push 1
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0xc]
call fcn.00405fd2
add esp, 0xc
test eax, eax
jne 0x406089
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40613e
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40613e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetNamedSecurityInfoW
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40613e
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x28]
push 2
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40613e
push ebx
push ebx
push ebx
push dword [ebp - 4]
push 1
push 4
push dword [ebp + 8]
call dword [ebp - 0x10]
test eax, eax
jne 0x40613e
push str.AllocateAndInitializeSid
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40613e
push str.GetLengthSid
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40613e
push str.InitializeAcl
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x40613e
push str.AddAccessAllowedAce
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x406145
xor eax, eax
jmp 0x4061c8
lea eax, [ebp - 8]
mov byte [ebp - 0x30], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push 1
push eax
mov byte [ebp - 0x2f], bl
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], 1
call dword [ebp - 0x14]
push dword [ebp - 8]
call dword [ebp - 0x18]
mov esi, eax
add esi, 0x10
push esi
call sub.MSVCRT.dll_malloc
pop ecx
mov edi, eax
push 2
push esi
push edi
call dword [ebp - 0x1c]
push dword [ebp - 8]
push 0x10000000
push 2
push edi
call dword [ebp - 0x20]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push dword [ebp + 8]
call dword [ebp - 0x10]
push edi
call sub.MSVCRT.dll_free
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
pop ecx
je 0x4061bb
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x4061c5
push dword [ebp - 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a4a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.IMAGE
push eax
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40a568
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a568
push dword [ebp + 0xc]
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a561
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40a55a
test ebx, ebx
je 0x40a55a
push dword [ebp + 0xc]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40a54f
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040a571
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x40a56a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b057
Capabilities:
Create thread
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
call fcn.0040b8ec
mov eax, dword [0x41ba08]
test eax, eax
jne 0x40b073
mov eax, 0x41ba0c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40c9e3
push 0x6b
push eax
push ebx
call fcn.0040b378
add esp, 0x10
lea eax, [ebp - 0x45c]
push 0x41c054
push 0x416100
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
lea eax, [ebp - 0x254]
push eax
push edi
call esi
and dword [0x41ca90], 0
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
je 0x40b0ed
mov eax, dword [ebp - 0x234]
add dword [0x41ca90], eax
jmp 0x40b0d1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebx]
push 0x4040b8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41caa0], eax
jne 0x40b131
push 0x4140b0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_ShowInstalling
call fcn.00405e29
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40b21c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41bc08]
test eax, eax
jne 0x40b22a
mov eax, 0x41bc0c
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x40c9e3
push 0x72
push eax
push esi
call fcn.0040b378
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push 0x3f0
push dword [esi]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3f1
push dword [esi]
call edi
push 5
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40b270
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0xf003f
push eax
xor esi, esi
push ebx
push esi
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call edi
test eax, eax
jne 0x40b2c0
lea eax, [ebp - 0xc]
or dword [ebp - 0xc], 0xffffffff
push 4
push eax
push 4
push esi
push 0x41b124
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push ebx
push esi
push str.SoftwareInternet_Download_Manager
push 0x80000002
call edi
push 1
test eax, eax
pop ebx
jne 0x40b2fc
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push esi
push str.InstallStatus
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040b8ec
mov eax, dword [0x41bc08]
cmp eax, esi
jne 0x40b30f
mov eax, 0x41bc0c
mov edi, dword [ebp + 8]
push 0x40c9e3
push 0x73
push eax
push edi
call fcn.0040b378
add esp, 0x10
push 0x3ef
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [edi]
push 0x40cfae
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41caa4], eax
jne 0x40b371
push 0x4140b0
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_uninstaller
call fcn.00405e29
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x410287
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x4140b0
push ebx
call sub.MSVCRT.dll_wcsstr
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x4103c4
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, dword [ebp + 8]
cmp word [eax - 2], 0x5c
je 0x4103a5
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
sub eax, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x210]
push 0x41aec0
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 0x20
test eax, eax
jne 0x4103a5
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x4103a5
lea eax, [ebp - 0x210]
push eax
push edi
push 0x180
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
push edi
push edi
push 3
mov dword [ebp - 4], eax
push edi
push 1
lea eax, [ebp - 0x210]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410379
push 0x4140b0
push edi
lea eax, [ebp - 0x210]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_to_open_file_in_dialogs_FillFileList
call fcn.00405e29
add esp, 0x18
jmp 0x41038b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
push ebx
push dword [ebp - 4]
push 0x19a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
add dword [0x41ccd8], ebx
mov eax, dword [ebp + 8]
push 0x4140b0
lea ebx, [eax + 4]
push ebx
call sub.MSVCRT.dll_wcsstr
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
jne 0x4102b6
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x402550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402579
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40258f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402586
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4025c2
nop
cmp esi, ecx
jae 0x402586
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4025b0
cmp esi, ecx
jae 0x402586
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40274d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40274d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40274d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4026e3
cmp esi, ecx
jae 0x40274d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4026d1
cmp esi, ecx
jae 0x40274d
movzx eax, word [esi]
test ax, ax
je 0x40274d
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x402716
push edi
mov ecx, ebx
call fcn.00402e50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x402719
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00543119
push eax
call fcn.004025e0
mov ecx, dword [ebx]
add esp, 0x14
cmp edi, dword [ecx - 8]
jg 0x402756
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00402de0
int3
Function at 0x402770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0040605d
mov ebx, eax
test ebx, ebx
jne 0x402790
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402863
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402863
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402863
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4027f4
cmp esi, ecx
jae 0x402863
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4027e2
cmp esi, ecx
jae 0x402863
movzx eax, word [esi]
test ax, ax
je 0x402863
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40282a
push edi
mov ecx, ebx
call fcn.00402e50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40282d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00543119
push eax
call fcn.004025e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40286e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402de0
int3
Function at 0x402880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x40297d
test eax, 0xffff0000
jne 0x40297d
push ebx
push edi
movzx edi, ax
push edi
call fcn.0040605d
mov ebx, eax
test ebx, ebx
je 0x402979
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402979
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402979
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402978
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402915
cmp esi, ecx
jae 0x402978
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402903
cmp esi, ecx
jae 0x402978
movzx eax, word [esi]
test ax, ax
je 0x402978
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40294b
push edi
mov ecx, ebx
call fcn.00402e50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40294e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00543119
push eax
call fcn.004025e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x402985
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402de0
int3
Function at 0x402b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a3a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b8fc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.0040639f
mov ecx, eax
test ecx, ecx
je 0x402cb8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x402c97
test edx, 0xffff0000
jne 0x402c81
movzx edi, dx
push edi
call fcn.0040605d
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x402ca2
mov ecx, edi
shr ecx, 4
push 6
inc ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402ca2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402ca2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ca2
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402c26
nop word [eax + eax]
cmp esi, ecx
jae 0x402ca2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402c10
cmp esi, ecx
jae 0x402ca2
movzx ecx, word [esi]
test cx, cx
je 0x402ca2
mov eax, dword [ebx]
mov edi, ecx
mov edx, ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x402c54
push edi
mov ecx, ebx
call fcn.00402e50
movzx edx, word [esi]
movzx ecx, dx
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.00543119
push eax
call fcn.004025e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x402cc2
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
jmp 0x402ca2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402c86
sub ecx, esi
sar ecx, 1
jmp 0x402c99
xor ecx, ecx
push ecx
push edx
mov ecx, ebx
call fcn.00402a20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402de0
push 0x80070057
call fcn.00402de0
int3
Function at 0x409fbb
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40a00e
push esi
push dword [ebp + 8]
call fcn.0040a1a4
mov edi, eax
test edi, edi
je 0x40a009
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a009
mov eax, dword [ebp - 8]
jmp 0x40a020
mov eax, dword [ebp + 0x10]
jmp 0x40a020
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4151d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x415216
call fcn.004088d8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415216
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x415232
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f218
mov ebx, eax
test edi, edi
je 0x415230
test esi, esi
je 0x415230
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415c31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x415cef
cmp dword [esi + 0x20], 0
je 0x415cef
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415cef
cmp dword [ebp + 8], 0
je 0x415cef
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004088d8
push 0x56d130
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415cc0
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415cef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0041fda0
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x415ce0
test edi, edi
je 0x415ce0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x415ceb
mov ecx, esi
call fcn.004159d3
mov eax, ebx
jmp 0x415cf1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41a13c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55a7a1
call fcn.0053d27d
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41a162
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41a1c2
call fcn.0040639f
push eax
lea ecx, [ebp - 0x10]
call fcn.00402520
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x568940]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00544d9e
push eax
call fcn.004025e0
add esp, 0x14
test esi, esi
je 0x41a1b5
push esi
call fcn.005431c9
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402ef0
mov eax, ebx
call fcn.0053d246
ret 8

Function at 0x41bbd6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0041a082
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0041bdef
cmp esi, 3
je 0x41bc14
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x41bc5d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41bc37
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00403230
jmp 0x41bc48
push 0xff
mov ecx, esi
call fcn.00402eb0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004024d0
jmp 0x41bc81
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41bc81
push dword [esi]
push dword [ebp - 4]
call fcn.0040e182
pop edi
pop esi
leave
ret 0xc

Function at 0x41bd46
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0041bdef
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41bd8e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00403230
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004024d0
jmp 0x41bd99
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040e182
pop edi
pop esi
pop ebp
ret 0xc