joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a620
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47a63c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4c4a14]
push eax
push esi
mov ecx, edi
call fcn.0047aae0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47a673
test eax, eax
jne 0x47a677
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047a730
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47a6f6
test esi, esi
je 0x47a6f6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004013d0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47a6d5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47a6d5
push 1
push 0x8000012f
call fcn.004013d0
add esp, 8
push esi
call edi
test eax, eax
jne 0x47a6b0
mov edx, dword [0x4c4a14]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a6ee
push 1
push eax
call fcn.004013d0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47a710
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047a730
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047a8b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47a8b0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004996e0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x47aa30
xor cl, cl
mov eax, edi
call fcn.0047aa50
test eax, eax
jne 0x47a8e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4c4a14]
push eax
push ebp
mov ecx, edi
call fcn.0047aae0
test eax, eax
je 0x47a908
xor eax, eax
mov dword [0x4c96b8], eax
jmp 0x47a90d
mov eax, dword [0x4c96b8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4a1868
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x47a953
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x47a95b
mov byte [esp + 0x1841], 1
mov ecx, dword [0x4c96b4]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x47abb0
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x47aa08
lea ecx, [esp + 0x10]
push ecx
push 0x479610
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x47a9c5
mov edx, dword [esp + 0x1848]
call fcn.0047a1f0
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.004785e0
mov edx, dword [esp + 0x1848]
call fcn.0047a1f0
mov edx, dword [0x4c4a14]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47aa30
push 1
push eax
call fcn.004013d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x4c96b8]
cmp eax, ebx
je 0x47aa30
cmp eax, 1
setg al
mov dword [0x4c96b8], ebx
cmp al, bl
je 0x47aa30
mov edx, ebp
call fcn.0047a1f0
push ebx
mov ecx, edi
call fcn.0047a8b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x494876
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c3d70]
jne 0x494880
repz ret
jmp fcn.0049910f

