joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a32d
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x5005d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.004a7110
add esp, 0xc
push str.Connecting_to_server...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str._n_nConnecting_to_TAMS...
call fcn.0040dc4a
pop ecx
call fcn.00479ea7
mov esi, 0x4e7a0c
push esi
call fcn.0040dc4a
pop ecx
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.0043c2a9
push str._nWaiting_for_network...
call fcn.0040dc4a
add esp, 0xc
call fcn.00498efc
mov edi, str.T:Start.bat
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
call fcn.00418e6b
test eax, eax
jne 0x47a44d
cmp dword [esp + 0x10], 0xa
jge 0x47a404
push 0x4c53a0
call fcn.0040dc4a
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00498efc
sub eax, dword [esp + 0x14]
cmp eax, 0x2710
jbe 0x47a3f7
mov dword [esp + 0x10], 0xde
inc dword [esp + 0x10]
call fcn.00418e6b
test eax, eax
je 0x47a3c1
cmp dword [esp + 0x10], ebx
jle 0x47a44d
call fcn.00418e6b
test eax, eax
jne 0x47a44d
push str..FAILED_
call fcn.0040dc4a
pop ecx
lea eax, [esp + 0x18]
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.0041e261
add esp, 0x14
test eax, eax
je 0x47a449
push dword [ebp + 8]
call fcn.0047a32d
pop ecx
jmp 0x47a4e6
xor edi, edi
jmp 0x47a457
xor edi, edi
push esi
inc edi
call fcn.0040dc4a
pop ecx
push str._n_nConnecting_to_printer...
call fcn.0040dc4a
pop ecx
call fcn.00479fef
test eax, eax
jne 0x47a492
push str..FAILED_
call fcn.0040dc4a
pop ecx
call fcn.00479e6a
test eax, eax
je 0x47a49d
push str._nThe_printer_cannot_be_setup_because_you_are_a_LIMITED_USER.
call fcn.0040dc4a
mov dword [esp], str._nPlease_login_to_Windows_as_Administrator_and_run_the_terminal_setup_again.
jmp 0x47a497
push str..OK.
call fcn.0040dc4a
pop ecx
cmp dword [ebp + 8], ebx
jne 0x47a4e4
cmp edi, ebx
jne 0x47a4c3
push str._n_nA_problem_occurred_during_the_connection_process.
call fcn.0040dc4a
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0040dc4a
mov eax, 0x3a98
jmp 0x47a4de
push str._n_nThe_connection_process_is_complete.
call fcn.0040dc4a
mov dword [esp], str._nPress_any_key_to_exit...
call fcn.0040dc4a
mov eax, 0x2710
pop ecx
call fcn.0041dd6d
mov eax, edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret
Function at 0x47a4fb
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.004a7110
push ebx
push ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
call fcn.0043c2a9
push 1
call fcn.0047a32d
push str._n_nSetting_environment...
mov dword [ebp - 0x80], eax
call fcn.0040dc4a
add esp, 0x1c
xor ecx, ecx
xor edx, edx
call fcn.0043f872
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push eax
push 0x4e7bd4
call edi
lea eax, [ebp - 0x70]
push eax
push str.SRET
call edi
lea eax, [ebp - 0x70]
push eax
push str.serverip
call edi
push str.WinXPSp2_DisableThemes_DisableDWM
push str.__COMPAT_LAYER
call edi
push 0x4e7c20
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x47a5a3
push str..FAILED_
jmp 0x47a5a8
push str..OK.
call fcn.0040dc4a
pop ecx
push str._n_nStarting_application...
call fcn.0040dc4a
pop ecx
mov ebx, str.START__TAMS_Graphical_Session___MIN_cmd.exe__C__T:_start.bat_
call fcn.0040e81a
lea ebx, [ebp - 0x7c]
lea esi, [ebp - 0x78]
call fcn.0040c05c
and dword [ebp - 0x74], 0
mov esi, 0x4c6
mov ebx, 0x3e8
push dword [ebp - 0x74]
push str._d_10
call fcn.0040dc4a
push esi
mov eax, ebx
call fcn.0043a94b
add esp, 0xc
test eax, eax
jl 0x47a631
push esi
mov eax, ebx
call fcn.0043a94b
cmp eax, 0x7fffffff
pop ecx
jge 0x47a631
push esi
mov eax, ebx
call fcn.0043a94b
test eax, eax
pop ecx
jl 0x47a631
push esi
mov eax, ebx
call fcn.0043a94b
cmp eax, 0x7fffffff
pop ecx
jge 0x47a631
push esi
mov eax, ebx
call fcn.0043a94b
pop ecx
push eax
jmp 0x47a633
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call fcn.0040bfb4
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 0xa
pop ecx
pop ecx
jle 0x47a5dc
push 0x4c5db3
push str.__COMPAT_LAYER
call edi
push str..Done.
call fcn.0040dc4a
mov eax, dword [ebp - 0x80]
pop ecx
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x98
leave
ret

Function at 0x47a681
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x5005d0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0xd]
push ebx
push eax
mov byte [esp + 0x14], bl
call fcn.004a7110
add esp, 0xc
push str.Starting_telnet_session...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push ebx
push ebx
lea ecx, [esp + 0x10]
call fcn.0043c2a9
push str._n_nConnecting_to_TAMS...
call fcn.0040dc4a
add esp, 0xc
push str..FAILED_
call fcn.0040dc4a
pop ecx
lea eax, [esp + 8]
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.0041e261
add esp, 0x14
test eax, eax
je 0x47a707
call fcn.0047a681
jmp 0x47a70f
push 1
call fcn.0040b99f
pop ecx
mov ecx, dword [esp + 0x114]
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret
Function at 0x499c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x10f]
push esi
push eax
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.004a7110
xor eax, eax
mov word [ebp - 0x278], si
lea edi, [ebp - 0x276]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x268], si
xor eax, eax
lea edi, [ebp - 0x266]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
call fcn.00498efc
sub eax, dword [0x613b1c]
cmp eax, 0x493e0
jae 0x499c9b
xor eax, eax
jmp 0x499dd0
call fcn.00498efc
mov dword [0x613b1c], eax
call fcn.00499315
test eax, eax
je 0x499c94
push 0x6132e0
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
call fcn.00475bc3
push str.PAULATempTimeDetectionFile
push 0x4dd368
push eax
call fcn.00476d91
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x499c94
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 8]
push eax
call ebx
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x24c]
jg 0x499d3f
lea eax, [ebp - 0x23c]
push eax
call ebx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x278]
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.00498649
add esp, 0x20
cmp eax, 0xdbba0
jle 0x499da3
lea eax, [ebp - 0x110]
call fcn.00475bc3
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x110]
call fcn.00475953
pop ecx
mov eax, esi
call fcn.004189f3
test eax, eax
je 0x499da3
inc dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x499d14
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
Function at 0x49a76c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and word [esp + 4], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00475851
test eax, eax
je 0x49a79b
xor eax, eax
jmp 0x49a7f9
test ebx, ebx
mov esi, str..Time.c
jne 0x49a7bf
push 0xb90
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004998ed
add esp, 0xc
test eax, eax
je 0x49a797
lea ebx, [esp + 0x10]
mov ecx, dword [ebp + 8]
push 0xb98
push esi
mov edx, 0x4c5348
call fcn.0041a89d
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49a797
push edi
push 1
push 0x10
push ebx
call fcn.004a612e
add esp, 0x10
mov esi, eax
dec esi
neg esi
sbb esi, esi
mov ecx, edi
inc esi
call fcn.0041acca
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0x10], bx
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x49a831
push 0x10
push ebx
push edi
call fcn.004a7110
add esp, 0xc
mov edx, dword [ebp + 0xc]
call fcn.00475851
test eax, eax
je 0x49a841
xor eax, eax
jmp 0x49a89c
mov ecx, dword [ebp + 0xc]
push 0xbb8
push str..Time.c
mov edx, 0x4c520c
call fcn.0041a89d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x49a83d
push 0x10
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004a7110
push esi
push 1
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004a7455
add esp, 0x1c
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
mov ecx, esi
inc ebx
call fcn.0041acca
test edi, edi
je 0x49a89a
lea esi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ac32
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [0x613b9c], eax
je 0x49ac6c
call fcn.00498efc
mov dword [0x613ba0], eax
jmp 0x49ac82
call fcn.00498efc
sub eax, dword [0x613ba0]
cmp eax, 0xde
jb 0x49ad4e
cmp dword [0x613b9c], ebx
jne 0x49ad4e
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49ad36
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [ebp - 8], ebx
jne 0x49acc1
call fcn.0040a5a0
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x49ad39
cmp dword [ebp - 4], ebx
jne 0x49ad39
lea eax, [ebp - 0x20]
push eax
call fcn.0040a5a0
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
call esi
push 4
mov edi, eax
call esi
add eax, dword [ebp - 0x1c]
push 0xfffffffffffffffd
lea ecx, [eax + edi + 3]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
pop edi
cdq
idiv edi
mov dword [ebp - 0x1c], ecx
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jle 0x49ad2d
cmp eax, dword [ebp - 0x18]
jge 0x49ad2d
cmp dword [ebp - 0xc], ecx
jle 0x49ad2d
push 0xf
call esi
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jge 0x49ad2d
mov dword [0x613b80], 1
call fcn.00498efc
mov dword [0x613b84], eax
jmp 0x49ad39
mov dword [ebp - 4], 1
jmp 0x49ad39
mov dword [ebp - 4], ebx
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x613b9c], ebx
je 0x49ac95
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4a0432
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x4a05e5
mov edi, dword [esp + 0x24]
call fcn.00418e6b
test eax, eax
je 0x4a05e5
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
push 0x42c
mov dword [esp + 0x20], eax
xor esi, esi
call fcn.004a5f90
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4a058f
push 0x2010
push ebx
push ebx
push ebx
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a0588
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push ebp
mov dword [edi], 0x28
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a057e
push 0x10
push 1
call fcn.004a5f90
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a057e
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov ax, word [edi + 4]
mov word [esi + 0xc], ax
mov ax, word [edi + 8]
push ebp
mov word [esi + 0xe], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esi], eax
je 0x4a0522
movsx eax, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4a0516
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi], ebx
jmp 0x4a0522
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 8], eax
cmp dword [esi + 4], ebx
je 0x4a057e
mov eax, dword [esp + 0x20]
add eax, 0x64
push eax
call fcn.004a76c7
cmp eax, ebx
pop ecx
mov dword [esp + 0x20], eax
je 0x4a057e
push ebx
push edi
push eax
push dword [edi + 8]
push ebx
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a0574
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0xcc0020
push ebx
push edi
push dword [esp + 0x2c]
push eax
push ecx
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [esp + 0x20]
call fcn.004a5de4
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.004a5de4
pop ecx
push dword [esp + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp esi, ebx
je 0x4a05e5
cmp dword [esi + 4], ebx
je 0x4a05a7
cmp dword [esi], ebx
jne 0x4a05b0
push esi
call fcn.004a5de4
pop ecx
xor esi, esi
cmp esi, ebx
je 0x4a05e5
mov eax, dword [0x613d58]
cmp eax, ebx
jne 0x4a05c7
call fcn.00468599
mov dword [0x613d58], eax
push dword [esi]
mov ebx, eax
call fcn.0046864b
mov ebx, dword [esi]
pop ecx
push esi
push dword [0x613d58]
call fcn.00468994
mov eax, dword [esi]
pop ecx
pop ecx
jmp 0x4a05e7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a1caf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5005d0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [esp + 0x35]
push esi
push eax
mov ebx, ecx
mov byte [esp + 0x3c], 0
call fcn.004a7110
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
stosd dword es:[edi], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], esi
stosd dword es:[edi], eax
lea edi, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x20], esi
mov edx, ebx
stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
call fcn.00475851
test eax, eax
jne 0x4a1e23
mov edx, dword [esp + 0xc]
call fcn.00475851
test eax, eax
jne 0x4a1e23
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0041955f
add esp, 0x14
test eax, eax
jne 0x4a1d6c
mov edi, ebx
call fcn.00418e6b
test eax, eax
je 0x4a1e23
cmp dword [0x50755c], esi
je 0x4a1d74
mov dword [0x50755c], esi
jmp 0x4a1d74
mov dword [esp + 0x14], 1
push 0x4c520c
push ebx
call fcn.004a1b44
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x10], eax
je 0x4a1e23
push dword [esp + 0xc]
mov edi, 0x104
mov ecx, edi
lea eax, [esp + 0x34]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00476311
mov edx, esi
call fcn.00475851
test eax, eax
jne 0x4a1ddd
mov eax, esi
push eax
call fcn.004a63c0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x4a1ddd
push ebx
mov ecx, edi
mov eax, esi
call fcn.00475883
pop ecx
push dword [esp + 0xc]
call fcn.00475f63
pop ecx
jmp 0x4a1dee
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
jne 0x4a1df7
lea esi, [esp + 0x30]
call fcn.00476061
push 0x169
push str..zLib.c
mov edx, 0x4c5348
lea ecx, [esp + 0x38]
call fcn.0041a89d
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x4a1e3a
push dword [esp + 0x10]
call fcn.004a1be3
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret
push 0x100002
call fcn.004a76c7
mov esi, eax
test esi, esi
pop ecx
mov dword [esp + 0xc], ebx
je 0x4a1e8d
push 0x100000
push esi
push dword [esp + 0x18]
call fcn.004a1b69
add esp, 0xc
test eax, eax
jle 0x4a1e84
push edi
push 1
push eax
push esi
add ebx, eax
call fcn.004a612e
add esp, 0x10
test eax, eax
jg 0x4a1e4f
inc dword [0x613d8c]
inc dword [esp + 0xc]
jmp 0x4a1e4f
push esi
call fcn.004a5de4
pop ecx
jmp 0x4a1e95
mov dword [esp + 0xc], 1
mov ecx, edi
call fcn.0041acca
push dword [esp + 0x10]
call fcn.004a1be3
cmp dword [esp + 0x18], 0
pop ecx
je 0x4a1ec6
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
call fcn.00419666
pop ecx
pop ecx
test ebx, ebx
je 0x4a1e23
cmp dword [esp + 0xc], 0
jne 0x4a1e23
xor eax, eax
inc eax
jmp 0x4a1e25
Function at 0x4a1ee1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004a7110
add esp, 0xc
cmp dword [0x613d90], ebx
jne 0x4a2129
mov esi, str.zLib.dll
push esi
push 0x4c544c
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00476e0a
add esp, 0x10
push esi
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
mov ebx, 0x4c64d0
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00476e0a
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00418ca6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a2055
push esi
push eax
push eax
call fcn.00459cf0
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00476e0a
add esp, 0x14
push esi
push 0
push 0
call fcn.00459ede
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00476e0a
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00418ca6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a2055
push esi
push eax
push eax
call fcn.00459cf0
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00476e0a
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a2055
lea edi, [ebp - 0x110]
call fcn.00418e6b
xor eax, eax
jmp 0x4a212c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gzopen
push dword [ebp - 0x21c]
call esi
mov ebx, dword [ebp - 0x21c]
push str.gzread
push ebx
mov dword [0x613d74], eax
call esi
push str.gzwrite
push ebx
mov dword [0x613d78], eax
call esi
push str.gzclose
push ebx
mov dword [0x613d7c], eax
call esi
push str.gzseek
push ebx
mov dword [0x613d80], eax
call esi
push str.gzputs
push ebx
mov dword [0x613d84], eax
call esi
push str.gzgets
push ebx
mov dword [0x51231c], eax
call esi
push str.gzputc
push ebx
mov dword [0x512324], eax
call esi
push str.gzgetc
push ebx
mov dword [0x511a9c], eax
call esi
push str.compress2
push ebx
mov dword [0x512320], eax
call esi
push str.compressBound
push ebx
mov dword [0x512328], eax
call esi
push str.uncompress
push ebx
mov dword [0x512054], eax
call esi
push str.gzprintf
push ebx
mov dword [0x512318], eax
call esi
mov dword [0x613d88], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
mov eax, 0x613d98
mov dword [0x613d90], ebx
call fcn.00475883
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
Function at 0x4a69f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5005d0]
jne 0x4a69ff
repz ret
jmp fcn.004ae1ea