joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464fcd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x58b700]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x52d701
call fcn.00505a81
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.004948a1
xor ebx, ebx
lea ecx, [ebp]
push str.LANG_CN
mov dword [ebp - 4], ebx
call fcn.00494a3c
push 4
call fcn.0049cf70
lea eax, [ebp + 0x84]
push eax
call fcn.004982be
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0049847d
dec eax
je 0x465175
dec eax
je 0x465138
dec eax
je 0x4650c0
dec eax
jne 0x4651ef
push 0x5628e0
push 0x85
call fcn.00498468
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4651ef
push esi
call fcn.00498468
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4650b4
push esi
call fcn.00498468
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4650b4
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0049cf7d
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x5628f0
call fcn.00465d46
mov ecx, eax
call fcn.004a1010
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4651ef
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00505440
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str.skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00494af6
lea ecx, [ebp + 0x84]
call fcn.00494f9b
push eax
call fcn.0049cf27
mov dword [esp], 0x562898
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x4651e3
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.00494af6
lea ecx, [ebp + 0x84]
call fcn.00494f9b
push eax
call fcn.0049cf27
push ebx
push 1
push str.res.zip
call fcn.0049d00b
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x5628cc
jmp 0x4651e3
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00505440
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str...lib_skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00494af6
lea ecx, [ebp + 0x84]
call fcn.00494f9b
push eax
call fcn.0049cf27
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.00465d46
mov ecx, eax
call fcn.004a1010
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.004949a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004949a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.005008c3
lea esp, [ebp + 0x314]
pop ebp
ret
Function at 0x46614f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x52d82b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov bl, dl
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0xa8], ebp
push str.3.0.5
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
call fcn.00450c22
xor eax, eax
mov dword [esp + 0xa8], ebp
inc eax
push 0x10
push eax
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x466265
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x466265
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
add esi, 0x28
je 0x466265
xor eax, eax
push 0x7e
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebp
push eax
call fcn.00505440
add esp, 0xc
test bl, bl
je 0x46622b
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 0xa]
push eax
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x46624d
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 0xa]
push eax
lea eax, [esp + 0x28]
push str._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450b91
mov eax, edi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.005008c3
add esp, 0x98
ret
Function at 0x466fae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52db21
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x70c], 0
jne 0x467019
cmp dword [0x5922bc], 0
je 0x4671a4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___function_interface_is_null.
push 1
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x10
jmp 0x4671a4
mov eax, dword [edi + 0x704]
mov esi, dword [eax]
cmp eax, esi
je 0x46718b
mov eax, dword [esp + 0x7c]
cmp dword [esi + 0x21c], eax
jne 0x46717d
cmp dword [0x5922bc], 0
je 0x4670e7
lea edx, [esi + 0x3c]
lea ecx, [esp + 0x4c]
call fcn.0047eeec
mov ebp, eax
and dword [esp + 0x74], 0
lea edx, [esi + 0x84]
lea ecx, [esp + 0x34]
call fcn.0047eeec
mov ebx, eax
lea edx, [esi + 0x24]
mov byte [esp + 0x74], 1
lea ecx, [esp + 0x1c]
call fcn.0047eeec
mov byte [esp + 0x74], 2
cmp dword [ebp + 0x14], 0x10
jb 0x467089
mov ebp, dword [ebp]
cmp dword [ebx + 0x14], 0x10
jb 0x467091
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 0x10
jb 0x467099
mov eax, dword [eax]
push ebp
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___WaeMgr_StartDownTask:__d___s___s___s
push 3
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x20
lea ecx, [esp + 0x1c]
push 0
push 1
call fcn.0044e987
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.0044e987
or dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x4c]
push 0
push 1
call fcn.0044e987
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
mov dword [esp + 0x18], eax
jb 0x4670fa
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea ebp, [esi + 0x84]
cmp dword [ebp + 0x14], 8
jb 0x467109
mov ebp, dword [ebp]
lea edx, [esi + 0x24]
cmp dword [edx + 0x14], 8
jb 0x467114
mov edx, dword [edx]
lea ebx, [esi + 0xc]
cmp dword [ebx + 0x14], 8
jb 0x467125
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jmp 0x467129
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x70c]
push 0
push dword [esp + 0x1c]
mov eax, dword [ecx]
push ebp
push dword [esi + 8]
push 0x562d10
push edx
push dword [esp + 0x2c]
call dword [eax + 0xc]
mov ebp, 0x5922d0
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ecx, 0x5922f0
mov dword [esp + 0x78], 3
call fcn.004639b5
push ebp
inc dword [eax]
or dword [esp + 0x78], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x7c]
mov esi, dword [esi]
cmp dword [edi + 0x704], esi
jne 0x46702d
mov esi, 0x562d14
push esi
call fcn.00450bfe
pop ecx
push eax
push esi
lea ecx, [edi + 0x5b0]
call fcn.00450b91
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005008c3
add esp, 0x64
ret 4
Function at 0x4671fb
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x14
push edi
mov edi, ecx
cmp dword [edi + 0x70c], 0
je 0x46731a
mov eax, dword [edi + 0x704]
push esi
mov esi, dword [eax]
cmp eax, esi
je 0x467319
push ebx
push ebp
mov ebp, dword [esp + 0x28]
cmp dword [esi + 8], ebp
jne 0x467309
push ebp
mov ecx, edi
call fcn.0047039c
test al, al
je 0x46725f
lea eax, [esi + 0x19c]
cmp dword [eax + 0x14], 8
jb 0x467248
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46725f
and dword [esi + 0x210], 0
jmp 0x467309
lea ecx, [esi + 8]
call fcn.00466016
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
lea ebx, [edi + 0x748]
push eax
mov ecx, ebx
call fcn.0047091d
mov ecx, dword [ebx]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x467297
cmp ebp, dword [eax + 0x10]
jl 0x467297
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
jmp 0x46729f
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
mov eax, dword [eax]
cmp eax, ecx
je 0x4672b2
push eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0044d931
push 8
lea eax, [esi + 0x3c]
pop ecx
mov dword [esp + 0x10], eax
cmp dword [eax + 0x14], ecx
jb 0x4672c7
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea ebp, [esi + 0x84]
cmp dword [ebp + 0x14], ecx
jb 0x4672d5
mov ebp, dword [ebp]
lea ebx, [esi + 0x24]
cmp dword [ebx + 0x14], ecx
jb 0x4672df
mov ebx, dword [ebx]
lea edx, [esi + 0xc]
cmp dword [edx + 0x14], ecx
jb 0x4672e9
mov edx, dword [edx]
mov ecx, dword [edi + 0x70c]
push 0
push dword [esp + 0x14]
mov eax, dword [ecx]
push ebp
push dword [esi + 8]
push 0x562d18
push ebx
push edx
call dword [eax + 0xc]
mov ebp, dword [esp + 0x28]
mov esi, dword [esi]
cmp dword [edi + 0x704], esi
jne 0x467225
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x14
ret 4
Function at 0x46e2b6
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x52e823
call fcn.00505ab4
lea ecx, [ebp - 0x40]
call fcn.00480398
xor ebx, ebx
lea ecx, [ebp - 0x58]
push str._startmodel:floatmode
mov dword [ebp - 4], ebx
call fcn.00450c22
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x40]
push 1
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x5922bc], ebx
je 0x46e376
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.0047eeec
mov esi, eax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0047eeec
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x46e335
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x46e33d
mov eax, dword [eax]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___startup_wcc_ret__d_:_n_product__s___n_arg__s_
push 3
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x1c
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0044e987
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0044e987
push str.prodstarttime
lea ecx, [ebp - 0x28]
call fcn.0044e95a
push ebx
mov byte [ebp - 4], 4
call fcn.00501dde
pop ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00461683
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0044e987
push str.prodstartcode
lea ecx, [ebp - 0x28]
call fcn.0044e95a
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.00461622
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044e987
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00450f58
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00450f58
call fcn.00505a63
ret
Function at 0x46ee35
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52ea47
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x54]
lea eax, [edi + 0x538]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x4c], ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebx
call fcn.0044f6bd
xor ebp, ebp
mov dword [esp + 0x4c], ebx
inc ebp
mov dword [esp + 0x14], ebp
cmp dword [esi + 0x10], ebx
jne 0x46eeb0
lea eax, [edi + 0x274]
mov ecx, esi
push eax
call fcn.00450f03
cmp dword [esi + 0x10], ebx
je 0x46ef50
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.0044f6bd
sub esp, 0x18
mov dword [esp + 0x7c], ebp
mov ecx, esp
push str._localappdata_
call fcn.00450c22
mov byte [esp + 0x7c], bl
call fcn.00480c20
add esp, 0x30
test al, al
je 0x46eef5
lea ecx, [esp + 0x24]
call fcn.004839a3
push eax
mov ecx, esi
call fcn.0045f370
jmp 0x46ef40
push 3
push ebx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0045f393
mov dword [esp + 0x4c], 2
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 8
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ef3c
mov ebx, 0x564ca8
push ebx
call fcn.00450bfe
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00450b91
xor ebx, ebx
mov byte [esp + 0x4c], bl
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00450f58
cmp dword [esi + 0x10], ebx
jne 0x46ef6f
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0046ef92
push eax
mov ecx, esi
call fcn.0045f370
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00450f58
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005008c3
add esp, 0x3c
ret 4
Function at 0x46f184
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x52eae8
call fcn.00505ab4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0046f661
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
je 0x46f202
cmp dword [esi + 0x14], 8
jb 0x46f1b0
mov ecx, dword [esi]
jmp 0x46f1b2
mov ecx, esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push ebx
push ecx
push eax
push 0x564cbc
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x5922bc], ebx
je 0x46f26b
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0047eeec
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x46f1f2
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___priority_browser_open_url__s___ret__d_.
jmp 0x46f24d
cmp dword [esi + 0x14], 8
jb 0x46f20c
mov eax, dword [esi]
jmp 0x46f20e
mov eax, esi
push 4
push ebx
push ebx
push eax
push 0x564cf8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x5922bc], ebx
je 0x46f26b
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0047eeec
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x46f23f
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___browser_open_url__s___ret__d_.
push 3
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0044e987
cmp byte [ebp + 0xc], 0
je 0x46f2c8
push str.installpageopentime
lea ecx, [ebp - 0x28]
call fcn.0044e95a
push ebx
mov byte [ebp - 4], 3
call fcn.00501dde
pop ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00461683
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0044e987
push str.installpageopencode
lea ecx, [ebp - 0x28]
call fcn.0044e95a
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.00461622
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044e987
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00450f58
cmp edi, 0x20
setg al
call fcn.00505a63
ret 8
Function at 0x46f784
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52ec09
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, dword [esp + 0x468]
xor ebx, ebx
mov esi, dword [esp + 0x46c]
xor eax, eax
mov dword [esp + 0x24], ebx
xor ebp, ebp
push 0x40e
mov word [esp + 0x48], ax
inc ebp
lea eax, [esp + 0x4a]
mov dword [esp + 0x2c], edi
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.00505440
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
mov dword [esp + 0x46c], ebx
lea ecx, [esp + 0x38]
push esi
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov dword [esp + 0x34], ebp
call fcn.00463dd7
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46f8a6
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x564d94
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x46f8a6
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jne 0x46f916
cmp dword [esp + 0x14], 0
je 0x46f8b8
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
push ecx
push 0x20219
push ecx
push ecx
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46f92e
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x564dec
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x46f92e
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x46f92e
lea eax, [esp + 0x44]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.00450b91
cmp dword [esp + 0x14], 0
je 0x46f940
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00450f58
mov eax, edi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.005008c3
add esp, 0x450
ret 8
Function at 0x46f979
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52ec64
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov esi, dword [esp + 0x484]
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor eax, eax
push 0x40e
mov word [esp + 0x60], ax
xor ebp, ebp
lea eax, [esp + 0x62]
mov dword [esp + 0x2c], esi
push ebx
inc ebp
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.00505440
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [esp + 0x47c], ebx
lea ecx, [esp + 0x2c]
push 0x564ee8
mov dword [esp + 0x28], ebp
call fcn.00450c22
lea ecx, [esp + 0x20]
mov dword [esp + 0x47c], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46fb02
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x564e74
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fb02
lea eax, [esp + 0x5c]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00450b91
mov edi, 0x564ee4
push edi
call fcn.00450bfe
pop ecx
push eax
push ebp
push edi
mov ecx, esi
call fcn.0045f4b0
cmp eax, 0xffffffff
je 0x46fad6
dec eax
mov ecx, esi
push eax
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.0045f393
push eax
mov ecx, esi
call fcn.0045f370
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.00450f58
cmp dword [esi + 0x14], 8
jb 0x46fae0
mov eax, dword [esi]
jmp 0x46fae2
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fb02
mov edi, 0x564f3c
push edi
call fcn.00450bfe
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00450b91
cmp dword [esp + 0x14], 0
je 0x46fb17
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.00450f58
mov eax, esi
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005008c3
add esp, 0x46c
ret 4
Function at 0x46fd7c
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x52ed06
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x49c]
xor eax, eax
and dword [esp + 0x25c], 0
xor bl, bl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x260], 7
mov word [esp + 0x24c], ax
and dword [esp + 0x494], eax
push ecx
push 0x564ff8
mov ecx, ebp
call fcn.00470431
cmp eax, 0xffffffff
je 0x46fe2a
push 0xffffffffffffffff
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.0045f393
push eax
lea ecx, [esp + 0x250]
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x26c]
call fcn.00450f58
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x46fefc
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46feed
lea edx, [esp + 0x40]
lea ecx, [esp + 0x24c]
call fcn.00463db5
test al, al
je 0x46fee1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x24], eax
je 0x46fee1
xor eax, eax
push 0x206
push eax
mov word [esp + 0x284], ax
lea eax, [esp + 0x286]
push eax
call fcn.00505440
add esp, 0xc
push dword [esp + 0x24]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x46fecd
push 0x104
lea eax, [esp + 0x280]
push eax
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push edi
call ebp
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x27c]
call fcn.00463db5
test al, al
jne 0x46fef7
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46fe5d
jmp 0x46fef9
mov bl, 1
push esi
call ebp
push 0
push 1
lea ecx, [esp + 0x254]
call fcn.00450f58
mov al, bl
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.005008c3
add esp, 0x484
ret 4