joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a37c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49a3d6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049a36c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004899c0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004895c0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a3dd
lea eax, [ebp - 4]
call fcn.004041dc
ret

Function at 0x49ec24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040468c
xor eax, eax
push ebp
push 0x49ed36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409284
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004028e8
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409284
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00402df4
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x49ecd4
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x49ed18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.user32.dll_WaitForInputIdle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ed3d
lea eax, [ebp - 0xc]
call fcn.004041dc
lea eax, [ebp - 4]
call fcn.004041dc
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x4013db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45e56c]
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 0x4015aa
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 0x4015aa
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 0x40159b
lea eax, [ebp + 0xbc]
push eax
call fcn.00438274
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159b
push 0x1c
call fcn.004380ab
cmp eax, esi
pop ecx
je 0x40149a
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 0x40158d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401567
push eax
call fcn.00438020
test eax, eax
pop ecx
jbe 0x401567
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44c484
push ebx
call fcn.004381b8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x401567
jmp 0x4014f2
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x401506
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x40150c
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014f7
jmp 0x40151e
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 0x40153e
cmp al, 0x20
je 0x401533
cmp al, 9
je 0x401533
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401524
cmp byte [ebx], 0
je 0x40153e
inc ebx
cmp byte [ebx], 0
jne 0x401542
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x401564
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44c484
push ebx
call fcn.004381b8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014ef
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x401578
mov dword [edi + 0xc], esi
jmp 0x40159b
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 0x401573
push esi
call dword [eax + 8]
jmp 0x40159b
mov ecx, esi
call fcn.00401029
push esi
call fcn.00437fd6
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x40144b
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.0043800c
add ebp, 0x1c4
leave
ret
Function at 0x403468
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 0x403480
shr eax, 1
xor eax, 0xedb88320
jmp 0x403482
shr eax, 1
dec esi
jne 0x403473
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x40346e
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45e56c]
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.00406e17
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.00406e5a
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x406f0c
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 0x406f5a
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x406f1b
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x406f6b
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x406f93
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 0x406f7a
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0043800c
leave
ret

Function at 0x407703
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 0x407753
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x463928]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40781e
push ebx
push edi
push 4
pop edi
push edi
mov dword [ebp - 0x10], edi
call fcn.00438f22
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, str.WarnOnZoneCrossing
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x4077db
cmp dword [ebp - 0x14], edi
jne 0x4077f4
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.004388a0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4077f4
xor eax, eax
inc eax
push edi
mov dword [0x463928], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0
push esi
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x40780a
push edi
lea eax, [ebp + 8]
push eax
push edi
push 0
push esi
push dword [ebp - 4]
call ebx
push dword [ebp - 0xc]
call fcn.00437fd6
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x407f6e
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.00407e1b
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x407fb1
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 0x407f95
pop edi
pop esi
pop ebp
ret
Function at 0x413e07
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x45e56c]
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.00413d38
cmp eax, esi
jne 0x413e8f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x413e58
lea eax, [ebp - 0x70]
push eax
call fcn.00413e07
cmp eax, esi
jne 0x413e8e
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 0x413e4b
call fcn.00413d21
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.00413d21
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0043800c
add ebp, 0x94
leave
ret 4
Function at 0x41429f
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 0x4142aa
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 0x4191c9
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 0x4191fc
push esi
call fcn.00438020
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x4191eb
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x4191e2
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 0x419427
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push esi
jmp 0x419433
lcall 0x9f97, 0x9824e886
cmp al, 0x4b
fbstp tbyte [edi]
sbb dword [edi], ecx
dec edi
stosb byte es:[edi], al
or dword [esi], eax
aaa
mov cl, byte [eax + 0x23d216eb]
lahf
call 0x2ecef5f
in al, 0xa2
movsb byte es:[edi], byte [esi]
movsd dword es:[edi], dword [esi]
test eax, 0xa2e6e8a1
mov byte [0x44eb06eb], al
jmp 0x419495
mov al, byte [0x800]

