joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037ac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101130f0]
test eax, eax
jne 0x10037c50
push 0x114
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x10037c21
call fcn.10037a40
test eax, eax
je 0x10037b3c
mov eax, 9
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x10037ba3
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10037b69
mov eax, 2
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10037b86
mov eax, 3
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10037c09
mov eax, 4
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10037c09
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10037bca
mov eax, 5
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10037be7
mov eax, 6
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x10037bf1
cmp eax, 3
jne 0x10037c09
mov eax, 7
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
mov eax, 0x14
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10037c4b
cmp dword [ebp - 0x114], 4
jne 0x10037c09
cmp dword [ebp - 0x110], 0
jne 0x10037c09
mov dword [0x101130f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101130f0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x1003b3af
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bdde8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1010e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.qmbase::MessageLoop.0
xor edi, edi
mov ecx, esi
call fcn.1003b4d4
mov ecx, esi
call fcn.1003b819
mov ecx, esi
call fcn.1003b4d4
test al, al
je 0x1003b3fc
inc edi
cmp edi, 0x64
jl 0x1003b3dd
mov ecx, esi
call fcn.1003b4a1
call fcn.1003b1cc
cmp dword [eax + 4], 0xffffffff
je 0x1003b419
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.1003b1cc
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003b453
test edi, edi
je 0x1003b44c
cmp dword [edi + 4], 0xffffffff
je 0x1003b442
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [edi + 4], 0xffffffff
push 8
push edi
call fcn.1008bb58
pop ecx
pop ecx
and dword [0x10112c14], 0
lea ecx, [esi + 0x70]
call fcn.1003c2f3
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x1003b46e
add ecx, 4
call fcn.10008132
lea ecx, [esi + 0x44]
call fcn.1003c23b
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x18]
call fcn.1003c2f3
lea ecx, [esi + 4]
call fcn.1003c2f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003be68
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
mov dword [esi], vtable.qmbase::MessageLoopForIO.0
test eax, eax
je 0x1003be89
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x88], 0
lea ecx, [esi + 0x94]
call fcn.1003c0c8
lea ecx, [esi + 0x8c]
call fcn.1003c105
mov ecx, esi
pop esi
jmp fcn.1003b3af
Function at 0x1003c8f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp + 8]
mov dword [edi + 0x38], eax
test esi, esi
je 0x1003c916
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi], ecx
push ebx
lea ebx, [edi + 0x10]
test ebx, ebx
je 0x1003c93b
xor eax, eax
push eax
push eax
push edi
push 0x1003c764
push eax
push eax
call fcn.100974fc
add esp, 0x18
mov dword [ebx], eax
test eax, eax
setne al
jmp 0x1003c93d
xor al, al
pop ebx
test al, al
jne 0x1003c971
test esi, esi
je 0x1003c960
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
call fcn.100968c8
mov eax, dword [eax]
mov dword [esi + 0x10], eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x38], 0
xor al, al
jmp 0x1003c9a8
test esi, esi
je 0x1003c979
and dword [esi + 4], 0
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x1003c992
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], ecx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x38], 0
mov al, 1
mov dword [edi + 4], 1
pop edi
pop esi
pop ebp
ret 4

Function at 0x10041370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010e070]
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 dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
nop dword [eax]
lea eax, [edi + 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 0x100413b0
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
nop
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x100413d0
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.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10041440
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010e070]
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 0x10041480
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 0x100414a4
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.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x10041c50
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 0x10041c9f
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 0x10041e80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
call fcn.10041e60
mov ecx, esi
call fcn.10041fd0
test al, al
je 0x10041f08
call fcn.10041c50
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10041efb
mov ecx, eax
call fcn.10041c20
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.10041c00
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 0x10041eea
cmp eax, 0xffffffff
jne 0x10041efb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10041efb
push 1
mov ecx, esi
call fcn.10041ff0
test al, al
je 0x10041efb
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
jne 0x10041f08
mov ecx, esi
call fcn.10041e60
mov ecx, dword [ebp - 8]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10041ff0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x100420a9
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x10042021
add esi, esi
test esi, esi
jle 0x100420a9
mov edx, dword [sym.imp.WS2_32.dll_select]
nop
mov ecx, edi
call fcn.10041fd0
test al, al
je 0x100420a9
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 0x1004208f
push ecx
push 0
jmp 0x10042092
push 0
push ecx
push eax
call edx
test eax, eax
jg 0x100420be
mov edx, dword [sym.imp.WS2_32.dll_select]
sub esi, 0xc350
test esi, esi
jg 0x10042030
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1008bb47
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.1008bb47
mov esp, ebp
pop ebp
ret 4
Function at 0x10043930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1010e070]
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 0x10043951
mov ecx, dword [esi]
jmp 0x10043953
mov ecx, esi
call fcn.100438a0
test eax, eax
je 0x100439f1
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x100439f1
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.10046f50
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.10044780
add esp, 4
mov ecx, eax
call fcn.100447b0
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10041cb0
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x10043a33
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x1000
jb 0x100439e6
test cl, 0x1f
jne 0x10043a48
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10043a4d
sub ecx, eax
cmp ecx, 4
jb 0x10043a52
cmp ecx, 0x23
ja 0x10043a57
mov ecx, eax
push ecx
call fcn.1008bb42
add esp, 4
jmp 0x10043a33
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.10046f70
push eax
push ecx
push esi
lea ecx, [edi + 0x2c]
call fcn.10044780
add esp, 4
mov ecx, eax
call fcn.100447b0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
call fcn.10091aa1
call fcn.10091aa1
call fcn.10091aa1
call fcn.10091aa1
int3
Function at 0x10044d30
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 0x10045770
push 0
push 0
mov dword [esi + 0xc], 0
call fcn.100974fc
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x10044d7c
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 0x1004cd9b
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1010e070]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x1004ce05
test edx, edx
jle 0x1004ce05
test esi, esi
je 0x1004ce05
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.1004d077
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.1004d131
mov al, 1
jmp 0x1004ce07
xor al, al
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2d76
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.1008cee0
mov eax, dword [0x1010e070]
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.10009015
mov esi, dword [ebp - 0x2184]
test eax, eax
js 0x1004d04e
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 0x1004cf98
call fcn.10011411
cmp dword [ebp - 0x217c], 0
je 0x1004cfbb
push dword [ebp - 0x217c]
lea edx, [ebp - 0x2120]
lea ecx, [ebp - 0x2178]
call fcn.1004d077
pop ecx
jmp 0x1004cf6e
test esi, esi
je 0x1004cfce
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.1004d131
push 0x100
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.1008f060
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.10001eb4
add esp, 0x14
add esi, 4
inc edi
cmp edi, 0x10
jb 0x1004cff9
mov esi, dword [ebp - 0x2184]
lea edx, [ebp - 0x120]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1004d029
mov ecx, dword [ebp - 0x2188]
lea eax, [ebp - 0x120]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.10005c3c
xor ebx, ebx
inc ebx
test esi, esi
je 0x1004d059
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.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10050d40
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x1011350c]
sub esp, 0x114
test eax, eax
jne 0x10050e70
push 0x114
push eax
lea eax, [esp + 8]
push eax
call fcn.1008f060
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 0x10050e4c
call fcn.10050cc0
test eax, eax
je 0x10050d9e
mov eax, 9
mov dword [0x1011350c], eax
add esp, 0x114
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x10050dec
mov eax, dword [esp + 8]
test eax, eax
jne 0x10050dc0
mov eax, 2
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x10050dd6
mov eax, 3
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 2
jne 0x10050e3b
mov eax, 4
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 6
jne 0x10050e3b
mov eax, dword [esp + 8]
test eax, eax
jne 0x10050e0a
mov eax, 5
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x10050e20
mov eax, 6
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 2
je 0x10050e2a
cmp eax, 3
jne 0x10050e3b
mov eax, 7
mov dword [0x1011350c], eax
add esp, 0x114
ret
mov eax, 0x14
mov dword [0x1011350c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x10050e6b
cmp dword [esp + 4], 4
jne 0x10050e3b
cmp dword [esp + 8], 0
jne 0x10050e3b
mov dword [0x1011350c], eax
add esp, 0x114
ret
mov eax, dword [0x1011350c]
add esp, 0x114
ret

Function at 0x10053920
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, ecx
cmp edx, 9
jne 0x1005399a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
mov ecx, dword [edi + 4]
call fcn.100535b0
test eax, eax
jne 0x10053996
push ebx
mov ebx, dword [edi + 4]
push esi
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x1005398b
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne 0x10053984
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 0x10053984
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10053984
mov ecx, dword [ecx]
lea eax, [esi + 4]
push 0
push eax
call fcn.10058880
mov dword [ebx + 0x5c], 0
push ecx
mov ecx, dword [edi + 4]
call fcn.100535b0
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 0x100579b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push dword [0x10112da8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100579fa
push 8
call fcn.1008bec7
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.10057f30
push dword [esp]
push dword [0x10112da8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp]
pop ecx
ret
Function at 0x1005ad10
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 0x1005ad53
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1005adcc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x1005adcc
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 [0x10112c7c], 0
jne 0x1005adcc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1005ad81
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x1005ad81
push 0x50
push eax
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
jmp 0x1005ad8b
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.10058880
cmp dword [esi + 0x88], 0
mov dword [0x10112c7c], esi
jne 0x1005adcc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x1005ac80
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
ret 0x10

Function at 0x1005b550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x14], 1
jb 0x1005b641
mov ecx, dword [esi]
test ecx, ecx
je 0x1005b56f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov ecx, dword [0x10113534]
test ecx, ecx
jne 0x1005b588
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [0x10113534], 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 0x1005b5a7
pop ebp
pop edi
pop esi
ret 0xc
push ebx
push ebp
push dword [0x10113534]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1005b5cb
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 0x1005b5ec
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 [0x10113534]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1005b3a0
mov dword [esi], eax
test eax, eax
je 0x1005b631
mov ecx, eax
call fcn.10050c60
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.10050c90
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 0x1005cf70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c3248
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 0x100fa034
mov edi, eax
push 0x100f65fc
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1005cfc9
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 0x1005cfb4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1005cfb4
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 0x1005cfb4
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.1005e2c0
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.1005cd50
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.1005e1f0
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