joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 0x800
push 0
push eax
mov dword [ebp - 0x808], esi
call fcn.00512920
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x46d6a4
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [edi + 0x14], 8
jb 0x46d6ba
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebx + 0x10], 0
je 0x46d719
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d719
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x804]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d700
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
jmp 0x46d732
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x586a74
mov ecx, esi
call fcn.004129e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004acb88
mov esp, ebp
pop ebp
ret 8

Function at 0x46d750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571289
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
test eax, eax
jle 0x46d850
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x46d850
mov ebx, dword [ebp + 0x10]
push ecx
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46d850
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x46d850
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46d850
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46d850
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x46d812
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x46d80c
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x46d820
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0043d130
cmp dword [esi + 0x10], edi
je 0x46d83b
mov dword [esi + 0x10], 0
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x46d836
mov ecx, dword [esi]
mov byte [ecx], 0
jmp 0x46d850
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46d845
mov eax, dword [esi]
push edi
push ebx
push eax
call fcn.005130b0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46dbe0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5712e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x46dc30
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0043c6b0
mov ebx, dword [ebp - 0x14]
add esp, 8
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x46dc5a
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 4
cmp esi, ebx
jne 0x46dc47
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x46dc69
mov edi, dword [edi]
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [edi], ax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x46dcd3
mov edi, dword [ebp - 0x14]
cmp esi, edi
je 0x46dca7
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46dc9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x46dc83
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x46dcc9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46dce5
push ecx
push esi
call fcn.004acb9e
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
call fcn.0052fd36
int3
Function at 0x471ed0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x471f84
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.00472040
test eax, eax
jne 0x471f4c
push 1
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.LuDaShi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053e207
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
je 0x471f71
push 0x12c
call fcn.00411570
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.0053e2dc
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004acb88
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571bab
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x47207b
xor eax, eax
jmp 0x472185
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00512920
lea eax, [ebp - 0x248]
mov dword [ebp - 0x250], 1
push 1
push eax
mov dword [ebp - 0x24c], 0x208
call fcn.00438d50
add esp, 0x14
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4720c4
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4720e6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.004129e0
lea ecx, [ebp - 0x248]
call fcn.00410a90
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
push ecx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push str.Setup_Path
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x472176
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472176
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0053e2dc
add esp, 0xc
mov esi, 1
jmp 0x472178
xor esi, esi
lea ecx, [ebp - 0x230]
call fcn.00410a90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb88
mov esp, ebp
pop ebp
ret 8
Function at 0x472ba0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.0042be80
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042c250
test eax, eax
jne 0x472c0b
xor edi, edi
jmp 0x472d03
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x472d2e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.0042c450
test eax, eax
je 0x472cdf
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x595ec0
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004a6910
add esp, 4
test eax, eax
je 0x472cdf
lea eax, [ebp - 0x810]
push eax
call fcn.004b5430
mov ecx, dword [ebp - 0x818]
lea edx, [ebp - 0x810]
mov edi, eax
lea esi, [edx + 2]
lea ecx, [ecx + 0x210]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x472cb0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.0040d900
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x472ce1
xor edi, edi
mov esi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x472d03
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042bea0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb88
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040ae00
int3
Function at 0x472e90
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d16
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.0042be80
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042c250
test eax, eax
jne 0x472efb
xor esi, esi
jmp 0x472fcb
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x472ff6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 1
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.0042c450
test eax, eax
je 0x472fa7
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x586adc
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004a6910
add esp, 4
test eax, eax
je 0x472fa7
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x810]
push eax
push 0x400
push dword [ebp - 0x818]
call fcn.0053e2dc
add esp, 0xc
mov esi, 1
jmp 0x472fa9
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x472fcb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042bea0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb88
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040ae00
int3
Function at 0x4734e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x47351b
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 1
jne 0x4735bd
mov ecx, dword [ebx + 0xec]
test ecx, ecx
je 0x4735bd
call fcn.00481580
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c650
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [ebx + 8]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.0040c650
add eax, 0x10
add esp, 8
mov dword [ebp + 8], eax
push str.FileList.xml
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0044de80
mov esi, dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4735a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4735bd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xec]
test eax, eax
jne 0x4735d8
mov eax, dword [eax]
push 0
call dword [eax + 0x4c]
mov dword [ebx + 0xec], 0
push dword [ebx + 0x220]
lea ecx, [ebx + 0xa8]
call fcn.00479a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x473600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e36
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, 2
je 0x473680
cmp eax, 3
je 0x473680
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x23c]
jne 0x47365f
push dword [ecx + 0x7c]
push str.bizhi_download__d
call fcn.00477d50
add esp, 8
jmp 0x47383a
cmp eax, dword [esi + 0x24c]
jne 0x47383a
push dword [ecx + 0x7c]
push str.gm_download__d
call fcn.00477d50
add esp, 8
jmp 0x47383a
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0x23c]
jne 0x473761
cmp eax, 2
jne 0x473752
lea ecx, [ebp - 0x42c]
call fcn.0042be80
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [0x5deea0]
push 0x5deea0
call dword [eax + 0x4c]
push str.Utils
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x244]
lea ecx, [ebp - 0x42c]
call fcn.0042c000
test eax, eax
je 0x47372d
lea eax, [esi + 0x224]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x474310
push 0
push 0
call fcn.00541a87
add esp, 0x18
mov dword [esi + 0x228], eax
jmp 0x473747
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x244]
push str.unpack_bizhi_fail__src__s___output__s_
call fcn.00477d50
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.0042bea0
mov dword [esi + 0x248], 1
jmp 0x47383a
cmp ecx, dword [esi + 0x24c]
jne 0x47383a
cmp eax, 2
jne 0x473830
lea ecx, [ebp - 0x438]
call fcn.0042be80
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
mov eax, dword [0x5deea0]
push 0x5deea0
call dword [eax + 0x4c]
push str.Utils
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x254]
lea ecx, [ebp - 0x438]
call fcn.0042c000
test eax, eax
je 0x47380b
lea eax, [esi + 0x230]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x474330
push 0
push 0
call fcn.00541a87
add esp, 0x18
mov dword [esi + 0x234], eax
jmp 0x473825
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x254]
push str.unpack_gm_fail__src__s___output__s_
call fcn.00477d50
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0042bea0
mov dword [esi + 0x258], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb88
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e81
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x4739fd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4739c9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp + 0x14]
movlpd qword [ebp - 0x1c], xmm0
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x4739b8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4739c6
add eax, 0x10
push 0x5df952
push eax
mov dword [ebp + 0xc], eax
call fcn.004ad62d
mov esi, eax
add esp, 8
test esi, esi
je 0x4739c6
push dword [ebp + 0xc]
push 0
push esi
call fcn.00512920
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x47397b
push esi
call fcn.004ad628
add esp, 4
jmp 0x4739c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473980
sub ecx, edx
sar ecx, 1
je 0x4739af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473996
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040d900
push esi
call fcn.004ad628
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4739c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4739e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040ae00
int3
Function at 0x473a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x473a20
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, ecx
push dword [ebp + 8]
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x473a86
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 4]
inc ebx
test eax, eax
je 0x473a86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x473aa1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x473ab0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571eb0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x473b8a
push esi
lea ecx, [ebp + 0xc]
call fcn.0040e0d0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x473b49
mov eax, dword [ebp + 8]
add eax, 8
push 0x584e04
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bda0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041cf00
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473b40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0xc]
call fcn.0044de80
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x473b6b
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042ade0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x473b8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571ee0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d7c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x473c91
push esi
lea ecx, [ebp + 0x10]
call fcn.0040e0d0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x473c39
mov eax, dword [ebp + 8]
add eax, 8
push 0x584e04
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bda0
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0041cf00
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473c30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0x10]
call fcn.0044de80
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x473c72
push 0
push 0
push 1
push dword [ebp + 0x1c]
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043be30
push eax
push dword [ebp + 0x10]
push str.run_exe__s__ret_:__d
call fcn.00477d50
add esp, 0x30
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x473c91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x473cb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x473d16
push esi
mov esi, dword [edx + 4]
test esi, esi
je 0x473d15
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473cd0
sub eax, ebx
sar eax, 1
je 0x473d14
mov ebx, dword [edx + 0xc]
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp + 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473cf0
sub ecx, dword [ebp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push dword [edx + 0x10]
push dword [edx + 8]
push esi
push dword [edx]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebx
pop esi
pop ebp
ret 8