joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x480862
mov ecx, dword [edi]
call fcn.004807b0
test eax, eax
je 0x480918
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x480918
mov dword [ebx + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481d80
mov edi, dword [ebp - 0x24]
push edi
mov dword [eax], edi
mov dword [eax + 4], esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov dword [ebp - 0x20], 0
mov edx, 0x535d90
mov dword [ebp - 0x10], 0
cmovne edx, eax
mov dword [ebp - 0xc], 0xf
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4808d3
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
push edx
call fcn.0044c0b0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x48093a
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48090c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48094f
push edx
push ecx
call fcn.004de50a
add esp, 8
jmp 0x48093a
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481d80
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
call fcn.004e36fa
int3
Function at 0x4844d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f664
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
lea ecx, [ebp - 0x1c]
call fcn.004dcf2f
mov dword [ebp - 4], 0
mov edi, dword [0x5547f0]
mov eax, dword [0x5545e8]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x48454f
push edi
lea ecx, [ebp - 0x14]
call fcn.004dcf2f
cmp dword [0x5547f0], edi
jne 0x484541
mov eax, dword [0x553220]
inc eax
mov dword [0x553220], eax
mov dword [0x5547f0], eax
lea ecx, [ebp - 0x14]
call fcn.004dcf87
mov edi, dword [0x5547f0]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x48456a
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4845fa
jmp 0x48456c
xor esi, esi
cmp byte [ecx + 0x14], 0
je 0x484582
call fcn.004dd136
cmp edi, dword [eax + 0xc]
jae 0x484586
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4845fa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x484591
mov esi, eax
jmp 0x4845fa
push 8
call fcn.004de4da
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4845ba
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x4845bf
lea eax, [ecx + 0x1c]
jmp 0x4845bf
mov eax, 0x535d90
push eax
lea ecx, [ebp - 0x50]
call fcn.00457d20
lea ecx, [ebp - 0x50]
mov dword [esi + 4], 0
mov dword [esi], vtable.std::codecvt_char__char__struct__Mbstatet_.0
call fcn.00457dd0
mov dword [ebp + 8], esi
push esi
mov byte [ebp - 4], 2
call fcn.004dd10a
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x5545e8], esi
lea ecx, [ebp - 0x1c]
call fcn.004dcf87
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x48462a
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x38], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4849f8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4849e7
jg 0x484950
test edx, edx
je 0x4849e7
nop dword [eax]
call fcn.0045ada0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4849a4
jg 0x484967
test esi, esi
je 0x4849a4
cmp ebx, eax
jg 0x484977
jl 0x484971
cmp edi, esi
jae 0x484977
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004dfd60
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4849cb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4849e1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x484950
jl 0x4849e1
test edi, edi
jne 0x484950
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x484a1a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x484a1c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x484a9a
jg 0x484a2f
test esi, esi
je 0x484a9a
test eax, eax
jl 0x484a7e
jg 0x484a39
test ebx, ebx
je 0x484a7e
cmp edi, eax
jg 0x484a49
jl 0x484a43
cmp esi, ebx
jae 0x484a49
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004dfd60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x484a9a
jg 0x484a81
test esi, esi
je 0x484a9a
jmp 0x484a81
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x484a9a
push eax
push esi
push 1
push edx
call fcn.004f607c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x485020
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x48505c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x48505c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x485144
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x485084
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4850b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004f598f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x485117
sub eax, 1
je 0x485117
sub eax, 2
jne 0x485144
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004f598f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x485134
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f607c
add esp, 0x10
cmp edi, eax
jne 0x485144
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x485047
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret 4
Function at 0x485450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x48550a
cmp byte [esi + 0x3d], 0
je 0x48550a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4854f8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4854c0
sub eax, 1
je 0x4854c4
sub eax, 2
jne 0x4854f8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4854e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f607c
add esp, 0x10
cmp edi, eax
jne 0x4854f8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x485a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x485a3c
test al, 0x10
jne 0x485a3c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x486d90
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
test esi, esi
je 0x486e03
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486e03
test al, 0x10
jne 0x486e03
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486dd6
test al, 0x10
jne 0x486dd6
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x486de2
push 5
jmp 0x486dd8
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
push ebx
push edi
push esi
push str.MoveFileEx_lpszSourceFile:_s__lpszDestFile:_s__bRet:_d
push 0x550bb8
call fcn.0048d880
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.lpszSourceFile:_s_not_exist
push 0x550bb8
call fcn.0048d880
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004e02e0
add esp, 0xc
push str.TSKSP
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov edx, str..Global_s
mov ecx, str.._s
lea eax, [ebp - 0x210]
cmovae ecx, edx
push ecx
push 0x104
push eax
call fcn.0048d050
add esp, 0x10
lea eax, [ebp - 0x210]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48720a
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push esi
push esi
push 4
lea eax, [ebp + 8]
push eax
push 0x22e05c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 8]
push str.UpdateSelfProtect__Leave__bEnable_d__bResult_d
push 0x550bb8
call fcn.0048d880
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x487240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x554600], 0
jne 0x48733d
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [0x554600], 1
push 0
push eax
call fcn.004e02e0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4872f8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4872f1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, edi
je 0x4872e0
test ecx, ecx
je 0x4872e0
cmp ecx, 4
je 0x4872e0
lea eax, [ebp - 0x20c]
push str.360tray.exe
push eax
call fcn.004e3b37
add esp, 8
test eax, eax
je 0x487317
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4872b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 2
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x550c10], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [0x550c10]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4875d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4876f3
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004e02e0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004e02e0
mov eax, dword [ebp - 0x114]
add esp, 0x18
mov dword [ebp - 0x118], 0x40
test eax, eax
je 0x4876f9
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4876f3
lea eax, [ebp - 0x90]
push eax
call fcn.004e9333
mov esi, eax
add esp, 4
cmp esi, 9
jne 0x4876eb
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x487706
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.svcVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4876eb
lea eax, [ebp - 0x110]
push eax
call fcn.004e9333
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x114]
jmp 0x4876fb
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x487706
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x487730
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f9ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x550144]
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 + 8]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487780
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044a760
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48782b
test al, 0x10
je 0x487818
test al, 2
je 0x4877d6
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4877d6
push str.CreateDeepDirectory__failed_to_SetFileAttributes.
push 0x550bb8
call fcn.0048d540
add esp, 8
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4878ad
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4878a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4878c9
jmp 0x4878a3
push 1
push esi
call fcn.00487920
add esp, 8
test eax, eax
jne 0x48782b
xor esi, esi
jmp 0x4877db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4877d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4877d6
lea eax, [ebp - 0x28]
push eax
call fcn.00487420
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x48785b
xor esi, esi
jmp 0x4877db
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00487730
add esp, 4
test eax, eax
jne 0x48787a
xor esi, esi
jmp 0x4877db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4877d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4877d6
xor esi, esi
jmp 0x4877db
push edx
push ecx
call fcn.004de50a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
call fcn.004e36fa
int3
Function at 0x489180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fc6b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], edi
call fcn.004e02e0
add esp, 0xc
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489304
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x489278
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489220
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0044f580
push 0x21
push str.Application_DataTencentQQPCMgr_
lea ecx, [ebp - 0x21c]
call fcn.0048c7b0
mov esi, dword [ebp - 0x21c]
push esi
call fcn.00487730
add esp, 4
test eax, eax
jne 0x489278
lea ecx, [ebp - 0x21c]
call fcn.0044f770
mov esi, dword [ebp - 0x21c]
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x48930e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0044f3f0
test al, al
jne 0x4892c8
test esi, esi
jne 0x4892a9
xor ecx, ecx
jmp 0x4892bf
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4892b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0044f580
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4892e7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004de51d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3
Function at 0x489320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fcc7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x550144]
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 + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], esi
push eax
mov dword [ebp - 0x21c], 0
call fcn.004e02e0
add esp, 0xc
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x48942a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0
push 0x23
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48940e
push str.TencentQQPCMgr_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.00487730
add esp, 4
test eax, eax
je 0x48940e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4893f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0044f580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
int3