joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5afaf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7165cb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebp - 0x23c]
mov esi, eax
test ecx, ecx
je 0x5afc74
cmp ecx, esi
je 0x5afc74
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5afc74
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5afc74
lea eax, [ebp - 0x228]
xorps xmm0, xmm0
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
movdqu xmmword [ebp - 0x228], xmm0
call esi
lea eax, [ebp - 0x238]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x23c]
movdqu xmmword [ebp - 0x238], xmm0
call esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x5afc74
lea ecx, [ebp - 0x248]
call fcn.005af8b0
mov esi, dword [ebp - 0x23c]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], esi
call fcn.006b47d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.00428a30
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00428a30
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.005afa50
mov ecx, eax
call fcn.005afa20
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00527e50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8
Function at 0x5b10e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x5b111f
cmp dword [eax + 4], 0
je 0x5b1104
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
call fcn.0053f8c0
mov eax, dword [esi]
test eax, eax
je 0x5b1119
cmp dword [eax + 4], 0
jne 0x5b1122
push eax
call fcn.00428680
add esp, 4
mov dword [esi], 0
pop esi
pop ebp
ret
call fcn.006b65b4
int3

Function at 0x5b1510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716a88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00429100
push eax
call fcn.005b6cf0
add esp, 4
test eax, eax
je 0x5b155d
mov esi, 1
jmp 0x5b160b
lea ecx, [ebp - 0x10]
call fcn.00429050
push 0
push 0x7856e8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00429b30
inc eax
lea ecx, [ebp + 8]
push eax
push 0x7856e8
call fcn.00429b30
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b15df
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004299f0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004289a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00428810
push 0
lea ecx, [ebp - 0x10]
call fcn.00429100
push eax
call edi
lea eax, [esi + 1]
push eax
push 0x7856e8
lea ecx, [ebp + 8]
call fcn.00429b30
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b1594
push 0
lea ecx, [ebp + 8]
call fcn.00429100
push eax
call edi
lea ecx, [ebp + 8]
call fcn.00429100
push eax
call fcn.005b6cf0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00428810
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b2e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716c62
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], 0
call fcn.00429050
push 0
push 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x5b2f20
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x5b2f19
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx]
cmp dword [ebp - 0x234], ebx
je 0x5b2f0b
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5b2ef0
jmp 0x5b2f19
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00428a30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b31e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x716d55
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0x206
mov dword [ebp - 0x228], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x234], esi
call fcn.006b47d0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push 0x790eb0
call fcn.00428840
push 1
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5b327c
lea eax, [ebp - 0x218]
push eax
jmp 0x5b3297
push 0
call fcn.005b0e80
add esp, 4
cmp eax, 0xa
jl 0x5b3292
push str.C:Program_FilesCommon_Files
jmp 0x5b3297
push str.C:WindowsAll_UsersApplication_Data
lea ecx, [ebp - 0x21c]
call fcn.00428a30
test edi, edi
je 0x5b33c6
test ebx, ebx
je 0x5b33c6
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x7856e8
call fcn.00428840
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push edi
mov byte [ebp - 4], 2
call fcn.00428840
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
mov ecx, esp
push eax
call fcn.00428690
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
call fcn.005b0270
add esp, 0x10
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.004289a0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00428810
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push 0x7856e8
call fcn.00428840
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push ebx
mov byte [ebp - 4], 5
call fcn.00428840
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 6
mov ecx, esp
push eax
call fcn.00428690
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
call fcn.005b0270
add esp, 0x10
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.004289a0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x21c]
call fcn.00429100
push eax
call fcn.005b6cf0
add esp, 4
test eax, eax
jne 0x5b33c6
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call fcn.00428690
call fcn.005b1510
add esp, 4
test eax, eax
jne 0x5b33c6
push esi
call fcn.005b6a10
add esp, 4
jmp 0x5b343d
push 1
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.004293d0
push 1
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429900
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 9
push ecx
push eax
call fcn.00429290
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
mov bl, al
call fcn.00428810
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00428810
test bl, bl
je 0x5b342f
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.00429080
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00428690
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x228], 1
mov byte [ebp - 4], 0
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b3b40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], esi
mov word [ebp - 0x28], 0x500
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x5b3cca
lea eax, [ebp - 0x30]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x5b3ba8
lea eax, [ebp - 0x30]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5b3cca
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x30]
call edi
test eax, eax
jne 0x5b3cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5b3cc0
push ebx
push dword [ebp - 0x3c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x5b3cbf
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push ebx
push 2
push dword [ebp - 0x30]
call edi
test eax, eax
je 0x5b3cb8
xor edi, edi
mov dword [ebp - 0x24], 0x221
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x222
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x223
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 0x220
mov dword [ebp - 8], esi
mov dword [ebp - 0x38], edi
jmp 0x5b3c40
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + edi*8 - 0x24]
lea eax, [ebp - 0x2c]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5b3cac
xor esi, esi
cmp dword [ebx], esi
jbe 0x5b3ca5
lea edi, [ebx + 4]
lea esp, [esp]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x5b3c97
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp + eax*8 - 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x5b3c80
mov edi, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
inc edi
mov dword [ebp - 0x38], edi
cmp edi, 4
jb 0x5b3c40
mov esi, dword [ebp - 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b4b20
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71706b
mov eax, dword fs:[0]
push eax
mov eax, 0x2294
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
push 0x3c
push eax
mov word [ebp - 0x2260], ax
mov word [ebp - 0x125c], ax
mov word [ebp - 0x258], ax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x22a0]
push eax
call fcn.006b47d0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x22a0], 0x3c
mov dword [ebp - 0x229c], eax
add esp, 0xc
lea eax, [ebp - 0x258]
mov dword [ebp - 0x2298], 0x20
mov dword [ebp - 0x2290], eax
mov ecx, esi
lea eax, [ebp - 0x125c]
mov dword [ebp - 0x228c], 0x100
mov dword [ebp - 0x2274], eax
lea eax, [ebp - 0x2260]
mov dword [ebp - 0x226c], eax
lea eax, [ebp - 0x22a0]
push eax
push 0
push 0
mov dword [ebp - 0x2270], 0x800
mov dword [ebp - 0x2268], 0x800
call fcn.00429100
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x5b4c10
push 0x790eb0
mov ecx, edi
call fcn.00428a30
xor eax, eax
jmp 0x5b4c65
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x2264]
push eax
call fcn.005b4a50
add esp, 8
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004289a0
lea ecx, [ebp - 0x2264]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov ecx, edi
call fcn.004290f0
test eax, eax
je 0x5b4c60
lea eax, [ebp - 0x258]
mov ecx, edi
push eax
call fcn.00428a30
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret

