joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472eb0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5dccb4]
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 0x472f64
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.00473020
test eax, eax
jne 0x472f2c
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.00541bd7
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x38]
test eax, eax
je 0x472f51
push 0x12c
call fcn.00411600
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.00541cac
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5755fb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5dccb4]
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 0x47305b
xor eax, eax
jmp 0x473165
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00516300
lea eax, [ebp - 0x248]
mov dword [ebp - 0x250], 1
push 1
push eax
mov dword [ebp - 0x24c], 0x208
call fcn.00438100
add esp, 0x14
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4730a4
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 0x4730c6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00412a70
lea ecx, [ebp - 0x248]
call fcn.00410b20
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 0x473156
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x473156
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00541cac
add esp, 0xc
mov esi, 1
jmp 0x473158
xor esi, esi
lea ecx, [ebp - 0x230]
call fcn.00410b20
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.004b0a78
mov esp, ebp
pop ebp
ret 8
Function at 0x473b80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575726
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5dccb4]
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.0042aa80
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042ae50
test eax, eax
jne 0x473beb
xor edi, edi
jmp 0x473ce3
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x473d0e
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.0042b050
test eax, eax
je 0x473cbf
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push str.7z.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004aa800
add esp, 4
test eax, eax
je 0x473cbf
lea eax, [ebp - 0x810]
push eax
call fcn.004b9310
mov ecx, dword [ebp - 0x818]
lea edx, [ebp - 0x810]
mov edi, eax
lea esi, [edx + 2]
lea ecx, [ecx + 0x260]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x473c90
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.0040da40
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x473cc1
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 0x473ce3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042aaa0
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.004b0a78
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040af40
int3
Function at 0x473e70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575766
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5dccb4]
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 - 0x828]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x818], eax
call fcn.0042aa80
push esi
push edi
push ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.0042ae50
test eax, eax
jne 0x473ee4
xor esi, esi
jmp 0x473fe9
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x474014
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 - 0x828]
call fcn.0042b050
test eax, eax
je 0x473fc5
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push str.netul.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004aa800
add esp, 4
test eax, eax
je 0x473fc5
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.00541cac
lea ecx, [ebp - 0x810]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473f96
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x81c]
push eax
add ecx, 0x264
call fcn.00412a70
mov esi, 1
jmp 0x473fc7
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 0x473fe9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x828]
call fcn.0042aaa0
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.004b0a78
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040af40
int3
Function at 0x474020
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5757a6
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5dccb4]
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 - 0x828]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x818], eax
call fcn.0042aa80
push esi
push edi
push ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.0042ae50
test eax, eax
jne 0x474094
xor esi, esi
jmp 0x4741a3
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x4741ce
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 - 0x828]
call fcn.0042b050
test eax, eax
je 0x47417f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push str.net_titan.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004aa800
add esp, 4
test eax, eax
je 0x47417f
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x474142
lea ecx, [ebp - 0x810]
push ecx
push 0x400
push eax
call fcn.00541cac
add esp, 0xc
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474150
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x81c]
push eax
add ecx, 0x27c
call fcn.00412a70
mov esi, 1
jmp 0x474181
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 0x4741a3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x828]
call fcn.0042aaa0
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.004b0a78
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040af40
int3
Function at 0x4741e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5757e6
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5dccb4]
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 - 0x828]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x818], eax
call fcn.0042aa80
push esi
push edi
push ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.0042ae50
test eax, eax
jne 0x474254
xor esi, esi
jmp 0x474363
call fcn.0042e350
mov ecx, eax
test ecx, ecx
je 0x47438e
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 - 0x828]
call fcn.0042b050
test eax, eax
je 0x47433f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push str.net_xingyu.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004aa800
add esp, 4
test eax, eax
je 0x47433f
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x474302
lea ecx, [ebp - 0x810]
push ecx
push 0x400
push eax
call fcn.00541cac
add esp, 0xc
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474310
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x81c]
push eax
add ecx, 0x294
call fcn.00412a70
mov esi, 1
jmp 0x474341
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 0x474363
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x828]
call fcn.0042aaa0
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.004b0a78
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040af40
int3
Function at 0x474860
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5758cb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47495b
cmp byte [0x5e41e0], 0
jne 0x474952
push 0x208
lea eax, [ebp - 0x218]
mov byte [0x5e41e0], 1
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.lds_setup.log
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474903
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e210
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x5e41e4
call fcn.00478cb0
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474952
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004790f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 8

