joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100403c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x10040400
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
shl ecx, 4
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x10040424
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.1008a9f7
mov esp, ebp
pop ebp
ret

Function at 0x10040bd0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10040c1f
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10040e00
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
call fcn.10040de0
mov ecx, esi
call fcn.10040f50
test al, al
je 0x10040e88
call fcn.10040bd0
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10040e7b
mov ecx, eax
call fcn.10040ba0
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.10040b80
add esp, 4
mov eax, ecx
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10040e6a
cmp eax, 0xffffffff
jne 0x10040e7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10040e7b
push 1
mov ecx, esi
call fcn.10040f70
test al, al
je 0x10040e7b
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
jne 0x10040e88
mov ecx, esi
call fcn.10040de0
mov ecx, dword [ebp - 8]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040f70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x10041029
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x10040fa1
add esi, esi
test esi, esi
jle 0x10041029
mov edx, dword [sym.imp.WS2_32.dll_select]
nop
mov ecx, edi
call fcn.10040f50
test al, al
je 0x10041029
mov eax, dword [edi]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x218], eax
inc eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xc350
push ecx
lea ecx, [ebp - 0x114]
test bl, bl
je 0x1004100f
push ecx
push 0
jmp 0x10041012
push 0
push ecx
push eax
call edx
test eax, eax
jg 0x1004103e
mov edx, dword [sym.imp.WS2_32.dll_select]
sub esi, 0xc350
test esi, esi
jg 0x10040fb0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x114]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [ebp - 8]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
Function at 0x100428c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x100428e1
mov ecx, dword [esi]
jmp 0x100428e3
mov ecx, esi
call fcn.10042830
test eax, eax
je 0x10042981
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x10042981
mov dword [edi + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10045ee0
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.10043710
add esp, 4
mov ecx, eax
call fcn.10043740
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10040c30
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x100429c3
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x1000
jb 0x10042976
test cl, 0x1f
jne 0x100429d8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100429dd
sub ecx, eax
cmp ecx, 4
jb 0x100429e2
cmp ecx, 0x23
ja 0x100429e7
mov ecx, eax
push ecx
call fcn.1008a9f2
add esp, 4
jmp 0x100429c3
inc dword [edi + 0x468]
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10045f00
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.10043710
add esp, 4
mov ecx, eax
call fcn.10043740
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
call fcn.10090951
call fcn.10090951
call fcn.10090951
call fcn.10090951
int3
Function at 0x10043cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
push 0
mov dword [esi + 8], esi
lea eax, [esi + 8]
mov byte [esi + 0x18], 0
push eax
push 0x10044700
push 0
push 0
mov dword [esi + 0xc], 0
call fcn.100963ac
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x10043d0c
mov byte [esi + 0x18], 1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1004bd2b
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1010b070]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x1004bd95
test edx, edx
jle 0x1004bd95
test esi, esi
je 0x1004bd95
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
push edx
mov edx, ecx
mov dword [esp + 0xc], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.1004c006
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.1004c0c0
mov al, 1
jmp 0x1004bd97
xor al, al
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret

Function at 0x1004be50
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1a16
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.1008bd90
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2188], edx
xor ebx, ebx
mov dword [ebp - 0x2184], ebx
mov dword [ebp - 0x2180], ebx
sub esp, 0x14
mov dword [ebp - 4], ebx
push closesocket
push ecx
lea ecx, [ebp - 0x2184]
call fcn.10008fa5
mov esi, dword [ebp - 0x2184]
test eax, eax
js 0x1004bfdd
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
xor eax, eax
mov dword [ebp - 0x2164], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x2168], ebx
mov dword [ebp - 0x2178], 0x67452301
mov dword [ebp - 0x2174], 0xefcdab89
stosd dword es:[edi], eax
mov dword [ebp - 0x2170], 0x98badcfe
mov dword [ebp - 0x216c], 0x10325476
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x217c]
mov dword [ebp - 0x217c], ebx
push eax
push 0x2000
lea eax, [ebp - 0x2120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004bf27
call fcn.10011361
cmp dword [ebp - 0x217c], 0
je 0x1004bf4a
push dword [ebp - 0x217c]
lea edx, [ebp - 0x2120]
lea ecx, [ebp - 0x2178]
call fcn.1004c006
pop ecx
jmp 0x1004befd
test esi, esi
je 0x1004bf5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov dword [ebp - 0x2184], esi
lea edx, [ebp - 0x2178]
lea ecx, [ebp - 0x20]
call fcn.1004c0c0
push 0x100
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.1008df10
add esp, 0xc
lea esi, [ebp - 0x120]
mov edi, ebx
movzx eax, byte [ebp + edi - 0x20]
push eax
push str._.2x
push 0xffffffffffffffff
push 3
push esi
call fcn.10001ea4
add esp, 0x14
add esi, 4
inc edi
cmp edi, 0x10
jb 0x1004bf88
mov esi, dword [ebp - 0x2184]
lea edx, [ebp - 0x120]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1004bfb8
mov ecx, dword [ebp - 0x2188]
lea eax, [ebp - 0x120]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.10005bd6
xor ebx, ebx
inc ebx
test esi, esi
je 0x1004bfe8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x1004fcd0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x1011050c]
sub esp, 0x114
test eax, eax
jne 0x1004fe00
push 0x114
push eax
lea eax, [esp + 8]
push eax
call fcn.1008df10
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x1004fddc
call fcn.1004fc50
test eax, eax
je 0x1004fd2e
mov eax, 9
mov dword [0x1011050c], eax
add esp, 0x114
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x1004fd7c
mov eax, dword [esp + 8]
test eax, eax
jne 0x1004fd50
mov eax, 2
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004fd66
mov eax, 3
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 2
jne 0x1004fdcb
mov eax, 4
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 6
jne 0x1004fdcb
mov eax, dword [esp + 8]
test eax, eax
jne 0x1004fd9a
mov eax, 5
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004fdb0
mov eax, 6
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 2
je 0x1004fdba
cmp eax, 3
jne 0x1004fdcb
mov eax, 7
mov dword [0x1011050c], eax
add esp, 0x114
ret
mov eax, 0x14
mov dword [0x1011050c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004fdfb
cmp dword [esp + 4], 4
jne 0x1004fdcb
cmp dword [esp + 8], 0
jne 0x1004fdcb
mov dword [0x1011050c], eax
add esp, 0x114
ret
mov eax, dword [0x1011050c]
add esp, 0x114
ret

Function at 0x100527d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, ecx
cmp edx, 9
jne 0x1005284a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
mov ecx, dword [edi + 4]
call fcn.10052460
test eax, eax
jne 0x10052846
push ebx
mov ebx, dword [edi + 4]
push esi
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x1005283b
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne 0x10052834
mov eax, dword [esi]
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
mov ecx, esi
push 0
call dword [eax + 0x5c]
test byte [esi + 0x18], 0x80
je 0x10052834
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10052834
mov ecx, dword [ecx]
lea eax, [esi + 4]
push 0
push eax
call fcn.10057720
mov dword [ebx + 0x5c], 0
push ecx
mov ecx, dword [edi + 4]
call fcn.10052460
pop esi
pop ebx
pop edi
ret 8
mov ecx, dword [edi + 4]
pop edi
mov dword [esp + 4], edx
mov eax, dword [ecx]
jmp dword [eax + 0x34]

Function at 0x10056860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push dword [0x1010fda8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100568aa
push 8
call fcn.1008ad77
mov dword [esp + 4], eax
add esp, 4
mov dword [esp], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp]
push eax
call fcn.10056de0
push dword [esp]
push dword [0x1010fda8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp]
pop ecx
ret
Function at 0x10059bc0
Capabilities:
Set global application hook

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10059c03
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x10059c7c
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10059c7c
push 0x50
push ecx
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret 0x10
cmp dword [0x1010fc7c], 0
jne 0x10059c7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x10059c31
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10059c31
push 0x50
push eax
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
jmp 0x10059c3b
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
mov ecx, esi
call fcn.10057720
cmp dword [esi + 0x88], 0
mov dword [0x1010fc7c], esi
jne 0x10059c7c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10059b30
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
ret 0x10

Function at 0x1005a400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x14], 1
jb 0x1005a4f1
mov ecx, dword [esi]
test ecx, ecx
je 0x1005a41f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov ecx, dword [0x10110534]
test ecx, ecx
jne 0x1005a438
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [0x10110534], ecx
movzx eax, word [esp + 0xc]
push ebp
push str.IMAGE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x1005a457
pop ebp
pop edi
pop esi
ret 0xc
push ebx
push ebp
push dword [0x10110534]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1005a47b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1005a49c
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
push ebp
push dword [0x10110534]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1005a250
mov dword [esi], eax
test eax, eax
je 0x1005a4e1
mov ecx, eax
call fcn.1004fbf0
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.1004fc20
mov dword [esi + 0x14], eax
mov edi, 1
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1005be30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c1ee8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push str.QQPCDownload.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100f7d24
mov edi, eax
push 0x100f4524
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1005be89
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005be74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1005be74
push ebx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0xc], eax
test eax, eax
je 0x1005be74
xorps xmm0, xmm0
mov dword [ebp - 0x20], vtable.minilib::CMemFile.0
movups xmmword [ebp - 0x1c], xmm0
push eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [esi + 8]
call fcn.1005d180
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.1005bc10
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esi + 0x14], 1
call fcn.1005d0b0
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005ccb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x1005ccc7
xor eax, eax
pop ebx
add esp, 0x40
ret
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x1005ccdb
pop edi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0x58]
push 0
movups xmmword [esp + 0x28], xmm0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x30]
movq qword [esp + 0x54], xmm0
push eax
push edi
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], 0x200001
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005cd4e
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
push esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x60]
mov esi, ebp
imul esi, edx
mov dword [esp + 0x1c], eax
sub esi, 1
mov ecx, esi
js 0x1005cd80
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x1000001
sub ecx, 1
jns 0x1005cd70
push 3
push 0
push 0
push edx
push ebp
push ebx
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
test esi, esi
js 0x1005cdd7
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
cmp ecx, 0x1000001
jne 0x1005cdb8
mov dword [eax + esi*4], 0
jmp 0x1005cdd2
cmp ecx, 1
jne 0x1005cdc6
mov dword [eax + esi*4], 0
jmp 0x1005cdd2
cmp byte [eax + esi*4 + 3], 0
jne 0x1005cdd2
mov byte [eax + esi*4 + 3], 0xff
sub esi, 1
jns 0x1005cda0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 0x1ff0000
push dword [esp + 0x10]
push eax
push ebp
push 0
push 0
push edi
push eax
push ebp
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x40]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [esp + 0x1c]
mov esi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x40
ret
Function at 0x1006a2e8
Capabilities:
Check if file exists
Create directory
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x21c
mov eax, 0x100c2384
call fcn.1008b701
mov dword [ebp - 0x228], 0x101109e4
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [0x101109e4], 0x100f821c
mov dword [0x10110a04], 7
mov dword [0x10110a00], esi
mov word [0x101109f0], ax
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
inc ebx
mov byte [ebp - 4], bl
push esi
push eax
mov dword [0x101109e8], esi
mov dword [0x101109ec], esi
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x21c], esi
push 4
pop eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.EnableLogToView
push str.SOFTWARETencentQMDownload
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1006a3a5
mov eax, dword [0x101109e8]
cmp dword [ebp - 0x21c], ebx
cmove eax, ebx
mov dword [0x101109e8], eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_TencentQMDownload_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1006a3e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006a3e0
push esi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x218]
push eax
call fcn.10001a38
pop ecx
push eax
lea eax, [ebp - 0x218]
mov edi, 0x101109f0
push eax
mov ecx, edi
call fcn.10001dcf
mov esi, str.DownloadErrLogFile.log
push esi
call fcn.10001a38
pop ecx
push eax
push esi
mov ecx, edi
call fcn.100056fa
mov eax, 0x101109e4
call fcn.1008b6ab
ret
Function at 0x1006a455
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.1008df10
add esp, 0xc
cmp dword [esi + 8], ebx
jne 0x1006a4bf
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1006a497
mov eax, dword [eax]
push ebx
push 0x20
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
test eax, eax
je 0x1006a5a8
cmp eax, 0xffffffff
je 0x1006a5a8
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1006a5a8
cmp eax, 0x100000
ja 0x1006a5a8
cmp dword [esi + 4], ebx
jne 0x1006a538
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x806]
push edi
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__5u___02u:_02u:_02u._03u_:__s
push 0x7fd
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.1006a2b7
add esp, 0x28
jmp 0x1006a55f
push 0x7fd
push edi
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.100a0101
lea eax, [ebp - 0x804]
push eax
call fcn.100a0110
add esp, 0x14
cmp eax, 3
jle 0x1006a5a8
mov word [ebp + eax - 0x804], 0xa0d
add eax, 2
mov dword [ebp - 0x818], ebx
cmp eax, edi
jae 0x1006a5bb
mov byte [ebp + eax - 0x804], bl
lea eax, [ebp - 0x818]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100a0110
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
call fcn.1008aed6
int3