joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x416130]
mov edi, dword [ebp + 8]
test eax, eax
je 0x409cf4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x409d10
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x409d30
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x409ce8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004097f0
cmp eax, 7
jne 0x409daf
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x409d86
mov edx, dword [eax + 0x30]
test edx, edx
js 0x409da0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x409d60
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00409a10
jmp 0x409ca5
call fcn.0040a0d0
mov eax, dword [0x416130]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x409c80
lea esi, [esi]
call fcn.004094f0
mov eax, dword [0x416130]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x409c8b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x409c8e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x409cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409cd7
call fcn.0040a0d0
mov eax, dword [0x416130]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x409cc9
nop
lea esi, [esi]
call fcn.004094f0
mov eax, dword [0x416130]
jmp 0x409cc9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x409dc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x409e52
mov eax, dword [0x416130]
test eax, eax
je 0x409e46
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x409ec1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x409e67
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00409a10
cmp eax, 7
jne 0x409edf
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x409eb2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x409ed0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x409e93
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040a0d0
mov eax, dword [0x416130]
jmp 0x409de2
mov dword [esp], edi
call fcn.00409880
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x409df7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x409e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409e35
call fcn.0040a0d0
mov eax, dword [0x416130]
jmp 0x409e20
call fcn.004094f0
mov eax, dword [0x416130]
jmp 0x409ded
call fcn.004094f0
mov eax, dword [0x416130]
jmp 0x409e2b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40a3b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40a3e0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040a7b0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x4013db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x46059c]
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.00439f34
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159b
push 0x1c
call fcn.00439d6b
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.00439ce0
test eax, eax
pop ecx
jbe 0x401567
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44e484
push ebx
call fcn.00439e78
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 0x44e484
push ebx
call fcn.00439e78
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.00439c96
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.00439ccc
add ebp, 0x1c4
leave
ret
Function at 0x403488
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 0x4034a0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4034a2
shr eax, 1
dec esi
jne 0x403493
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x40348e
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x46059c]
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.0040723b
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.0040727e
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x407330
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 0x40737e
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x40733f
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x40738f
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4073b7
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 0x40739e
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00439ccc
leave
ret

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

Disassembly:
mov eax, 0x44b9ca
call fcn.0043a534
sub esp, 0x1c
mov eax, dword [0x46594c]
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 0x407c4d
push 4
pop edi
push edi
mov dword [ebp - 0x20], edi
call fcn.0043abe2
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 0x407c06
cmp dword [ebp - 0x24], edi
jne 0x407c22
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.0043a560
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x407c22
xor eax, eax
inc eax
push edi
mov dword [0x46594c], 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 0x407c3b
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.0043abdd
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 0x4083dd
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.0040828a
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x408420
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 0x408404
pop edi
pop esi
pop ebp
ret
Function at 0x409670
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
Function at 0x414c61
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x46059c]
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.00414b92
cmp eax, esi
jne 0x414ce9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x414cb2
lea eax, [ebp - 0x70]
push eax
call fcn.00414c61
cmp eax, esi
jne 0x414ce8
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 0x414ca5
call fcn.00414b7b
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.00414b7b
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.00439ccc
add ebp, 0x94
leave
ret 4
Function at 0x4150f9
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 0x415104
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 0x41a40b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x46059c]
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 0x41a4fd
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 0x41a4f4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.0043abe2
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 0x41a4ec
cmp dword [ebp - 0x58], 1
jne 0x41a4ec
push dword [esi + 0xfc]
call fcn.0043abdd
and dword [esi + 0xfc], 0
push edi
call fcn.00439ce0
inc eax
push eax
call fcn.0043abe2
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.00439d80
add esp, 0x14
push edi
call fcn.0043abdd
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.00439ccc
add ebp, 0x7b8
leave
ret
Function at 0x41a517
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x46059c]
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 0x41a609
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 0x41a600
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.0043abe2
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 0x41a5f8
cmp dword [ebp - 0x58], 1
jne 0x41a5f8
push dword [esi + 0x100]
call fcn.0043abdd
and dword [esi + 0x100], 0
push edi
call fcn.00439ce0
inc eax
push eax
call fcn.0043abe2
push edi
push eax
mov dword [esi + 0x100], eax
call fcn.00439d80
add esp, 0x14
push edi
call fcn.0043abdd
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.00439ccc
add ebp, 0x7b8
leave
ret

Function at 0x41a75b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44c253
call fcn.0043a534
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esi], 0x451590
mov dword [esi + 0x94], ebx
mov dword [esi + 0x108], ebx
call fcn.00439d6b
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x41a78d
call fcn.0041ff90
jmp 0x41a78f
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.00439d80
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 0x41cb54
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 0x41cb87
push esi
call fcn.00439ce0
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x41cb76
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x41cb6d
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 0x41e1ab
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x46059c]
mov dword [ebp - 4], eax
je 0x41e3c7
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41e3c6
push dword [ebp + 0xc]
call fcn.00439ce0
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41e3c6
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.0043b650
cmp eax, edi
pop ecx
pop ecx
je 0x41e22e
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.00439d90
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 0x41e28c
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 0x41e3c4
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41e2c9
cmp eax, 0x19000
jbe 0x41e2c9
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 0x41e2cf
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41e3c4
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 0x41e308
push dword [ebp + 0x10]
call fcn.00439ce0
cmp eax, esi
pop ecx
jle 0x41e308
push dword [ebp + 0x10]
call fcn.00439ce0
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.0043abe2
mov ebx, 0x451528
mov esi, eax
push ebx
push esi
call fcn.00439d80
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41e32f
push edi
call fcn.0041cb54
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.00439f68
lea eax, [ebp + 8]
push eax
call fcn.0043c423
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043c408
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.00439d80
push edi
call fcn.0041cb54
push dword [ebp + 0xc]
push esi
call fcn.00439d80
push edi
call fcn.0041cb54
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41e3a6
push dword [ebp + 0x10]
call fcn.00439ce0
test eax, eax
pop ecx
jbe 0x41e3a6
push dword [ebp + 0x10]
push esi
call fcn.00439d80
push edi
call fcn.0041cb54
add esp, 0xc
push ebx
push esi
call fcn.00439d80
push edi
call fcn.0041cb54
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00439c96
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.00439ccc
leave
ret
Function at 0x42037f
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 [0x46059c]
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 0x4204d6
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.00439d6b
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043b3e0
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 0x4204cd
cmp dword [ebp - 0x54], 1
jne 0x4204cd
push 0x451da8
push ebx
call fcn.0043b749
test eax, eax
pop ecx
pop ecx
jne 0x4204cd
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.0043b3e0
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 0x4204cd
cmp dword [ebp - 0x54], 4
jne 0x4204cd
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.0043a560
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x4204cd
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 0x4204cd
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.00439c96
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.00439ccc
add ebp, 0xc0
leave
ret