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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563c18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
lea eax, [ebp - 0x10]
xor bl, bl
push 0x57aa4c
push eax
call fcn.004d11b0
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 4], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4577e0
sub ecx, esi
lea esi, [edi + 0xc]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00412940
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45781d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x14], 8
jb 0x457825
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45785b
cmp dword [edi + 8], 0
jne 0x457847
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov al, 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
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.0046ebb0
test eax, eax
je 0x465a71
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x465a71
lea esi, [eax + 1]
jmp 0x465a73
xor esi, esi
mov edx, dword [edi + 0x8c]
test edx, edx
je 0x465a89
mov ecx, dword [edx]
mov eax, esi
xor eax, 1
push eax
push edx
call dword [ecx + 0x14]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x465a9a
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x30]
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x465aab
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x30]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a9748
mov esp, ebp
pop ebp
ret

Function at 0x465ac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564ddb
mov eax, dword fs:[0]
push eax
mov eax, 0x4054
call fcn.004a9ba0
mov eax, dword [0x5c9c4c]
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, ecx
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0x1000
push eax
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 4]
mov dword [ebp - 0x4060], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4048], eax
lea eax, [ebp - 0x4060]
push eax
mov dword [ebp - 0x4054], 0x583578
mov dword [ebp - 0x4050], 0x59
mov dword [ebp - 0x4044], 0
mov dword [ebp - 0x404c], 0x464e40
mov dword [ebp - 0x405c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
test edi, edi
je 0x465c55
push 0x2000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x4010]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x465c4e
xor eax, eax
mov dword [ebp - 0x4018], 0
lea ecx, [ebp - 0x4010]
mov dword [ebp - 0x4014], 7
mov word [ebp - 0x4028], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465bd4
sub ecx, edx
lea eax, [ebp - 0x4010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4028]
call fcn.00412940
lea eax, [ebp - 0x4028]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4040]
push eax
call fcn.00410b70
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4028]
call fcn.004109e0
cmp dword [ebp - 0x402c], 8
lea eax, [ebp - 0x4040]
cmovae eax, dword [ebp - 0x4040]
push eax
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x4040]
call fcn.004109e0
mov ecx, esi
call fcn.00465a10
xor eax, eax
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.004a9748
mov esp, ebp
pop ebp
ret 0x10
Function at 0x466070
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5c9c4c]
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]
push esi
call fcn.004258d0
call fcn.00444160
mov ecx, eax
call fcn.0043f540
cmp dword [eax], 0
je 0x4660bf
lea ecx, [esi - 0x24]
call fcn.004664d0
call fcn.00444160
cmp dword [eax + 0x74], 0
je 0x466189
call fcn.0046ebb0
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
je 0x466129
push 9
lea ecx, [esi + 4]
call fcn.00465030
test eax, eax
je 0x466189
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x14]
jmp 0x466189
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e030
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0043bff0
lea ecx, [ebp - 0x21c]
call fcn.0043c0f0
push dword [ebp - 0x21c]
mov eax, dword [edi]
push edi
call dword [eax + 0x24]
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 0x466189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00444160
mov ecx, eax
call fcn.0043f520
cmp dword [eax], 0
je 0x4661ac
push 0
push 0
push 0x15eb
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
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.004a9748
mov esp, ebp
pop ebp
ret 4
Function at 0x46ea90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c9c4c]
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 0x46eb44
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.0046ebe0
test eax, eax
jne 0x46eb0c
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.005326c7
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
je 0x46eb31
push 0x12c
call fcn.004114c0
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.0053279c
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a9748
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5c9c4c]
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 0x46ec1b
xor eax, eax
jmp 0x46ed25
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x250], 1
push 1
push eax
mov dword [ebp - 0x24c], 0x208
call fcn.004385e0
add esp, 0x14
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46ec64
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 0x46ec86
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00412940
lea ecx, [ebp - 0x248]
call fcn.004109e0
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 0x46ed16
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ed16
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0053279c
add esp, 0xc
mov esi, 1
jmp 0x46ed18
xor esi, esi
lea ecx, [ebp - 0x230]
call fcn.004109e0
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.004a9748
mov esp, ebp
pop ebp
ret 8
Function at 0x46f740
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565f36
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5c9c4c]
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.0042ba10
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042bde0
test eax, eax
jne 0x46f7ab
xor edi, edi
jmp 0x46f8a3
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x46f8ce
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.0042bfe0
test eax, eax
je 0x46f87f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x589788
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004a34d0
add esp, 4
test eax, eax
je 0x46f87f
lea eax, [ebp - 0x810]
push eax
call fcn.004b1fe0
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 0x46f850
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.0040d860
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x46f881
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 0x46f8a3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042ba30
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.004a9748
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040ad60
int3
Function at 0x46fa30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565f76
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x5c9c4c]
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.0042ba10
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042bde0
test eax, eax
jne 0x46fa9b
xor esi, esi
jmp 0x46fb6b
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x46fb96
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.0042bfe0
test eax, eax
je 0x46fb47
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x57aab4
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.004a34d0
add esp, 4
test eax, eax
je 0x46fb47
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.0053279c
add esp, 0xc
mov esi, 1
jmp 0x46fb49
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 0x46fb6b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042ba30
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.004a9748
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040ad60
int3
Function at 0x470080
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566060
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c9c4c]
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 0x4700bb
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 1
jne 0x47015d
mov ecx, dword [ebx + 0xec]
test ecx, ecx
je 0x47015d
call fcn.0047c4e0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c5b0
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.0040c5b0
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.0044cb50
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 0x470141
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 0x47015d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xec]
test eax, eax
jne 0x470178
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.00474950
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 0x4701a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566096
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5c9c4c]
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 0x470220
cmp eax, 3
je 0x470220
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x23c]
jne 0x4701ff
push dword [ecx + 0x7c]
push str.bizhi_download__d
call fcn.00472ca0
add esp, 8
jmp 0x4703da
cmp eax, dword [esi + 0x24c]
jne 0x4703da
push dword [ecx + 0x7c]
push str.gm_download__d
call fcn.00472ca0
add esp, 8
jmp 0x4703da
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0x23c]
jne 0x470301
cmp eax, 2
jne 0x4702f2
lea ecx, [ebp - 0x42c]
call fcn.0042ba10
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [0x5d0e60]
push 0x5d0e60
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.0042bb90
test eax, eax
je 0x4702cd
lea eax, [esi + 0x224]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x470eb0
push 0
push 0
call fcn.00535f57
add esp, 0x18
mov dword [esi + 0x228], eax
jmp 0x4702e7
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x244]
push str.unpack_bizhi_fail__src__s___output__s_
call fcn.00472ca0
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.0042ba30
mov dword [esi + 0x248], 1
jmp 0x4703da
cmp ecx, dword [esi + 0x24c]
jne 0x4703da
cmp eax, 2
jne 0x4703d0
lea ecx, [ebp - 0x438]
call fcn.0042ba10
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
mov eax, dword [0x5d0e60]
push 0x5d0e60
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.0042bb90
test eax, eax
je 0x4703ab
lea eax, [esi + 0x230]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x470ed0
push 0
push 0
call fcn.00535f57
add esp, 0x18
mov dword [esi + 0x234], eax
jmp 0x4703c5
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x254]
push str.unpack_gm_fail__src__s___output__s_
call fcn.00472ca0
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0042ba30
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.004a9748
mov esp, ebp
pop ebp
ret 0xc
Function at 0x470420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5660e1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5c9c4c]
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.0040cd20
mov ecx, eax
test ecx, ecx
je 0x47059d
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 0x470569
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 0x470558
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470566
add eax, 0x10
push 0x5d1912
push eax
mov dword [ebp + 0xc], eax
call fcn.004aa1ed
mov esi, eax
add esp, 8
test esi, esi
je 0x470566
push dword [ebp + 0xc]
push 0
push esi
call fcn.00506df0
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 0x47051b
push esi
call fcn.004aa1e8
add esp, 4
jmp 0x470566
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470520
sub ecx, edx
sar ecx, 1
je 0x47054f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470536
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040d860
push esi
call fcn.004aa1e8
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470566
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 0x470588
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.0040ad60
int3
Function at 0x4705b0
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 0x4705c0
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 0x470626
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 0x470626
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 0x470641
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 0x470650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566110
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47072a
push esi
lea ecx, [ebp + 0xc]
call fcn.0040e030
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x4706e9
mov eax, dword [ebp + 8]
add eax, 8
push 0x578de4
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bd00
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041ce40
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 0x4706e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0xc]
call fcn.0044cb50
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47070b
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042a970
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 0x47072a
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