Function at 0x5b4c80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b4cb0
or eax, eax
or edx, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b4cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b4cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
or edx, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
xor eax, eax
or eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b4d00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b4d2b
or eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x5b5100
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x717181
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0x3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.00428f60
cmp eax, 0xffffffff
jne 0x5b516a
push 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
call fcn.004299f0
push 0x783548
mov ebx, 1
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x14], ebx
call fcn.004292e0
mov byte [ebp - 0xd], bl
test al, al
jne 0x5b516e
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x5b5182
lea ecx, [ebp - 0x18]
call fcn.00428810
cmp byte [ebp - 0xd], 0
je 0x5b51cb
lea eax, [ebp - 0x14]
push eax
call fcn.005b6a10
add esp, 4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00428b20
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.004289a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp + 0x14]
call fcn.00429100
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b5210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7171e0
mov eax, dword fs:[0]
push eax
mov eax, 0xf810
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xf818], ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0042a580
push 0x3a
lea ecx, [ebp + 0x10]
call fcn.00428f60
cmp eax, 0xffffffff
jne 0x5b529e
push 2
lea eax, [ebp - 0xf81c]
push eax
lea ecx, [ebp + 0x10]
call fcn.004299f0
push 0x783548
mov ebx, 1
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0xf818], ebx
call fcn.004292e0
mov byte [ebp - 0xf811], bl
test al, al
jne 0x5b52a5
mov byte [ebp - 0xf811], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x5b52bc
lea ecx, [ebp - 0xf81c]
call fcn.00428810
cmp byte [ebp - 0xf811], 0
je 0x5b5314
lea eax, [ebp - 0xf818]
push eax
call fcn.005b6a10
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0xf81c]
push eax
call fcn.00428b20
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004289a0
lea ecx, [ebp - 0xf81c]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0xf818]
mov byte [ebp - 4], 0
call fcn.00428810
push 0xf800
lea eax, [ebp - 0xf810]
push 0
push eax
call fcn.006b47d0
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.00429100
push eax
push 0x7c00
lea eax, [ebp - 0xf810]
push eax
push 0x790eb0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xf810], 0
lea esi, [ebp - 0xf810]
je 0x5b538a
lea ecx, [ecx]
push esi
mov ecx, edi
call fcn.0042a6a0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b5370
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x5b5360
mov ecx, edi
call fcn.0042aa30
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b53c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71725b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0x2000
mov dword [ebp - 0x18], 1
call fcn.006b1920
add esp, 4
lea ecx, [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.00429100
push eax
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [ebx], 0
mov edx, ebx
mov dword [ebp - 0x14], ebx
je 0x5b558b
lea ebx, [ebx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00428840
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
cmp eax, ecx
jae 0x5b54e1
mov ebx, dword [esi]
cmp ebx, eax
ja 0x5b54e1
mov edx, dword [esi + 8]
mov edi, eax
sub edi, ebx
sar edi, 2
cmp ecx, edx
jne 0x5b54c9
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x5b54c9
sub ecx, ebx
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x5b55b4
inc ecx
sub edx, ebx
sar edx, 2
mov eax, 0x3fffffff
mov dword [ebp - 0x1c], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x5b54b8
xor edx, edx
jmp 0x5b54ba
add edx, ecx
cmp edx, dword [ebp - 0x1c]
mov ecx, esi
cmovb edx, dword [ebp - 0x1c]
push edx
call fcn.0043f690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
lea eax, [eax + edi*4]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x5b554f
jmp 0x5b5549
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x5b5535
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x5b5535
mov edi, dword [esi]
mov eax, 0x3fffffff
sub ecx, edi
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x5b55b4
sub edx, edi
lea ebx, [ecx + 1]
sar edx, 2
mov eax, 0x3fffffff
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x5b5526
xor edx, edx
jmp 0x5b5528
add edx, ecx
cmp edx, ebx
mov ecx, esi
cmovb edx, ebx
push edx
call fcn.0043f690
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x5b554f
lea eax, [ebp - 0x10]
push eax
call fcn.00428690
add dword [esi + 4], 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00428810
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b5567
sub eax, edi
sar eax, 1
lea edx, [edx + eax*2]
add edx, 2
mov dword [ebp - 0x14], edx
cmp word [edx], cx
jne 0x5b5450
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.00428680
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x783bc0
call fcn.006b1a39
int3
Function at 0x5b55c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7172ea
mov eax, dword fs:[0]
push eax
mov eax, 0x4e3c
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4e48], esi
mov dword [ebp - 0x4e44], eax
mov dword [ebp - 0x4e38], ebx
push 0x3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 2
call fcn.00428f60
cmp eax, 0xffffffff
jne 0x5b565a
push 2
lea eax, [ebp - 0x4e3c]
push eax
lea ecx, [ebp + 0x14]
call fcn.004299f0
push 0x783548
mov ebx, 1
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x4e38], ebx
call fcn.004292e0
mov byte [ebp - 0x4e31], bl
test al, al
jne 0x5b5661
mov byte [ebp - 0x4e31], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x5b5681
and ebx, 0xfffffffe
lea ecx, [ebp - 0x4e3c]
mov dword [ebp - 0x4e38], ebx
call fcn.00428810
cmp byte [ebp - 0x4e31], 0
je 0x5b56d9
lea eax, [ebp - 0x4e40]
push eax
call fcn.005b6a10
add esp, 4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x4e3c]
push eax
call fcn.00428b20
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 5
call fcn.004289a0
lea ecx, [ebp - 0x4e3c]
mov byte [ebp - 4], 4
call fcn.00428810
lea ecx, [ebp - 0x4e40]
mov byte [ebp - 4], 2
call fcn.00428810
xor eax, eax
lea ecx, [ebp + 0x14]
mov word [ebp - 0x4e30], ax
call fcn.00429100
push eax
push 0x270f
lea eax, [ebp - 0x4e30]
push eax
lea ecx, [ebp + 0x18]
call fcn.00429100
push eax
push dword [ebp - 0x4e44]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4e30]
mov ecx, esi
push eax
call fcn.00428840
or ebx, 2
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x4e38], ebx
call fcn.00428810
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret

Function at 0x5b60f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.C:Program_Files
mov ecx, edi
sub esi, edi
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x5b612e
movzx eax, word [esi + ecx]
test ax, ax
je 0x5b612e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x5b6110
jmp 0x5b6132
test edx, edx
jne 0x5b6135
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b6189
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x400
push eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret