joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417780
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test edi, edi
jne 0x4178ae
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov edi, vtable.CWindowIterator.0
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
neg ecx
or ecx, eax
push ecx
call fcn.0042dec6
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x419960
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x10], vtable.CMainWindowIterator.0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0
test eax, eax
je 0x417869
cmp dword [esp + 0x14], 0
jbe 0x417869
mov eax, dword [eax]
mov dword [esp + 0x18], 1
test eax, eax
je 0x417869
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
push ecx
push 0x8907
push 0x8907
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41789b
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jae 0x41789b
mov eax, dword [ecx + edx*4]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
jne 0x417827
push ecx
mov dword [esp + 0xc], edi
call fcn.0042debb
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00438da9
test eax, eax
je 0x41787d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x41787f
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push ecx
push 0x8907
push 0x8907
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0xc], edi
call fcn.0042debb
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push 0x8907
push 0x8907
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4178d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.005344b0
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x417969
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417928
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417935
mov edx, dword [str.cnsrbankAssist_]
mov dword [eax], edx
mov ecx, dword [0x588050]
mov dword [eax + 4], ecx
mov edx, dword [0x588054]
mov dword [eax + 8], edx
mov ecx, dword [0x588058]
mov dword [eax + 0xc], ecx
mov dl, byte [0x58805c]
mov byte [eax + 0x10], dl
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x419090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
mov ebx, edx
jne 0x4190c3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4190ca
lea ebx, [edi + 8]
push ebx
call fcn.00419220
add esp, 4
test al, al
je 0x4190b0
lea esi, [ebp - 0xc50]
call fcn.00418f80
cmp byte [ebp - 0xa20], 0
push 0
mov eax, esi
push eax
je 0x419125
add edi, 8
push edi
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.00530017
lea edx, [ebp - 0x218]
add esp, 0x14
push edx
call fcn.00419220
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x110]
push 0
push ecx
call fcn.00530017
add esp, 0x14
lea eax, [ebp - 0x110]
call fcn.004192d0
test al, al
je 0x4190b0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4190b0
mov eax, dword [edi + 4]
push eax
call fcn.00428940
test eax, eax
jne 0x4190b0
jmp 0x419190
mov edx, dword [edi + 4]
push 0x800
lea ecx, [ebp - 0xa18]
push ecx
push edx
call fcn.004282b0
mov esi, eax
test esi, esi
jle 0x4191dc
push 0
lea eax, [ebp - 0xc54]
push eax
push esi
lea ecx, [ebp - 0xa18]
push ecx
push ebx
mov dword [ebp - 0xc54], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4191d9
cmp dword [ebp - 0xc54], esi
je 0x419190
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.004284b0
test esi, esi
jne 0x419201
mov ecx, dword [ebp - 0xa38]
lea eax, [ebp - 0x110]
call fcn.00419310
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0052d75c
mov esp, ebp
pop ebp
ret

