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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, 0x5d744c
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec edi
jne 0x4043aa
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
cmp ebx, edi
jle 0x4043fa
cmp dword [esp + 0x10], 0x785074d5
jne 0x404403
inc ebx
cmp ebx, 0x1c1b
jl 0x4043db
cmp dword [0x4e2900], 0x400
jne 0x404451
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push esi
push esi
call fcn.00405697
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403dc9
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403dec
fstp st(0)
push esi
call fcn.00405b23
pop ecx
push esi
call fcn.00405973
pop ecx
push esi
push esi
call fcn.0040558b
pop ecx
pop ecx
mov eax, dword [0x4327fc]
mov dword [0x4e2900], eax
mov eax, dword [0x4327d0]
mov dword [0x4e2904], eax
call fcn.004041b0
xor ebx, ebx
push 0x4038d0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404485
cmp dword [esp + 0x10], 0x785074d5
jne 0x40448e
inc ebx
cmp ebx, 0x11915
jl 0x40446c
mov edi, 0x3078f
cmp dword [0x4e2900], 0x51f
jne 0x4044bf
push 0x4038d8
push esi
lea eax, [esp + 0x20]
push eax
push 0x403910
push 0x403928
push 0x403968
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
jne 0x404493
mov eax, dword [0x4e1850]
mov dword [0x4e1e94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40666b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431178]
jne 0x406675
repz ret
jmp fcn.0040bb9c
Function at 0x40be9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a307
and dword [ebp - 4], 0
cmp dword [0x4333f0], 0
mov ebx, eax
jne 0x40bf4e
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bfff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e4
push edi
call esi
test eax, eax
je 0x40bfff
push eax
call fcn.0040a295
mov dword [esp], 0x4024d4
push edi
mov dword [0x4333f0], eax
call esi
push eax
call fcn.0040a295
mov dword [esp], 0x4024c0
push edi
mov dword [0x4333f4], eax
call esi
push eax
call fcn.0040a295
mov dword [esp], 0x4024a4
push edi
mov dword [0x4333f8], eax
call esi
push eax
call fcn.0040a295
pop ecx
mov dword [0x433400], eax
test eax, eax
je 0x40bf4e
push 0x40248c
push edi
call esi
push eax
call fcn.0040a295
pop ecx
mov dword [0x4333fc], eax
mov eax, dword [0x4333fc]
cmp eax, ebx
je 0x40bfa6
cmp dword [0x433400], ebx
je 0x40bfa6
push eax
call fcn.0040a310
push dword [0x433400]
mov esi, eax
call fcn.0040a310
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bfa6
test edi, edi
je 0x40bfa6
call esi
test eax, eax
je 0x40bf9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf9d
test byte [ebp - 0xc], 1
jne 0x40bfa6
or dword [ebp + 0x10], 0x200000
jmp 0x40bfdf
mov eax, dword [0x4333f4]
cmp eax, ebx
je 0x40bfdf
push eax
call fcn.0040a310
pop ecx
test eax, eax
je 0x40bfdf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bfdf
mov eax, dword [0x4333f8]
cmp eax, ebx
je 0x40bfdf
push eax
call fcn.0040a310
pop ecx
test eax, eax
je 0x40bfdf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4333f0]
call fcn.0040a310
pop ecx
test eax, eax
je 0x40bfff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c001
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013e5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45f56c]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x1c0], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x54], edi
je 0x4015b4
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4015b4
push ebx
mov dword [ebp - 0x50], esi
push 0x104
lea eax, [ebp + 0xbc]
push eax
push dword [ebp - 0x50]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
mov dword [ebp - 0x5c], eax
jne 0x4015a5
lea eax, [ebp + 0xbc]
push eax
call fcn.00438e64
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x4015a5
push 0x1c
call fcn.00438c9b
cmp eax, esi
pop ecx
je 0x4014a4
mov ecx, eax
call fcn.00401000
mov esi, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x401597
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401571
push eax
call fcn.00438c10
test eax, eax
pop ecx
jbe 0x401571
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44d484
push ebx
call fcn.00438da8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x401571
jmp 0x4014fc
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x401510
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x401516
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x401501
jmp 0x401528
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
and dword [ebp - 0x4c], 0
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov al, byte [ebx]
test al, al
je 0x401548
cmp al, 0x20
je 0x40153d
cmp al, 9
je 0x40153d
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40152e
cmp byte [ebx], 0
je 0x401548
inc ebx
cmp byte [ebx], 0
jne 0x40154c
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x40156e
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44d484
push ebx
call fcn.00438da8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014f9
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x401582
mov dword [edi + 0xc], esi
jmp 0x4015a5
call dword [eax + 4]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
jne 0x40157d
push esi
call dword [eax + 8]
jmp 0x4015a5
mov ecx, esi
call fcn.00401029
push esi
call fcn.00438bc6
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x401455
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.00438bfc
add ebp, 0x1c4
leave
ret
Function at 0x40347c
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 8
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x403494
shr eax, 1
xor eax, 0xedb88320
jmp 0x403496
shr eax, 1
dec esi
jne 0x403487
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x403482
pop esi
ret