Function at 0x474980
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575910
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5dccb4]
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 0x4749bb
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 1
jne 0x474a5d
mov ecx, dword [ebx + 0x13c]
test ecx, ecx
je 0x474a5d
call fcn.00483190
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c790
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.0040c790
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.0044d940
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 0x474a41
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 0x474a5d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x13c]
test eax, eax
jne 0x474a78
mov eax, dword [eax]
push 0
call dword [eax + 0x4c]
mov dword [ebx + 0x13c], 0
push dword [ebx + 0x2b8]
lea ecx, [ebx + 0xac]
call fcn.0047ae40
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 0x474aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575946
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5dccb4]
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 0x474b20
cmp eax, 3
je 0x474b20
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x2d4]
jne 0x474aff
push dword [ecx + 0x7c]
push str.bizhi_download__d
call fcn.004790f0
add esp, 8
jmp 0x474cda
cmp eax, dword [esi + 0x2e4]
jne 0x474cda
push dword [ecx + 0x7c]
push str.gm_download__d
call fcn.004790f0
add esp, 8
jmp 0x474cda
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0x2d4]
jne 0x474c01
cmp eax, 2
jne 0x474bf2
lea ecx, [ebp - 0x42c]
call fcn.0042aa80
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [0x5e3ee0]
push 0x5e3ee0
call dword [eax + 0x54]
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 + 0x2dc]
lea ecx, [ebp - 0x42c]
call fcn.0042ac00
test eax, eax
je 0x474bcd
lea eax, [esi + 0x2bc]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x4756a0
push 0
push 0
call fcn.0054545a
add esp, 0x18
mov dword [esi + 0x2c0], eax
jmp 0x474be7
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x2dc]
push str.unpack_bizhi_fail__src__s___output__s_
call fcn.004790f0
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.0042aaa0
mov dword [esi + 0x2e0], 1
jmp 0x474cda
cmp ecx, dword [esi + 0x2e4]
jne 0x474cda
cmp eax, 2
jne 0x474cd0
lea ecx, [ebp - 0x438]
call fcn.0042aa80
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
mov eax, dword [0x5e3ee0]
push 0x5e3ee0
call dword [eax + 0x54]
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 + 0x2ec]
lea ecx, [ebp - 0x438]
call fcn.0042ac00
test eax, eax
je 0x474cab
lea eax, [esi + 0x2c8]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x4756c0
push 0
push 0
call fcn.0054545a
add esp, 0x18
mov dword [esi + 0x2cc], eax
jmp 0x474cc5
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x2ec]
push str.unpack_gm_fail__src__s___output__s_
call fcn.004790f0
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0042aaa0
mov dword [esi + 0x2f0], 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.004b0a78
mov esp, ebp
pop ebp
ret 0xc
Function at 0x474d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575991
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5dccb4]
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.0042e350
mov ecx, eax
test ecx, ecx
je 0x474e9d
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 0x474e69
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 0x474e58
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x474e66
add eax, 0x10
push 0x5e4a32
push eax
mov dword [ebp + 0xc], eax
call fcn.004b151d
mov esi, eax
add esp, 8
test esi, esi
je 0x474e66
push dword [ebp + 0xc]
push 0
push esi
call fcn.00516300
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 0x474e1b
push esi
call fcn.004b1518
add esp, 4
jmp 0x474e66
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474e20
sub ecx, edx
sar ecx, 1
je 0x474e4f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474e36
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040da40
push esi
call fcn.004b1518
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x474e66
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 0x474e88
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.0040af40
int3
Function at 0x474eb0
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 0x474ec0
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 0x474f26
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 0x474f26
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 0x474f41
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 0x474f50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5759c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5dccb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47502a
push esi
lea ecx, [ebp + 0xc]
call fcn.0040e210
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x474fe9
mov eax, dword [ebp + 8]
add eax, 8
push 0x588e04
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bee0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041ba60
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 0x474fe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0xc]
call fcn.0044d940
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47500b
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004299e0
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 0x47502a
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