joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3a5e
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x534e18]
test eax, eax
jne 0x4b3ace
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x4b3a7a
xor eax, eax
jmp 0x4b3acd
push esi
push 8
call fcn.004d1924
mov esi, eax
test esi, esi
pop ecx
jne 0x4b3a8e
push 8
pop edi
jmp 0x4b3aa9
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4b3aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x534e1c], 0
mov dword [0x534e18], edi
mov eax, edi
jmp 0x4b3acc
mov eax, dword [0x534e20]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x534e20], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x4b3d0e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x534e14], eax
je 0x4b3d2a
mov eax, 0x10dd
jmp 0x4b3e06
mov eax, dword [0x534e18]
test eax, eax
jne 0x4b3e06
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4b3d47
push 6
pop eax
jmp 0x4b3e05
cmp dword [edi], 0
push ebx
push esi
jne 0x4b3d5b
push 6
pop eax
mov dword [0x534e18], eax
jmp 0x4b3dfd
push 0x18
call fcn.004d1924
mov esi, eax
test esi, esi
pop ecx
jne 0x4b3d6e
push 8
pop edi
jmp 0x4b3de7
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.004b36fa
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x4b3ddc
cmp ecx, 0x17
ja 0x4b3ddc
cmp dword [edi + 0x1c], eax
jne 0x4b3ddc
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4b3db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4b3de7
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x534e24]
mov dword [esi], eax
mov dword [0x534e24], esi
xor eax, eax
jmp 0x4b3e03
cmp dword [0x534e10], edx
push 9
pop edi
jne 0x4b3ded
mov dword [0x534e18], edi
test esi, esi
je 0x4b3df8
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x534e1c], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4b4a35
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e6a09
call fcn.004d1d50
sub esp, 0x14
push ebx
mov ebx, ecx
push edi
push dword [ebx + 0x10]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b4a5f
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x94
call fcn.004d1924
pop ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4b4a88
push edi
push str.MsgSys
mov ecx, eax
call fcn.00449cab
mov dword [ebp - 0x10], eax
jmp 0x4b4a8b
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x4b4b5e
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, eax
mov dword [ebp - 0x1c], eax
je 0x4b4b4a
jmp 0x4b4aae
xor edi, edi
push 0x94
call fcn.004d1924
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
mov dword [ebp - 4], 1
je 0x4b4ad6
push edi
push str.Package
mov ecx, eax
call fcn.00449cab
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b4b3e
push dword [esi]
mov ecx, edi
push str.msgid
call fcn.0044b2d3
lea ecx, [ebp - 0x14]
call fcn.004020b8
push dword [esi + 4]
lea eax, [ebp - 0x14]
push 0x4f1474
push eax
mov dword [ebp - 4], 2
call fcn.00405f4e
mov ebx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push str.loadtype
mov ecx, edi
call fcn.0044b2d3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00449ff7
mov ecx, edi
call fcn.0040de1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.00401572
mov ebx, dword [ebp - 0x18]
add esi, 8
cmp esi, dword [ebp - 0x1c]
jne 0x4b4aac
push dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0048ca59
mov ecx, dword [ebp - 0x10]
call fcn.0040de1d
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4b4e1a
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x4b4db9
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
ret

Function at 0x4b5b62
Capabilities:
Create thread

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x24]
call fcn.0040254b
lea ecx, [esi + 0x2c]
push 0x502668
call fcn.0040254b
xor edi, edi
push edi
push ecx
mov eax, esp
push edi
push closesocket
push edi
push ecx
mov dword [eax], edi
mov eax, esp
push edi
mov ecx, esi
mov dword [eax], edi
call fcn.004b50d0
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0xff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push edi
push 0x4b5971
mov dword [esi + 0x54], eax
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x4b7b33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4b7b86
push edi
mov edi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b7b79
cmp dword [ebp - 4], edi
je 0x4b7b7c
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b7c5e
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 0x4b7cd8
cmp word [ebx + 8], 2
jne 0x4b7cb4
cmp word [ebx + 0xa], 4
jne 0x4b7cb4
mov esi, dword [ebx + 0xc]
jmp 0x4b7cae
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b7bf8
test eax, eax
mov dword [edi], eax
je 0x4b7cd3
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4b7c92
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x4b7cfe
push 8
pop eax
jmp 0x4b7cfe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4b7cfe
dec ecx
je 0x4b7cf9
dec ecx
je 0x4b7cf2
dec ecx
jmp 0x4b7cfe
mov eax, 0x2afb
jmp 0x4b7cfe
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4b82e6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x52e400]
xor eax, ebp
cmp dword [0x534e38], 0
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x4b7ebb
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x4b8136
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.004b7e7f
jne 0x4b843d
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4b8433
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 0x4b83aa
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4b83a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x4b83f6
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 0x4b8430
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4b83f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4b8430
xor ebx, ebx
push dword [ebp + ebx*8 - 0x80]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x7c], eax
je 0x4b840f
inc ebx
cmp ebx, 3
jl 0x4b83f8
jmp 0x4b8418
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4b8430
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x52dfd4], ecx
add eax, 8
cmp eax, 0x18
jl 0x4b841e
pop edi
pop esi
pop ebx
mov dword [0x534e38], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x52dfd4]
xor ecx, ebp
call fcn.004d1da7
add ebp, 0x1b0
leave
ret 4