Function at 0x419220
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4192c4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4192c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419256
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete al
pop esi
pop ebp
ret
push ebx
push edi
push esi
call fcn.005302e4
mov edi, eax
push 0x5c
push edi
call fcn.0052e6c0
mov ecx, esi
add esp, 0xc
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x419270
sub ecx, ebx
cmp byte [ecx + esi - 1], 0x5c
sete bl
test eax, eax
je 0x4192bd
push edi
mov byte [eax], dl
call fcn.00419220
add esp, 4
push edi
test al, al
jne 0x4192a4
call fcn.0052f68b
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
pop ebp
ret
call fcn.0052f68b
add esp, 4
test bl, bl
jne 0x4192bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41929d
pop edi
pop ebx
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x419310
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x419340
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4193a6
lea ecx, [ebp - 0x10]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4193a6
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4193a6
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4193c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.005344b0
push 0x104
lea ecx, [ebp - 0x110]
push esi
push ecx
call fcn.00530616
add esp, 0x18
lea ecx, [ebp - 0x110]
call fcn.004195d0
cmp eax, 1
jne 0x41942d
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov word [ebp - 0x114], ax
lea ecx, [ebp - 0x130]
lea edx, [ebp - 0x110]
mov eax, 0x290
push ecx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], 3
mov word [ebp - 0x120], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x4194b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x213]
push 0
push eax
mov byte [ebp - 0x214], 0
call fcn.005344b0
push 0x104
lea ecx, [ebp - 0x214]
push esi
push ecx
call fcn.00530616
xor eax, eax
push 0x104
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x10b]
lea edx, [ebp - 0x214]
mov eax, 0x210
or word [ebp - 0x224], ax
push 0
push ecx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x230], 3
mov byte [ebp - 0x10c], 0
call fcn.005344b0
add esp, 0x24
lea edx, [ebp - 0x10c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
jmp 0x419580
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
call fcn.00419860
add esp, 4
test eax, eax
jne 0x4195a8
lea edi, [ebp - 0x10c]
call fcn.004196b0
test eax, eax
jne 0x419580
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop edi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret

Function at 0x4195d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x5adf10]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push 0x140
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.005344b0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41962b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
mov edx, eax
or edx, 0x10
cmp eax, edx
jne 0x419689
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
je 0x419669
lea ebx, [ebx]
mov eax, dword [esp + 8]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x419689
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
jne 0x419650
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
mov eax, 2
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x4196b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.005344b0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
jmp 0x419700
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419700
sub eax, edx
push esi
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x41975e
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00530746
add esp, 4
cmp eax, 0x41
jl 0x41975e
movsx ecx, byte [ebp - 0x10c]
push ecx
call fcn.00530746
add esp, 4
cmp eax, 0x5a
jg 0x41975e
cmp byte [ebp - 0x10b], 0x3a
jne 0x41975e
cmp esi, 3
jne 0x419755
cmp byte [ebp - 0x10a], 0x5c
jne 0x41975e
cmp byte [ebp - 0x10c], 0
jne 0x41979a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419767
sub eax, edx
dec eax
js 0x419780
cmp byte [ebp + eax - 0x10c], 0x5c
je 0x4197ab
dec eax
jns 0x419773
test edi, edi
je 0x41979a
lea eax, [ebp - 0x10c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419790
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
mov byte [ebp + eax - 0x10c], 0
test edi, edi
je 0x4197cd
lea eax, [ebp - 0x10c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4197c3
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4197d6
sub eax, edx
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x419837
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00530746
add esp, 4
cmp eax, 0x41
jl 0x419837
movsx ecx, byte [ebp - 0x10c]
push ecx
call fcn.00530746
add esp, 4
cmp eax, 0x5a
jg 0x419837
cmp byte [ebp - 0x10b], 0x3a
jne 0x419837
cmp esi, 3
jne 0x41982a
cmp byte [ebp - 0x10a], 0x5c
jne 0x419837
cmp byte [ebp - 0x10c], 0
jne 0x41979a
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x419aa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55759b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00532830
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xfff
lea eax, [ebp - 0x100f]
push 0
push eax
mov byte [ebp - 0x1010], 0
call fcn.005344b0
mov eax, dword [ebp + 8]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x1010]
push edx
push eax
push ecx
mov dword [ebp - 0x1018], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
xor eax, eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1014]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00405fd0
lea eax, [ebp - 0x1014]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00406890
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edi, edi
jne 0x419b83
test edx, edx
jg 0x419b7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x419b93
test edx, edx
jg 0x419b91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4

Function at 0x419d60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.005344b0
add esp, 0xc
mov ecx, esi
call fcn.00419e90
test al, al
jne 0x419dad
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esi + 4]
push 0x5c
push edi
call fcn.0052e6c0
sub eax, esi
sub eax, 4
push eax
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.005307c0
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov byte [ebp - 0x20c], 0
call fcn.005344b0
add esp, 0x20
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.LngENU.ini
push ebx
push str.LanguageItems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esi + 0x108]
lea eax, [ebp - 0x108]
mov esi, edx
mov ecx, eax
sub esi, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x419e20
lea edi, [edx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419e30
mov ax, word [0x586cac]
mov word [edi], ax
lea eax, [ebp - 0x20c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419e50
sub eax, esi
dec edx
lea ebx, [ebx]
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x419e60
mov ecx, eax
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x419f60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2814
call fcn.00532830
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x2814], eax
call fcn.00419e90
test al, al
jne 0x419fa2
mov eax, 0x586bff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419fa8
sub eax, edx
cmp eax, 3
jb 0x419f8c
xor eax, eax
mov byte [ebp - 0x10], cl
mov ecx, esi
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.0041a0a0
lea edx, [ebp - 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419fd4
push ebx
lea ebx, [ebp - 0x10]
mov ecx, esi
call fcn.00419d60
pop ebx
test al, al
je 0x419f8c
add esi, 0x108
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a000
sub eax, edx
cmp eax, 3
jb 0x419f8c
push 0x27ff
mov byte [ebp - 0x2810], cl
lea ecx, [ebp - 0x280f]
push 0
push ecx
call fcn.005344b0
mov eax, dword [ebp - 0x2814]
add esp, 0xc
push esi
push 0x2800
lea edx, [ebp - 0x2810]
push edx
push 0x586bff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2800
push 0
push 0x5bc308
call fcn.005344b0
add esp, 0xc
mov dword [0x5afd94], 0x5bc308
xor eax, eax
mov edi, edi
mov cl, byte [ebp + eax - 0x2810]
mov byte [eax + 0x5bc308], cl
inc eax
test cl, cl
jne 0x41a070
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5bc308
pop esi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4

Function at 0x41a0a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00419e90
test al, al
jne 0x41a0d3
mov eax, 0x586bff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
add esi, 4
mov eax, esi
lea edx, [eax + 1]
jmp 0x41a0e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a0e0
sub eax, edx
cmp eax, 3
jb 0x41a0bf
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], cl
call fcn.005344b0
add esp, 0xc
push esi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x586bff
push str.Default
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [0x5afd98], 0x5beb08
xor eax, eax
jmp 0x41a140
mov cl, byte [ebp + eax - 0x108]
mov byte [eax + 0x5beb08], cl
inc eax
test cl, cl
jne 0x41a140
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5beb08
pop esi
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x41a210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
je 0x41a2ba
cmp dword [ebp + 0x10], 0
je 0x41a2ba
push edi
push 0x201
mov esi, 0x200
call fcn.0042dec6
add esp, 4
mov edi, eax
mov eax, 0x586bff
test ebx, ebx
je 0x41a248
mov eax, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
push edx
push 0x200
push edi
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
cmp eax, 0x200
jb 0x41a2b2
lea esp, [esp]
push edi
add esi, 0x200
call fcn.0042debb
lea edx, [esi + 1]
push edx
call fcn.0042dec6
add esp, 8
mov edi, eax
mov eax, 0x586bff
test ebx, ebx
je 0x41a295
mov eax, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
cmp eax, esi
jae 0x41a270
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
test ebx, ebx
jne 0x41a2d1
push 1
call fcn.0042dec6
mov esi, eax
add esp, 4
mov byte [esi], bl
pop esi
pop ebp
ret 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a2d6
sub eax, edx
inc eax
push eax
call fcn.0042dec6
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a2f0
sub eax, edx
push ebx
inc eax
push eax
push esi
call fcn.0052df52
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x41a870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5a0f38
push 0x534c00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5adf10]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
cmp edi, ebx
jne 0x41a8c6
lea eax, [ebx + 0x57]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x41a917
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x5883ec
push esi
push 2
push 0x2e3
push str.YWAssistant.c
push str.B_GetStartPage
call fcn.0041c870
add esp, 0x1c
jmp 0x41a96f
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
push str.Start_Page
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x41a967
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x588470
push esi
push 2
push 0x2ea
push str.YWAssistant.c
push str.B_GetStartPage
call fcn.0041c870
add esp, 0x20
jmp 0x41a96f
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [edi], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041a994
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret