joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6260
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523dc8
push 0x4d9f74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004d8010
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6410
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4c6451
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4c64be
cmp dword [esp + 0x1c], 2
jne 0x4c64be
cmp dword [esp + 0x10], 5
jne 0x4c64be
cmp dword [esp + 0x14], 1
jne 0x4c64be
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c64a8
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c6499
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4c64a1
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4c64be
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x4eb128
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f6091
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4eb159
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004eb16c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4ec785
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ec7bd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ea750
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ea728
jmp 0x4ec7c9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ee14a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ee18c
call fcn.004f6091
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ee18c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ee183
xor eax, eax
jmp 0x4ee194
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ee19a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f65c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f65ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f660d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f6527
jmp 0x4f660d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f660d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f6527
test edi, edi
mov eax, edi
jne 0x4f65f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4f942c
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4f9454
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4f9465
push 2
call edi
test ax, ax
jge 0x4f9465
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004ebdba
cmp dword [esi + 0x30], ebx
jne 0x4f953f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004ebdba
cmp eax, dword [esp + 0x34]
jne 0x4f953f
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4f94db
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4f9520
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4f953f
cmp eax, 0x205
je 0x4f953f
cmp eax, 0x201
je 0x4f953f
cmp eax, 0x204
je 0x4f953f
cmp eax, ebx
jne 0x4f9506
cmp dword [esp + 0x1c], 0x1b
je 0x4f953f
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5b0804]
jbe 0x4f9535
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4f9498
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40102c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x40316c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x30], 0x43
mov byte [ebp - 0x2f], 0x33
mov byte [ebp - 0x2e], 0x34
mov byte [ebp - 0x2d], 0x39
mov byte [ebp - 0x2c], 0x37
mov byte [ebp - 0x2b], 0x43
mov byte [ebp - 0x2a], 0x36
mov byte [ebp - 0x29], 0x31
mov byte [ebp - 0x28], 0x2d
mov byte [ebp - 0x27], 0x42
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x35
mov byte [ebp - 0x24], 0x39
mov byte [ebp - 0x23], 0x2d
mov byte [ebp - 0x22], 0x34
mov byte [ebp - 0x21], 0x62
mov byte [ebp - 0x20], 0x38
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x2d
mov byte [ebp - 0x1d], 0x38
mov byte [ebp - 0x1c], 0x44
mov byte [ebp - 0x1b], 0x37
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x2d
mov byte [ebp - 0x18], 0x45
mov byte [ebp - 0x17], 0x44
mov byte [ebp - 0x16], 0x46
mov byte [ebp - 0x15], 0x37
mov byte [ebp - 0x14], 0x37
mov byte [ebp - 0x13], 0x32
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x33
mov byte [ebp - 0xe], 0x37
mov byte [ebp - 0xd], 0x46
mov byte [ebp - 0xc], 0
mov dword [ebp - 8], 0x10c24
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x1c4], 0
je 0x40323f
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x1c8], 0
je 0x40323f
mov dword [ebp - 4], 1
jmp 0x4032bc
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x1c4], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x1c4], 0
jne 0x40326c
jmp 0x4032ba
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c8], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x1c8], 0
jne 0x40329b
jmp 0x4032b8
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x1c8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x4032be
jmp 0x4032b3
jmp 0x4032b3
jmp 0x4032b3
mov esp, ebp
pop ebp
ret
Function at 0x40577c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
mov dword [ebp - 0x38], ecx
mov eax, dword [str.TENINSTIP]
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x44a1b4]
mov dword [ebp - 0x28], ecx
mov dx, word [0x44a1b8]
mov word [ebp - 0x24], dx
mov byte [ebp - 0x20], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
push str.Global_s__X__d
push 0x1f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea ecx, [ebp - 0x20]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4057fc
jmp 0x405856
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x405819
jmp 0x405854
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x40583d
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x30], 0
je 0x40584d
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x405858
jmp 0x40582d
jmp 0x40582d
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40585f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push edi
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov ecx, 0x8a
xor eax, eax
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4058bc
xor eax, eax
jmp 0x405962
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x405952
push 0x44a1cc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x405930
push 0x44a1e4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x405930
push str.Launcher.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40593a
mov dword [ebp - 0x238], 1
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x234], eax
jmp 0x4058dc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405bfa
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push edi
mov dword [ebp - 0xa64], ecx
mov ax, word [0x454c04]
mov word [ebp - 0x414], ax
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0x640], 0
mov ecx, 0x8a
xor eax, eax
lea edi, [ebp - 0x63c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x648], 0
push 0x208
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x405c81
xor eax, eax
jmp 0x405de7
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405c9a
xor eax, eax
jmp 0x405de7
mov dword [ebp - 0x640], 0x22c
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
je 0x405dd7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x638], eax
je 0x405dbc
push str.TenSafe.exe
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405dbc
mov dx, word [0x454c08]
mov word [ebp - 0xa5c], dx
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xa5a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x638]
push eax
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x405dbc
push 0x208
lea ecx, [ebp - 0xa5c]
push ecx
push 0
mov edx, dword [ebp - 0x64c]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x405daf
push 0x208
lea eax, [ebp - 0xa5c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405daf
push 0
mov edx, dword [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x405daf
mov dword [ebp - 0x648], 1
push 0xbb8
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xa60], eax
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x644], eax
jmp 0x405cba
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x648]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405f0d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jbe 0x405f85
mov edx, dword [ebp - 0x118]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x406081
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406081
mov word [ebp - 0x11c], 0x409
mov word [ebp - 0x11a], 0x4b0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 4]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405ff9
cmp dword [ebp - 0x120], 4
jb 0x405ff9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11a]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x11c]
and eax, 0xffff
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x103
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
push 0x2c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x406081
mov ecx, dword [ebp - 0x124]
add ecx, 1
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x110], 0
je 0x4060af
mov edx, dword [ebp - 0x118]
push edx
push 0
mov eax, dword [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x114]
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4065f9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x446fb0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], 0x446f98
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c0], 1
mov ecx, dword [ebp - 0x10]
call fcn.00406573
push 0x64
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40666c
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1b8], 0
je 0x406695
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1b8], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x198
call fcn.00406e30
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.00406da0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00406da0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x10c
call fcn.00406da0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xec
call fcn.00406da0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.00406da0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0xac
call fcn.00406da0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.00437f4c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x8c
call fcn.00437f4c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x88
call fcn.00437f4c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00437f46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406766
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
push edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x130], 1
mov ecx, 6
mov esi, str..TenProtectBugTrace.dll
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 7
mov esi, str..TenProtectBugTrace__d.dll
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x10c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x150]
push edx
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4067cf
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 0x130]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf45
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push edi
mov byte [ebp - 0xa28], 0
mov ecx, 0x289
xor eax, eax
lea edi, [ebp - 0xa27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp + 8], 0
jne 0x40cf70
jmp 0x40cfb0
lea eax, [ebp + 0xc]
mov dword [ebp - 0xa2c], eax
mov ecx, dword [ebp - 0xa2c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0xa27
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea ecx, [ebp - 0xa28]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0xa2c], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x417900
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x454d24]
test eax, eax
je 0x417912
mov eax, dword [0x454d34]
test eax, eax
jne 0x41791f
call fcn.00417980
test eax, eax
je 0x41791f
or eax, 0xffffffff
ret
mov eax, dword [0x44b564]
cmp eax, 0xffffffff
jne 0x417945
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x44b564], eax
jne 0x417945
mov eax, 0xfffffffe
ret
mov cl, byte [esp + 0xc]
test cl, cl
mov ecx, 0x454d20
jne 0x417957
mov ecx, 0x454d30
mov edx, dword [esp + 4]
push 0x10
push ecx
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x41797d
call fcn.00417a70
mov eax, 0xfffffffd
ret
xor eax, eax
ret

Function at 0x417980
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4179a4
or eax, 0xffffffff
add esp, 0x190
ret
mov ecx, dword [str.tss_qos_stat.gamesafe.qq.com]
push 0x454d20
push ecx
call fcn.004179f0
add esp, 8
test eax, eax
je 0x4179c8
mov eax, 0xfffffffe
add esp, 0x190
ret
mov edx, dword [str.tss_qos_alarm.gamesafe.qq.com]
push 0x454d30
push edx
call fcn.004179f0
add esp, 8
neg eax
sbb eax, eax
and al, 0xfd
add esp, 0x190
ret

Function at 0x4179f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x417a09
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [eax], 0
je 0x417a22
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x417a13
test esi, esi
jne 0x417a2a
pop edi
mov eax, 0xfffffffe
pop esi
ret
push 0
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
mov ecx, dword [edi + 0xc]
div esi
mov esi, dword [esp + 0x14]
add esp, 4
push 0x1f90
mov edx, dword [ecx + edx*4]
mov eax, dword [edx]
mov word [esi], 2
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
pop edi
xor eax, eax
pop esi
ret

Function at 0x418350
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push esi
push 0x418740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop esi
test eax, eax
jne 0x41838a
push str.m_MainCtrl_CreateThread_failed
push eax
push 0x3f7
push 0x3f3
call fcn.00417b30
add esp, 0x10
or eax, 0xffffffff
ret
xor eax, eax
ret