Function at 0x419466
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45e56c]
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 0x419558
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 0x41954f
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00438f22
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 0x419547
cmp dword [ebp - 0x58], 1
jne 0x419547
push dword [esi + 0xf8]
call fcn.00437fd6
and dword [esi + 0xf8], 0
push edi
call fcn.00438020
inc eax
push eax
call fcn.00438f22
push edi
push eax
mov dword [esi + 0xf8], eax
call fcn.004380c0
add esp, 0x14
push edi
call fcn.00438f1d
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.0043800c
add ebp, 0x7b8
leave
ret
Function at 0x419572
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45e56c]
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 0x419664
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 0x41965b
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00438f22
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 0x419653
cmp dword [ebp - 0x58], 1
jne 0x419653
push dword [esi + 0xfc]
call fcn.00437fd6
and dword [esi + 0xfc], 0
push edi
call fcn.00438020
inc eax
push eax
call fcn.00438f22
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.004380c0
add esp, 0x14
push edi
call fcn.00438f1d
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.0043800c
add ebp, 0x7b8
leave
ret
Function at 0x41c9f6
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x45e56c]
mov dword [ebp - 4], eax
je 0x41cc12
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41cc11
push dword [ebp + 0xc]
call fcn.00438020
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41cc11
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.00439990
cmp eax, edi
pop ecx
pop ecx
je 0x41ca79
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.004380d0
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 0x41cad7
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 0x41cc0f
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41cb14
cmp eax, 0x19000
jbe 0x41cb14
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 0x41cb1a
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41cc0f
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 0x41cb53
push dword [ebp + 0x10]
call fcn.00438020
cmp eax, esi
pop ecx
jle 0x41cb53
push dword [ebp + 0x10]
call fcn.00438020
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.00438f22
mov ebx, 0x44f388
mov esi, eax
push ebx
push esi
call fcn.004380c0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41cb7a
push edi
call fcn.004191c9
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.004382a8
lea eax, [ebp + 8]
push eax
call fcn.0043a763
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043a748
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.004380c0
push edi
call fcn.004191c9
push dword [ebp + 0xc]
push esi
call fcn.004380c0
push edi
call fcn.004191c9
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41cbf1
push dword [ebp + 0x10]
call fcn.00438020
test eax, eax
pop ecx
jbe 0x41cbf1
push dword [ebp + 0x10]
push esi
call fcn.004380c0
push edi
call fcn.004191c9
add esp, 0xc
push ebx
push esi
call fcn.004380c0
push edi
call fcn.004191c9
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00437fd6
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0043800c
leave
ret
Function at 0x41eb13
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 [0x45e56c]
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 0x41ec6a
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.004380ab
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00439720
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 0x41ec61
cmp dword [ebp - 0x54], 1
jne 0x41ec61
push str.Zylom_Games
push ebx
call fcn.00439a89
test eax, eax
pop ecx
pop ecx
jne 0x41ec61
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00439720
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 0x41ec61
cmp dword [ebp - 0x54], 4
jne 0x41ec61
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.004388a0
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x41ec61
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 0x41ec61
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.00437fd6
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.0043800c
add ebp, 0xc0
leave
ret
Function at 0x41f287
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x45e56c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp + 0xc8], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
mov ebx, 0x20019
push ebx
push esi
push dword [ebp + 0xd8]
mov dword [ebp - 0x5c], 0x104
push dword [ebp + 0xd4]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], esi
call edi
test eax, eax
jne 0x41f40a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41f401
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.004380ab
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.00438020
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.004380ab
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x41f3db
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0043911c
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push dword [ebp - 0x4c]
push dword [ebp + 0xd4]
call edi
test eax, eax
jne 0x41f3e3
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.0041ec7e
add esp, 0xc
cmp eax, esi
je 0x41f3d0
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x41f3c8
mov dword [edx], eax
jmp 0x41f3d0
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x41f3c5
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f3e3
cmp eax, 0x103
je 0x41f3e3
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x41f347
push dword [ebp - 0x4c]
call fcn.00437fd6
push dword [ebp - 0x54]
call fcn.00437fd6
pop ecx
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
pop ebx
call fcn.0043800c
add ebp, 0xcc
leave
ret