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

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x52f220]
xor eax, ebp
cmp dword [0x535c98], 0
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x4b805b
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x4b82d6
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.004b801f
jne 0x4b85dd
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4b85d3
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0xa0]
push str.ws2_32
push eax
call sub.MSVCR71.dll_strcat
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4b854a
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4b8546
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x4b8596
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp + 0xa0]
push str.wship6
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x4b85d0
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4b8592
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4b85d0
xor ebx, ebx
push dword [ebp + ebx*8 - 0x80]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x7c], eax
je 0x4b85af
inc ebx
cmp ebx, 3
jl 0x4b8598
jmp 0x4b85b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4b85d0
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x52edf4], ecx
add eax, 8
cmp eax, 0x18
jl 0x4b85be
pop edi
pop esi
pop ebx
mov dword [0x535c98], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x52edf4]
xor ecx, ebp
call fcn.004d1f17
add ebp, 0x1b0
leave
ret 4

Function at 0x4b86c2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52f220]
push esi
mov esi, dword [ebp + 8]
push edi
push 6
push 1
xor eax, ebp
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b8710
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004b8619
add esp, 0xc
test al, al
je 0x4b8710
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b8715
or eax, 0xffffffff
jmp 0x4b8717
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x4b8725
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x4b8753
mov eax, dword [ebp + 0x10]
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b8758
add esi, eax
cmp esi, dword [ebp + 0x10]
jl 0x4b8730
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x4b8755

Function at 0x4b875d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [eax]
push esi
push edi
xor esi, esi
jmp 0x4b87a3
mov eax, dword [ebp + 0xc]
push 0
push ebx
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x4b87be
push str._r_n_r_n
push dword [ebp + 0xc]
add esi, edi
sub ebx, edi
call dword [sym.imp.MSVCR71.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x4b87ac
test edi, edi
je 0x4b87a7
test ebx, ebx
jne 0x4b876c
or eax, 0xffffffff
jmp 0x4b87be
mov ecx, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
add eax, 4
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b87c3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x39c]
and dword [esi], 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x398]
mov dword [ebp - 0x78], 0x400
call fcn.004b875d
add esp, 0x10
test eax, eax
jge 0x4b881e
or eax, 0xffffffff
jmp 0x4b88c4
push ebx
push edi
mov ebx, str.Content_Length:
push ebx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edi, eax
test edi, edi
je 0x4b88bf
push ebx
call sub.MSVCR71.dll_strlen
pop ecx
add edi, eax
jmp 0x4b8846
inc edi
cmp byte [edi], 0x20
je 0x4b8845
push edi
call dword [sym.imp.MSVCR71.dll_atoi]
mov ebx, eax
test ebx, ebx
pop ecx
jl 0x4b88bf
cmp ebx, 0x800000
jg 0x4b88bf
push ebx
call fcn.004d1ab7
test eax, eax
pop ecx
mov dword [esi], eax
je 0x4b88bf
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x78]
sub edi, ecx
push edi
lea ecx, [ebp + ecx - 0x74]
push ecx
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
jmp 0x4b88aa
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push dword [ebp + 0x398]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4b88b7
test eax, eax
je 0x4b88ae
add edi, eax
cmp edi, ebx
jl 0x4b8887
mov eax, dword [ebp - 0x80]
mov dword [eax], ebx
xor eax, eax
jmp 0x4b88c2
push dword [esi]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.004d1f17
add ebp, 0x390
leave
ret
Function at 0x4b8be3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e8650
call fcn.004d1ec0
sub esp, 0x268
mov eax, dword [0x52f220]
and dword [ebp - 0x258], 0
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x58], 0
mov dword [ebp - 0x254], eax
jne 0x4b8d34
push esi
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push str.ThunderLiveUD_
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004b9feb
lea eax, [ebp - 0x218]
mov dword [esp], str.CopyFile_
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004b9feb
lea eax, [ebp - 0x274]
push eax
call fcn.00454c04
and dword [ebp - 4], 0
push str.ThunderLiveUD.exe
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00407691
add esp, 0x14
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x4b8cb3
lea eax, [ebp - 0x24c]
push 0x2e
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0045514f
add esp, 0xc
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 3
jae 0x4b8cde
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x4ed9a8
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x44]
call dword [0x4ec734]
lea eax, [ebp - 0x218]
push eax
call fcn.004b9feb
pop ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop esi
mov ecx, dword [ebp - 0x254]
add edi, 0x44
push edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x254]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop edi
call fcn.004d1f17
leave
ret 4
Function at 0x4b8d63
Capabilities:
Copy file

Disassembly:
mov eax, 0x4e8675
call fcn.004d1ec0
sub esp, 0x74
mov eax, dword [0x52f220]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x80]
push eax
mov edi, ecx
call fcn.00454c04
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407691
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.004b8be3
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.00407691
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
pop edi
pop esi
jae 0x4b8dd7
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4b8de3
lea eax, [ebp - 0x28]
push ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x48]
setne bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret 4

Function at 0x4b9de7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp byte [ebp + 0x14], bl
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x4b9e21
call fcn.004b9ae4
test al, al
mov dword [ebp - 0x30], str.runas
jne 0x4b9e28
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4b9e36
mov eax, dword [eax + 4]
jmp 0x4b9e39
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x4b9e4a
mov eax, dword [eax + 4]
jmp 0x4b9e4d
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x4b9e5e
mov eax, dword [eax + 4]
jmp 0x4b9e61
add eax, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop ebx
je 0x4b9e88
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x4ba35a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4e8962
call fcn.004d1ec0
sub esp, 0x5c
mov eax, dword [0x52f220]
mov ecx, dword [ebp + 0x10]
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
je 0x4ba481
cmp word [eax], si
je 0x4ba481
push eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.0047454c
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004ba013
cmp dword [ebp - 0x14], 8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
jae 0x4ba3d3
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba3df
lea eax, [ebp - 0x44]
push ebx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push dword [0x52eec8]
call esi
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x4ba455
test edi, edi
je 0x4ba426
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4ba40c
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba418
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x52eecc]
call esi
mov dword [edi], eax
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4ba466
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4ba439
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba445
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x52eed0]
call esi
mov dword [edi], eax
jmp 0x4ba466
test edi, edi
je 0x4ba45c
and dword [edi], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4ba466
or dword [eax], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
pop ebx
jmp 0x4ba483
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x4bfa60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4bfa88
mov eax, dword [ebp - 4]
jmp 0x4bfb63
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x5022fc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4bfadc
mov eax, dword [ebp - 4]
jmp 0x4bfb63
mov edx, dword [ebp - 0x468]
and edx, 0x10
je 0x4bfae9
jmp 0x4bfb31
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x670]
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x10
push 0x80
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4bfadc
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d1f17
mov esp, ebp
pop ebp
ret

Function at 0x4c12b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
cmp dword [ebp - 8], eax
jae 0x4c130b
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c1309
mov dword [ebp - 4], 0x19c00ae
jmp 0x4c130b
jmp 0x4c12c4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4c1320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
cmp dword [ebp - 4], eax
jae 0x4c137b
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c1379
mov dword [ebp - 8], 0x19c00af
jmp 0x4c137b
jmp 0x4c1334
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4cddb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x52f220]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4efbd8
push str.Replaced
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4cde70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x52f220]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4efbd8
push str.Restored
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cdf30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x52f220]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 5
lea edx, [esp + 0xc]
push edx
push 0x4efbd8
xor eax, eax
push str.CrashTimes
mov dword [esp + 0x1a], eax
push str.AutoRepair
mov word [esp + 0x1c], 0
mov dword [esp + 0x22], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
xor ecx, ecx
add esp, 4
cmp eax, 3
setge cl
mov eax, ecx
mov ecx, dword [esp + 0x21c]
call fcn.004d1f17
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4ce000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x52f220]
push esi
push edi
mov dword [esp + 0x234], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x34]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push str.ReplaceTime
push str.AutoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x4ce0de
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, esi
sbb eax, edx
cmp eax, 0x580
jl 0x4ce0de
jg 0x4ce0c7
cmp ecx, 0x28e44000
jbe 0x4ce0de
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ce100
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x52f220]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.004cddb0
test eax, eax
jne 0x4ce135
mov ecx, dword [esp + 0x424]
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004cdf30
test eax, eax
jne 0x4ce1fa
call fcn.004ce000
test eax, eax
jne 0x4ce1fa
xor esi, esi
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...ServerConfig.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x218]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4efbd8
push str.Restore
push str.ServerConfig
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x424]
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.004d1f17
pop edi
pop esi
mov esp, ebp
pop ebp
ret