Function at 0x407065
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45f56c]
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x238]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.00406fe9
mov eax, dword [ebp - 0x220]
xor eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
xor ecx, dword [ebp + 0x18]
and eax, dword [ebp - 0x210]
and ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x234], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x230], bl
mov dword [ebp - 0x208], ebx
xor edi, edi
call fcn.0040702c
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x4070de
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov cl, byte [ebp + edi - 0x204]
lea eax, [ebp + eax - 0x104]
movsx edx, byte [eax]
add ecx, dword [ebp - 0x208]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0x208], ecx
lea ecx, [ebp + ecx - 0x104]
movsx ebx, byte [ecx]
inc edi
cmp edi, esi
mov byte [ecx], dl
mov byte [eax], bl
jl 0x40712c
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x4070ed
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x40713d
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x407165
mov ecx, dword [ebp + 8]
sub edi, ecx
mov dword [ebp + 0x10], eax
lea eax, [edi + ecx]
cdq
mov ebx, esi
idiv ebx
mov al, byte [ebp + edx - 0x104]
and al, 0x7f
xor byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x40714c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00438bfc
leave
ret

Function at 0x4078d5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x407925
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x44a8eb
call fcn.00439464
sub esp, 0x1c
mov eax, dword [0x46492c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4079fb
push 4
pop edi
push edi
mov dword [ebp - 0x20], edi
call fcn.00439b12
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov esi, str.WarnOnZoneCrossing
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4079b4
cmp dword [ebp - 0x24], edi
jne 0x4079d0
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.00439490
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x4079d0
xor eax, eax
inc eax
push edi
mov dword [0x46492c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
je 0x4079e9
push edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call fcn.00439b0d
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x408186
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x20]
sub eax, edi
push eax
lea eax, [esi + edi]
push eax
call fcn.00408033
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x4081c9
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
xor al, byte [ebp + 0x1c]
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4081ad
pop edi
pop esi
pop ebp
ret
Function at 0x414595
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x45f56c]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.004144c6
cmp eax, esi
jne 0x41461d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4145e6
lea eax, [ebp - 0x70]
push eax
call fcn.00414595
cmp eax, esi
jne 0x41461c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x4145d9
call fcn.004144af
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004144af
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.00438bfc
add ebp, 0x94
leave
ret 4
Function at 0x414a2d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x414a38
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x415ef7
Capabilities:
Set current directory
Terminate process

