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

Disassembly:
sub esp, 0xc
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [esp], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
push ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
xor edx, edx
push edi
cmp edx, dword [esp + 0x1c]
jae 0x4230d7
mov eax, edx
or eax, 8
xor edi, edi
cmp eax, 1
je 0x422fea
lea ebx, [ebx]
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 4]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x422fc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [ecx + edx*4], edi
add edx, 1
cmp edx, 8
jb 0x422fa4
cmp edx, 0x10
jae 0x423071
lea eax, [edx - 8]
mov dword [esp + 8], eax
jmp 0x423010
cmp edx, dword [esp + 0x1c]
jae 0x4230d7
or eax, 8
xor edi, edi
cmp eax, 1
je 0x423051
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 0x104]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x423024
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
add edx, 1
add eax, 1
cmp edx, 0x10
mov dword [esp + 8], eax
jb 0x423010
cmp edx, dword [esp + 0x1c]
jae 0x4230d7
lea eax, [edx - 0x10]
mov dword [esp + 8], eax
mov edi, edi
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x4230b6
lea esp, [esp]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x423090
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
add edx, 1
add eax, 1
cmp edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
jb 0x423080
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x424c20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea eax, [edi + 0x32550]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jmp 0x424c40
xor edx, edx
mov ecx, 1
mov dword [esp + 0xc], 4
nop
movzx ebx, word [edi + ecx*2 + 0x32bf4]
mov eax, esi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [edi + ebx*4 + 0x30ea0]
add ecx, ecx
shr esi, 1
or ecx, eax
sub dword [esp + 0xc], 1
jne 0x424c50
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esi, 1
mov dword [eax], edx
add eax, 4
cmp esi, 0x10
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jb 0x424c40
pop esi
pop ebp
mov dword [edi + 0x32590], 0
pop ebx
add esp, 0xc
ret

Function at 0x424cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x210
push ebx
push ebp
push edi
mov edi, 4
lea ebp, [esi + 0x30ea0]
movzx ebx, byte [esi + edi + 0x306a0]
mov ecx, ebx
mov edx, ebx
and edx, 1
shr ecx, 1
or edx, 2
sub ecx, 1
shl edx, cl
mov eax, edi
push ebp
sub eax, edx
sub edx, ebx
lea edx, [esi + edx*2 + 0x32b0e]
push edx
call fcn.00422dd0
mov dword [esp + edi*4 + 0x24], eax
add edi, 1
add esp, 8
cmp edi, 0x80
jb 0x424cc4
lea ebp, [esp + 0x1c]
sub ebp, esi
lea eax, [esi + 0x32910]
lea ecx, [esi + 0x31d58]
sub ebp, 0x31d50
lea edi, [esi + 0x31950]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 4
jmp 0x424d44
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x32594], ebx
jbe 0x424da1
mov edi, edi
mov eax, ebx
or eax, 0x40
xor edx, edx
cmp eax, 1
je 0x424d93
lea esp, [esp]
mov ebp, dword [esp + 0x10]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebp + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edx, dword [esi + ebp*4 + 0x30ea0]
mov eax, ecx
cmp eax, 1
jne 0x424d60
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + ebx*4], edx
add ebx, 1
cmp ebx, dword [esi + 0x32594]
jb 0x424d50
mov eax, 0xe
cmp dword [esi + 0x32594], eax
jbe 0x424dc8
mov edi, edi
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [edi + eax*4], edx
add eax, 1
cmp eax, dword [esi + 0x32594]
jb 0x424db0
mov eax, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi + 4]
mov dword [ecx - 4], edx
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov edx, dword [edi + 0xc]
mov dword [ecx + 4], edx
mov eax, 4
add ecx, 8
jmp 0x424df0
movzx edx, byte [esi + eax + 0x306a0]
mov edx, dword [edi + edx*4]
add edx, dword [ecx + ebp]
add eax, 1
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
jb 0x424df0
add dword [esp + 0x10], 0x80
add dword [esp + 0xc], 0x200
sub ebp, 0x200
add edi, 0x100
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebp
jne 0x424d40
pop edi
pop ebp
mov dword [esi + 0x3bcf8], 0
pop ebx
add esp, 0x210
ret

