joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440070
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0045ea30
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.00474bb0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.00474bb0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.00474bb0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.00474bb0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00408070
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4401a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004904a1
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.0049029b
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x440225
inc esi
cmp esi, 0xa
jl 0x4400f2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x440230
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.004068a0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
Function at 0x4402b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0045ea30
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44030b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x4403dc
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x4403dc
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x440345
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x4403aa
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00475340
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4403dc
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x440360
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x4403dc
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00475340
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 4
Function at 0x440ca0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x440d18
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
Function at 0x441750
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x51b120
push 0x4767b0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.0045ea30
mov eax, dword [0x52965c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x441924
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4417a6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x441924
mov dword [ebp - 4], 0
call fcn.00440ca0
mov dword [ebp - 4], 0xfffffffe
jmp 0x4417ec
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00474bb0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.00474bb0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x441924
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00490d4b
lea eax, [ebp - 0x224]
push eax
call fcn.004913f3
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x441924
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.00440fe0
add esp, 0xc
test eax, eax
je 0x441917
lea eax, [ebp - 0xa24]
push eax
call fcn.004913f3
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4418d8
test dx, dx
je 0x4418d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4418d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4418b2
xor eax, eax
jmp 0x4418dd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x441917
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x441903
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa24]
push eax
push str.Kill_process:__s
call fcn.00445870
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x441874
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 4
Function at 0x441950
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x51b160
push 0x4767b0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x52965c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x441ac4
cmp word [esi], 0
je 0x441ac4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4419b0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x441ac4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x441ac4
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.00474bb0
push esi
push 0x4fca10
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.004092a0
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.00474bb0
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], str.open
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
cmp dword [ebp + 0x14], 0
je 0x441a63
push esi
call fcn.0045cab0
add esp, 4
test eax, eax
je 0x441ac4
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x441a8b
cmp dword [ebp + 0x18], 0
je 0x441a8b
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x441aa0
test esi, esi
je 0x441ab0
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x441ab0
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x441acd
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x441af0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x441b0c
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x442c90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52965c]
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 0x442d44
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.00442de0
test eax, eax
jne 0x442d0c
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.0049029b
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x2c]
test eax, eax
je 0x442d31
push 0x12c
call fcn.004478b0
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.00490370
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x442e91
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.Setup_Path
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x442e91
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442e91
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00490370
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 8
Function at 0x443870
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8836
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x52965c]
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.0043fec0
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.00440270
test eax, eax
jne 0x4438db
xor edi, edi
jmp 0x4439d3
call fcn.00405e40
mov ecx, eax
test ecx, ecx
je 0x4439fe
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.00440470
test eax, eax
je 0x4439af
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x4fccec
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.0045cab0
add esp, 4
test eax, eax
je 0x4439af
lea eax, [ebp - 0x810]
push eax
call fcn.00471050
mov ecx, dword [ebp - 0x818]
lea edx, [ebp - 0x810]
mov edi, eax
lea esi, [edx + 2]
lea ecx, [ecx + 0x1d0]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x443980
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.004068a0
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4439b1
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 0x4439d3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0043fee0
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.0045e5d8
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004043b0
int3
Function at 0x443b60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8876
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x52965c]
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.0043fec0
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.00440270
test eax, eax
jne 0x443bcb
xor esi, esi
jmp 0x443c9b
call fcn.00405e40
mov ecx, eax
test ecx, ecx
je 0x443cc6
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.00440470
test eax, eax
je 0x443c77
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x4f3510
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.0045cab0
add esp, 4
test eax, eax
je 0x443c77
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.00490370
add esp, 0xc
mov esi, 1
jmp 0x443c79
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 0x443c9b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0043fee0
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.0045e5d8
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.004043b0
int3
Function at 0x444080
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8920
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x52965c]
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 0x4440bb
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 1
jne 0x44415d
mov ecx, dword [ebx + 0xac]
test ecx, ecx
je 0x44415d
call fcn.004512e0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004056d0
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.004056d0
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.0041c9b0
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 0x444141
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 0x44415d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xac]
test eax, eax
jne 0x444178
mov eax, dword [eax]
push 0
call dword [eax + 0x4c]
mov dword [ebx + 0xac], 0
push dword [ebx + 0x1e0]
lea ecx, [ebx + 0x9c]
call fcn.0044a530
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 0x4441a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8956
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x52965c]
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 0x444220
cmp eax, 3
je 0x444220
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x1fc]
jne 0x4441ff
push dword [ecx + 0x7c]
push str.bizhi_download__d
call fcn.00445870
add esp, 8
jmp 0x4443da
cmp eax, dword [esi + 0x20c]
jne 0x4443da
push dword [ecx + 0x7c]
push str.gm_download__d
call fcn.00445870
add esp, 8
jmp 0x4443da
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0x1fc]
jne 0x444301
cmp eax, 2
jne 0x4442f2
lea ecx, [ebp - 0x42c]
call fcn.0043fec0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [0x52dee0]
push 0x52dee0
call dword [eax + 0x44]
push 0x4fce70
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x204]
lea ecx, [ebp - 0x42c]
call fcn.00440020
test eax, eax
je 0x4442cd
lea eax, [esi + 0x1e4]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x444910
push 0
push 0
call fcn.004a1368
add esp, 0x18
mov dword [esi + 0x1e8], eax
jmp 0x4442e7
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x204]
push str.unpack_bizhi_fail__src__s___output__s_
call fcn.00445870
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.0043fee0
mov dword [esi + 0x208], 1
jmp 0x4443da
cmp ecx, dword [esi + 0x20c]
jne 0x4443da
cmp eax, 2
jne 0x4443d0
lea ecx, [ebp - 0x438]
call fcn.0043fec0
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
mov eax, dword [0x52dee0]
push 0x52dee0
call dword [eax + 0x44]
push 0x4fce70
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x214]
lea ecx, [ebp - 0x438]
call fcn.00440020
test eax, eax
je 0x4443ab
lea eax, [esi + 0x1f0]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x444930
push 0
push 0
call fcn.004a1368
add esp, 0x18
mov dword [esi + 0x1f4], eax
jmp 0x4443c5
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x214]
push str.unpack_gm_fail__src__s___output__s_
call fcn.00445870
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0043fee0
mov dword [esi + 0x218], 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.0045e5d8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8990
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52965c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4444fa
push esi
lea ecx, [ebp + 0xc]
call fcn.00407070
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x4444b9
mov eax, dword [ebp + 8]
add eax, 8
push 0x4f3e04
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404e20
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004138e0
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 0x4444b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0xc]
call fcn.0041c9b0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4444db
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00441950
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 0x4444fa
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 0x444510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x444576
push esi
mov esi, dword [edx + 4]
test esi, esi
je 0x444575
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444530
sub eax, ebx
sar eax, 1
je 0x444574
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 0x444550
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