joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c17a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x10f]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x118], esi
mov byte [ebp - 0x110], 0
call fcn.005306b0
add esp, 0xc
test esi, esi
jne 0x4c17ef
xor eax, eax
jmp 0x4c18cf
push str.eod.tim
lea edi, [ebp - 0x110]
call fcn.00470e3d
and dword [ebp - 0x114], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
mov edi, 0x226
mov esi, 0x12c
push 0x720
push str..ServerPAULA.c
mov edx, 0x54f4b4
lea ecx, [ebp - 0x110]
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
jne 0x4c1899
call fcn.00531157
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x4c186e
call fcn.00531157
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x4c186e
call fcn.00531157
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x4c1870
push 0xa
call ebx
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x4c1817
lea eax, [ebp - 0x110]
push eax
push str.:4:SaveEODTimeStampDB___FAILED:_fopen___s___FAILED.
call fcn.0042b70b
pop ecx
pop ecx
jmp 0x4c17e8
push eax
xor esi, esi
inc esi
push esi
push 0x188
push dword [ebp - 0x118]
call fcn.00531aad
add esp, 0x10
cmp eax, esi
je 0x4c18c2
push str.:6:SaveEODTimeStampDB___FAILED:_fwrite___FAILED.
call fcn.0042b70b
pop ecx
xor esi, esi
mov ecx, dword [ebp - 0x11c]
call fcn.00435239
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x4c9af3
Capabilities:
Terminate process