Function at 0x4266e0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0044ab3d
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x426703
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426712
mov eax, 1
pop ecx
ret
Function at 0x4290c1
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4290ea
call fcn.0042e241
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42910d
push eax
push dword [esi + 4]
call fcn.0042904c
push esi
push eax
mov ecx, 0x47f01c
call fcn.00428ce5
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x429a10
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x460750
call fcn.0044b5ef
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004299d2
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004019e0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x429a76
push eax
push dword [esi + 8]
call fcn.0042904c
push dword [esi + 0xc]
mov ecx, 0x47f01c
push eax
call fcn.00428ce5
mov eax, esi
call fcn.0044b6c7
ret 0x18

Function at 0x42c4ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42c510
call fcn.0042e241
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42c510
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x42c553
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42c53c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42c53c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42c550
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43375e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x433797
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004268be
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403860
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x43526f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4352b2
call fcn.0042e241
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4352b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4352cd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00434e29
test ebx, ebx
mov esi, eax
je 0x4352cb
test edi, edi
je 0x4352cb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x435a3f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x460ea3
call fcn.0044b5ef
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x435a64
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x435ab0
call fcn.004268df
push eax
lea ecx, [ebp - 0x10]
call fcn.00401a10
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426c7b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401980
mov eax, esi
call fcn.0044b6c7
ret 8

Function at 0x43a7bf
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x43a7c8
xor eax, eax
jmp 0x43a831
cmp dword [esp + 8], 0
jne 0x43a7d4
call fcn.00426ed7
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044aea6
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43a80f
push dword [esi + 0x10]
call fcn.0044abeb
test eax, eax
pop ecx
jne 0x43a80f
mov esi, dword [esi + 0xc]
call fcn.0044b8c6
push esi
push dword [eax]
push 1
call fcn.0043c635
push dword [esi + 0x10]
call fcn.0044ac1a
test eax, eax
pop ecx
je 0x43a82e
push dword [esi + 0x10]
call fcn.0044ecf4
push eax
call fcn.00401da0
pop ecx
pop ecx
jmp 0x43a7fd
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x43a83a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x43a844
call fcn.00426ed7
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0044eeba
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x43a871
mov esi, dword [esi + 0xc]
call fcn.0044b8c6
push esi
push dword [eax]
push 1
call fcn.0043c635
pop esi
ret 8

Function at 0x448969
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47dac0]
jne 0x448973
repz ret
jmp fcn.00450ae1
Function at 0x45a8b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045042b
xor ebx, ebx
cmp dword [0x481b24], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45a98b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45a8f6
xor eax, eax
jmp 0x45aa4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45a8ef
push eax
call fcn.004503c8
mov dword [esp], 0x469f78
push edi
mov dword [0x481b24], eax
call esi
push eax
call fcn.004503c8
mov dword [esp], 0x469f64
push edi
mov dword [0x481b28], eax
call esi
push eax
call fcn.004503c8
mov dword [0x481b2c], eax
lea eax, [ebp - 8]
push eax
call fcn.0044debc
test eax, eax
pop ecx
pop ecx
je 0x45a959
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448b93
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45a98b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004503c8
cmp eax, ebx
pop ecx
mov dword [0x481b34], eax
je 0x45a98b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004503c8
pop ecx
mov dword [0x481b30], eax
mov eax, dword [0x481b30]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45aa04
cmp dword [0x481b34], esi
je 0x45aa04
push eax
call fcn.00450434
pop ecx
call eax
cmp eax, ebx
je 0x45a9d1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x481b34]
call fcn.00450434
pop ecx
call eax
test eax, eax
je 0x45a9d1
test byte [ebp - 0x18], 1
jne 0x45aa04
lea eax, [ebp - 0xc]
push eax
call fcn.0044def3
test eax, eax
pop ecx
je 0x45a9ec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448b93
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45a9fb
or dword [ebp + 0x10], 0x200000
jmp 0x45aa35
or dword [ebp + 0x10], 0x40000
jmp 0x45aa35
mov eax, dword [0x481b28]
cmp eax, esi
je 0x45aa35
push eax
call fcn.00450434
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45aa35
mov eax, dword [0x481b2c]
cmp eax, esi
je 0x45aa35
push dword [ebp - 4]
push eax
call fcn.00450434
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x481b24]
call fcn.00450434
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ff0a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47dac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045fe9f
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.0044bb00
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 0x45ff59
cmp dword [ebp - 0x1c], 5
jb 0x45ff71
jmp 0x45ff6d
cmp dword [ebp - 0x10], 1
jne 0x45ff71
cmp dword [ebp - 0x1c], 4
ja 0x45ff6d
jne 0x45ff71
cmp dword [ebp - 0x18], 0
jbe 0x45ff71
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46b978
call fcn.0045fd73
test eax, eax
jge 0x45ff92
mov byte [0x481d38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448969
add ebp, 0x78
leave
ret
Function at 0x4011d6
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x402fac
call fcn.00402d80
sub esp, 0xc
push str.Tenio_Initialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 8], 0
je 0x401224
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x401224
lea ecx, [ebp - 0x18]
call fcn.00401614
mov ecx, dword [ebp - 0x14]
push dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401657
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x401232
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
mov eax, 0x402fc0
call fcn.00402d80
sub esp, 0x230
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.00401614
xor esi, esi
push esi
push 8
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401312
cmp dword [ebp - 0x14], esi
je 0x401312
push edi
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x224
push eax
push ebx
call sub.KERNEL32.dll_Module32First
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
je 0x4012c3
push str.TenioDllFreeMap
push dword [ebp - 0x220]
call esi
test eax, eax
je 0x4012b2
call eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x40129f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40130b
push str.TenioSetDllSafe
push dword [ebp - 0x220]
call esi
test eax, eax
je 0x4012fc
push 0
call eax
pop ecx
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
jmp 0x4012e2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tenio_Uninitialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401657
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401337
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and dword [ebp - 0x12c], 0
push esi
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x128]
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4013ec
lea eax, [ebp - 0x108]
push str.QQGameDl.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4013bc
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401391
jmp 0x4013ec
push dword [ebp - 0x124]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4013ec
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4013e9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret 4

Function at 0x401428
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x402fd4
call fcn.00402d80
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.00402d0d
push eax
push 1
push str.CatchException
push str.QQGame
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 4], eax
je 0x4014be
call fcn.004022cc
mov edi, eax
mov ecx, edi
call fcn.0040210f
test al, al
je 0x4014be
lea eax, [ebp - 0x20]
push str.HelpDll.dll
push eax
mov ecx, edi
call fcn.00402145
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402138
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4014b2
push str.QQExceptionFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014b2
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [esi + 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402106
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40178f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
and byte [ebp - 0x400], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0xc]
push 0x3ff
push 0x400
push eax
call dword [0x405010]
add esp, 0x14
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret
Function at 0x4017e3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x503]
mov byte [ebp - 0x504], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x504]
push 0x400
push eax
push ebx
push 0x40523c
push 0x405238
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push 0x104
push eax
lea eax, [ebp - 0x504]
push eax
mov ecx, esi
call fcn.00401cf7
lea eax, [ebp - 0x104]
test eax, eax
je 0x4018b7
lea eax, [ebp - 0x104]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401883
cmp byte [ebp - 0x104], 0x5c
jne 0x4018b7
cmp dword [ebp + 0xc], ebx
je 0x4018ce
cmp dword [ebp + 0x10], ebx
jle 0x4018ce
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x10]
pop ecx
jae 0x4018ce
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x40501c]
add esp, 0xc
jmp 0x4018ce
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0040198c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40198c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and byte [ebp - 0x10], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0xf]
and byte [ebp - 0x618], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
push dword [ebp + 8]
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x617]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x618]
push 0x400
push eax
push 0x40527c
push str.NotUseDefaultDllPath
push 0x405238
call ebx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00401cf7
cmp byte [ebp - 0x10], 0x31
jne 0x401a19
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00401d8a
jmp 0x401aef
and byte [ebp - 0x218], 0
push esi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.DllPath
push str.DefaultValue
call ebx
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push dword [ebp + 0xc]
push eax
call fcn.00401c73
lea eax, [ebp - 0x114]
pop esi
test eax, eax
je 0x401aa9
lea eax, [ebp - 0x114]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401abb
cmp byte [ebp - 0x114], 0x5c
je 0x401abb
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push eax
jmp 0x401a09
cmp dword [ebp + 0x10], 0
je 0x401aef
cmp dword [ebp + 0x14], 0
jle 0x401aef
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x14]
pop ecx
jae 0x401aef
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [0x40501c]
add esp, 0xc
pop edi
pop ebx
leave
ret 0x10