Function at 0x4b8522
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 [0x52e400]
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 0x4b8570
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004b8479
add esp, 0xc
test al, al
je 0x4b8570
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b8575
or eax, 0xffffffff
jmp 0x4b8577
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret
Function at 0x4b8585
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x4b85b3
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 0x4b85b8
add esi, eax
cmp esi, dword [ebp + 0x10]
jl 0x4b8590
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x4b85b5

Function at 0x4b85bd
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 0x4b8603
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 0x4b861e
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 0x4b860c
test edi, edi
je 0x4b8607
test ebx, ebx
jne 0x4b85cc
or eax, 0xffffffff
jmp 0x4b861e
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 0x4b8623
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x52e400]
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.004b85bd
add esp, 0x10
test eax, eax
jge 0x4b867e
or eax, 0xffffffff
jmp 0x4b8724
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 0x4b871f
push ebx
call sub.MSVCR71.dll_strlen
pop ecx
add edi, eax
jmp 0x4b86a6
inc edi
cmp byte [edi], 0x20
je 0x4b86a5
push edi
call dword [sym.imp.MSVCR71.dll_atoi]
mov ebx, eax
test ebx, ebx
pop ecx
jl 0x4b871f
cmp ebx, 0x800000
jg 0x4b871f
push ebx
call fcn.004d1949
test eax, eax
pop ecx
mov dword [esi], eax
je 0x4b871f
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 0x4b870a
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 0x4b8717
test eax, eax
je 0x4b870e
add edi, eax
cmp edi, ebx
jl 0x4b86e7
mov eax, dword [ebp - 0x80]
mov dword [eax], ebx
xor eax, eax
jmp 0x4b8722
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.004d1da7
add ebp, 0x390
leave
ret
Function at 0x4b8a43
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e6f2e
call fcn.004d1d50
sub esp, 0x268
mov eax, dword [0x52e400]
xor eax, ebp
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x58], ebx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], ebx
jne 0x4b8bc7
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.004b9e7e
lea eax, [ebp - 0x218]
mov dword [esp], str.CopyFile_
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004b9e7e
lea eax, [ebp - 0x274]
push eax
call fcn.00452b60
push str.ThunderLiveUD.exe
push eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], ebx
call fcn.00407aea
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 0x4b8b13
lea eax, [ebp - 0x24c]
push 0x2e
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004530ab
add esp, 0xc
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 3
jae 0x4b8b3e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, 0x4ec814
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004b9e7e
cmp dword [edi + 0x84], 8
pop ecx
jb 0x4b8b72
mov eax, dword [edi + 0x70]
jmp 0x4b8b75
lea eax, [edi + 0x70]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004b9e7e
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x44]
call dword [0x4eb738]
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]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret 4
Function at 0x4b8bf7
Capabilities:
Copy file

Disassembly:
mov eax, 0x4e6f53
call fcn.004d1d50
sub esp, 0x74
mov eax, dword [0x52e400]
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.00452b60
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407aea
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.004b8a43
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.00407aea
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
pop edi
pop esi
jae 0x4b8c6b
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4b8c77
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.004d1da7
leave
ret 4

Function at 0x4b9c7a
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 0x4b9cb4
call fcn.004b9978
test al, al
mov dword [ebp - 0x30], str.runas
jne 0x4b9cbb
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4b9cc9
mov eax, dword [eax + 4]
jmp 0x4b9ccc
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x4b9cdd
mov eax, dword [eax + 4]
jmp 0x4b9ce0
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x4b9cf1
mov eax, dword [eax + 4]
jmp 0x4b9cf4
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 0x4b9d1b
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x4ba1ed
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4e7240
call fcn.004d1d50
sub esp, 0x5c
mov eax, dword [0x52e400]
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 0x4ba314
cmp word [eax], si
je 0x4ba314
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.00473aa7
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.004b9ea6
cmp dword [ebp - 0x14], 8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
jae 0x4ba266
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba272
lea eax, [ebp - 0x44]
push ebx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push dword [0x52e0a8]
call esi
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x4ba2e8
test edi, edi
je 0x4ba2b9
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4ba29f
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba2ab
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x52e0ac]
call esi
mov dword [edi], eax
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4ba2f9
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4ba2cc
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ba2d8
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x52e0b0]
call esi
mov dword [edi], eax
jmp 0x4ba2f9
test edi, edi
je 0x4ba2ef
and dword [edi], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4ba2f9
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 0x4ba316
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.004d1da7
leave
ret
Function at 0x4bf8e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4bf908
mov eax, dword [ebp - 4]
jmp 0x4bf9e3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x503c34
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 0x4bf95c
mov eax, dword [ebp - 4]
jmp 0x4bf9e3
mov edx, dword [ebp - 0x468]
and edx, 0x10
je 0x4bf969
jmp 0x4bf9b1
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 0x4bf95c
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.004d1da7
mov esp, ebp
pop ebp
ret

Function at 0x4c1130
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 0x4c118b
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 0x4c1189
mov dword [ebp - 4], 0x19c00ae
jmp 0x4c118b
jmp 0x4c1144
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret