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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test byte [0x44a528], 1
mov dword [ebp - 0x214], esi
jne 0x40af0d
mov eax, dword [0x4492cc]
or dword [0x44a528], 1
mov ecx, 0x4492cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43b42b
mov dword [0x44a510], eax
call fcn.0041c5eb
pop ecx
mov eax, dword [0x44a510]
cmp dword [eax - 0xc], esi
jne 0x40af92
push edi
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0041c3b0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x44a510
push edi
call fcn.004015aa
mov eax, dword [0x44a510]
cmp dword [eax - 0xc], esi
jle 0x40af91
call fcn.00409eae
mov eax, 0x43fa18
mov ecx, edi
call fcn.004019e7
push dword [0x44a510]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40af91
push esi
push dword [0x44a510]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, dword [0x44a510]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0041c4b8
leave
ret

Function at 0x40ee62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push dword [edi + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ee9d
push 0x43e93c
push dword [ebp + 8]
call fcn.004015aa
mov eax, ebx
jmp 0x40eee7
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
push 0x104
mov dword [ebp - 8], 0x208
mov dword [ebp - 0xc], ebx
call fcn.00401878
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea esi, [edi + 0xc]
call fcn.0040fb11
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 8]
mov edi, eax
call fcn.0040afb3
test edi, edi
pop esi
jne 0x40ee8c
push 2
pop eax
pop edi
pop ebx
leave
ret 4

Function at 0x4103d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0
mov dword [ebp - 4], 0x100
call fcn.0040fb11
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41043a
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
call fcn.0040fb11
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41043a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret 0x10
mov esi, dword [ebp + 0x10]
call fcn.0040afb3
mov esi, dword [ebp + 0xc]
call fcn.0040afb3
xor bl, bl
jmp 0x410429
Function at 0x41044e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x439f08
call fcn.0043705d
mov edi, dword [ebp + 0x10]
call fcn.00411622
mov eax, dword [ebp + 0xc]
push 4
pop esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], esi
mov ebx, 0x208
jmp 0x41047b
mov eax, dword [ebp + 0xc]
push 4
pop esi
mov ecx, dword [eax]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
xor eax, eax
dec ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x4104b7
dec ecx
je 0x4104a8
dec ecx
dec ecx
jne 0x4104cb
push esi
call fcn.0041c75e
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
jmp 0x4104c7
push ebx
call fcn.0041c75e
mov dword [ebp - 0x2c], 2
jmp 0x4104c4
push ebx
call fcn.0041c75e
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], ebx
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x28]
call fcn.0041c3b0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x410513
cmp dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
je 0x410513
push dword [ebp - 0x28]
call fcn.0041c3a1
pop ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.004093b5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.00411521
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x28]
push esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x48]
mov dword [eax], ecx
call fcn.00409746
add dword [ebp + 0xc], 8
dec dword [ebp - 0x10]
jne 0x410475
xor eax, eax
inc eax
call fcn.00437135
ret 0xc

Function at 0x4106df
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.0041c3b0
add esp, 0xc
cmp dword [esi + 4], edi
jne 0x410792
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push 0x4405e0
lea eax, [ebp - 0x20c]
jb 0x410738
push str..Global_s
jmp 0x41073d
push str.._s
push 0x104
push eax
call fcn.0041d17d
add esp, 0x10
push edi
push 0x80
push 3
push edi
xor edi, edi
inc edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41077a
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410792
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x41078f
call ebx
cmp eax, 0x1f
jne 0x410791
mov dword [esi], edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041c4b8
leave
ret
Function at 0x410e47
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jne 0x410e5c
xor eax, eax
jmp 0x410ed9
push esi
mov esi, closesocket
push esi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x410e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x410ed5
push ebx
push esi
push str.QQPCRTP
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
jne 0x410ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x410ecf
lea eax, [ebp - 8]
push eax
push 0x24
push dword [ebp + 8]
mov dword [ebp - 8], edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x410ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call ebx
push dword [ebp - 0xc]
call ebx
pop ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 8

Function at 0x411277
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4112de
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.SVCStart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x4112de
xor eax, eax
cmp dword [ebp - 8], esi
sete al
jmp 0x4112e0
xor al, al
pop esi
leave
ret

Function at 0x413b7f
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push dword [esi + 0x34]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ebx, 0x80
push ebx
push dword [esi + 4]
call edi
push dword [esi + 0x38]
push 0
push ebx
push dword [esi + 4]
call edi
cmp dword [esi + 0x30], 0
pop edi
pop ebx
jne 0x413bb2
call fcn.00414c0d
mov dword [esi + 0x30], eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
mov ecx, dword [esi + 0x30]
call fcn.004152de
mov eax, dword [esp + 4]
and dword [eax], 0
xor eax, eax
inc eax
ret 4
Function at 0x413c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
push ebx
push edi
push dword [ebp + 0xc]
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
jne 0x413cc9
push dword [esi + 0x30]
call fcn.00415021
test eax, eax
je 0x413cd0
mov eax, dword [esi + 0x30]
push dword [eax + 0x38]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413cb4
mov eax, dword [esi + 0x30]
push dword [eax + 0x38]
mov ecx, dword [eax + 0x34]
call fcn.0041556a
test eax, eax
je 0x413cb4
cmp dword [esi + 0x20], 0
je 0x413caa
mov ecx, dword [esi + 0x30]
call fcn.00414cbf
jmp 0x413cd0
mov edi, dword [esi + 0x30]
call fcn.004157b6
jmp 0x413cd0
mov edi, dword [esi + 0x30]
call fcn.004157b6
push dword [esi + 4]
mov ebx, dword [esi + 0x30]
call fcn.004156bd
jmp 0x413cd9
mov byte [0x44a1e7], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41424d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x440810
xor esi, esi
push 0x8c
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x414285
xor eax, eax
jmp 0x4142d1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x414281
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x414281
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x4142ce
push esi
push 0x80
push 2
push esi
push 1
push 0x10000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4142df
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041c4b8
leave
ret
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4142fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4142d0
xor esi, esi
inc esi
jmp 0x4142f3
Function at 0x41449a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
mov eax, ebx
xor esi, esi
sub eax, edx
lea eax, [eax*4 + 0xc]
cdq
idiv ecx
inc eax
push eax
call fcn.0041fbef
cmp ebx, 2
pop ecx
mov ecx, eax
jle 0x41453c
lea eax, [ebx - 3]
xor edx, edx
push 3
pop ebx
div ebx
inc eax
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add dword [ebp + 8], eax
movzx edx, byte [edi]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi + 1]
and edx, 3
shl edx, 4
mov ebx, eax
shr ebx, 4
mov dl, byte [ebx + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], dl
movzx edx, byte [edi + 2]
and eax, 0xf
mov ebx, edx
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
inc esi
add edi, 3
dec dword [ebp - 4]
jne 0x4144e1
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x414594
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
inc esi
shl eax, 4
cmp ebx, 1
jle 0x414580
movzx edx, byte [edi + 1]
mov edi, edx
shr edi, 4
mov al, byte [edi + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
and edx, 0xf
mov al, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
jmp 0x41458e
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41459d
mov dword [eax], esi
pop edi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x415021
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0x20
mov eax, 0x43b068
call fcn.0043705d
lea ebx, [ebp - 0x1c]
call fcn.0040aec1
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00415841
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401977
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
push 0xc0000000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0040fb11
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b04c
test eax, eax
jge 0x41509d
cmp dword [ebp - 0x10], edi
je 0x415088
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401977
mov eax, edi
call fcn.00437135
ret 4
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x20]
call fcn.0040b07e
push dword [ebp - 0x20]
call fcn.0041c75e
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x28], edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4150d2
call fcn.0040b20f
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
mov dword [ebp - 0x1c], eax
call fcn.004145a8
add esp, 0xc
push esi
mov dword [ebp - 0x14], eax
call fcn.0041c3a1
cmp dword [ebp - 0x10], edi
pop ecx
je 0x415101
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
je 0x415172
mov esi, dword [ebp - 0x1c]
add esi, esi
push esi
call fcn.0041c75e
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x415164
push esi
push edi
push ebx
call fcn.0041c3b0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x18]
dec esi
push eax
dec esi
push ebx
mov dword [ebp - 0x18], esi
call fcn.0040747e
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0041c3a1
add esp, 0xc
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x41515d
mov ecx, dword [ebp + 8]
push ebx
call fcn.00415191
mov dword [ebp - 0x18], eax
push ebx
call fcn.0041c3a1
pop ecx
cmp dword [ebp - 0x14], edi
je 0x415172
push dword [ebp - 0x14]
call fcn.0041c3a1
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], edi
je 0x415189
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
jmp 0x415088
Function at 0x415191
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x43b028
call fcn.004370c6
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00404223
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0x44]
call fcn.0041472c
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x48]
lea ecx, [ebp - 0x30]
call fcn.0041311a
test al, al
jne 0x4151ff
mov byte [ebp - 4], al
lea eax, [ebp - 0x40]
mov byte [0x44a1e7], 2
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.0041701f
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404c67
xor eax, eax
call fcn.00437149
ret 4
mov ebx, dword [esi + 0x48]
lea edi, [esi + 0x30]
lea eax, [ebx + 0x4c]
call fcn.0040138c
lea eax, [ebx + 0x50]
lea edi, [esi + 0x34]
call fcn.0040138c
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0x4c]
lea edi, [esi + 8]
mov ecx, edi
call fcn.0040f84e
test eax, eax
jne 0x415252
xor ebx, ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x40]
mov byte [0x44a1e5], bl
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.0041701f
push ebx
jmp 0x4151eb
mov al, byte [edi]
mov byte [0x44a1e5], al
mov eax, dword [esi + 0x30]
cmp dword [eax - 0xc], 0
jne 0x41528a
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.0041701f
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404c67
mov eax, esi
jmp 0x4151f7
lea ebx, [ebp - 0x34]
call fcn.0040aec1
add esi, 0x38
mov edi, esi
mov byte [ebp - 4], 2
call fcn.0040138c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.00401977
call fcn.00414219
mov eax, str.Download_
mov ecx, esi
call fcn.004019e7
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.QQPCDownload.exe
mov ecx, esi
call fcn.004019e7
xor esi, esi
inc esi
jmp 0x415264
Function at 0x41556a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20fc]
mov eax, 0x217c
call fcn.00430b50
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp + 0x20f8], eax
mov eax, dword [ebp + 0x2104]
push ebx
push closesocket
push eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
call fcn.0040b04c
test eax, eax
jge 0x4155c0
cmp dword [ebp - 0x1c], ebx
je 0x4155b9
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4156a5
push esi
push edi
xor eax, eax
mov byte [ebp + 0x20e8], bl
lea edi, [ebp + 0x20e9]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp - 0x80]
stosb byte es:[edi], al
call fcn.00406716
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x2000
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415601
call fcn.0040b20f
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x415615
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
call fcn.00406e60
jmp 0x4155de
cmp dword [ebp - 0x1c], ebx
je 0x415626
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp + 0x20e8]
push eax
lea esi, [ebp - 0x80]
call fcn.0040706b
push 0xfe
lea eax, [ebp + 0x1fea]
push ebx
push eax
mov word [ebp + 0x1fe8], bx
call fcn.0041c3b0
add esp, 0x10
lea esi, [ebp + 0x1fe8]
xor edi, edi
movzx eax, byte [ebp + edi + 0x20e8]
push eax
push str._.2x
push 3
push esi
call fcn.0041d17d
add esp, 0x10
add esi, 4
inc edi
cmp edi, 0x10
jb 0x415659
push dword [ebp - 0x24]
lea eax, [ebp + 0x1fe8]
push eax
call fcn.0042111d
mov esi, eax
neg esi
sbb esi, esi
pop ecx
inc esi
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x4156a1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x20f8]
xor ecx, ebp
pop ebx
call fcn.0041c4b8
add ebp, 0x20fc
leave
ret 4
Function at 0x4156bd
Capabilities:
Delete file

Disassembly:
push 0xc0
mov eax, 0x43963b
call fcn.004370c6
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x20], eax
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x14]
push dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [ebp - 0xc8]
call fcn.004141a8
and dword [ebp - 4], 0
call dword [section..data]
mov esi, dword [ebx + 0x30]
test esi, esi
mov dword [ebp - 0xcc], eax
je 0x415714
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x415718
xor eax, eax
jmp 0x415733
lea edi, [eax + eax]
mov eax, edi
call fcn.00426f50
mov eax, esp
push dword [ebp - 0xcc]
push edi
push esi
mov esi, eax
call fcn.00419be0
push eax
lea ecx, [ebp - 0xc8]
call fcn.00404bbb
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x415755
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x415759
xor eax, eax
jmp 0x415774
lea esi, [eax + eax]
mov eax, esi
call fcn.00426f50
mov eax, esp
push dword [ebp - 0xcc]
push esi
push edi
mov esi, eax
call fcn.00419be0
push eax
lea ecx, [ebp - 0xac]
call fcn.00404bbb
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0xc8]
push edx
call dword [eax + 8]
lea esi, [ebp - 0xc8]
mov dword [ebx + 0x24], eax
call fcn.00415522
xor al, al
lea esp, [ebp - 0xdc]
call fcn.00437149
ret 4

Function at 0x415841
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x438eca
call fcn.0043705d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040163d
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00414219
mov eax, str.Download_
mov ecx, esi
call fcn.004019e7
mov eax, dword [esi]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.QQPCDownloadModule.xml
mov ecx, esi
call fcn.004019e7
mov edi, dword [ebp + 8]
add edi, 0x1c
mov eax, esi
call fcn.0040138c
mov eax, esi
call fcn.00437135
ret 0xc

Function at 0x4158b3
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x439dd8
call fcn.0043705d
lea ecx, [ebp - 0x14]
call fcn.0041b1ba
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str.dr.dll
push ecx
mov ecx, eax
call fcn.00403896
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401977
push dword [ebp - 0x10]
call fcn.0041424d
test eax, eax
pop ecx
jne 0x415915
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415915
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401977
xor al, al
jmp 0x415952
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.004093b5
mov byte [ebp - 4], 3
call fcn.004382a0
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.004384b0
push 0
push 1
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.00409746
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401977
cmp edi, 1
sete al
call fcn.00437135
ret
Function at 0x415958
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x43b210
call fcn.0043705d
lea ecx, [ebp - 0x14]
call fcn.0041b1ba
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str.dr.dll
push ecx
mov ecx, eax
call fcn.00403896
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401977
call fcn.004382a0
mov edi, eax
call fcn.00417a21
call fcn.004382a0
mov edi, eax
call fcn.00438440
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401977
xor eax, eax
inc eax
call fcn.00437135
ret