joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414763
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x43d09c
call fcn.0043a0bf
mov esi, dword [ebp + 8]
mov ebx, 0x44d32c
mov ecx, ebx
call fcn.004014ca
and dword [esi + 4], 0
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], eax
call fcn.0040b74b
lea edi, [esi + 0x40]
mov ecx, ebx
mov esi, edi
mov byte [ebp - 4], 3
call fcn.004014ca
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040afbc
mov byte [ebp - 4], 5
call fcn.004013b6
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004019ab
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x4147ef
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41483e
mov eax, edi
call fcn.00401363
cmp ax, 0x5c
je 0x4147ef
push 0x5c
mov eax, edi
call fcn.004013f7
mov eax, str.Download_
mov ecx, edi
call fcn.00401a1b
push 0
push dword [edi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.History.ini
mov ecx, edi
call fcn.00401a1b
mov esi, edi
call fcn.0040ff41
mov esi, dword [ebp + 8]
push eax
call fcn.0040b6ab
mov esi, edi
call fcn.0040ff41
push eax
push dword [ebp - 0x14]
call fcn.0040b7f8
mov eax, dword [ebp + 8]
call fcn.0043a197
ret 4
push 0x80070057
call fcn.004019c3
int3

Function at 0x414895
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [edi + 0x14], 0
push ebx
push esi
mov ebx, ecx
jne 0x4148b9
xor al, al
jmp 0x4149e5
push dword [ebx + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4148b2
xor esi, esi
push 0x206
lea eax, [ebp - 0x20e]
push esi
push eax
mov byte [ebp - 0x211], 0
mov word [ebp - 0x210], si
call fcn.0041ef10
push 0xa
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call fcn.00424258
add esp, 0x1c
push dword [ebx]
lea eax, [ebp - 0x210]
push esi
push str.FailCount
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
lea esi, [ebp - 0x210]
mov edx, ebx
mov dword [ebp - 0x218], eax
call fcn.0040b6e8
push 0
mov ebx, eax
call fcn.0041fbe5
lea esi, [edi + 0x24]
mov dword [esp], 0x4435b4
push esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
call fcn.0040b0da
test eax, eax
jne 0x41497e
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jg 0x4149f3
mov eax, dword [edi + 0x20]
imul eax, eax, 0x15180
cdq
push 0
add eax, ebx
pop ecx
adc edx, ecx
cmp dword [ebp - 0x21c], edx
jg 0x4149f3
jl 0x4149bb
jmp 0x4149b3
push 0x4437c4
push esi
call fcn.0040b0da
test eax, eax
jne 0x4149c4
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jle 0x4149bb
mov eax, dword [edi + 0x20]
imul eax, eax, 0x15180
cdq
push 0
add eax, ebx
pop ecx
adc edx, ecx
cmp dword [ebp - 0x21c], edx
jl 0x4149bb
jg 0x4149f3
cmp dword [ebp - 0x220], eax
ja 0x4149f3
mov byte [ebp - 0x211], 1
jmp 0x4149df
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x414961
cmp dword [edi + 0x20], 0xffffffff
jne 0x4149df
cmp eax, dword [ebp - 0x218]
setle byte [ebp - 0x211]
mov al, byte [ebp - 0x211]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f018
leave
ret
mov byte [ebp - 0x211], 0
jmp 0x4149df
Function at 0x4149fc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push ebx
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.0041ef10
push 0xa
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00424258
add esp, 0x1c
push dword [esi]
lea eax, [ebp - 0x20c]
push 0
push str.FailCount
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
add esi, 8
push eax
lea ebx, [ebp - 0x20c]
call fcn.0040bc0a
push 0
call fcn.0041fbe5
pop ecx
push eax
mov dword [ebp - 0x210], edx
call fcn.0040bc5c
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f018
leave
ret 4

Function at 0x415a47
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
push ebx
push edi
push dword [ebp + 0xc]
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
jne 0x415acf
push dword [esi + 0x30]
call fcn.0041707d
test eax, eax
je 0x415ad6
mov eax, dword [esi + 0x30]
push dword [eax + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415ab6
mov eax, dword [esi + 0x30]
push dword [eax + 0x3c]
mov ecx, dword [eax + 0x38]
call fcn.004175de
test eax, eax
je 0x415ab6
cmp dword [esi + 0x20], 1
jne 0x415aa1
mov ecx, dword [esi + 0x30]
call fcn.00416d15
jmp 0x415ad6
mov edi, dword [esi + 0x30]
call fcn.00417830
test al, al
jne 0x415ad6
mov byte [0x44e24b], 0xb
jmp 0x415ad6
mov edi, dword [esi + 0x30]
call fcn.00417830
test al, al
je 0x415aad
push dword [esi + 4]
mov ebx, dword [esi + 0x30]
call fcn.00417735
jmp 0x415adf
mov byte [0x44e24b], 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 0x416022
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.RT_RCDATA
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 0x41605a
xor eax, eax
jmp 0x4160a6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x416056
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x416056
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x4160a3
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 0x4160b4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f018
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 0x4160d3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4160a5
xor esi, esi
inc esi
jmp 0x4160c8
Function at 0x4161a1
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x120c
call fcn.00433ba0
mov eax, dword [0x44b074]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xf9c
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x2c], ebx
call fcn.0041ef10
add esp, 0xc
push 0x206
lea eax, [esp + 0x100e]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov word [esp + 0x1014], bx
call fcn.0041ef10
add esp, 0xc
push 0x40
lea eax, [esp + 0xfc6]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0xfcc], bx
call fcn.0041ef10
xor eax, eax
add esp, 0xc
cmp eax, str.071132e14ea664c6eaedb1417e589b86
je 0x41632a
lea eax, [esp + 0x14]
push eax
push 0xfa0
lea eax, [esp + 0x28]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x41632a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41632a
shr eax, 2
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x18], eax
je 0x41632a
push dword [esp + eax*4 + 0x20]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x416317
push 0x208
lea eax, [esp + 0x100c]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.0041ef10
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x416310
push 0x104
lea eax, [esp + 0x100c]
push eax
push dword [esp + 0x18]
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x416310
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [esp + 0x1008]
push eax
call fcn.0041f233
pop ecx
push eax
lea esi, [esp + 0xfc4]
lea ecx, [esp + 0x100c]
call fcn.0041de70
test al, al
pop ecx
je 0x416310
push str.071132e14ea664c6eaedb1417e589b86
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x416341
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jb 0x416264
xor eax, eax
mov ecx, dword [esp + 0x1214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f018
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x41632c
Function at 0x4164e0
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.004227ad
cmp ebx, 2
pop ecx
mov ecx, eax
jle 0x416582
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 0x416527
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4165da
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 0x4165c6
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 0x4165d4
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 0x4165e3
mov dword [eax], esi
pop edi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x41707d
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0x20
mov eax, 0x43e3d8
call fcn.0043a0bf
lea ebx, [ebp - 0x1c]
call fcn.0040afbc
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004178ff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019ab
mov dword [ebp - 0x10], edi
push 3
push 1
mov byte [ebp - 4], 3
push 0xc0000000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0040ff41
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b147
test eax, eax
jge 0x4170fd
cmp dword [ebp - 0x10], edi
je 0x4170e8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004019ab
mov eax, edi
call fcn.0043a197
ret 4
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x20]
call fcn.0040b1e4
push dword [ebp - 0x20]
call fcn.0041f2be
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 0x417132
call fcn.0040c39e
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
mov dword [ebp - 0x1c], eax
call fcn.004165ee
add esp, 0xc
push esi
mov dword [ebp - 0x14], eax
call fcn.0041ef0a
cmp dword [ebp - 0x10], edi
pop ecx
je 0x417161
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 0x4171d2
mov esi, dword [ebp - 0x1c]
add esi, esi
push esi
call fcn.0041f2be
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x4171c4
push esi
push edi
push ebx
call fcn.0041ef10
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.00407549
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0041ef0a
add esp, 0xc
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x4171bd
mov ecx, dword [ebp + 8]
push ebx
call fcn.004171f1
mov dword [ebp - 0x18], eax
push ebx
call fcn.0041ef0a
pop ecx
cmp dword [ebp - 0x14], edi
je 0x4171d2
push dword [ebp - 0x14]
call fcn.0041ef0a
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], edi
je 0x4171e9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
jmp 0x4170e8
Function at 0x4171f1
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x43e398
call fcn.0043a128
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040426c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0x44]
call fcn.00416772
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 0x4c]
lea ecx, [ebp - 0x30]
call fcn.00414cb1
test al, al
jne 0x41725f
mov byte [ebp - 4], al
lea eax, [ebp - 0x40]
mov byte [0x44e24b], 2
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.004191eb
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404cbb
xor eax, eax
call fcn.0043a1ab
ret 4
mov ebx, dword [esi + 0x4c]
lea edi, [esi + 0x34]
lea eax, [ebx + 0x4c]
call fcn.004013b6
lea eax, [ebx + 0x50]
lea edi, [esi + 0x38]
call fcn.004013b6
mov ecx, dword [esi + 0x50]
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x40]
push eax
lea edi, [esi + 8]
push edi
call fcn.004110c4
test eax, eax
jne 0x4172b5
xor ebx, ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x40]
mov byte [0x44e249], bl
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.004191eb
push ebx
jmp 0x41724b
mov al, byte [edi]
mov byte [0x44e249], al
mov eax, dword [esi + 0x34]
cmp dword [eax - 0xc], 0
jne 0x4172ed
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.CConfigRead.0
call fcn.004191eb
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404cbb
mov eax, esi
jmp 0x417257
lea ebx, [ebp - 0x34]
call fcn.0040afbc
add esi, 0x3c
mov edi, esi
mov byte [ebp - 4], 2
call fcn.004013b6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004019ab
call fcn.00401000
mov eax, str.Download_
mov ecx, esi
call fcn.00401a1b
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.00401a1b
xor esi, esi
inc esi
jmp 0x4172c7
Function at 0x4175de
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20fc]
mov eax, 0x217c
call fcn.00433ba0
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x20f8], eax
mov eax, dword [ebp + 0x2104]
push ebx
push 3
push 1
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.0040b147
test eax, eax
jge 0x417638
cmp dword [ebp - 0x1c], ebx
je 0x417631
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41771d
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.004067e1
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 0x417679
call fcn.0040c39e
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41768d
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
call fcn.00406f2b
jmp 0x417656
cmp dword [ebp - 0x1c], ebx
je 0x41769e
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.00407136
push 0xfe
lea eax, [ebp + 0x1fea]
push ebx
push eax
mov word [ebp + 0x1fe8], bx
call fcn.0041ef10
add esp, 0x10
lea edi, [ebp + 0x1fe8]
xor esi, esi
movzx eax, byte [ebp + esi + 0x20e8]
push eax
push str._.2x
push 3
push edi
call fcn.0041fcdd
add esp, 0x10
add edi, 4
inc esi
cmp esi, 0x10
jb 0x4176d1
push dword [ebp - 0x24]
lea eax, [ebp + 0x1fe8]
push eax
call fcn.0042403d
mov esi, eax
neg esi
sbb esi, esi
pop ecx
inc esi
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x417719
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.0041f018
add ebp, 0x20fc
leave
ret 4

Function at 0x4178ff
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x43be88
call fcn.0043a0bf
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.00401671
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00401000
mov eax, str.Download_
mov ecx, esi
call fcn.00401a1b
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.00401a1b
mov edi, dword [ebp + 8]
add edi, 0x20
mov eax, esi
call fcn.004013b6
mov eax, esi
call fcn.0043a197
ret 0xc
Function at 0x417971
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x43cf48
call fcn.0043a0bf
lea ecx, [ebp - 0x14]
call fcn.004160d8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x443be4
push ecx
mov ecx, eax
call fcn.004038ca
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004019ab
push dword [ebp - 0x10]
call fcn.00416022
test eax, eax
pop ecx
jne 0x4179d3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4179d3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004019ab
xor al, al
jmp 0x417a10
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.00409482
mov byte [ebp - 4], 3
call fcn.0043b1f0
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.0043b400
push 0
push 1
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.00409826
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004019ab
cmp edi, 1
sete al
call fcn.0043a197
ret

Function at 0x417a16
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e4e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44b074]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.004160d8
and dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
push 0x443be4
push ecx
mov ecx, eax
call fcn.004038ca
pop ecx
pop ecx
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004019ab
mov esi, dword [0x44e24c]
call fcn.0043b1f0
and dword [eax + 4], 0
push 0x44e248
mov dword [eax], 0x3f5
mov dword [eax + 0x10], esi
call fcn.0043b1f0
mov edi, eax
call fcn.00419bde
call fcn.0043b1f0
mov edi, eax
call fcn.0043b390
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004019ab
xor eax, eax
inc eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d27a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.RT_RCDATA
xor esi, esi
push 0x8d
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 0x41d2b2
xor eax, eax
jmp 0x41d2fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x41d2ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x41d2ae
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x41d2fb
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 0x41d30c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f018
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 0x41d32b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41d2fd
xor esi, esi
inc esi
jmp 0x41d320

