joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c0cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x20
pop eax
jmp 0x46c0df
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x693
mov ebx, eax
call fcn.0046d27e
test eax, eax
je 0x46c18f
mov eax, esi
call fcn.0046d2cc
test eax, eax
je 0x46c18f
test ebx, ebx
jge 0x46c110
mov ebx, 0xff
mov eax, dword [esi]
imul eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x46c17b
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4]
cmp byte [eax], bl
jne 0x46c132
test word [eax + 2], 0x2000
jne 0x46c132
xor ecx, ecx
jmp 0x46c137
xor ecx, ecx
mov byte [eax], bl
inc ecx
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
movzx edx, word [eax]
xor edx, dword [esi + 0x10]
test dl, dl
je 0x46c160
mov dl, byte [esi + 0x10]
and dx, 0xff
cmp ebx, 0xff
je 0x46c15d
or dx, 0x200
mov word [eax], dx
test ecx, ecx
je 0x46c170
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
or word [eax], 0x2000
mov eax, dword [esi]
imul eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x46c11c
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov eax, esi
call fcn.0046d2e2
xor eax, eax
inc eax
jmp 0x46c191
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x46d2ef
Capabilities:
Write file on windows

Disassembly:
push 0x10
push 0x4ff340
call fcn.004aebdc
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x46d3ab
push 1
mov esi, 0xfffc
push esi
call fcn.004a7b08
mov edi, eax
push 1
push esi
call fcn.004a7b08
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffdc
push edi
call fcn.004a996c
add esp, 0x24
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [edi + ecx]
mov dl, byte [eax]
cmp dl, 0xd
je 0x46d39e
cmp dl, 0xa
je 0x46d39e
add ecx, esi
mov byte [ecx], 0x1c
mov byte [ecx + 1], 0x1d
mov byte [ecx + 2], 0x1e
mov byte [ecx + 3], 0x1f
add ecx, 4
push ecx
call fcn.0046d52e
pop ecx
push dword [ebp + 8]
push esi
call fcn.004a7f30
pop ecx
push eax
push 1
push esi
call fcn.004a7ca6
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 4
jle 0x46d38e
sub dword [ebp - 0x1c], 4
push edi
call fcn.004a795c
push esi
call fcn.004a795c
pop ecx
pop ecx
jmp 0x46d3ab
mov byte [esi + ecx], dl
inc ecx
jmp 0x46d33f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.004aec21
ret

Function at 0x46dfd7
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push 0x2b7
push str..Security.c
call fcn.0046df56
mov edx, 0x4c7368
mov ecx, eax
call fcn.0041bb64
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x46e028
push esi
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.004a7ca6
add esp, 0x10
mov ecx, esi
call fcn.0041bf91
push 2
push ecx
call fcn.0046df56
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
inc eax
pop esi
pop ecx
ret
Function at 0x46e02b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0x2d0
push str..Security.c
call fcn.0046df56
mov edx, 0x4c722c
mov ecx, eax
call fcn.0041bb64
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x46e069
call fcn.0046df56
mov edi, eax
call fcn.00419e19
xor eax, eax
jmp 0x46e08d
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.004a8fc5
add esp, 0x10
cmp eax, 1
jae 0x46e083
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0041bf91
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x46fdd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], esi
mov byte [ebp - 0x110], 0
call fcn.004a8c80
and word [ebp - 0x12c], 0
xor eax, eax
lea edi, [ebp - 0x12a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
test ebx, ebx
stosw word es:[edi], ax
jne 0x46fe39
test esi, esi
jne 0x46fe39
xor eax, eax
inc eax
jmp 0x46ff41
push str.S7.tim
lea edi, [ebp - 0x110]
call fcn.00442baf
test ebx, ebx
pop ecx
jne 0x46fe60
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x11c], eax
xor edx, edx
mov ecx, eax
jmp 0x46fe76
test esi, esi
jne 0x46fe85
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x118], eax
mov esi, ebx
mov edx, eax
xor ecx, ecx
lea edi, [ebp - 0x12c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046ff50
and dword [ebp - 0x114], 0
mov edi, 0x190
lea esi, [edi - 0x64]
push 0x664
push str..ServerPAULA.c
mov edx, 0x4c7368
lea ecx, [ebp - 0x110]
call fcn.0041bb64
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x46ff02
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x46fee7
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x46fee7
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x46fee9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x46fe94
xor eax, eax
jmp 0x46ff41
xor esi, esi
push ebx
inc esi
push esi
push 0x10
push dword [ebp - 0x11c]
call fcn.004a7ca6
add esp, 0x10
cmp eax, esi
jne 0x46ff31
push ebx
push esi
push 0x10
push dword [ebp - 0x118]
call fcn.004a7ca6
add esp, 0x10
cmp eax, esi
je 0x46ff33
xor esi, esi
mov ecx, ebx
call fcn.0041bf91
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x46ff50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x110], 0
call fcn.004a8c80
and word [ebp - 0x12c], 0
xor eax, eax
lea edi, [ebp - 0x12a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push str.S7.tim
lea edi, [ebp - 0x110]
call fcn.00442baf
test esi, esi
pop ecx
jne 0x46ffc9
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x11c], eax
test ebx, ebx
jne 0x46ffd9
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x114], 0
mov esi, 0x15e
lea ebx, [esi - 0x64]
push 0x6a1
push str..ServerPAULA.c
mov edx, 0x4c722c
lea ecx, [ebp - 0x110]
call fcn.0041bb64
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x47007d
lea edi, [ebp - 0x110]
call fcn.00419e19
test eax, eax
je 0x470061
call fcn.004a913c
cdq
mov ecx, esi
idiv ecx
add edx, ebx
js 0x47004a
call fcn.004a913c
cdq
mov ecx, esi
idiv ecx
add edx, ebx
cmp edx, 0x7fffffff
jge 0x47004a
call fcn.004a913c
cdq
mov ecx, esi
idiv ecx
add edx, ebx
push edx
jmp 0x47004c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x46ffe8
lea edi, [ebp - 0x110]
call fcn.00419e19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
mov esi, dword [ebp - 0x11c]
xor ebx, ebx
push edi
inc ebx
push ebx
push 0x10
push esi
mov dword [ebp - 0x114], ebx
call fcn.004a8fc5
add esp, 0x10
cmp eax, ebx
jne 0x4700b3
push edi
push ebx
push 0x10
push dword [ebp - 0x118]
call fcn.004a8fc5
add esp, 0x10
cmp eax, ebx
je 0x4700ba
and dword [ebp - 0x114], 0
mov ecx, edi
call fcn.0041bf91
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00499a8c
add esp, 0x14
test eax, eax
je 0x47006c
mov esi, dword [ebp - 0x118]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00499a8c
add esp, 0x14
test eax, eax
je 0x47006c
xor eax, eax
cmp dword [ebp - 0x114], eax
setne al
jmp 0x47006e
Function at 0x470107
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x10f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x118], edi
mov byte [ebp - 0x110], 0
call fcn.004a8c80
add esp, 0xc
cmp edi, ebx
jne 0x47014e
xor eax, eax
jmp 0x470242
mov esi, 0x188
push esi
push ebx
push edi
call fcn.004a8c80
add esp, 0xc
push str.eod.tim
lea edi, [ebp - 0x110]
call fcn.00442baf
mov dword [ebp - 0x114], ebx
pop ecx
mov ebx, 0xfa
push 0x6ee
push str..ServerPAULA.c
mov edx, 0x4c722c
lea ecx, [ebp - 0x110]
call fcn.0041bb64
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x470206
lea edi, [ebp - 0x110]
call fcn.00419e19
test eax, eax
je 0x4701f6
call fcn.004a913c
mov edi, 0x226
cdq
mov ecx, edi
idiv ecx
add edx, ebx
js 0x4701df
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, ebx
cmp edx, 0x7fffffff
jge 0x4701df
call fcn.004a913c
cdq
idiv edi
add edx, ebx
push edx
jmp 0x4701e1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x47017a
lea edi, [ebp - 0x110]
call fcn.00419e19
jmp 0x470147
push edi
push 1
push esi
push dword [ebp - 0x118]
call fcn.004a8fc5
add esp, 0x10
cmp eax, 1
mov ecx, edi
je 0x47023a
call fcn.0041bf91
push esi
push 0
push dword [ebp - 0x118]
call fcn.004a8c80
add esp, 0xc
jmp 0x470147
call fcn.0041bf91
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret

Function at 0x470251
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
test esi, esi
jne 0x470297
xor eax, eax
jmp 0x470359
push str.eod.tim
lea edi, [ebp - 0x110]
call fcn.00442baf
and dword [ebp - 0x114], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
mov edi, 0x226
mov esi, 0x12c
push 0x721
push str..ServerPAULA.c
mov edx, 0x4c7368
lea ecx, [ebp - 0x110]
call fcn.0041bb64
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
jne 0x47032e
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x470316
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x470316
call fcn.004a913c
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x470318
push 0xa
call ebx
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 3
jl 0x4702bf
jmp 0x470290
push eax
xor esi, esi
inc esi
push esi
push 0x188
push dword [ebp - 0x118]
call fcn.004a7ca6
add esp, 0x10
cmp eax, esi
je 0x47034c
xor esi, esi
mov ecx, dword [ebp - 0x11c]
call fcn.0041bf91
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x475945
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x475964
mov esi, dword [0x60dc40]
test esi, esi
je 0x4759c9
call fcn.0046a43e
and dword [0x60dc40], 0
jmp 0x4759c9
mov eax, dword [0x60dc40]
test eax, eax
jne 0x47597d
call fcn.0046a3c9
test eax, eax
mov dword [0x60dc40], eax
jne 0x47597d
pop esi
ret
push ebx
push ebp
push edi
lea ebp, [esi + 0x130]
mov ebx, dword [ebp]
mov edi, eax
call fcn.0046a752
test eax, eax
jne 0x4759a3
push dword [ebp]
mov ebx, dword [0x60dc40]
call fcn.0046a47b
pop ecx
xor ebx, ebx
cmp dword [esi], ebx
jle 0x4759c6
lea edi, [esi + 4]
mov eax, dword [edi]
call fcn.0047650a
test eax, eax
je 0x4759be
mov ecx, dword [edi]
call fcn.00475b49
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x4759ac
pop edi
pop ebp
pop ebx
xor eax, eax
inc eax
pop esi
ret

Function at 0x47659e
Capabilities:
Terminate process

Disassembly:
push esi
push edi
xor esi, esi
push 0x248
inc esi
push esi
call fcn.004a7b08
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4765bd
xor eax, eax
jmp 0x476664
push 0x30
push esi
call fcn.004a7b08
test eax, eax
pop ecx
pop ecx
mov dword [edi + 0x70], eax
jne 0x4765d7
push edi
call fcn.004a795c
pop ecx
jmp 0x4765b6
cmp dword [0x60de8c], 0
mov dword [edi + 0x5c], esi
jne 0x476601
call fcn.0046a3c9
test eax, eax
mov dword [0x60de8c], eax
jne 0x476601
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4765ce
push eax
call fcn.004a795c
pop ecx
jmp 0x4765ce
fld1
or dword [edi + 0x68], 0xffffffff
and dword [edi + 0x40], 0
fstp dword [edi + 0x44]
mov eax, 0xffff8000
push ebx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
call fcn.0040d0e1
lea ebx, [edi + 0x88]
push str..Sprite.c
push ebx
mov dword [edi + 0x7c], eax
call fcn.0041c68c
mov esi, str.A_sprite_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0041c887
mov eax, 0x7d0
mov ecx, ebx
call fcn.0041c8b0
mov ebx, dword [0x60de8c]
push edi
call fcn.0046a47b
add esp, 0xc
mov eax, edi
call fcn.0047788a
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x47a4b3
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push edi
push 1
push 0x1f4
mov esi, ecx
call fcn.004a7b08
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x47a4ed
xor eax, eax
jmp 0x47a5cd
push 5
pop eax
push eax
push 0x10
mov dword [edi + 8], eax
call fcn.004a7b08
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x47a50c
push edi
call fcn.004a795c
pop ecx
jmp 0x47a4e6
and dword [edi + 4], 0
and dword [edi + 0xc], 0
push ebx
mov ebx, dword [0x61272c]
test ebx, ebx
jne 0x47a52c
call fcn.0046a3c9
mov ebx, eax
mov dword [0x61272c], ebx
push edi
call fcn.0046a47b
xor eax, eax
cmp dword [0x61272c], eax
pop ecx
jne 0x47a550
push dword [edi]
call fcn.004a795c
push edi
call fcn.004a795c
pop ecx
pop ecx
xor eax, eax
jmp 0x47a5cc
cmp esi, eax
je 0x47a58a
mov ebx, 0x103
push ebx
push eax
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x7f]
push eax
call fcn.004a8c80
push esi
mov ecx, ebx
lea eax, [ebp - 0x80]
call fcn.00477a48
mov esi, eax
call fcn.00477d45
mov eax, esi
push eax
push 0x18
lea eax, [edi + 0x10]
pop ecx
call fcn.00477a48
add esp, 0x14
mov eax, dword [ebp + 0x90]
mov dword [edi + 0x2c], eax
call fcn.0049a965
lea ebx, [edi + 0x34]
push str..StringList.c
push ebx
mov dword [edi + 0x30], eax
call fcn.0041c68c
pop ecx
pop ecx
mov esi, str.A_String_List_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0041c887
mov eax, 0x7d0
mov ecx, ebx
call fcn.0041c8b0
mov eax, edi
call fcn.0047c022
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x84]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8565
add ebp, 0x88
leave
ret
Function at 0x47c02f
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.0040fbf4
test eax, eax
jne 0x47c074
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 0x47c06b
xor eax, eax
inc eax
jmp 0x47c076
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret

Function at 0x47c079
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5025d0]
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 - 0x444]
push esi
mov dword [ebp - 0x448], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004a8c80
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
call fcn.0043dc09
push 0x20
xor esi, esi
lea eax, [ebp - 0x448]
push ebx
inc esi
push eax
mov edi, esi
call fcn.004a8c80
lea eax, [ebp - 0x110]
add esp, 0x14
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x218]
push eax
push str._s_tamspos
lea eax, [ebp - 0x110]
push 0x104
push eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x438], 0x4df7b8
mov dword [ebp - 0x42c], ebx
call fcn.00478fcf
add esp, 0x10
mov esi, 0x81
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x448]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47c1b0
push esi
push ebx
push ebx
lea eax, [ebp - 0x448]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x47c1b0
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x47c4ff
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
push str.Connecting_to_server...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str._n_nConnecting_to_TAMS...
call fcn.0040e927
pop ecx
call fcn.0047c079
mov esi, 0x4e9b84
push esi
call fcn.0040e927
pop ecx
push ebx
push ebx
lea ecx, [ebp - 0x110]
call fcn.0043dc09
push str._nWaiting_for_network...
call fcn.0040e927
add esp, 0xc
call fcn.0049a965
mov edi, str.T:Start.bat
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ebx
call fcn.00419e19
test eax, eax
jne 0x47c62e
cmp dword [ebp - 0x114], 0xa
jge 0x47c5e1
push 0x4c73c0
call fcn.0040e927
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0049a965
sub eax, dword [ebp - 0x118]
cmp eax, 0x2710
jbe 0x47c5d2
mov dword [ebp - 0x114], 0xde
inc dword [ebp - 0x114]
call fcn.00419e19
test eax, eax
je 0x47c596
cmp dword [ebp - 0x114], ebx
jle 0x47c62e
call fcn.00419e19
test eax, eax
jne 0x47c62e
push str..FAILED_
call fcn.0040e927
pop ecx
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.0041f54f
add esp, 0x14
test eax, eax
je 0x47c62a
push dword [ebp + 8]
call fcn.0047c4ff
pop ecx
jmp 0x47c6c7
xor edi, edi
jmp 0x47c638
xor edi, edi
push esi
inc edi
call fcn.0040e927
pop ecx
push str._n_nConnecting_to_printer...
call fcn.0040e927
pop ecx
call fcn.0047c1c1
test eax, eax
jne 0x47c673
push str..FAILED_
call fcn.0040e927
pop ecx
call fcn.0047c02f
test eax, eax
je 0x47c67e
push str._nThe_printer_cannot_be_setup_because_you_are_a_LIMITED_USER.
call fcn.0040e927
mov dword [esp], str._nPlease_login_to_Windows_as_Administrator_and_run_the_terminal_setup_again.
jmp 0x47c678
push str..OK.
call fcn.0040e927
pop ecx
cmp dword [ebp + 8], ebx
jne 0x47c6c5
cmp edi, ebx
jne 0x47c6a4
push str._n_nA_problem_occurred_during_the_connection_process.
call fcn.0040e927
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0040e927
mov eax, 0x3a98
jmp 0x47c6bf
push str._n_nThe_connection_process_is_complete.
call fcn.0040e927
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0040e927
mov eax, 0x2710
pop ecx
call fcn.0041f05b
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x47c6d6
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
push ebx
push ebx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
call fcn.0043dc09
push 1
call fcn.0047c4ff
add esp, 0xc
push str._n_nSetting_environment...
mov dword [ebp - 0x120], eax
call fcn.0040e927
pop ecx
xor ecx, ecx
xor edx, edx
call fcn.00441263
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push 0x4e9d4c
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 0x4e9d98
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x47c792
push str..FAILED_
jmp 0x47c797
push str..OK.
call fcn.0040e927
pop ecx
push str._n_nStarting_application...
call fcn.0040e927
pop ecx
mov ebx, str.START__TAMS_Graphical_Session___MIN_cmd.exe__C__T:_start.bat_
call fcn.0040f4f7
lea ebx, [ebp - 0x11c]
lea esi, [ebp - 0x118]
call fcn.0040cd5f
and dword [ebp - 0x114], 0
mov esi, 0x4c6
mov ebx, 0x3e8
push dword [ebp - 0x114]
push str._d_10
call fcn.0040e927
push esi
mov eax, ebx
call fcn.0043c295
add esp, 0xc
test eax, eax
jl 0x47c82c
push esi
mov eax, ebx
call fcn.0043c295
cmp eax, 0x7fffffff
pop ecx
jge 0x47c82c
push esi
mov eax, ebx
call fcn.0043c295
test eax, eax
pop ecx
jl 0x47c82c
push esi
mov eax, ebx
call fcn.0043c295
cmp eax, 0x7fffffff
pop ecx
jge 0x47c82c
push esi
mov eax, ebx
call fcn.0043c295
pop ecx
push eax
jmp 0x47c82e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
call fcn.0040ccb7
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 0xa
pop ecx
pop ecx
jle 0x47c7d4
push 0x4c7de3
push str.__COMPAT_LAYER
call edi
push str..Done.
call fcn.0040e927
mov eax, dword [ebp - 0x120]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret

Function at 0x47c886
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5025d0]
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.004a8c80
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.0043dc09
push str._n_nConnecting_to_TAMS...
call fcn.0040e927
add esp, 0xc
push str..FAILED_
call fcn.0040e927
pop ecx
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.0041f54f
add esp, 0x14
test eax, eax
je 0x47c90d
call fcn.0047c886
jmp 0x47c915
push 1
call fcn.0040c662
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret