joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a27a8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.004a2769
mov edi, eax
cmp dword [edi], 0
je 0x4a280c
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4a27e6
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a27db
mov dword [esi], 1
jmp 0x4a27e6
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
and word [esi + 0x10], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 0x24], eax
call fcn.004a21c2
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x4a2814
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.004a2769
mov edi, eax
cmp dword [edi], 0
je 0x4a2885
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4a2852
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2847
mov dword [esi], 1
jmp 0x4a2852
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 4], ebx
mov word [esi + 0x10], 2
mov dword [esi + 0x18], eax
call fcn.004a21c2
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4a288d
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call fcn.004a2769
mov ebx, eax
cmp dword [ebx], 0
je 0x4a2935
mov ecx, ebx
call fcn.004a21e1
cmp dword [edi], 0
jne 0x4a2935
mov ax, word [edi + 0x10]
shl ax, 2
push esi
mov esi, dword [ebx + 4]
add esi, dword [ebx + 8]
add ax, 0x1f
mov word [esi], ax
mov byte [esi + 2], 1
mov eax, dword [edi + 8]
add esi, 3
mov dword [esi], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x10], eax
call fcn.004a21c2
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
xor eax, eax
add esi, 0x1c
cmp word [edi + 0x10], ax
jbe 0x4a2915
lea ecx, [edi + 0x14]
mov edx, dword [ecx]
mov dword [esi + eax*4], edx
movzx edx, word [edi + 0x10]
inc eax
add ecx, 4
cmp eax, edx
jb 0x4a2904
movzx eax, word [edi + 0x10]
lea eax, [eax*4 + 0x1f]
add dword [ebx + 8], eax
cmp dword [edi + 4], 0
pop esi
je 0x4a2935
push 0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop ebx
ret
Function at 0x4a8092
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov esi, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 6
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x4a80ed
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [esi], eax
je 0x4a80e8
mov edx, dword [ebp - 4]
mov dword [ecx], edx
add eax, 0x10
jmp 0x4a80ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4aabad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x44
mov eax, 0x4d9e68
call fcn.004cbc30
mov esi, ecx
push 0x4dcd18
push str..FS_CD
push str.CCDFileSystem::IsFileSystemDBExit
push 1
push 0x3a6
lea eax, [ebp - 0x20]
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
push eax
call fcn.0045ba29
add esp, 0x1c
and dword [ebp - 4], 0
push 1
push str.CD::IsFileSystemDBExit
push 0x4f34e8
push esi
lea ecx, [ebp - 0x50]
call fcn.004a27a8
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4aac30
test al, 0x10
jne 0x4aac30
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004a288d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
xor eax, eax
inc eax
jmp 0x4aac4a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004a288d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
xor eax, eax
call fcn.004cbd08
ret

Function at 0x4aadd8
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x4d9e68
call fcn.004cbc30
mov esi, ecx
push 0x4dcd18
push str..FS_CD
push str.CCDFileSystem::UnInit
push 1
push 0x3f4
lea eax, [ebp - 0x20]
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
push eax
call fcn.0045ba29
add esp, 0x1c
push 1
push 0x4f3a38
push 0x4f34e8
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004a27a8
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x4aae5d
cmp dword [esi + 0x20], ebx
je 0x4aae5d
cmp dword [esi + 0x18], ebx
jne 0x4aae5d
cmp dword [esi + 0x28], ebx
jne 0x4aae5d
call sym.QQProtectUpd.exe_public:_long_int___thiscall_CRootStorage::CloseDocument_void_
cmp dword [esi + 0x24], ebx
mov dword [esi + 0xc], ebx
je 0x4aae5d
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004a288d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
xor eax, eax
inc eax
call fcn.004cbd08
ret
Function at 0x4ac379
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x4d7a8a
call fcn.004cbc30
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x1c]
lea esi, [edi + 0x10]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004a5515
jmp 0x4ac3f4
lea ecx, [ebp - 0x1c]
call fcn.0049701c
mov ebx, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.sQe
push str.Assert
push 2
push str.CCDFileSystem::CCDFileSystem
push 0x2e
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
call fcn.0042d2a0
mov ecx, dword [ebx + 4]
add esp, 0x1c
test ecx, ecx
je 0x4ac3e3
call sym.QQProtectUpd.exe_public:_void___thiscall_CStream::LogObjReleaseError_void_
push 1
mov ecx, ebx
call fcn.004aa5ec
lea ecx, [ebp - 0x1c]
call fcn.004b048c
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004742e9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047cf82
test al, al
je 0x4ac3a1
mov ecx, esi
call fcn.004a5226
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4ac43d
call sym.QQProtectUpd.exe_public:_long_int___thiscall_CRootStorage::CloseDocument_void_
and dword [edi + 0xc], 0
cmp dword [edi + 0x24], 0
je 0x4ac43d
lea ecx, [edi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.004a013f
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call fcn.004cbd08
ret

Function at 0x4b0658
Capabilities:
Delete file

Disassembly:
push 0x30
mov eax, 0x4da397
call fcn.004cbc30
mov esi, ecx
push 1
push 0x4f4950
push 0x4f475c
push esi
lea ecx, [ebp - 0x3c]
call fcn.004a27a8
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4b06b8
cmp dword [esi + 0x2c], edi
je 0x4b06b8
cmp dword [esi + 0x24], edi
jne 0x4b06b8
cmp dword [esi + 0x18], edi
jne 0x4b06b8
cmp dword [esi + 0x34], edi
jne 0x4b06b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x30], edi
mov dword [esi + 0xc], edi
je 0x4b06b8
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a288d
xor eax, eax
inc eax
call fcn.004cbd08
ret
Function at 0x4b1470
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x18
mov eax, 0x4d8402
call fcn.004cbc30
mov edi, ecx
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0xc]
je 0x4b1542
test eax, eax
je 0x4b1542
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004742e9
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004a5515
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x4b14df
lea ecx, [ebp - 0x24]
call fcn.0049701c
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [eax + 4], ecx
je 0x4b154a
lea ecx, [ebp - 0x24]
call fcn.004b048c
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.004742e9
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0047cf82
test al, al
je 0x4b14c5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call ebx
sub eax, dword [ebp - 0x1c]
cmp eax, 0xa
jbe 0x4b1542
push eax
push ecx
add edi, 8
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.Path_s_CostTime__d
push str.PerfFS.CloseStorage
push 4
push str.CSSFileSystem::CloseStorage
push 0x856
push 0x4f4988
call fcn.0042d2a0
add esp, 0x20
call fcn.004cbd08
ret 4
push eax
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push dword [ebp + 8]
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004b0fd6
lea eax, [ebp - 0x10]
push eax
call fcn.00482348
pop ecx
mov dword [ebp + 8], esi
jmp 0x4b15bb
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x3e8
jge 0x4b15ca
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x14]
push eax
call fcn.00486ce7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0044d92a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004b1076
push esi
push 0x5c
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_int___thiscall_CTXStringW::Find_wchar_t__int_const
test eax, eax
jge 0x4b1571
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4b1505
Function at 0x4b1af1
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x4d84c9
call fcn.004cbc30
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
cmp dword [esi + 0xc], edi
mov dword [ebp - 4], 4
je 0x4b1b36
push esi
call fcn.004b02ae
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x30], edi
mov dword [esi + 0xc], edi
je 0x4b1b36
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x1c]
mov eax, dword [ebx + 4]
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004742e9
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.004a5515
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jmp 0x4b1b86
lea ecx, [ebp - 0x1c]
call fcn.0049701c
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004b0cb0
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004b048c
mov eax, dword [ebx + 4]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.004742e9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047cf82
test al, al
je 0x4b1b5e
mov ecx, ebx
call fcn.004a5226
lea edi, [esi + 0x10]
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004742e9
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.004a5515
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jmp 0x4b1bfa
lea ecx, [ebp - 0x1c]
call fcn.0049701c
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004b0cb0
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004b048c
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.004742e9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047cf82
test al, al
je 0x4b1bd2
mov ecx, edi
call fcn.004a5226
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.00480a7e
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 2
call fcn.00480a7e
mov ecx, ebx
call fcn.004a013f
mov ecx, edi
call fcn.004a013f
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call fcn.004cbd08
ret
Function at 0x4b26f1
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x4d8689
call fcn.004cbc30
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
jne 0x4b27a6
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
je 0x4b2791
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
sar edi, 2
cmp edi, eax
jbe 0x4b2791
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.004525b7
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
je 0x4b2789
push 0xa
push 0x4f4c98
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4b2789
mov dword [esi + 0x3c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x4b275b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [esi + 0x38], eax
call fcn.00431c80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x38], eax
je 0x4b27ed
cmp dword [esi + 0x3c], ebx
je 0x4b27e9
add esi, 8
push esi
lea eax, [ebp - 0x10]
push 0x4f4c48
push eax
call sym.QQProtectUpd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0xc
push ebx
push 0x4e4a0c
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x10]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
jmp 0x4b27f0
xor eax, eax
inc eax
call fcn.004cbd08
ret

Function at 0x4b2a7d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x30
mov eax, 0x4da397
call fcn.004cbc30
mov esi, ecx
push 1
push str.SS::IsFileSystemDBExit
push 0x4f475c
push esi
lea ecx, [ebp - 0x3c]
call fcn.004a27a8
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004b26f1
lea ecx, [esi + 8]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b2ad4
test al, 0x10
jne 0x4b2ad4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a288d
xor eax, eax
inc eax
jmp 0x4b2ae2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004a288d
xor eax, eax
call fcn.004cbd08
ret
Function at 0x4b6adb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b6aff
test al, 7
je 0x4b6aff
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4b6b01
xor eax, eax
pop ebp
ret 4

Function at 0x4b9353
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4b93ca
cmp word [ebx + 8], 2
jne 0x4b93a9
cmp word [ebx + 0xa], 4
jne 0x4b93a9
mov esi, dword [ebx + 0xc]
jmp 0x4b93a3
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b92eb
test eax, eax
mov dword [edi], eax
je 0x4b93c5
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4b9387
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
xor eax, eax
jmp 0x4b93f0
push 8
pop eax
jmp 0x4b93f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4b93f0
dec ecx
je 0x4b93eb
dec ecx
je 0x4b93e4
dec ecx
jmp 0x4b93f0
mov eax, 0x2afb
jmp 0x4b93f0
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4b99fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x528f34]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x56d2c4], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x4b95b9
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x4b9841
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.004b957a
jne 0x4b9b84
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4b9b7a
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_strcpy_s]
push esi
push edi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.ws2_32
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b9ad9
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4b9ad5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4b9b30
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.wship6
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b9b77
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4b9b2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4b9b77
xor esi, esi
push dword [ebp + esi*8 - 0x230]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x22c], eax
je 0x4b9b53
inc esi
cmp esi, 3
jl 0x4b9b32
jmp 0x4b9b5c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4b9b77
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x528ec8], ecx
add eax, 8
cmp eax, 0x18
jl 0x4b9b62
pop edi
pop esi
pop ebx
mov dword [0x56d2c4], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x528ec8]
xor ecx, ebp
call fcn.004cb642
leave
ret 4
Function at 0x4bc1d7
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
inc edi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.iphlpapi.dll_GetIpForwardTable
push edi
lea eax, [ebp - 8]
push eax
push esi
call sub.iphlpapi.dll_GetIpAddrTable
cmp dword [ebp - 4], esi
jbe 0x4bc32a
cmp dword [ebp - 8], esi
jbe 0x4bc32a
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call esi
test ebx, ebx
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0xc], esi
je 0x4bc319
test esi, esi
je 0x4bc30f
push dword [ebp - 4]
push 0
push ebx
call sub.MSVCR80.dll_memset
push dword [ebp - 8]
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0x18
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x4bc30f
push edi
lea eax, [ebp - 8]
push eax
push esi
call sub.iphlpapi.dll_GetIpAddrTable
test eax, eax
jne 0x4bc30f
and dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
or ebx, 0xffffffff
test esi, esi
mov edi, ebx
mov dword [ebp - 0x18], ebx
jbe 0x4bc30f
add eax, 8
cmp dword [ebp + 8], 0
jbe 0x4bc2ba
mov ecx, dword [eax - 4]
test ecx, ecx
jbe 0x4bc2ba
cmp dword [eax], 0
jbe 0x4bc2ba
mov edx, dword [eax]
mov ebx, edx
and ebx, dword [ebp + 8]
and ecx, edx
cmp ecx, ebx
je 0x4bc2e5
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], 0
jne 0x4bc2d8
cmp dword [eax], 0
jne 0x4bc2d8
cmp edi, 0xffffffff
je 0x4bc2cf
cmp dword [eax + 0x20], edi
jae 0x4bc2d8
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x18], ebx
inc dword [ebp - 0x10]
add eax, 0x38
cmp dword [ebp - 0x10], esi
jb 0x4bc298
jmp 0x4bc2e8
mov ebx, dword [eax + 0xc]
cmp ebx, 0xffffffff
je 0x4bc30f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
jbe 0x4bc30f
add eax, 4
cmp dword [eax + 4], ebx
je 0x4bc30a
inc edx
add eax, 0x18
cmp edx, ecx
jb 0x4bc2fb
jmp 0x4bc30f
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 0xc], 0
pop ebx
je 0x4bc32a
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
leave
ret 4