joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079cc
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x10]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x10079f4
mov edi, 0x8007000e
jmp 0x1007a59
push edi
push edi
push esi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1007a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1007a24
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1007a52
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x1007a4c
push ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, edi
je 0x1007a10
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1007a4c
jmp 0x1007a10
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x100aa3e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 1
push ebx
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x100aa70
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100aac0
push eax
push 0x40
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x100aa8d
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100aab5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push 1
push ebx
call esi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x100aab5
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, eax
test edi, edi
je 0x100aac0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x421bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421be8
mov eax, 1
add ebx, ebx
jne 0x421c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c1c
jne 0x421c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c2c
dec eax
add ebx, ebx
jne 0x421c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x421c00
xor ecx, ecx
sub eax, 3
jb 0x421c44
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cb6
sar eax, 1
mov ebp, eax
jmp 0x421c4f
add ebx, ebx
jne 0x421c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c80
inc ecx
add ebx, ebx
jne 0x421c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c61
jne 0x421c7d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c61
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421ca0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c91
jmp 0x421bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421ca0
add edi, ecx
jmp 0x421bee
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cbe
cmp byte [edi], 0xd
jne 0x421cbe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421cc3
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cf0
mov ecx, edi
jns 0x421d1f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229a0]
or eax, eax
je 0x421d35
mov dword [ebx], eax
add ebx, 4
jmp 0x421d0d
call dword [esi + 0x229a4]
popal
jmp section.UPX0

Function at 0x408944
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.0040896d
add edx, 0x189eb09e
xor dword [edi], ebx
sub edx, 0xbf5fa676
inc edi
or ecx, ecx
cmp edi, eax
jne fcn.00408944
ret
Function at 0x43be80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
jmp 0x43be9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43bea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43be90
mov eax, 1
add ebx, ebx
jne 0x43beb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43bea8
jne 0x43bec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43bea8
xor ecx, ecx
sub eax, 3
jb 0x43bed8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43bf4a
mov ebp, eax
add ebx, ebx
jne 0x43bee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43bef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43bf14
inc ecx
add ebx, ebx
jne 0x43bf00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43bef5
jne 0x43bf11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43bef5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43bf34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43bf25
jmp 0x43be96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43bf34
add edi, ecx
jmp 0x43be96
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43bf52
cmp byte [edi], 9
jne 0x43bf52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43bf57
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x43bfcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4421c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x442e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43bf84
mov ecx, edi
jns 0x43bfb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x442e8]
or eax, eax
je 0x43bfc9
mov dword [ebx], eax
add ebx, 4
jmp 0x43bfa1
call dword [esi + 0x442f8]
mov ebp, dword [esi + 0x442ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43c003
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x418060
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
mov byte [ebp - 1], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41808e
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4180ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4180c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
call edi
test ebx, ebx
je 0x418102
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 8]
mov ebx, eax
call edi
test ebx, ebx
jne 0x41810b
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
mov dl, 0xca
je 0x418139
mov edi, ebx
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, al
xor cl, dl
mov byte [edi - 1], cl
lea edx, [eax + 1]
sub esi, 1
jne 0x418115
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ebx
nop dword [eax + eax]
xor byte [eax], dl
lea eax, [eax + 1]
mov dl, byte [eax - 1]
inc dl
sub esi, 1
jne 0x418140
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4194c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x56d06c]
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, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00438d0d
add esp, 8
test eax, eax
je 0x4195a4
push str.Tencent_Technology_Shenzhen__Company_Limited
lea ecx, [ebp - 0x28]
call fcn.004198d0
test eax, eax
je 0x41953c
push str.Adobe_Inc.
lea ecx, [ebp - 0x28]
call fcn.004198d0
test eax, eax
jne 0x4195a4
push 0x38
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], 0x3c
push 0
push eax
call fcn.004e9ab0
add esp, 0xc
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], str.RunAs
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41959a
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x419596
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x4195a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4195a9
mov esi, 0x4b4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4195be
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041e1c0
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.00471876
mov esp, ebp
pop ebp
ret

Function at 0x41bf60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x41bf75
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bf80
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x56d06c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0041c5b0
mov esi, eax
test esi, esi
jne 0x41c757
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x41c729
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0041c660
mov esi, eax
test esi, esi
jne 0x41c757
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x41c6f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c740
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0041c7a0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c766
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret 4
Function at 0x41d320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514216
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41d3cc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41d3cc
call fcn.0041b850
mov esi, eax
jmp 0x41d4bc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41d3ef
call fcn.0041b850
jmp 0x41d4af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41d40d
call fcn.0041b850
jmp 0x41d4af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41d42e
mov esi, 0x8007000e
jmp 0x41d4b1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041b800
jmp 0x41d458
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41d46f
mov esi, 0x8007000e
jmp 0x41d4b1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41d48f
call fcn.0041b850
jmp 0x41d4af
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0041d1c0
mov esi, eax
test edi, edi
je 0x41d4bc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41d4e0
lea ecx, [ebp - 0x418]
call fcn.0041b7b0
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.00471876
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41f7f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41f822
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push dword [0x56fe4c]
push dword [0x56fe94]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esi + 0xfc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret
Function at 0x4211a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4212a8
push 0x58
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [edi], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [edi + 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareTencentQQBrowserAdvanced
push 0x80000001
mov dword [ebp - 0x18], vtable.Util::RegKey.0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x421210
mov dword [ebp - 0x14], 0
jmp 0x421275
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421275
lea ecx, [ebp - 8]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 0
push ecx
push 0
push str.DisableDpi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x421275
mov eax, dword [ebp - 4]
cmp eax, 4
je 0x42125c
cmp eax, 3
jne 0x421275
cmp dword [ebp - 8], 4
jne 0x421275
cmp dword [ebp - 0xc], 0
je 0x421275
mov dword [edi], 0x60
mov dword [edi + 4], 0x60
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], vtable.Util::RegKey.0
test eax, eax
je 0x42129a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4212a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421ed0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x56d06c]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push 0x208
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov esi, ecx
push 0
push eax
mov dword [esp + 0x14], esi
call fcn.004e9ab0
add esp, 0xc
mov dword [esp + 8], 0x208
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push str.PlayerPath
push str.SOFTWAREMacromediaFlashPlayerPepper
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42203b
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp word [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
je 0x42201f
lea ecx, [esp + 0x14]
call fcn.00419a80
push 0
push 0x1a
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x421fd3
push str.PepperFlashpepflashplayer.dll
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x28]
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push ecx
push eax
call fcn.004f9db0
add esp, 8
test eax, eax
jne 0x421fd3
mov dword [esi + 0x14], 7
lea ecx, [esp + 0x10]
mov dword [esi + 0x10], eax
mov word [esi], ax
call fcn.0041e2c0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
call fcn.0041de40
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x42204e
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.0041e1c0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00419a80
mov eax, esi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [esp + 0x234]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret

Function at 0x422160
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004e9ab0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x4221b9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471876
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 4
push eax
push 0
push str.EnableLUA
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x11c], eax
setne al
xor ecx, ebp
call fcn.00471876
mov esp, ebp
pop ebp
ret
Function at 0x422210
Capabilities:
Get file size
Hash data with md5
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x56d06c]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422265
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42227c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x42229e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
test edi, edi
je 0x422265
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esp + 0x14], eax
call esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x422265
push ebx
mov edx, esi
mov dword [esp + 0x44], 0x67452301
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], 0xefcdab89
mov dword [esp + 0x4c], 0x98badcfe
mov dword [esp + 0x50], 0x10325476
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.00421b90
push 0x26
mov edx, str.B024060C_738F_43AA_9F81_F500ED433213
lea ecx, [esp + 0x48]
call fcn.00421b90
add esp, 8
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
call fcn.00421cb0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
call fcn.00421dc0
mov ecx, dword [esp + 0x14]
push eax
call fcn.0042ae70
lea ecx, [esp + 0x28]
call fcn.0042e8b0
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x9c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471876
mov esp, ebp
pop ebp
ret
Function at 0x4227a0
Capabilities:
Check if file exists
Delete file
Move file
Set registry value

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4227ff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4227ff
test edi, edi
je 0x4227f4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4227c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push str.CC_FLASH_VER
push str.SoftwareTencentQQBrowserPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
ret