Function at 0x4974a0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c3d70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00491972
and dword [ebp - 0x14], 0
cmp dword [0x4c6c9c], 0
mov dword [ebp - 0x18], eax
jne 0x497553
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4975fb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a0ff8
push ebx
call edi
test eax, eax
je 0x4975fb
mov esi, dword [fcn.0048dc00]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c6c9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c6ca0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c6ca4], eax
call edi
push eax
call esi
mov dword [0x4c6cac], eax
test eax, eax
je 0x497553
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c6ca8], eax
mov eax, dword [0x4c6ca8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048dc04]
cmp eax, ecx
je 0x4975ac
cmp dword [0x4c6cac], ecx
je 0x4975ac
push eax
call esi
push dword [0x4c6cac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4975ac
test ebx, ebx
je 0x4975ac
call edi
test eax, eax
je 0x4975a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4975a3
test byte [ebp - 8], 1
jne 0x4975ac
or dword [ebp + 0x10], 0x200000
jmp 0x4975df
mov eax, dword [0x4c6ca0]
cmp eax, dword [ebp - 0x18]
je 0x4975df
push eax
call esi
test eax, eax
je 0x4975df
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4975df
mov eax, dword [0x4c6ca4]
cmp eax, dword [ebp - 0x18]
je 0x4975df
push eax
call esi
test eax, eax
je 0x4975df
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c6c9c]
call esi
test eax, eax
je 0x4975fb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4975fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494876
leave
ret
Function at 0x4015b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
push 0x40
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub eax, ecx
push 0
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp + 0x10]
pop edi
pop ebx
test edx, edx
je 0x40162d
mov ecx, dword [ebp + 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x401623
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401631
push ecx
push edx
call fcn.00401c81
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00404c7f
int3
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and esi, esi
call fcn.0043b674
mov ebx, esi
xor dword [edx], eax
or esi, esi
inc edx
and esi, esi
or ebx, ebx
cmp edx, ecx
jne fcn.0043b650
add ebx, esi
ret
Function at 0x401650
Capabilities:
Check os version

Disassembly:
sub esp, 0x56c
mov eax, dword [0x47e4f0]
xor eax, esp
mov dword [esp + 0x568], eax
mov eax, dword [esp + 0x570]
push ebp
push esi
push edi
push 0x11c
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00446080
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.00446080
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x4016f4
push 0x471dec
push 0x471dfc
call ebp
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x4016f4
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4016f4
cmp dword [esp + 0x10], 0
jne 0x4017bb
push 0x471e6c
push 0x471e7c
call ebp
push eax
call edi
test eax, eax
je 0x40170e
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x40173b
mov ecx, 0x47
lea esi, [esp + 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16e]
push ecx
mov word [esp + 0x170], ax
call fcn.00446080
add esp, 0xc
lea esi, [esp + 0x164]
call fcn.00401590
test eax, eax
jl 0x4017bb
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.004017f0
test eax, eax
je 0x4017bb
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x4017ae
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x4017c6
mov edx, dword [esp + 0xc]
mov dword [edx + 4], 0
jmp 0x4017c6
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00445a92
add esp, 0x56c
ret 4
Function at 0x4017f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40186e
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401867
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401866
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40185f
push ebp
call fcn.004488b5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40185f
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.00449fe0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x4018b2
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x471f8c
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4018a9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.004465ab
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x401d70
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x80
mov eax, dword [0x47e4f0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00402eb0
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call fcn.00403e00
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.00403ee0
mov dword [esp + 0x10], ebx
jmp 0x401e10
movzx ebx, byte [esp + ebx + 0x78]
mov eax, ebx
shr eax, 4
movzx ecx, word [eax*2 + 0x471eb8]
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x401e48
mov ecx, edi
mov eax, esi
call fcn.00403740
mov ecx, dword [esi]
mov dx, word [esp + 0x14]
mov word [ecx + ebp*2], dx
test edi, edi
jl 0x401ee1
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x401ee1
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [esi]
and ebx, 0xf
movzx ebp, word [ebx*2 + 0x471eb8]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x401e9a
mov ecx, edi
mov eax, esi
call fcn.00403740
mov ecx, dword [esi]
mov word [ecx + ebx*2], bp
test edi, edi
jl 0x401ee1
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x401ee1
mov ebx, dword [esp + 0x10]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
inc ebx
xor eax, eax
mov word [edx + edi*2], ax
mov dword [esp + 0x10], ebx
cmp ebx, 0x14
jb 0x401e10
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00445a92
add esp, 0x80
ret
push 0x80070057
call fcn.00403db0
int3
Function at 0x4021f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4656f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
push 0x202
push ebx
push 0x471dbc
mov dword [esp + 0x38], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4022fc
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x200
je 0x4022ae
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x402285
push 0x80004005
call fcn.00403db0
push ecx
push eax
call fcn.00448bb3
add esp, 8
test eax, eax
je 0x4022ae
mov esi, dword [esi]
test esi, esi
je 0x4022ae
push esi
call ebp
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x471ef4
push edi
call ebx
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
test esi, esi
jne 0x4022bd
lea eax, [esi + 0xd]
jmp 0x4022d2
push esi
call ebp
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x471ee4
push edi
call ebx
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test edi, edi
je 0x4022e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x403b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403b80
lea ebx, [ebx]
cmp esi, eax
jae 0x403b84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403b70
cmp esi, eax
jb 0x403b8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403c0e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x403bdf
cmp eax, 2
jne 0x403bfa
mov eax, dword [esp]
test esi, esi
je 0x403c08
test eax, eax
je 0x403c03
test al, 1
jne 0x403bfa
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x403c08
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x4058d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x454
mov eax, dword [0x47e4f0]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x458]
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x468]
push edi
mov dword [eax], ebp
mov dword [esp + 0x30], ecx
mov dword [ecx], ebp
lea ecx, [esp + 0x28]
push ecx
push 8
push ebp
push 0x472020
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x405938
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], eax
jmp 0x405944
xor eax, eax
jmp 0x405a66
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x264]
push edx
push eax
mov esi, 0x104
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405a52
lea eax, [esp + 0x20]
push eax
push 1
push ebp
lea ecx, [esp + 0x25c]
push ecx
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x4059e5
mov ebx, dword [esp + 0x20]
push 0x4720bc
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esi
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x20], ebx
call fcn.00403ba0
test eax, eax
jne 0x4059d2
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4059fb
cmp ebx, ebp
je 0x4059e1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x100
mov dword [esp + 0x24], eax
jl 0x405940
jmp 0x405a52
push 0x4720e0
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x1c], 0x104
call fcn.00403ba0
test eax, eax
jne 0x405a47
mov eax, esi
push eax
call fcn.00449475
add esp, 4
cmp eax, 5
jne 0x405a47
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ecx], 1
push edx
mov ecx, ebx
call fcn.004057a0
add esp, 4
cmp ebx, ebp
je 0x405a52
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x405a61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00445a92
add esp, 0x454
ret
Function at 0x4082b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465d20
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.00408100
test eax, eax
je 0x4082fd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0
je 0x40830e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4082e4
cmp dword [ebp + 0xc], 0
je 0x408326
push esi
call fcn.00408640
add esp, 4
test eax, eax
sete al
test al, al
jne 0x4082e4
mov eax, dword [ebp + 0x10]
push eax
push esi
mov dword [ebp - 4], 0
call fcn.00408180
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4083c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x47e4f0]
xor eax, esp
mov dword [esp + 0x80c], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00446080
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x47229c
push 0x469b08
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x408440
mov eax, 1
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00445a92
add esp, 0x810
ret
push str.360ver.dll
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408426
push ebx
push esi
lea esi, [esp + 8]
lea ebx, [esp + 0x14]
mov dword [esp + 8], 0xffffffff
call fcn.004081e0
test eax, eax
je 0x408498
mov eax, dword [esp + 8]
cmp eax, 3
je 0x408498
cmp eax, 0xffffffff
je 0x408498
mov esi, ebx
call fcn.00408380
mov esi, eax
test esi, esi
jne 0x4084b4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00445a92
add esp, 0x810
ret
push edi
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x818]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00445a92
add esp, 0x810
ret