joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ff9f
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x4c9990
call fcn.0049f2f8
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48fffa
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x48fff6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x48fff6
cmp word [eax + 0x14], 0
jne 0x48ffeb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x48fffc
mov eax, ecx
jmp 0x48ffe5
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0049f333
ret

Function at 0x490014
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x53ae34], edi
jne 0x490037
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x53ae34
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x49003e
mov eax, 0x10dd
jmp 0x490082
push esi
mov esi, dword [0x53ae28]
mov dword [0x53ae30], edi
mov dword [0x53ae44], edi
mov dword [0x53ae40], edi
mov dword [0x53ae38], edi
mov dword [0x53ae3c], edi
jmp 0x49007b
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x490065
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x490085
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x53ae34], eax
je 0x49009b
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x53ae44]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4900e6
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4900d7
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x4900d7
call fcn.0048ff7e
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4900aa
mov dword [0x53ae44], ebx
call fcn.0048fd6d
mov esi, dword [0x53ae40]
cmp esi, ebx
je 0x490113
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4900fb
pop edi
pop esi
mov dword [0x53ae40], ebx
mov dword [0x53ae34], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x490366
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x53ae38]
test eax, eax
jne 0x4903d6
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x490382
xor eax, eax
jmp 0x4903d5
push esi
push 8
call fcn.0049ecb8
mov esi, eax
test esi, esi
pop ecx
jne 0x490396
push 8
pop edi
jmp 0x4903b1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4903c2
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 [0x53ae3c], 0
mov dword [0x53ae38], edi
mov eax, edi
jmp 0x4903d4
mov eax, dword [0x53ae40]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x53ae40], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x490616
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x53ae34], eax
je 0x490632
mov eax, 0x10dd
jmp 0x49070e
mov eax, dword [0x53ae38]
test eax, eax
jne 0x49070e
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x49064f
push 6
pop eax
jmp 0x49070d
cmp dword [edi], 0
push ebx
push esi
jne 0x490663
push 6
pop eax
mov dword [0x53ae38], eax
jmp 0x490705
push 0x18
call fcn.0049ecb8
mov esi, eax
test esi, esi
pop ecx
jne 0x490676
push 8
pop edi
jmp 0x4906ef
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00490002
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x4906e4
cmp ecx, 0x17
ja 0x4906e4
cmp dword [edi + 0x1c], eax
jne 0x4906e4
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 0x4906ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4906ef
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 [0x53ae44]
mov dword [esi], eax
mov dword [0x53ae44], esi
xor eax, eax
jmp 0x49070b
cmp dword [0x53ae30], edx
push 9
pop edi
jne 0x4906f5
mov dword [0x53ae38], edi
test esi, esi
je 0x490700
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x53ae3c], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x491309
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4b42c9
call fcn.0049f0d0
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 0x491333
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x94
call fcn.0049ecb8
pop ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x49135c
push edi
push str.MsgSys
mov ecx, eax
call fcn.00438ee6
mov dword [ebp - 0x10], eax
jmp 0x49135f
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x491432
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, eax
mov dword [ebp - 0x1c], eax
je 0x49141e
jmp 0x491382
xor edi, edi
push 0x94
call fcn.0049ecb8
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
mov dword [ebp - 4], 1
je 0x4913aa
push edi
push str.Package
mov ecx, eax
call fcn.00438ee6
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x491412
push dword [esi]
mov ecx, edi
push str.msgid
call fcn.004398b4
lea ecx, [ebp - 0x14]
call fcn.00401f19
push dword [esi + 4]
lea eax, [ebp - 0x14]
push 0x4bb91c
push eax
mov dword [ebp - 4], 2
call fcn.00416dd5
mov ebx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push str.loadtype
mov ecx, edi
call fcn.004398b4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00439232
mov ecx, edi
call fcn.004063b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004014d5
mov ebx, dword [ebp - 0x18]
add esi, 8
cmp esi, dword [ebp - 0x1c]
jne 0x491380
push dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0045468c
mov ecx, dword [ebp - 0x10]
call fcn.004063b8
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4917a7
Capabilities:
Create thread

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

Function at 0x4924ef
Capabilities:
Create thread

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x24]
call fcn.0040249e
lea ecx, [esi + 0x2c]
push str.http:__alarm.xl7.sandai.net_thunder7_msgupdate.xml
call fcn.0040249e
xor edi, edi
push edi
push ecx
mov eax, esp
push edi
push Ordinal_1
push edi
push ecx
mov dword [eax], edi
mov eax, esp
push edi
mov ecx, esi
mov dword [eax], edi
call fcn.00491a5d
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 0x4922fe
mov dword [esi + 0x54], eax
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x4944da
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 0x49452d
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 0x494520
cmp dword [ebp - 4], edi
je 0x494523
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 0x494605
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 0x49467f
cmp word [ebx + 8], 2
jne 0x49465b
cmp word [ebx + 0xa], 4
jne 0x49465b
mov esi, dword [ebx + 0xc]
jmp 0x494655
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049459f
test eax, eax
mov dword [edi], eax
je 0x49467a
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x494639
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 0x4946a5
push 8
pop eax
jmp 0x4946a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4946a5
dec ecx
je 0x4946a0
dec ecx
je 0x494699
dec ecx
jmp 0x4946a5
mov eax, 0x2afb
jmp 0x4946a5
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x494c8d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4f0dd0]
xor eax, ebp
cmp dword [0x53ae58], 0
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x494862
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x494add
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.00494826
jne 0x494de4
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x494dda
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 0x494d51
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x494d4d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x494d9d
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 0x494dd7
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x494d99
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x494dd7
xor ebx, ebx
push dword [ebp + ebx*8 - 0x80]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x7c], eax
je 0x494db6
inc ebx
cmp ebx, 3
jl 0x494d9f
jmp 0x494dbf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x494dd7
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x4f0ba4], ecx
add eax, 8
cmp eax, 0x18
jl 0x494dc5
pop edi
pop esi
pop ebx
mov dword [0x53ae58], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x4f0ba4]
xor ecx, ebp
call fcn.0049f127
add ebp, 0x1b0
leave
ret 4

Function at 0x494ec9
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 [0x4f0dd0]
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 0x494f17
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00494e20
add esp, 0xc
test al, al
je 0x494f17
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x494f1c
or eax, 0xffffffff
jmp 0x494f1e
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret
Function at 0x494f2c
Capabilities:
Send data
Send data on socket

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

Function at 0x494f64
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 0x494faa
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 0x494fc5
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 0x494fb3
test edi, edi
je 0x494fae
test ebx, ebx
jne 0x494f73
or eax, 0xffffffff
jmp 0x494fc5
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 0x494fca
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4f0dd0]
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.00494f64
add esp, 0x10
test eax, eax
jge 0x495025
or eax, 0xffffffff
jmp 0x4950cb
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 0x4950c6
push ebx
call sub.MSVCR71.dll_strlen
pop ecx
add edi, eax
jmp 0x49504d
inc edi
cmp byte [edi], 0x20
je 0x49504c
push edi
call dword [sym.imp.MSVCR71.dll_atoi]
mov ebx, eax
test ebx, ebx
pop ecx
jl 0x4950c6
cmp ebx, 0x800000
jg 0x4950c6
push ebx
call fcn.0049ecdd
test eax, eax
pop ecx
mov dword [esi], eax
je 0x4950c6
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 0x4950b1
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 0x4950be
test eax, eax
je 0x4950b5
add edi, eax
cmp edi, ebx
jl 0x49508e
mov eax, dword [ebp - 0x80]
mov dword [eax], ebx
xor eax, eax
jmp 0x4950c9
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.0049f127
add ebp, 0x390
leave
ret
Function at 0x4954fc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b4834
call fcn.0049f0d0
sub esp, 0x268
mov eax, dword [0x4f0dd0]
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 0x49564d
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.004968ca
lea eax, [ebp - 0x218]
mov dword [esp], str.CopyFile_
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.004968ca
lea eax, [ebp - 0x274]
push eax
call fcn.0043d528
and dword [ebp - 4], 0
push 0x4cae4c
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00406b0a
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 0x4955cc
lea eax, [ebp - 0x24c]
push 0x2e
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0043d9c3
add esp, 0xc
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 3
jae 0x4955f7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x4b883c
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [ebp - 0x218]
push eax
call fcn.004968ca
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.0049f127
leave
ret 4
Function at 0x49567c
Capabilities:
Copy file

Disassembly:
mov eax, 0x4b4859
call fcn.0049f0d0
sub esp, 0x74
mov eax, dword [0x4f0dd0]
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.0043d528
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406b0a
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.004954fc
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.00406b0a
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
pop edi
pop esi
jae 0x4956f0
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4956fc
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.0049f127
leave
ret 4

Function at 0x4961ca
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
jne 0x4961f0
lea eax, [esi + 0x68]
push eax
push edi
push esi
push 0x4960d8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x64], eax
je 0x496217
xor ebx, ebx
push edi
push dword [esp + 0x14]
push 0x402
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
cmp eax, edi
jne 0x496222
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x4961f2
push dword [esp + 0x10]
mov ecx, esi
call fcn.00495c3d
pop edi
pop esi
pop ebx
ret 4
Function at 0x4966c6
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 0x496700
call fcn.004963c3
test al, al
mov dword [ebp - 0x30], str.runas
jne 0x496707
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x496715
mov eax, dword [eax + 4]
jmp 0x496718
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x496729
mov eax, dword [eax + 4]
jmp 0x49672c
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x49673d
mov eax, dword [eax + 4]
jmp 0x496740
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 0x496767
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x496c39
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b4b3a
call fcn.0049f0d0
sub esp, 0x5c
mov eax, dword [0x4f0dd0]
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 0x496d60
cmp word [eax], si
je 0x496d60
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.0044f649
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.004968f2
cmp dword [ebp - 0x14], 8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
jae 0x496cb2
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x496cbe
lea eax, [ebp - 0x44]
push ebx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push dword [0x4f0c78]
call esi
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x496d34
test edi, edi
je 0x496d05
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x496ceb
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x496cf7
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x4f0c7c]
call esi
mov dword [edi], eax
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x496d45
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x496d18
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x496d24
lea eax, [ebp - 0x44]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x4f0c80]
call esi
mov dword [edi], eax
jmp 0x496d45
test edi, edi
je 0x496d3b
and dword [edi], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x496d45
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 0x496d62
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.0049f127
leave
ret