joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x12c], 0
je 0x56e409
push edi
mov edi, dword [esi + 0x258]
test edi, edi
je 0x56e408
mov eax, dword [esi + 0x4cc]
add eax, dword [esi + 0x10c]
mov ecx, dword [edi + 0x78]
mov edx, dword [esi + 0x108]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x74]
sub ecx, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], edx
test ecx, 0xfffffffc
jle 0x56e397
nop
mov ecx, dword [eax + ebx*4]
test byte [ecx], 1
jne 0x56e380
mov ecx, dword [esi + 0x258]
cmp dword [ecx + 0x84], 0
je 0x56e2f2
push dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push edx
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push edx
add eax, 0x1c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x258]
cmp dword [edx + 0x2c], 2
jne 0x56e32b
mov eax, dword [edx + 0x74]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x258]
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x3442100
je 0x56e37d
mov eax, dword [edx + 0x74]
push 0
push dword [ebp - 0x18]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + 0x58]
sub edx, dword [ecx + 0x50]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x258]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x50]
add eax, edx
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x258]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + ebx*4]
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 0x78]
inc ebx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jl 0x56e2c0
mov edi, dword [esi + 0x258]
push 0
mov ecx, edi
call fcn.005376a0
mov ebx, dword [ebp - 0x18]
test eax, eax
jne 0x56e3c5
push dword [ebp - 0x1c]
mov ecx, dword [esi + 0x258]
push ebx
push eax
call fcn.00537630
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
add eax, 0x14
push eax
call edi
jmp 0x56e3cb
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esi + 0x2c0], 0
je 0x56e407
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea ecx, [esi + 0x290]
movups xmmword [ebp - 0x14], xmm0
call fcn.00519780
test eax, eax
je 0x56e407
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
call edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x290]
call fcn.0051a690
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x576d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x12c], 0
je 0x576eae
push edi
mov edi, dword [esi + 0x258]
test edi, edi
je 0x576ead
mov eax, dword [esi + 0x108]
xor ecx, ecx
mov edx, dword [edi + 0x74]
push ebx
mov ebx, dword [esi + 0x53c]
add ebx, dword [esi + 0x514]
add ebx, dword [esi + 0x224]
add ebx, dword [esi + 0x21c]
add ebx, dword [esi + 0x10c]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x78]
sub eax, edx
mov dword [ebp - 4], ecx
test eax, 0xfffffffc
jle 0x576e85
push dword [edx + ecx*4]
mov ecx, esi
call fcn.00528220
test eax, eax
je 0x576e65
mov eax, dword [esi + 0x258]
cmp dword [eax + 0x84], 0
je 0x576dcd
mov eax, dword [edi + 0x74]
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x74]
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0x1c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x258]
cmp dword [ecx + 0x2c], 2
jne 0x576e0d
mov eax, dword [ecx + 0x74]
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x258]
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
test dword [eax], 0x3442100
je 0x576e65
mov eax, dword [ecx + 0x74]
push 0
push dword [ebp - 8]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x58]
sub edx, dword [ecx + 0x50]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x258]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 0x50]
add eax, edx
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x258]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + ecx*4]
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp - 4]
mov edx, dword [edi + 0x74]
inc ecx
sub eax, edx
mov dword [ebp - 4], ecx
sar eax, 2
cmp ecx, eax
jl 0x576d95
mov edi, dword [esi + 0x258]
push 0
mov ecx, edi
call fcn.005376a0
test eax, eax
jne 0x576eac
mov ecx, dword [esi + 0x258]
push ebx
push dword [ebp - 8]
push eax
call fcn.00537630
add eax, 0x14
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x578000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
cmp dword [ecx + 0x12c], esi
je 0x5781b0
push ebx
mov ebx, dword [ecx + 0x258]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
sub eax, edx
sar eax, 2
test eax, eax
je 0x5781a5
nop dword [eax + eax]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x57818b
cmp dword [eax + 0x2c], 0
je 0x57818b
push eax
call fcn.00528240
test eax, eax
je 0x57818b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x258]
cmp dword [eax + 0x84], 0
je 0x57809e
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + edi*4]
mov eax, dword [edi + 0x18]
sub eax, dword [edi + 0x10]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
lea eax, [edi + 0xc]
sub ecx, dword [edi + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 4]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + edi*4]
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
lea eax, [edi + 0x1c]
sub ecx, dword [edi + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov eax, dword [eax + 0x258]
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x2c], 2
jne 0x578109
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + edi*4]
mov esi, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, esi
push ecx
push 0
mov eax, dword [eax + 0x74]
mov eax, dword [eax + edi*4]
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + edi*4]
mov dword [ebp - 0x10], ecx
test dword [ecx], 0x3442100
je 0x578152
mov eax, dword [ecx + 0x58]
mov esi, dword [ecx + 0x50]
sub eax, esi
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, esi
add eax, 0x4c
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x74]
mov esi, dword [ebp - 8]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x54]
cmp esi, ecx
jg 0x578155
mov esi, ecx
jmp 0x578155
mov esi, dword [ebp - 8]
mov ecx, dword [eax + edi*4]
test dword [ecx], 0x100
je 0x57817d
mov edx, dword [ecx + 0x58]
sub edx, dword [ecx + 0x50]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x50], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
add eax, edx
mov dword [ecx + 0x58], eax
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x24]
cmp eax, esi
cmovg esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [ebx + 0x78]
inc edi
mov edx, dword [ebx + 0x74]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
jb 0x578040
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x578800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
mov edx, dword [ebx + 0x258]
mov dword [ebp - 4], edx
test edx, edx
je 0x5789ac
cmp dword [ebx + 0x12c], 0
je 0x5789ac
mov eax, dword [ebx + 0x108]
mov ecx, dword [edx + 0x30]
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x34]
mov edx, dword [sym.imp.USER32.dll_OffsetRect]
sub eax, ecx
push esi
push edi
mov edi, dword [ebx + 0x534]
xor esi, esi
add edi, dword [ebx + 0x10c]
sar eax, 2
test eax, eax
je 0x578892
mov ebx, dword [ebp - 8]
nop dword [eax + eax]
mov eax, dword [ecx + esi*4]
cmp dword [eax + 0x18], 0
je 0x57887f
push edi
push ebx
add eax, 4
push eax
call edx
mov eax, dword [ebp - 4]
mov edx, dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [eax + 0x30]
jmp 0x578882
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
inc esi
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x578860
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
lea eax, [ebx + 0x540]
push edi
push esi
push eax
call edx
mov ecx, dword [ebx + 0x258]
push 1
call fcn.005376a0
test eax, eax
jne 0x5788ca
mov ecx, dword [ebx + 0x258]
push edi
push esi
push 1
call fcn.00537630
add eax, 0x14
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [ebx + 0x258]
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x5789aa
nop dword [eax + eax]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x578993
cmp dword [eax + 0x2c], 0
je 0x578993
push eax
mov ecx, ebx
call fcn.00528240
test eax, eax
je 0x578990
mov eax, dword [ebx + 0x258]
cmp dword [eax + 0x84], 0
je 0x578937
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 4]
push edi
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 4]
push edi
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0x1c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x258]
cmp dword [eax + 0x2c], 2
jne 0x578971
mov eax, dword [eax + 0x74]
mov ecx, dword [ebp - 4]
push edi
push dword [ebp - 8]
mov eax, dword [eax + ecx*4]
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x74]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
test dword [eax], 0x3442100
je 0x578993
push edi
push dword [ebp - 8]
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x78]
inc edx
mov ecx, dword [esi + 0x74]
sub eax, ecx
sar eax, 2
mov dword [ebp - 4], edx
cmp edx, eax
jb 0x5788f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x578e50
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f58e9
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x6670f4]
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]
mov dword [ebp - 0x818], esi
cmp dword [0x66c1fc], 0
je 0x578eaa
mov ecx, dword [0x66c200]
add ecx, 0xfffffff0
push ecx
call fcn.004bfdc0
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x578fd7
mov eax, dword [0x66c230]
test al, 1
jne 0x578ed9
or eax, 1
mov dword [0x66c230], eax
mov ecx, 0x66c218
mov dword [ebp - 4], 0
call fcn.0055c310
push 0x5fda60
call fcn.0050f1be
add esp, 4
push 0x66c218
mov dword [ebp - 0x81c], 0x66c218
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x818], 1
cmp dword [0x66c1fc], 0
mov eax, dword [0x66c200]
mov dword [ebp - 4], 1
jne 0x578fbb
cmp dword [eax - 0xc], 0
jne 0x578f67
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
lea eax, [ebp - 0x814]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x578f46
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, 0x66c200
call fcn.004c0470
mov eax, dword [0x66c200]
cmp dword [eax - 0xc], 0
jle 0x578fac
push 0x66c200
call fcn.0057a6d0
add esp, 4
mov ecx, 0x66c200
push str.TencentQQWubi_
call fcn.004bc9f0
push dword [0x66c200]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x578fac
push eax
push dword [0x66c200]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x66c200]
mov dword [0x66c1fc], 1
add eax, 0xfffffff0
push eax
call fcn.004bfdc0
add esp, 4
add eax, 0x10
mov dword [esi], eax
push 0x66c218
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x579a10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x579a6f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x579a83
cmp dword [ebp - 0x11c], 6
ja 0x579a93
jne 0x579a83
cmp dword [ebp - 0x118], 0
je 0x579a93
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret

Function at 0x579b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x579baf
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x579bc3
cmp dword [ebp - 0x11c], 6
ja 0x579bd3
jne 0x579bc3
cmp dword [ebp - 0x118], 1
jae 0x579bd3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret

Function at 0x579bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x579c4f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x579c63
cmp dword [ebp - 0x11c], 6
ja 0x579c73
jne 0x579c63
cmp dword [ebp - 0x118], 2
jae 0x579c73
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x57b450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5c20
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00578e50
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x57b50b
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x57b5a8
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x62a144
mov byte [ebp - 4], 1
mov ecx, esi
test eax, 0xffff0000
jne 0x57b4ca
movzx eax, ax
push eax
call fcn.004bd6a0
jmp 0x57b4d6
push 0
push 0x62a144
call fcn.004c0470
mov edi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x57b4f8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 4
ja case.default.0x57b514
jmp dword [eax*4 + 0x57b5b4]
push str.FramePicQQFace_
jmp 0x57b53c
push str.log_
jmp 0x57b53c
push str.temp_
jmp 0x57b53c
push str.upgrade_
jmp 0x57b53c
push str.dump_
lea eax, [ebp - 0x10]
push eax
call fcn.0057d020
add esp, 4
mov ecx, eax
call fcn.004defa0
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004bfdc0
mov edi, dword [ebp + 8]
add eax, 0x10
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x57b595
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 esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b3510
nop
sbb esi, dword [ebp - 0x4addffa9]
push edi
add byte [eax], dh
mov ch, 0x57
add byte [ecx], ch
mov ch, 0x57
add byte [edi], dh
mov ch, 0x57
add ah, cl
int3
Function at 0x57bb70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x57bc11
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x57bc09
test esi, esi
je 0x57bc09
mov ecx, dword [edi]
test ecx, ecx
je 0x57bc04
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x57bbf4
cmp eax, 2
jbe 0x57bbe5
cmp eax, 7
jne 0x57bbf4
test cl, 1
jne 0x57bbf4
shr ecx, 1
cmp ecx, 1
jb 0x57bbf4
cmp word [esi + ecx*2 - 2], dx
jne 0x57bbf4
cmp ecx, 1
jbe 0x57bc09
cmp word [esi + ecx*2 - 4], dx
jne 0x57bbf4
pop edi
mov eax, edx
pop esi
pop ebp
ret 0xc
test cl, 1
jne 0x57bbf4
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x57bc09
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, edx
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.004b3510
int3
Function at 0x57c070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.004bd3a0
mov dword [ebp - 0x80c], 0
call fcn.00588590
neg eax
lea ecx, [ebp - 0x80c]
push ecx
sbb eax, eax
and eax, 0x200
add eax, 0x20019
push eax
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57c171
mov esi, dword [ebp - 0x80c]
test esi, esi
je 0x57c171
push 0x802
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0058c8f0
add esp, 0xc
mov dword [ebp - 0x810], 0x801
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57c165
lea edx, [ebp - 0x808]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x57c125
sub edx, ecx
lea eax, [ebp - 0x808]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004c0470
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x57d0a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push dword [esi]
mov dword [ebp - 0x20], eax
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
push dword [ebx + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x57d0e0
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x57d100
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret

Function at 0x57d170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push dword [esi]
mov dword [ebp - 0x20], eax
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
xor esi, esi
nop dword [eax + eax]
push dword [edi + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x57d1b0
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax + eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x57d1d0
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret