joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403224
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2934
call fcn.0043f390
push edi
mov byte [ebp - 0x110], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x453158
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push str.iphlpapi.dll
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.00402f00
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4032ab
xor al, al
jmp 0x40342f
mov byte [ebp - 4], 0
mov dword [ebp - 0x114], 0
push str.GetAdaptersInfo
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x403404
mov dword [ebp - 0x2918], 0x2800
lea edx, [ebp - 0x2918]
push edx
lea eax, [ebp - 0x2914]
push eax
call dword [ebp - 0x114]
test eax, eax
jne 0x403404
lea ecx, [ebp - 0x2914]
mov dword [ebp - 0x291c], ecx
mov dword [ebp - 0x2920], 3
cmp dword [ebp - 0x291c], 0
je 0x403404
mov edx, dword [ebp - 0x291c]
add edx, 8
push edx
call fcn.00403434
add esp, 4
mov dword [ebp - 0x2924], eax
lea ecx, [ebp - 0x292c]
call fcn.004036b0
push eax
mov ecx, dword [ebp + 8]
call fcn.00403700
and eax, 0xff
test eax, eax
jne 0x40337a
mov eax, dword [ebp - 0x291c]
cmp dword [eax + 0x1a0], 6
jne 0x4033f1
mov ecx, dword [ebp - 0x2920]
cmp ecx, dword [ebp - 0x2924]
jle 0x4033f1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x194]
mov byte [edx], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x195]
mov byte [edx + 1], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x196]
mov byte [edx + 2], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x197]
mov byte [edx + 3], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x198]
mov byte [edx + 4], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x291c]
mov cl, byte [eax + 0x199]
mov byte [edx + 5], cl
mov edx, dword [ebp - 0x2924]
mov dword [ebp - 0x2920], edx
mov eax, dword [ebp - 0x291c]
mov ecx, dword [eax]
mov dword [ebp - 0x291c], ecx
jmp 0x403317
cmp dword [ebp - 8], 0
je 0x40341b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x2934]
call fcn.004036b0
push eax
mov ecx, dword [ebp + 8]
call fcn.004036d0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407c11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449e75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00407d82
add esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x407cb1
push 1
lea ecx, [ebp - 0x34]
push ecx
call fcn.00407d82
add esp, 8
mov byte [ebp - 4], 1
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x24], 0xffffffff
je 0x407ce5
push 0
lea edx, [ebp - 0x38]
push edx
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407cdb
cmp dword [ebp - 0x38], 0x10
jne 0x407cdb
mov byte [ebp - 0x10], 1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x10]
mov byte [ebp - 0x3c], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4099dc
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 0x409aaf
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x1c8], 0
je 0x409aaf
mov dword [ebp - 4], 1
jmp 0x409b2c
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 0x409adc
jmp 0x409b2a
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 0x409b0b
jmp 0x409b28
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 0x409b2e
jmp 0x409b23
jmp 0x409b23
jmp 0x409b23
mov esp, ebp
pop ebp
ret
Function at 0x40c672
Capabilities:
Read file via mapping

Disassembly:
xor bl, al
call fcn.00414f21
xor byte [ecx], ch
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 [0x45368c]
mov dword [ebp - 0x28], ecx
mov dx, word [0x453690]
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 0x40c6f2
jmp 0x40c74c
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 0x40c70f
jmp 0x40c74a
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 0x40c733
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x30], 0
je 0x40c743
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40c74e
jmp 0x40c723
jmp 0x40c723
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi], ecx
add al, ch
pop eax
xchg ebx, eax
push cs
add bh, bh
xor al, 0x24
push 0xbec83407
inc al
mov word [esp + 4], dx
push esp
cmp di, 0xabe7
jmp 0x40c669
lea esp, [esp + 4]
push eax
push esi
call fcn.0051b092
invalid
Function at 0x40c7ac
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push edi
mov dword [ebp - 0xa64], ecx
mov ax, word [0x45ef44]
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 0x40c833
xor eax, eax
jmp 0x40c999
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40c84c
xor eax, eax
jmp 0x40c999
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 0x40c989
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x638], eax
je 0x40c96e
push str.TenSafe.exe
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c96e
mov dx, word [0x45ef48]
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 0x40c96e
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 0x40c961
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 0x40c961
push 0
mov edx, dword [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40c961
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 0x40c86c
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 0x40cabf
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 0x40cb37
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 0x40cc33
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 0x40cc33
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 0x40cbab
cmp dword [ebp - 0x120], 4
jb 0x40cbab
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 0x40cc33
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 0x40cc61
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 0x40cf56
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x44f128
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x60], 0x44f110
mov dword [ebp - 4], 0xc
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1c0], 1
mov ecx, dword [ebp - 0x18]
call fcn.0040cef9
push 0x64
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cfcb
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x1b8], 0
je 0x40cff4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1b8], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1cc], 0
je 0x40d052
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1cc]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1cc]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1cc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x40d03e
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0040dc40
mov dword [ebp - 0x1c], eax
jmp 0x40d045
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x1cc], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x1fc
call fcn.0040ddb0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18]
add ecx, 0x1fc
call fcn.0040d8c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
add ecx, 0x1ec
call fcn.00415ef5
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
add ecx, 0x198
call fcn.0040d850
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x14c
call fcn.0040d7c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
add ecx, 0x12c
call fcn.0040d7c0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
add ecx, 0x10c
call fcn.0040d7c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
add ecx, 0xec
call fcn.0040d7c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0xcc
call fcn.0040d7c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xac
call fcn.0040d7c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x90
call fcn.0043f2b2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x8c
call fcn.0043f2b2
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x88
call fcn.0043f2b2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.0043f2ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d155
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 0x40d1be
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 0x413b25
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 0x413b50
jmp 0x413b90
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 0x41dc32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x41dc64
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x41dcd1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xfc786653
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 5
je 0x41dd2c
cmp dword [ebp - 0x28], 0x1f
je 0x41dd87
jmp 0x41dddd
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push 0
push str.SOFTWARETencentDNFTenProtectTP001
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41dd55
jmp 0x41de04
xor eax, eax
test eax, eax
jne 0x41dd4a
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x4548ec
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41dddd
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push str.SOFTWARETencentYLZTGAMETenProtectTP001
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41ddad
jmp 0x41de02
xor ecx, ecx
test ecx, ecx
jne 0x41dda5
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.TP002
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x41ddec
mov dword [ebp - 0x20], 0
jmp 0x41de00
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
jmp 0x41de06
jmp 0x41ddfb
jmp 0x41ddfb
jmp 0x41ddfb
mov esp, ebp
pop ebp
ret
Function at 0x41e0b5
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], 0
xor eax, eax
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41e138
jmp 0x41e1bf
xor eax, eax
test eax, eax
jne 0x41e12d
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x41e17e
jmp 0x41e1bd
xor ecx, ecx
test ecx, ecx
jne 0x41e173
push 0
push 0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
jmp 0x41e1c1
jmp 0x41e1b5
jmp 0x41e1b5
pop edi
mov esp, ebp
pop ebp
ret 4