Disassembly:
mov eax, 0x44aee9
call fcn.00439464
push ecx
mov eax, 0x1168
call fcn.0043a2d0
mov eax, dword [0x45f56c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call fcn.00432119
call fcn.004081cd
test al, al
jne 0x415f43
push 0
push str.Fatal_Error
push str.Files_are_altered_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
jmp 0x416e3c
push 0x44d5be
push 0x4643b8
call fcn.00438cb0
pop ecx
pop ecx
push 0x104
mov edi, 0x4647b8
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.0043a580
cmp eax, esi
pop ecx
pop ecx
jne 0x415f86
push esi
push str.Fatal_Error
push str.Invalid_access_rights_
jmp 0x4162f8
push edi
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x415f9c
adc dword [ecx + edx*2 - 0x6473f21e], 0xffffffc5
iretd
and al, 0xc4
push es
add ebx, esi
inc eax
popfd
mov byte [esi + 0x57], 0xb5
mov bh, 0x11
sbb dh, dl
sbb al, 0x84
int3
call fcn.0043a869
int3

Function at 0x419b29
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test esi, esi
je 0x419b5c
push esi
call fcn.00438c10
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x419b4b
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x419b42
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x419dc6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45f56c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x100]
mov dword [ebp - 0x60], 0x800
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419eb8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x419eaf
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00439b12
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.dgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419ea7
cmp dword [ebp - 0x58], 1
jne 0x419ea7
push dword [esi + 0xf8]
call fcn.00439b0d
and dword [esi + 0xf8], 0
push edi
call fcn.00438c10
inc eax
push eax
call fcn.00439b12
push edi
push eax
mov dword [esi + 0xf8], eax
call fcn.00438cb0
add esp, 0x14
push edi
call fcn.00439b0d
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xf8]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.00438bfc
add ebp, 0x7b8
leave
ret
Function at 0x419ed2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45f56c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x100]
mov dword [ebp - 0x60], 0x800
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419fc4
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x419fbb
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00439b12
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.cdgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419fb3
cmp dword [ebp - 0x58], 1
jne 0x419fb3
push dword [esi + 0xfc]
call fcn.00439b0d
and dword [esi + 0xfc], 0
push edi
call fcn.00438c10
inc eax
push eax
call fcn.00439b12
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.00438cb0
add esp, 0x14
push edi
call fcn.00439b0d
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xfc]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.00438bfc
add ebp, 0x7b8
leave
ret
Function at 0x41d5d0
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x45f56c]
mov dword [ebp - 4], eax
je 0x41d7ec
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41d7eb
push dword [ebp + 0xc]
call fcn.00438c10
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41d7eb
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0043a580
cmp eax, edi
pop ecx
pop ecx
je 0x41d653
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.00438cc0
pop ecx
pop ecx
push ebx
push esi
push edi
mov esi, 0x80
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
jne 0x41d6b1
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 4
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
je 0x41d7e9
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41d6ee
cmp eax, 0x19000
jbe 0x41d6ee
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push 5
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, eax
jmp 0x41d6f4
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41d7e9
push 2
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], ebx
mov esi, dword [ebp - 0x510]
je 0x41d72d
push dword [ebp + 0x10]
call fcn.00438c10
cmp eax, esi
pop ecx
jle 0x41d72d
push dword [ebp + 0x10]
call fcn.00438c10
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.00439b12
mov ebx, 0x450418
mov esi, eax
push ebx
push esi
call fcn.00438cb0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41d754
push edi
call fcn.00419b29
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.00438e98
lea eax, [ebp + 8]
push eax
call fcn.0043b353
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043b338
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.00438cb0
push edi
call fcn.00419b29
push dword [ebp + 0xc]
push esi
call fcn.00438cb0
push edi
call fcn.00419b29
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41d7cb
push dword [ebp + 0x10]
call fcn.00438c10
test eax, eax
pop ecx
jbe 0x41d7cb
push dword [ebp + 0x10]
push esi
call fcn.00438cb0
push edi
call fcn.00419b29
add esp, 0xc
push ebx
push esi
call fcn.00438cb0
push edi
call fcn.00419b29
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00438bc6
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.00438bfc
leave
ret
Function at 0x41f6ed
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x45f56c]
push edi
mov dword [ebp + 0xbc], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41f844
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.00438c9b
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043a310
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.Publisher
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x41f83b
cmp dword [ebp - 0x54], 1
jne 0x41f83b
push str.Zylom_Games
push ebx
call fcn.0043a679
test eax, eax
pop ecx
pop ecx
jne 0x41f83b
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043a310
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.GameID
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x41f83b
cmp dword [ebp - 0x54], 4
jne 0x41f83b
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.00439490
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x41f83b
mov esi, dword [ebp + 0xd0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x50]
jne 0x41f83b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push str.BuildType
push dword [ebp + 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00438bc6
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.00438bfc
add ebp, 0xc0
leave
ret