Function at 0x41dde0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x44b074]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
xor edx, edx
cmp ecx, edx
push esi
je 0x41de53
cmp eax, edx
jle 0x41de53
cmp edi, edx
je 0x41de53
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0041df50
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0041e010
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041f018
add esp, 0x64
ret
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
xor al, al
call fcn.0041f018
add esp, 0x64
ret

Function at 0x41ebfe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041eb3d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041ef10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41ec4d
cmp dword [ebp - 0x1c], 5
jb 0x41ec65
jmp 0x41ec61
cmp dword [ebp - 0x10], 1
jne 0x41ec65
cmp dword [ebp - 0x1c], 4
ja 0x41ec61
jne 0x41ec65
cmp dword [ebp - 0x18], 0
jbe 0x41ec65
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43f448
call fcn.0041ea07
test eax, eax
jge 0x41ec86
mov byte [0x44e1d8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f018
add ebp, 0x78
leave
ret
Function at 0x41ef05
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x44d3b0], 0
push esi
jne 0x41ee78
call fcn.0041eda3
test eax, eax
je 0x41eebb
mov eax, dword [0x44d3b0]
cmp eax, 1
jne 0x41ee99
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41eebb
pop esi
ret
push eax
call dword [0x44d3b8]
test eax, eax
jne 0x41ef03
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41eebf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44d3b0]
call dword [0x44d3b8]
mov edi, eax
test edi, edi
je 0x41eee6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41ef02
lea edi, [esi + 0xff0]
push esi
push dword [0x44d3b0]
call dword [0x44d3b4]
add esi, 0x10
cmp esi, edi
jb 0x41eeec
mov eax, esi
pop edi
pop esi
ret
jmp 0x41ee65

Function at 0x41f018
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b074]
jne 0x41f022
repz ret
jmp fcn.00425340