joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cae80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x4f7930
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4816e8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x47fdf0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x479050]
push eax
mov ecx, edi
call 0x4fd0a2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x4fe5fa
test eax, eax
je 0x4caf9c
mov ecx, dword [esp + 0x3c]
call 0x4fd0cf
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.00479520]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4caf60
push edi
mov ecx, esi
call 0x4fa691
mov ecx, esi
call fcn.004cb100
cmp dword [esp + 0x38], 1
jne 0x4caf95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x4fa7fb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4cd9c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4cd9f3
push esi
call fcn.004d0ad0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4cd9ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4cda79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4cda62
mov eax, dword [esi + 8]
test eax, eax
je 0x4cda17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4cda5e
cmp eax, 2
je 0x4cda62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4cda0a
cmp eax, 3
je 0x4cda3d
cmp eax, 1
jne 0x4cda0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4cda0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4cda0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004cdaa0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4cda88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004cdaa0
add esp, 4
pop esi
ret
Function at 0x4013df
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x46159c]
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 0x4015ae
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 0x4015ae
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 0x40159f
lea eax, [ebp + 0xbc]
push eax
call fcn.0043a014
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159f
push 0x1c
call fcn.00439e4b
cmp eax, esi
pop ecx
je 0x40149e
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 0x401591
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40156b
push eax
call fcn.00439dc0
test eax, eax
pop ecx
jbe 0x40156b
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44e484
push ebx
call fcn.00439f58
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x40156b
jmp 0x4014f6
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x40150a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x401510
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014fb
jmp 0x401522
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 0x401542
cmp al, 0x20
je 0x401537
cmp al, 9
je 0x401537
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401528
cmp byte [ebx], 0
je 0x401542
inc ebx
cmp byte [ebx], 0
jne 0x401546
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x401568
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44e484
push ebx
call fcn.00439f58
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014f3
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x40157c
mov dword [edi + 0xc], esi
jmp 0x40159f
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 0x401577
push esi
call dword [eax + 8]
jmp 0x40159f
mov ecx, esi
call fcn.00401029
push esi
call fcn.00439d76
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x40144f
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.00439dac
add ebp, 0x1c4
leave
ret
Function at 0x403508
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 0x403520
shr eax, 1
xor eax, 0xedb88320
jmp 0x403522
shr eax, 1
dec esi
jne 0x403513
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x40350e
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x46159c]
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.004072e7
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.0040732a
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x4073dc
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 0x40742a
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x4073eb
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x40743b
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x407463
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 0x40744a
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00439dac
leave
ret

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

Disassembly:
mov eax, 0x44ba98
call fcn.0043a614
sub esp, 0x1c
mov eax, dword [0x46694c]
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 SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407cf9
push 4
pop edi
push edi
mov dword [ebp - 0x20], edi
call fcn.0043acc2
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 0x407cb2
cmp dword [ebp - 0x24], edi
jne 0x407cce
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.0043a640
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x407cce
xor eax, eax
inc eax
push edi
mov dword [0x46694c], 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 0x407ce7
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.0043acbd
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 0x408489
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.00408336
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x4084cc
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 0x4084b0
pop edi
pop esi
pop ebp
ret
Function at 0x414d89
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x46159c]
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.00414cba
cmp eax, esi
jne 0x414e11
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x414dda
lea eax, [ebp - 0x70]
push eax
call fcn.00414d89
cmp eax, esi
jne 0x414e10
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 0x414dcd
call fcn.00414ca3
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.00414ca3
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.00439dac
add ebp, 0x94
leave
ret 4
Function at 0x415221
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 0x41522c
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 0x41a587
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x46159c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x104]
mov dword [ebp - 0x60], 0x800
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a679
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 0x41a670
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.0043acc2
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 0x41a668
cmp dword [ebp - 0x58], 1
jne 0x41a668
push dword [esi + 0xfc]
call fcn.0043acbd
and dword [esi + 0xfc], 0
push edi
call fcn.00439dc0
inc eax
push eax
call fcn.0043acc2
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.00439e60
add esp, 0x14
push edi
call fcn.0043acbd
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.00439dac
add ebp, 0x7b8
leave
ret
Function at 0x41a693
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x46159c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x104]
mov dword [ebp - 0x60], 0x800
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a785
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 0x41a77c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.0043acc2
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 0x41a774
cmp dword [ebp - 0x58], 1
jne 0x41a774
push dword [esi + 0x100]
call fcn.0043acbd
and dword [esi + 0x100], 0
push edi
call fcn.00439dc0
inc eax
push eax
call fcn.0043acc2
push edi
push eax
mov dword [esi + 0x100], eax
call fcn.00439e60
add esp, 0x14
push edi
call fcn.0043acbd
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x100]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.00439dac
add ebp, 0x7b8
leave
ret

Function at 0x41a8d7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44c321
call fcn.0043a614
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esi], 0x452268
mov dword [esi + 0x94], ebx
mov dword [esi + 0x108], ebx
call fcn.00439e4b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x41a909
call fcn.004200a4
jmp 0x41a90b
xor eax, eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x98]
push 0x44e5c8
push eax
mov dword [esi + 0x100], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x28], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x38], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.00439e60
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e2d2
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 0x41e305
push esi
call fcn.00439dc0
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x41e2f4
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x41e2eb
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 0x41e30a
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x46159c]
mov dword [ebp - 4], eax
je 0x41e526
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41e525
push dword [ebp + 0xc]
call fcn.00439dc0
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41e525
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.0043b730
cmp eax, edi
pop ecx
pop ecx
je 0x41e38d
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.00439e70
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 0x41e3eb
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 0x41e523
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41e428
cmp eax, 0x19000
jbe 0x41e428
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 0x41e42e
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41e523
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 0x41e467
push dword [ebp + 0x10]
call fcn.00439dc0
cmp eax, esi
pop ecx
jle 0x41e467
push dword [ebp + 0x10]
call fcn.00439dc0
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.0043acc2
mov ebx, 0x452200
mov esi, eax
push ebx
push esi
call fcn.00439e60
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41e48e
push edi
call fcn.0041e2d2
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0043a048
lea eax, [ebp + 8]
push eax
call fcn.0043c503
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043c4e8
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.00439e60
push edi
call fcn.0041e2d2
push dword [ebp + 0xc]
push esi
call fcn.00439e60
push edi
call fcn.0041e2d2
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41e505
push dword [ebp + 0x10]
call fcn.00439dc0
test eax, eax
pop ecx
jbe 0x41e505
push dword [ebp + 0x10]
push esi
call fcn.00439e60
push edi
call fcn.0041e2d2
add esp, 0xc
push ebx
push esi
call fcn.00439e60
push edi
call fcn.0041e2d2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00439d76
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.00439dac
leave
ret
Function at 0x420493
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 [0x46159c]
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 0x4205ea
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.00439e4b
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043b4c0
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 0x4205e1
cmp dword [ebp - 0x54], 1
jne 0x4205e1
push 0x452a80
push ebx
call fcn.0043b829
test eax, eax
pop ecx
pop ecx
jne 0x4205e1
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043b4c0
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 0x4205e1
cmp dword [ebp - 0x54], 4
jne 0x4205e1
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.0043a640
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x4205e1
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 0x4205e1
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.00439d76
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.00439dac
add ebp, 0xc0
leave
ret