Disassembly:
push ecx
test esi, esi
mov eax, dword [0x7046ac]
push ebx
push edi
jne 0x4c9b12
test eax, eax
je 0x4c9b65
push eax
call fcn.004b2137
and dword [0x7046ac], esi
pop ecx
jmp 0x4c9b65
test eax, eax
jne 0x4c9b24
call fcn.004b2094
test eax, eax
mov dword [0x7046ac], eax
je 0x4c9b68
lea edi, [esi + 0x130]
mov ebx, dword [edi]
call fcn.004b250c
test eax, eax
jne 0x4c9b42
push dword [edi]
mov eax, dword [0x7046ac]
call fcn.004b218d
pop ecx
xor ebx, ebx
cmp dword [esi], ebx
jle 0x4c9b65
lea edi, [esi + 4]
mov eax, dword [edi]
call fcn.004ca748
test eax, eax
je 0x4c9b5d
mov ecx, dword [edi]
call fcn.004c9ce3
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x4c9b4b
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret
Function at 0x4ca9de
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x13c
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x24c]
push edi
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x250], edi
call fcn.005306b0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x10f]
push edi
push eax
mov byte [ebp - 0x110], 0
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
or eax, 0xffffffff
cmp dword [ebp - 0x25c], eax
je 0x4cac00
mov dword [ebp - 0x254], edi
mov edi, 0x104
lea edx, [ebp - 0x224]
call fcn.004ccc0d
test eax, eax
jne 0x4caafc
cmp byte [ebp - 0x224], 0x2e
je 0x4caafc
test byte [ebp - 0x250], 0x10
jne 0x4caafc
push dword [ebp - 0x260]
lea ecx, [ebp - 0x224]
call fcn.004cea35
test eax, eax
pop ecx
je 0x4caafc
push dword [ebp - 0x258]
mov ecx, edi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
call fcn.004ccf84
lea eax, [ebp - 0x224]
push eax
mov eax, edi
lea esi, [ebp - 0x110]
call fcn.004ccd0f
pop ecx
mov eax, esi
call fcn.00433f38
add dword [ebp - 0x254], eax
test ebx, ebx
je 0x4caafc
push eax
lea eax, [ebp - 0x224]
push eax
push str._n_s:__d
push ebx
call fcn.004343aa
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4caa70
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 0
je 0x4cabfa
test ebx, ebx
je 0x4cab45
push dword [ebp - 0x254]
push str._n___Line_count_for_this_subdir:__ld
push ebx
call fcn.004343aa
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4cac00
lea edx, [ebp - 0x224]
call fcn.004ccc0d
test eax, eax
jne 0x4cabe4
cmp byte [ebp - 0x224], 0x2e
je 0x4cabe4
test byte [ebp - 0x250], 0x10
je 0x4cabe4
test ebx, ebx
je 0x4cab9f
lea eax, [ebp - 0x224]
push eax
push str._n_n__Subfolder___s_:
push ebx
call fcn.004343aa
add esp, 0xc
push dword [ebp - 0x258]
mov ecx, edi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x110]
call fcn.004cd0b7
pop ecx
push 1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x110]
push eax
call fcn.004ca9de
add esp, 0x10
add dword [ebp - 0x254], eax
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4cab65
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x4cac0f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x13c
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x250]
push esi
push eax
mov dword [ebp - 0x254], esi
call fcn.005306b0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x113]
push esi
push eax
mov byte [ebp - 0x114], 0
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
mov edi, str.E:User_MainMy_DocumentsVisual_Studio_2005ProjectsPAULA.c
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
or eax, 0xffffffff
cmp dword [ebp - 0x25c], eax
je 0x4cad3c
mov dword [ebp - 0x258], esi
test byte [ebp - 0x254], 0x10
jne 0x4cad0f
cmp byte [ebp - 0x228], 0x2e
je 0x4cad0f
push edi
mov ecx, 0x104
lea eax, [ebp - 0x114]
call fcn.004ccc3f
pop ecx
call fcn.004ccf84
lea eax, [ebp - 0x228]
push eax
mov eax, 0x104
lea esi, [ebp - 0x114]
call fcn.004ccd0f
mov edx, dword [ebp - 0x260]
pop ecx
mov ecx, esi
call fcn.004cad4a
mov esi, eax
test esi, esi
jge 0x4cad07
lea eax, [ebp - 0x228]
push eax
push str._nWARNING:_The_file___s__could_not_be_checked.
push dword [ebp - 0x260]
xor esi, esi
inc esi
call fcn.004343aa
add esp, 0xc
test esi, esi
jle 0x4cad0f
add dword [ebp - 0x258], esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4cac94
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.005317e7
leave
ret
Function at 0x4cb458
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x248
xor esi, esi
push ebx
inc esi
push esi
call fcn.00530848
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4cb488
push ebx
push esi
push str.:4:CreateSprite__d__FAILED:_calloc__d__FAILED:_could_not_allocate_memory_for_handle:_OUT_OF_MEMORY_
call fcn.0042b70b
add esp, 0xc
xor eax, eax
jmp 0x4cb578
push 0x30
push esi
call fcn.00530848
test eax, eax
pop ecx
pop ecx
mov dword [edi + 0x70], eax
jne 0x4cb4b2
push 0x30
push esi
push esi
push str.:4:CreateSprite__d__FAILED:_calloc__d___d__FAILED:_could_not_allocation_memory_for_the_frames:_OUT_OF_MEMORY_
call fcn.0042b70b
push edi
call fcn.0053061e
add esp, 0x14
jmp 0x4cb481
cmp dword [0x7048f8], 0
mov dword [edi + 0x5c], esi
jne 0x4cb4ef
call fcn.004b2094
test eax, eax
mov dword [0x7048f8], eax
jne 0x4cb4ef
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4cb4da
push eax
call fcn.0053061e
pop ecx
push edi
call fcn.0053061e
mov dword [esp], str.:7:CreateSprite___FAILED:_CreatePtrList___FAILED____
call fcn.0042b70b
pop ecx
jmp 0x4cb481
fld1
or dword [edi + 0x68], 0xffffffff
and dword [edi + 0x40], 0
fstp dword [edi + 0x44]
mov eax, 0xffff8000
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
call fcn.00414d12
cmp eax, 0xffffffff
mov dword [edi + 0x7c], eax
je 0x4cb518
test eax, eax
jne 0x4cb529
push str._GetLastError_
push str.:7:CreateSprite___encountered_an_exception:_GetStdHandle_STD_OUTPUT_HANDLE__FAILED:__s
call fcn.0042b70b
pop ecx
pop ecx
lea ebx, [edi + 0x88]
push str..Sprite.c
push ebx
call fcn.0043a19c
test eax, eax
pop ecx
pop ecx
jne 0x4cb54b
push str.:5:CreateSprite___EAP:_InitializeLock___FAILED.
call fcn.0042b70b
pop ecx
mov esi, str.A_sprite_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0043a49b
mov eax, 0x7d0
mov ecx, ebx
call fcn.0043a4d8
mov eax, dword [0x7048f8]
push edi
call fcn.004b218d
pop ecx
mov eax, edi
call fcn.004cca54
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4d04c4
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov esi, ecx
push 1
push 0x1f4
mov dword [ebp - 0x80], esi
call fcn.00530848
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x4d0504
xor eax, eax
jmp 0x4d05e8
push 5
pop eax
push eax
push 0x10
mov dword [edi + 8], eax
call fcn.00530848
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4d0523
push edi
call fcn.0053061e
pop ecx
jmp 0x4d04fd
mov eax, dword [0x709198]
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
jne 0x4d053c
call fcn.004b2094
mov dword [0x709198], eax
push edi
call fcn.004b218d
cmp dword [0x709198], ebx
pop ecx
jne 0x4d055b
push dword [edi]
call fcn.0053061e
push edi
call fcn.0053061e
pop ecx
jmp 0x4d0520
cmp esi, ebx
je 0x4d0597
mov esi, 0x103
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.005306b0
push dword [ebp - 0x80]
mov ecx, esi
lea eax, [ebp - 0x7c]
call fcn.004ccc3f
mov esi, eax
call fcn.004ccf41
mov eax, esi
push eax
push 0x18
lea eax, [edi + 0x10]
pop ecx
call fcn.004ccc3f
add esp, 0x14
mov eax, dword [ebp + 0x94]
mov dword [edi + 0x2c], eax
call fcn.004fa8e4
lea ebx, [edi + 0x34]
push str..StringList.c
push ebx
mov dword [edi + 0x30], eax
call fcn.0043a19c
test eax, eax
pop ecx
pop ecx
jne 0x4d05c7
push str.:5:CreateStringList___EAP:_InitializeLock___FAILED.
call fcn.0042b70b
pop ecx
mov esi, str.A_String_List_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0043a49b
mov eax, 0x7d0
mov ecx, ebx
call fcn.0043a4d8
mov eax, edi
call fcn.004d2566
mov eax, edi
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
add ebp, 0x8c
leave
ret
Function at 0x4d25f7
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
jne 0x4d2612
push 1
push 0
push esi
call fcn.00434967
add esp, 0xc
mov eax, esi
jmp fcn.004314ff
push esi
call fcn.00434db5
mov dword [esp], str._ECHO_OFF
push esi
call fcn.004343aa
push str._nREG_ADD__HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem___v__EnableLUA___t_REG_DWORD__d_0__f
push esi
call fcn.004343aa
add esp, 0x10
ret

Function at 0x4d287f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor ecx, ecx
mov dword [ebp - 4], esi
call fcn.004185e3
test eax, eax
jne 0x4d28c4
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4d28bb
xor eax, eax
inc eax
jmp 0x4d28c6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret

Function at 0x4d28c9
Capabilities:
Get proxy

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4d28fd
xor eax, eax
jmp 0x4d2996
push 1
push str.MigrateProxy
push dword [ebp - 4]
call fcn.00413fb5
add esp, 0xc
mov esi, eax
push str.AutoConfigProxy
push dword [ebp - 4]
mov eax, str.wininet.dll
and esi, 1
call fcn.00413de3
push 1
push str.ProxyEnable
push dword [ebp - 4]
and esi, eax
call fcn.00413fb5
add esp, 0x14
push edi
push str.EnableAutodial
push dword [ebp - 4]
and esi, eax
call fcn.00413fb5
add esp, 0xc
and esi, eax
cmp dword [ebp + 8], edi
push str.ProxyServer
push dword [ebp - 4]
mov eax, str.10.28.98.35:80
je 0x4d2966
mov eax, str.proxy.apgnapa.com:80
call fcn.00413de3
pop ecx
pop ecx
push str.ProxyOverride
push dword [ebp - 4]
and esi, eax
mov eax, str.10.__local_
call fcn.00413de3
push edi
push str.ProxyHttp1.1
push dword [ebp - 4]
and esi, eax
call fcn.00413fb5
add esp, 0x14
and eax, esi
pop edi
pop esi
leave
ret
Function at 0x4d4151
Capabilities:
Set console window title

Disassembly:
push 0xc
push 0x5ef2a0
call fcn.00537688
xor edi, edi
mov dword [ebp - 0x1c], edi
mov esi, str.IsTmsTermSetup.flg
push esi
push edi
call fcn.00493154
pop ecx
pop ecx
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.00433c36
test eax, eax
je 0x4d429d
cmp dword [ebp - 0x1c], edi
jle 0x4d429d
mov dword [ebp - 4], edi
push edi
push esi
push edi
call fcn.00493154
pop ecx
pop ecx
mov ecx, eax
call fcn.00433d41
pop ecx
push esi
push edi
call fcn.00493154
pop ecx
pop ecx
call fcn.004314ff
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d41d2
call fcn.004fa8e4
mov esi, eax
jmp 0x4d41e9
call fcn.004fa8e4
sub eax, esi
cmp eax, 0x2710
ja 0x4d41f4
call fcn.0046ed85
test eax, eax
je 0x4d41db
jmp 0x4d41ff
push str.:7:ContinueCreateNetworkTAMSAfterReboot___EAP:_The_network_is_not_responding___
call fcn.0042b70b
pop ecx
push edi
mov ecx, fcn.004608de
call fcn.00411a5e
mov dword [esp], str.Continuing_Terminal_Setup...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push edi
call fcn.0041579e
mov dword [esp], str._nCompleting_Terminal_Setup...
call fcn.0041679b
mov dword [esp], str._nPlease_wait_a_moment__________________
call fcn.0041679b
pop ecx
push 0x10
pop esi
push edi
push edi
call fcn.0043c092
pop ecx
pop ecx
dec esi
jne 0x4d4239
push 0xf
pop esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x551adc
call fcn.0041679b
pop ecx
dec esi
jne 0x4d4248
push edi
call fcn.0041579e
mov dword [esp], str._nOne_moment...
call fcn.0041679b
mov dword [esp], str.PaulaConfig.cfg
push dword [ebp + 8]
call fcn.00461390
push dword [ebp - 0x1c]
call fcn.004d299a
add esp, 0xc
push str.:0:ContinueCreateNetworkTAMSAfterReboot___has_completed_the_setup_procedure.
call fcn.0042bd38
pop ecx
xor eax, eax
inc eax
jmp 0x4d429f
xor eax, eax
call fcn.005376cd
ret
Function at 0x4d42a5
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ecx
xor ebx, ebx
xor eax, eax
mov esi, 0x103
lea edi, [ebp - 0x448]
push esi
mov dword [ebp - 0x44c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x110]
call fcn.0046aecb
push 0x20
xor esi, esi
lea eax, [ebp - 0x44c]
push ebx
inc esi
push eax
mov dword [ebp - 0x42c], esi
call fcn.005306b0
lea eax, [ebp - 0x218]
add esp, 0x14
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x110]
push eax
push str._s_tamspos
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x43c], 0x593578
mov dword [ebp - 0x430], ebx
call fcn.004ce4e5
add esp, 0x10
mov esi, 0x81
push esi
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4d4403
mov edi, str._GetLastError_
push edi
push str.:2:ConnectMappedDriveTAMS__:_WNetAddConnection2A___failed_to_create_mapped_driver_with_login:__s
call fcn.0042bd38
pop ecx
pop ecx
push esi
push ebx
push ebx
lea eax, [ebp - 0x44c]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4d4403
push edi
push str.:5:ConnectMappedDriveTAMS__:_WNetAddConnection2A___COMPLETELY_FAILED:__s
call fcn.0042b70b
pop ecx
pop ecx
mov dword [ebp - 0x42c], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x42c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x4d484b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push str.Connecting_to_server...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str._n_nConnecting_to_TAMS...
call fcn.0041679b
pop ecx
call fcn.004d42a5
mov esi, 0x5bc904
push esi
call fcn.0041679b
pop ecx
push ebx
push ebx
lea ecx, [ebp - 0x110]
call fcn.0046aecb
push str._nWaiting_for_network...
call fcn.0041679b
add esp, 0xc
call fcn.004fa8e4
mov edi, str.T:Start.bat
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ebx
call fcn.00432263
test eax, eax
jne 0x4d498b
cmp dword [ebp - 0x114], 0xa
jge 0x4d492d
push 0x551adc
call fcn.0041679b
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004fa8e4
sub eax, dword [ebp - 0x118]
cmp eax, 0x2710
jbe 0x4d491e
mov dword [ebp - 0x114], 0xde
inc dword [ebp - 0x114]
call fcn.00432263
test eax, eax
je 0x4d48e2
cmp dword [ebp - 0x114], ebx
jle 0x4d498b
call fcn.00432263
test eax, eax
jne 0x4d498b
push str..FAILED_
call fcn.0041679b
pop ecx
lea eax, [ebp - 0x110]
push eax
push str.:2:StartTamsConnectionSession___FAILED_to_connect_to__s.
call fcn.0042b70b
lea eax, [ebp - 0x110]
push eax
push str.Could_not_connect_to_the_TAMS_server_at__s._n_nWould_you_like_to_try_again___Y_N__n_nYes___No
push str.__Could_Not_Connect___
push ebx
push ebx
call fcn.0043d5cf
add esp, 0x1c
test eax, eax
je 0x4d4987
push dword [ebp + 8]
call fcn.004d484b
pop ecx
jmp 0x4d4a24
xor edi, edi
jmp 0x4d4995
xor edi, edi
push esi
inc edi
call fcn.0041679b
pop ecx
push str._n_nConnecting_to_printer...
call fcn.0041679b
pop ecx
call fcn.004d4418
test eax, eax
jne 0x4d49d0
push str..FAILED_
call fcn.0041679b
pop ecx
call fcn.004d287f
test eax, eax
je 0x4d49db
push str._nThe_printer_cannot_be_setup_because_you_are_a_LIMITED_USER.
call fcn.0041679b
mov dword [esp], str._nPlease_login_to_Windows_as_Administrator_and_run_the_terminal_setup_again.
jmp 0x4d49d5
push str..OK.
call fcn.0041679b
pop ecx
cmp dword [ebp + 8], ebx
jne 0x4d4a22
cmp edi, ebx
jne 0x4d4a01
push str._n_nA_problem_occurred_during_the_connection_process.
call fcn.0041679b
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0041679b
mov eax, 0x3a98
jmp 0x4d4a1c
push str._n_nThe_connection_process_is_complete.
call fcn.0041679b
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0041679b
mov eax, 0x2710
pop ecx
call fcn.0043ce01
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x4d4a33
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push ebx
push ebx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
call fcn.0046aecb
push 1
call fcn.004d484b
add esp, 0xc
push str._n_nSetting_environment...
mov dword [ebp - 0x120], eax
call fcn.0041679b
pop ecx
xor ecx, ecx
xor edx, edx
call fcn.0046f18e
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push 0x5bcb04
call edi
lea eax, [ebp - 0x110]
push eax
push str.SRET
call edi
lea eax, [ebp - 0x110]
push eax
push str.serverip
call edi
push str.WinXPSp2_DisableThemes_DisableDWM
push str.__COMPAT_LAYER
call edi
push 0x5bcb50
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4d4b06
push str._GetLastError_
push str.:2:StartTamsGraphicalSession___FAILED:_SetCurrentDirectory__T:___FAILED:__s
call fcn.0042b70b
push str..FAILED_
call fcn.0041679b
add esp, 0xc
jmp 0x4d4b11
push str..OK.
call fcn.0041679b
pop ecx
push str._n_nStarting_application...
call fcn.0041679b
pop ecx
mov ebx, str.START__TAMS_Graphical_Session___MIN_cmd.exe__C__T:_start.bat_
call fcn.0041740c
lea ebx, [ebp - 0x11c]
lea esi, [ebp - 0x118]
call fcn.00414880
and dword [ebp - 0x114], 0
mov esi, 0x4c6
mov ebx, 0x3e8
push dword [ebp - 0x114]
push str._d_10
call fcn.0041679b
push esi
mov eax, ebx
call fcn.00468c65
add esp, 0xc
test eax, eax
jl 0x4d4ba0
push esi
mov eax, ebx
call fcn.00468c65
cmp eax, 0x7fffffff
pop ecx
jge 0x4d4ba0
push esi
mov eax, ebx
call fcn.00468c65
test eax, eax
pop ecx
jl 0x4d4ba0
push esi
mov eax, ebx
call fcn.00468c65
cmp eax, 0x7fffffff
pop ecx
jge 0x4d4ba0
push esi
mov eax, ebx
call fcn.00468c65
pop ecx
push eax
jmp 0x4d4ba2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
call fcn.004147ba
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 0xa
pop ecx
pop ecx
jle 0x4d4b48
push 0x54f4ea
push str.__COMPAT_LAYER
call edi
push str..Done.
call fcn.0041679b
mov eax, dword [ebp - 0x120]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x4d4bfa
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push str.Starting_telnet_session...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push ebx
push ebx
lea ecx, [ebp - 0x110]
call fcn.0046aecb
push str._n_nConnecting_to_TAMS...
call fcn.0041679b
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.004d613b
cmp eax, ebx
jne 0x4d4ca1
push str..FAILED_
call fcn.0041679b
pop ecx
lea eax, [ebp - 0x110]
push eax
push str.:5:StartTamsTelnetSession___FAILED_to_connect_to__s.
call fcn.0042b70b
lea eax, [ebp - 0x110]
push eax
push str.Could_not_connect_to_the_TAMS_server_at__s._n_nWould_you_like_to_try_again___Y_N__n_nYes___No
push str.__Could_Not_Connect___
push ebx
push ebx
call fcn.0043d5cf
add esp, 0x1c
test eax, eax
je 0x4d4cb1
call fcn.004d4bfa
jmp 0x4d4cb9
call fcn.004d66c5
push str..OK.
call fcn.0041679b
pop ecx
push 1
call fcn.00414065
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret

Function at 0x4d5006
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push edi
je 0x4d50e5
cmp dword [ebp + 0xc], 0
jle 0x4d50e5
push str..TelNet.c
mov edi, 0x288
push edi
push 1
push esi
call fcn.004d6ae6
add esp, 0x10
test eax, eax
je 0x4d50e5
push edi
mov eax, esi
call fcn.004da8c5
test eax, eax
pop ecx
je 0x4d50e5
inc dword [esi + 0xd28]
cmp dword [esi + 0xd30], 0
jne 0x4d50a1
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi + 0xacc]
mov dword [ebp - 4], 0x1388
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x4d5097
call sub.WSOCK32.dll_WSAGetLastError
push eax
push esi
push str.:4:TelNetSendBinary__s__EAP:_Failed_to_set_the_send_time_out:_WSAGetLastError___d
call fcn.0042b70b
add esp, 0xc
mov dword [esi + 0xd30], 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xacc]
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jg 0x4d50d4
cmp dword [ebp + 0xc], 0x19
jle 0x4d50d4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push esi
push str.:5:TelNetSendBinary__s__FAILED:_send___FAILED:_WSAGetLastError___d
call fcn.0042b70b
add esp, 0xc
dec dword [esi + 0xd28]
mov eax, esi
call fcn.004da909
mov eax, edi
jmp 0x4d50e7
xor eax, eax
pop edi
leave
ret