joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5ef0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c600b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404cc4
mov dl, 1
mov eax, dword [0x436e38]
call fcn.00436fa4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c5fe9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00437080
xor ecx, ecx
mov edx, 0x4c6020
mov eax, dword [ebp - 4]
call fcn.004370e8
test al, al
je 0x4c5f80
lea ecx, [ebp - 0x2c]
mov edx, 0x4c6058
mov eax, dword [ebp - 4]
call fcn.004372d0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00409450
mov ecx, dword [ebp - 0x28]
mov eax, ebx
mov edx, 0x4c6074
call fcn.00404fd0
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
push dword [ebx]
push 0x4c6084
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fdiv dword [0x4c608c]
fdiv dword [0x4c608c]
fdiv dword [0x4c608c]
call fcn.00403108
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.004099c0
push dword [ebp - 0x30]
push 0x4c6098
mov eax, ebx
mov edx, 4
call fcn.00405044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5ff0
mov eax, dword [ebp - 4]
call fcn.00403e58
ret

Function at 0x4c6524
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, 0x4c6680
call fcn.00404d18
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4c6671
push 0xf01ff
mov eax, esi
call fcn.00405184
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4c6671
xor edx, edx
push ebp
push 0x4c664e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x4c65af
mov eax, ebx
mov edx, 0x4c6690
call fcn.00404d18
jmp 0x4c6632
cmp eax, 4
jne 0x4c65c2
mov eax, ebx
mov edx, 0x4c66a0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 2
jne 0x4c65d5
mov eax, ebx
mov edx, 0x4c66a0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 3
jne 0x4c65e8
mov eax, ebx
mov edx, 0x4c66b0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 7
jne 0x4c65fb
mov eax, ebx
mov edx, 0x4c66c0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 1
jne 0x4c660e
mov eax, ebx
mov edx, 0x4c66b0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 5
jne 0x4c6621
mov eax, ebx
mov edx, 0x4c66a0
call fcn.00404d18
jmp 0x4c6632
cmp eax, 6
jne 0x4c6632
mov eax, ebx
mov edx, 0x4c66a0
call fcn.00404d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c6671
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c66c8
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4c6776
push 0xf01ff
mov eax, ebx
call fcn.00405184
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4c6776
xor eax, eax
push ebp
push 0x4c6753
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c6776
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c696c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
push ebx
call sub.user32.dll_VkKeyScanA
movsx esi, ax
mov eax, ebx
add al, 0xbf
sub al, 0x1a
jae 0x4c69b4
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0
push 0
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x10
call sub.user32.dll_keybd_event
pop esi
pop ebx
ret
add bl, 0xe0
cmp bl, 0x5f
ja 0x4c69c6
and ebx, 0x7f
bt dword [0x4c6a18], ebx
jae 0x4c69fc
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0
push 0
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
mov eax, esi
push eax
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x10
call sub.user32.dll_keybd_event
jmp 0x4c6a14
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0
push 0
mov eax, esi
push eax
call sub.user32.dll_keybd_event
pop esi
pop ebx
ret
Function at 0x4c6f20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a334]
call fcn.004056e0
xor eax, eax
push ebp
push 0x4c7064
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fde9c], 0
jne 0x4c6f73
mov ecx, dword [0x4fe124]
mov dl, 1
mov eax, dword [0x408550]
call fcn.0040d7d0
call fcn.00404638
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403670
mov eax, ebx
call fcn.0040552c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4c7074
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004069d0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040553c
test eax, eax
jle 0x4c700b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4c7004
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404f4c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404f34
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004093e0
test eax, eax
jne 0x4c7004
mov ebx, 0x15
jmp 0x4c7010
mov ebx, 0x10
jmp 0x4c7010
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4fde9c]
call fcn.004c6e78
mov eax, dword [ebp - 8]
call fcn.004c6e78
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004069e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c706b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404ce8
lea eax, [ebp - 0x10]
mov edx, dword [0x41a334]
call fcn.004057b0
ret
Function at 0x4c7d64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c7e1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405184
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4c7da6
call fcn.004046e4
jmp 0x4c7e22
mov eax, ebx
call fcn.00402ba0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00405184
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4c7dcf
call fcn.004046e4
jmp 0x4c7e22
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c7e2c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4c7df0
call fcn.004046e4
jmp 0x4c7e22
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7e22
mov eax, dword [ebp - 8]
call fcn.00402bd0
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f149c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4f14b8
cmp dword [esi + 4], 0
je 0x4f14e5
test byte [ebx + 0x55], 1
jne 0x4f14d7
mov eax, ebx
call fcn.00455fb8
test eax, eax
jne 0x4f14d7
mov edx, esi
mov eax, ebx
call fcn.0045aff4
jmp 0x4f15d9
mov edx, esi
mov eax, ebx
call fcn.00456f3c
jmp 0x4f15d9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd4]
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f15d2
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004592c0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.00453b40
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004f149c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004592c0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f15d9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x4048b0
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 [0x44c190]
mov dword [ebp - 0x28], ecx
mov dx, word [0x44c194]
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 0x404930
jmp 0x40498a
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 0x40494d
jmp 0x404988
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 0x404971
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x30], 0
je 0x404981
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40498c
jmp 0x404961
jmp 0x404961
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404c35
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push edi
mov dword [ebp - 0xa64], ecx
mov ax, word [0x456d34]
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 0x404cbc
xor eax, eax
jmp 0x404e22
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404cd5
xor eax, eax
jmp 0x404e22
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 0x404e12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x638], eax
je 0x404df7
push str.TenSafe.exe
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x404df7
mov dx, word [0x456d38]
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 0x404df7
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 0x404dea
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 0x404dea
push 0
mov edx, dword [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x404dea
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 0x404cf5
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 0x404f48
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 0x404fc0
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 0x4050bc
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 0x4050bc
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 0x405034
cmp dword [ebp - 0x120], 4
jb 0x405034
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 0x4050bc
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 0x4050ea
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 0x40575d
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 0x4057c6
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 0x40bed5
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 0x40bf00
jmp 0x40bf40
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 0x4185d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push esi
push 0x4189c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop esi
test eax, eax
jne 0x41860a
push str.m_MainCtrl_CreateThread_failed
push eax
push 0x3f7
push 0x3f3
call fcn.00417db0
add esp, 0x10
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x418d70
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444d38
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov byte [esi + 5], 1
mov eax, dword [esi]
test eax, eax
jne 0x418da7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ebx
push edi
xor edi, edi
mov al, byte [esi + 4]
test al, al
je 0x418de0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jae 0x418dc9
push 0xa
call ebx
inc edi
mov al, byte [esi + 4]
test al, al
jne 0x418db8
mov al, byte [esi + 4]
test al, al
je 0x418de0
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x418ee1
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x10]
push ebp
push edi
mov dword [esp + 0x14], edi
call ebx
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x28]
push eax
mov dword [esp + 0x34], 0
mov edx, dword [eax]
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.00419160
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebp, [esi + 0x38]
push ebp
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
jbe 0x418ed9
lea eax, [esi + 0x54]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x28], ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x7c]
add esp, 4
add edx, 4
dec ecx
mov dword [esi + 0x5c], edx
mov eax, edx
mov dword [esi + 0x7c], ecx
je 0x418e65
cmp eax, dword [esi + 0x58]
jne 0x418ece
mov eax, dword [esi + 0x60]
lea ecx, [eax + 4]
mov dword [esi + 0x60], ecx
mov edx, dword [eax]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x7c]
add esp, 4
test eax, eax
jne 0x418eb3
lea ebx, [esi + 0x54]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
xor edi, edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x74]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x418ece
mov eax, dword [esi + 0x60]
lea ebx, [esi + 0x54]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edi, ecx
lea edx, [ecx + 0x1000]
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x7c]
test eax, eax
ja 0x418e25
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi], 0
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41a520
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], ecx
mov dword [esi + 0x1ac], edx
mov edi, dword [eax + 8]
test edi, edi
jne 0x41a581
mov edx, dword [str.dnf.conn.gamesafe.qq.com]
xor ecx, ecx
test edx, edx
je 0x41a57b
mov dx, word [eax]
mov eax, 0x449144
cmp word [eax - 4], dx
je 0x41a570
mov edi, dword [eax + 8]
add eax, 8
inc ecx
test edi, edi
jne 0x41a55d
jmp 0x41a57b
mov edi, dword [ecx*8 + 0x449144]
test edi, edi
jne 0x41a581
mov edi, dword [str.connunify.gamesafe.qq.com]
mov ecx, esi
call fcn.00420720
test eax, eax
je 0x41a5ae
push str.pack_Init_Error_
push 0
push 0
push 0
push 0x138e
call fcn.00417e80
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
ret 0xc
push edi
lea ecx, [esi + 4]
call fcn.0041fba0
test eax, eax
je 0x41a5e5
push str.m_Socket.Init_Error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3ed
push 0
push 0x1389
call fcn.00417e80
add esp, 0x14
mov eax, 0xfffffffd
pop edi
pop esi
ret 0xc
push 0
push 0
push esi
push 0x41a650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa8], eax
jne 0x41a625
push str._SECCLI:TCP__m_MainCtrl_CreateThread_failed
push eax
push 0x3f7
push 0x3f7
call fcn.00417db0
add esp, 0x10
mov eax, 0xfffffffc
pop edi
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc