joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f860
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439ec6
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov esi, ecx
call fcn.0040f270
mov eax, dword [esi + 0xfc]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0x4500e4
push str.HOT_LIST_FILE_VER2
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40f940
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0xc]
call fcn.0042ff9f
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x154], 0
call fcn.00401a10
lea ecx, [esp + 8]
mov dword [esp + 0x150], 0xffffffff
call fcn.0042ff31
mov ecx, 7
mov esi, str.Opera_Hotlist_version_2.0_n_n__n
lea edi, [esp + 0x20]
lea eax, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x1011
push eax
lea ecx, [esp + 0x14]
movsw word es:[edi], word [esi]
call fcn.00431de3
lea ecx, [esp + 0x20]
push 0x1e
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 1
call fcn.00431fff
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
call fcn.00431e7c
pop edi
mov ecx, dword [esp + 0x144]
pop esi
mov dword fs:[0], ecx
add esp, 0x14c
ret

Function at 0x40f87b
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439ec6
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov esi, ecx
call fcn.0040f270
mov eax, dword [esi + 0xfc]
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0x4500e4
push str.HOT_LIST_FILE_VER2
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40f940
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0xc]
call fcn.0042ff9f
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [esp + 0x154], 0
call fcn.00401a10
lea ecx, [esp + 8]
mov dword [esp + 0x150], 0xffffffff
call fcn.0042ff31
mov ecx, 7
mov esi, str.Opera_Hotlist_version_2.0_n_n__n
lea edi, [esp + 0x20]
lea eax, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x1011
push eax
lea ecx, [esp + 0x14]
movsw word es:[edi], word [esi]
call fcn.00431de3
lea ecx, [esp + 0x20]
push 0x1e
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 1
call fcn.00431fff
lea ecx, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
call fcn.00431e7c
pop edi
mov ecx, dword [esp + 0x144]
pop esi
mov dword fs:[0], ecx
add esp, 0x14c
ret
Function at 0x40f960
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040f380
mov eax, dword [esi + 0xf8]
lea edi, [esi + 0xf8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40fa9a
push str.global.dat
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.0043017a
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00401a10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ff31
mov ebx, dword [esi + 0xfc]
push str.Opera.win
lea edx, [ebp - 0x14]
push edi
push edx
call fcn.0043017a
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x130]
push 0x104
push ecx
push eax
push str.WINDOWS_STORAGE_FILE
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [ebp - 0x14]
seta bl
call fcn.0042ff31
test bl, bl
je 0x40fa9a
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x14]
push edx
call fcn.0042ff9f
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.00401a10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ff31
lea ecx, [ebp - 0x130]
push 0x9011
mov bl, 3
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0xf5
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
call fcn.00430ee4
lea edx, [ebp - 0x14]
push 4
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00431198
lea ecx, [ebp - 0x28]
call fcn.0043125c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00430f84
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fd60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040f960
mov ecx, dword [esi + 0xf8]
lea eax, [esi + 0xf8]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40fe7b
mov edi, dword [esi + 0xfc]
push str.Opera.win
lea edx, [ebp - 0x14]
push eax
push edx
call fcn.0043017a
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x134]
push 0x104
push ecx
push eax
push str.WINDOWS_STORAGE_FILE
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [ebp - 0x14]
seta bl
call fcn.0042ff31
test bl, bl
je 0x40fe7b
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x14]
push edx
call fcn.0042ff9f
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov dword [ebp - 4], 0
call fcn.00401a10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ff31
lea ecx, [ebp - 0x134]
push 0x9011
mov ebx, 1
mov al, 0xff
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], 3
mov byte [ebp - 0x1b], 0xf7
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], al
mov byte [ebp - 0x17], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], al
call fcn.00430ee4
lea edx, [ebp - 0x1c]
push 8
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00431198
lea ecx, [ebp - 0x2c]
call fcn.0043125c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00430f84
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410550
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x43a0cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
call fcn.00410450
push 0x4500e4
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0
mov dword [edi], 0x43d950
call fcn.0042ff9f
lea eax, [esp + 0x10]
push 0x104
push eax
push str.USERPROFILE
mov byte [esp + 0x128], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4106c4
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.0043006e
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x14]
call fcn.0042a732
mov eax, dword [eax]
mov esi, 0x44a328
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41060a
test cl, cl
je 0x410606
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41060a
add eax, 2
add esi, 2
test cl, cl
jne 0x4105e2
xor eax, eax
jmp 0x41060f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x10]
setne bl
call fcn.0042ff31
test bl, bl
je 0x41062f
push 0x44a328
lea ecx, [esp + 0x10]
call fcn.004302c1
push str.Application_DataOperaOpera7profile_
lea ecx, [esp + 0x10]
call fcn.004302c1
lea eax, [esp + 0xc]
push str.opera6.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043017a
push eax
mov byte [esp + 0x128], 2
call fcn.00402c10
add esp, 4
lea ecx, [esp + 0x10]
mov bl, al
mov byte [esp + 0x124], 1
call fcn.0042ff31
pop esi
test bl, bl
pop ebx
je 0x4106c4
lea edx, [esp + 4]
lea ecx, [edi + 0xf8]
push edx
call fcn.0043001e
lea eax, [esp + 4]
push 0x44b9dc
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0043017a
push eax
lea ecx, [edi + 0xfc]
mov byte [esp + 0x120], 3
call fcn.0043001e
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.0042ff31
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.0042ff31
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x410ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov edi, 1
xor ebx, ebx
push 0x450224
lea ecx, [esp + 0x10]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
call fcn.00413840
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
mov dword [esp + 0x24], ebx
and eax, ecx
lea ecx, [esi + 0x30]
push eax
call fcn.0043001e
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413880
push 0x45021c
lea ecx, [esp + 0x10]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], edi
call fcn.00406350
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
neg eax
sbb eax, eax
lea ecx, [esi + 0x40]
and eax, edx
mov dword [esp + 0x24], edi
push eax
call fcn.0043001e
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00406390
push 0x450218
lea ecx, [esi + 0x48]
mov dword [esi + 0x44], edi
call fcn.0043001e
push 0x450214
lea ecx, [esp + 0x18]
mov dword [esi + 0x4c], edi
call fcn.00412400
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
mov dword [esp + 0x24], 2
and eax, ecx
lea ecx, [esi + 0x54]
push eax
call fcn.0043001e
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00412440
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4113e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a238
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [eax]
add eax, 0xfffffff9
push esi
cmp eax, 0xb
mov esi, ecx
ja case.0x411415.11
xor ecx, ecx
mov cl, byte [eax + 0x411540]
jmp dword [ecx*4 + 0x41152c]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push edx
call fcn.00406350
lea eax, [esp + 4]
lea ecx, [esp + 8]
neg eax
sbb eax, eax
mov dword [esp + 0x24], 0
and eax, ecx
lea ecx, [esi + 0x40]
push eax
call fcn.0043001e
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00406390
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0x48]
push edx
call fcn.0043001e
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
call fcn.00412400
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
mov dword [esp + 0x24], 1
and eax, ecx
lea ecx, [esi + 0x54]
push eax
call fcn.0043001e
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00412440
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push edx
call fcn.00413840
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
mov dword [esp + 0x24], 2
and eax, ecx
lea ecx, [esi + 0x30]
push eax
call fcn.0043001e
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413880
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x413970
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x43a629
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.00401820
mov eax, dword [0x44cad0]
lea edi, [ebp + 0xf8]
mov dword [esp + 0x128], 0
mov dword [edi], eax
mov ecx, dword [0x44cad0]
lea esi, [ebp + 0xfc]
mov dword [esi], ecx
lea edx, [esp + 0x1c]
push 0x104
push edx
push str.USERPROFILE
mov byte [esp + 0x134], 2
mov dword [ebp], 0x43de78
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4139f3
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0043006e
push ebx
push str.ProgramFilesDir
lea ecx, [esp + 0x14]
call fcn.0042ff9f
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 3
call fcn.0042ff9f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1c]
mov bl, 4
push 0x80000002
push eax
mov byte [esp + 0x13c], bl
call fcn.00402810
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x130], 5
call fcn.0043001e
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call fcn.0042ff31
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call fcn.0042ff31
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 2
call fcn.0042ff31
mov ecx, edi
call fcn.0042acf9
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413a9b
push str.C:Program_Files_
mov ecx, edi
call fcn.0043006e
push 1
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0042a480
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, edi
mov byte [esp + 0x134], 6
call fcn.0042a732
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x413aec
test cl, cl
je 0x413ae8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x413aec
add eax, 2
add esi, 2
test cl, cl
jne 0x413ac4
xor eax, eax
jmp 0x413af1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.0042ff31
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 2
call fcn.0042ff31
test bl, bl
pop ebx
je 0x413b21
push 0x44a328
mov ecx, edi
call fcn.004302c1
mov ecx, dword [esp + 0x120]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x413d70
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a6f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0x44a330
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
call fcn.0042ff9f
lea eax, [edi + 0xfc]
push str.Recent_
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.0043017a
lea edx, [ebp - 0x18]
push 1
push edx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401e40
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042ff31
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0042ff31
push str.Recent
lea ecx, [ebp - 0x1c]
call fcn.0042ff9f
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042ff9f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x80000001
push edx
mov byte [ebp - 4], 4
call fcn.00402810
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0042ff31
mov bl, 6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042ff31
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x413e9e
push str.Deleting_recent_Documents_folder
lea ecx, [ebp - 0x20]
call fcn.0042ff9f
push 0xffffffffffffffff
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00402c60
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0042ff31
push 0x44a330
lea ecx, [ebp - 0x20]
call fcn.0042ff9f
lea ecx, [ebp - 0x20]
push 0
lea edx, [ebp - 0x14]
push ecx
push edx
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00401e40
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0042ff31
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0042ff31
jmp 0x413ebd
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x68]
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 8
call fcn.004111d0
test al, al
je 0x413f65
lea ecx, [ebp - 0x40]
call fcn.0042b770
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, edi
call fcn.00415c20
mov edx, dword [ebp - 0x38]
lea esi, [edx - 1]
test esi, esi
jl 0x413f56
mov bl, 0xc
push 0x44a330
lea ecx, [ebp - 0x20]
call fcn.0042ff9f
mov eax, dword [ebp - 0x3c]
push str.Recent_
lea edx, [ebp - 0x28]
mov byte [ebp - 4], bl
lea ecx, [eax + esi*4]
push ecx
push edx
call fcn.0043017a
lea ecx, [ebp - 0x20]
push 1
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00401e40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0042ff31
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.0042ff31
dec esi
jns 0x413f05
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0042b7a3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414920
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43a888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
mov dword [esp + 0x1c], ecx
push eax
add ecx, 0x68
mov dword [esp + 0x1c], 0x10
call fcn.00411550
push eax
lea ecx, [esp + 0x24]
call fcn.00407200
xor esi, esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], esi
call fcn.0040b520
mov ebp, eax
cmp ebp, esi
jle 0x414a09
mov bl, 1
mov eax, dword [0x4500e0]
test eax, eax
jne 0x414a09
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b470
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x34], bl
call fcn.00407470
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00407530
test edi, edi
mov byte [esp + 0x30], 2
je 0x4149e5
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
jle 0x4149e5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.00402b80
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.0042ff31
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0042ff31
inc esi
cmp esi, ebp
jl 0x41497a
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00407240
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x418210
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x43b116
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x438]
mov edx, dword [esp + 0x434]
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], ebx
mov eax, dword [eax]
push ecx
push 0xf003f
push ebx
push eax
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x418271
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0x34]
mov eax, ebx
push edx
push ecx
push eax
push esi
mov dword [esp + 0x38], 0x400
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41833d
mov edx, dword [esp + 0x43c]
push 0xffff0002
push edx
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x40]
lea esi, [ebp + 0x120]
push eax
push 1
mov ecx, esi
call fcn.0042b020
mov edi, eax
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push 0x44bdd0
push 1
mov ecx, esi
call fcn.0042b020
mov al, byte [esp + 0x440]
test al, al
je 0x418271
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042ff9f
mov eax, dword [esp + 0x434]
push 1
lea edx, [esp + 0x14]
push edi
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x43c], 1
call fcn.00418210
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 0
call fcn.0042ff31
jmp 0x418271
test esi, esi
je 0x418348
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 0x10
Function at 0x4224e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44f930
cmp edx, dword [eax]
je 0x422506
add eax, 8
inc ecx
cmp eax, 0x44f9c0
jl 0x4224f7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44f930]
jne 0x422634
mov eax, dword [0x452270]
cmp eax, 1
je 0x42260e
test eax, eax
jne 0x422537
cmp dword [0x44d0a8], 1
je 0x42260e
cmp edx, 0xfc
je 0x422634
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42256e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00423930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041bda0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4225b1
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041bda0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x440b30
push edi
call fcn.00424d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00423930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00423940
lea eax, [ebp - 0xa0]
push 0x440b10
push eax
call fcn.00423940
push dword [esi + 0x44f934]
lea eax, [ebp - 0xa0]
push eax
call fcn.00423940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042595a
add esp, 0x2c
pop edi
jmp 0x422634
lea eax, [ebp + 8]
lea esi, [esi + 0x44f934]
push 0
push eax
push dword [esi]
call fcn.0041bda0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x429d40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ac20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x429e0b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x429e0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x429dbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x429dc9
or bh, 8
and edi, 0x8000000
je 0x429de4
mov eax, dword [0x453a3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x429e0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret