joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449c81
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
call fcn.00411e6d
mov ecx, dword [ebp + 8]
call fcn.00411de5
call fcn.004184c4
cmp dword [0x607ce4], 3
jl 0x449d2c
push str._KILL
push dword [0x607cec]
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x449d1a
push eax
mov ecx, fcn.004608de
call fcn.00411a5e
pop ecx
mov ecx, dword [0x607cf0]
push 1
push 1
call fcn.0041279b
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x449cf5
push dword [0x607cf0]
push str._n__s__was_successfully_terminated.
call fcn.00419451
pop ecx
pop ecx
jmp 0x449d09
push esi
push dword [0x607cf0]
push str._n__s__could_not_be_terminated:_exit_code__d
call fcn.00419451
add esp, 0xc
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00531745
push str._TESTPCL
push dword [0x607cec]
call fcn.005318fe
pop ecx
pop ecx
call fcn.00449fc6
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x449d38
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
xor eax, eax
cmp dword [eax*4 + 0x6ea578], ebp
je 0x449d50
inc eax
cmp eax, 2
jl 0x449d41
xor ebx, ebx
cmp eax, 2
mov edi, 0x6cc5c
jge 0x449e22
mov esi, eax
imul esi, esi, 0x6cc5c
add esi, 0x610cc0
inc ebx
mov dword [eax*4 + 0x6ea578], ebx
push edi
push ebp
push esi
call fcn.005306b0
add esp, 0xc
push 0x64
lea ecx, [esi + 0x4c0]
lea eax, [esi + 0x32c]
pop edx
mov dword [eax - 0x194], ecx
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x449d90
push ebp
push ebp
mov dword [esi + 0x37608], ebx
call fcn.00493154
push eax
push 0x54f4f0
mov edi, 0x104
lea eax, [esi + 0x240c]
push edi
push eax
call fcn.004ce4e5
add esp, 0x18
push str.PaulaConfig.cfg
push ebp
push ebp
call fcn.00493030
pop ecx
pop ecx
push eax
mov ebx, 0x553c34
push ebx
lea eax, [esi + 0x22a8]
push edi
push eax
call fcn.004ce4e5
add esp, 0x14
push str.PaulaEmpConfig.cfg
push ebp
push ebp
call fcn.00493030
pop ecx
pop ecx
push eax
push ebx
lea eax, [esi + 0x21a4]
push edi
push eax
call fcn.004ce4e5
add esp, 0x14
xor eax, eax
call fcn.00449e7d
cmp eax, ebp
jne 0x449e5d
push str.:9:CreatePaula___encountered_a_serious_exception._The_paula_pointer_register_could_not_be_obtained.__The_paula_object_has_been_created_but_will_not_be_able_to_be_deleted_
call fcn.0042bd38
jmp 0x449e63
push edi
inc ebx
push ebx
call fcn.00530848
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
jne 0x449d76
push str._n_nERROR:_OUT_OF_MEMORY__Could_not_create_PAULA_object_
call fcn.0041679b
pop ecx
push edi
push str.:9:CreatePaula___FAILED:_Out_of_memory:_calloc_1___d__FAILED.
call fcn.0042b70b
pop ecx
pop ecx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x449e77
push esi
call fcn.004b218d
pop ecx
push esi
call fcn.004608ea
pop ecx
mov ecx, 0x463afd
call fcn.0046ac14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x45b2ec
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
push esi
push edi
jne 0x45b32f
mov esi, str.MsSa7Pw.flg
push esi
push ebx
mov dword [0x6eb12c], ebx
call fcn.00493154
pop ecx
pop ecx
mov edi, eax
call fcn.00432263
test eax, eax
je 0x45b327
push esi
push ebx
call fcn.00493154
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jmp fcn.004314ff
xor eax, eax
inc eax
jmp 0x45b3ce
cmp dword [0x6eb12c], ebx
jne 0x45b327
push 0x2e17
push str..MainPAULA.c
mov esi, str.MsSa7Pw.flg
push esi
push ebx
call fcn.00493154
pop ecx
pop ecx
mov edx, 0x54f4bc
mov ecx, eax
call fcn.00434df1
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x45b3b7
push str.PAULA__please_ask_the_user_to_provide_the_password_for_SA7.__Thanks___KB.
push edi
call fcn.00530ffb
mov edx, dword [esp + 0x1c]
pop ecx
pop ecx
call fcn.004ccc0d
test eax, eax
jne 0x45b399
mov eax, dword [esp + 0x14]
push ebx
call fcn.004cf535
pop ecx
push eax
push 0x54f2e4
push edi
call fcn.00530ffb
add esp, 0xc
jmp 0x45b3a6
push 0x54f250
push edi
call fcn.00530ffb
pop ecx
pop ecx
mov ecx, edi
call fcn.00435239
xor eax, eax
inc eax
mov dword [0x6eb12c], eax
jmp 0x45b3ce
push esi
push ebx
call fcn.00493154
push eax
push str.:5:FlagMissingSA7Password___FAILED:_fopen___s___FAILED_
call fcn.0042b70b
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x469183
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
mov eax, dword [ebp + 0x98]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x80], eax
jg 0x4691b7
mov esi, 0x200
push 1
push 0x1f0
call fcn.00530848
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x4691d2
xor eax, eax
jmp 0x4692c2
lea eax, [esi + 0xa]
push eax
push 1
call fcn.00530848
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4691ee
push edi
call fcn.0053061e
pop ecx
jmp 0x4691cb
inc dword [0x6ecf60]
mov eax, dword [0x6ecf60]
mov dword [edi + 0x2c], eax
mov eax, dword [0x6ecf5c]
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], esi
jne 0x469218
call fcn.004b2094
mov dword [0x6ecf5c], eax
push edi
call fcn.004b218d
cmp dword [0x6ecf5c], ebx
pop ecx
jne 0x469237
push dword [edi]
call fcn.0053061e
push edi
call fcn.0053061e
pop ecx
jmp 0x4691eb
lea ebx, [edi + 0x30]
push str..Message.c
push ebx
call fcn.0043a19c
test eax, eax
pop ecx
pop ecx
jne 0x469256
push str.:5:CreateMessage___EAP:_InitializeLock___FAILED.
call fcn.0042b70b
pop ecx
mov esi, str.A_Message_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0043a49b
mov eax, 0x7d0
mov ecx, ebx
call fcn.0043a4d8
cmp dword [ebp - 0x80], 0
mov eax, dword [ebp + 0x94]
mov dword [edi + 0x10], eax
je 0x4692b9
push 0x103
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.005306b0
push dword [ebp - 0x80]
mov ecx, 0x104
lea eax, [ebp - 0x7c]
call fcn.004ccc3f
mov esi, eax
call fcn.004ccf41
mov eax, esi
push eax
push 0x16
lea eax, [edi + 0x14]
pop ecx
call fcn.004ccc3f
add esp, 0x14
mov eax, edi
call fcn.0046a60a
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 0x469d11
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x100000
mov esi, eax
mov dword [esp + 0x10], edi
call fcn.004ccc0d
test eax, eax
je 0x469d3d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004693e8
test eax, eax
je 0x469d34
mov ecx, dword [ebp + 8]
push 0
xor edx, edx
call fcn.004328fa
cmp eax, edi
pop ecx
jae 0x469d67
test eax, eax
mov dword [esp + 0x10], eax
jg 0x469d67
mov dword [esp + 0x10], 0x400
mov eax, esi
call fcn.0046a5f4
test eax, eax
je 0x469d34
mov ecx, dword [ebp + 8]
push 0x435
push str..Message.c
mov edx, 0x55eb94
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x469d9c
mov eax, esi
call fcn.0046a60a
jmp 0x469d34
mov ebx, dword [esp + 0x10]
lea eax, [ebx + 0x400]
push 1
push eax
call fcn.00530848
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x469d93
push dword [esp + 0x14]
push ebx
jmp 0x469e09
and dword [esp + 0xc], 0
test ebx, ebx
jle 0x469e01
mov eax, dword [esi + 0xc]
inc eax
cmp eax, dword [esi + 8]
jl 0x469dda
mov eax, esi
call fcn.0046a59c
test eax, eax
je 0x469e1f
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov dl, byte [edx + edi]
mov ecx, dword [esi]
mov byte [eax + ecx], dl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jle 0x469df7
mov dword [esi + 4], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jl 0x469dc6
push dword [esp + 0x14]
push dword [esp + 0x14]
push 1
push edi
call fcn.00530e93
mov ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x469dbd
xor ebx, ebx
inc ebx
jmp 0x469e21
xor ebx, ebx
mov ecx, dword [esp + 0x14]
call fcn.00435239
mov eax, esi
call fcn.0046a60a
push edi
call fcn.0053061e
pop ecx
mov eax, ebx
jmp 0x469d36
Function at 0x469eb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, eax
je 0x469f27
cmp byte [ebx], 0
je 0x469f27
call fcn.004693e8
test eax, eax
je 0x469f27
mov eax, esi
call fcn.0046a5f4
test eax, eax
je 0x469f27
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], 1
mov ecx, ebx
je 0x469f2e
push edi
xor edx, edx
call fcn.004328fa
test eax, eax
pop ecx
jbe 0x469f02
mov dword [ebp - 4], edi
push 0x4ad
mov edx, 0x54f4f8
mov ecx, ebx
push str..Message.c
call fcn.00434df1
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x469f3a
mov eax, esi
call fcn.0046a60a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x4b2
mov edx, 0x54f4bc
jmp 0x469f0e
cmp dword [esi + 4], edi
jle 0x469faa
cmp dword [ebp + 0xc], edi
je 0x469f56
cmp dword [ebp - 4], edi
jne 0x469f56
push ebx
push 0xa
call fcn.00531f15
pop ecx
xor edi, edi
pop ecx
inc edi
push ebx
push dword [esi + 4]
push 1
push dword [esi]
call fcn.00531aad
mov ecx, dword [esi + 4]
add edi, eax
add esp, 0x10
cmp edi, ecx
jge 0x469faa
mov eax, dword [esi]
call fcn.004ccc2f
test eax, eax
jne 0x469faa
inc dword [0x6ecf64]
cmp dword [0x6ecf64], 2
jge 0x469f9e
push ecx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:4:PrintMessageToFile___s____d__FAILED:_fprintf____d____d_FAILED.
call fcn.0042bd38
add esp, 0x14
mov ecx, ebx
call fcn.00435239
jmp 0x469f20
mov ecx, ebx
call fcn.00435239
mov eax, esi
call fcn.0046a60a
xor eax, eax
inc eax
jmp 0x469f29
Function at 0x46a369
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x70c98c]
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xa]
mov word [ebp - 0xc], si
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x10], esi
call fcn.00414c7a
mov edi, eax
call fcn.00414be2
mov dword [ebp - 8], eax
call fcn.00414d12
cmp ebx, esi
mov dword [ebp - 0x18], eax
jne 0x46a3eb
mov eax, dword [ebp - 8]
imul eax, edi
add eax, dword [ebp - 8]
mov esi, edi
imul esi, esi, 5
add esi, eax
push str..Message.c
push 0x5ed
mov ecx, esi
call fcn.00469183
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
jne 0x46a3ee
push esi
push str.:7:MessageCaptureScreen___FAILED:_CreateMessage__d__FAILED.
call fcn.0042b70b
pop ecx
pop ecx
jmp 0x46a52d
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 4]
call fcn.004693e8
test eax, eax
je 0x46a51f
mov eax, esi
call fcn.0046a5f4
test eax, eax
je 0x46a51f
lea esi, [edi + 1]
imul esi, dword [ebp - 8]
add esi, 0xa
jmp 0x46a429
mov eax, dword [ebp - 4]
call fcn.0046a59c
test eax, eax
je 0x46a504
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0xc]
sub eax, 0xa
cmp eax, esi
jl 0x46a419
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x46a4d9
mov word [ebp - 0xc], si
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx]
mov word [ebp - 0xa], si
push dword [ebp - 0xc]
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x46a48b
inc dword [0x6ed170]
cmp dword [0x6ed170], 5
jge 0x46a48b
push str._GetLastError_
push dword [0x6ed170]
push str.:4:MessageCaptureScreen___FAILED__d_of_5:_ReadConsoleOutputCharacter___FAILED:__s
call fcn.0042bd38
add esp, 0xc
xor edx, edx
cmp dword [ebp - 0x10], edx
jbe 0x46a4cf
mov eax, dword [ebx + 0xc]
add eax, dword [ebx]
lea ecx, [eax + edx]
mov al, byte [ecx]
call fcn.004cde5b
test eax, eax
je 0x46a4a8
mov byte [ecx], 0x7e
inc edx
cmp edx, dword [ebp - 0x10]
jb 0x46a492
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x46a4cf
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov byte [eax + ecx], 0xa
inc dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
jle 0x46a4cf
mov dword [ebx + 4], eax
inc esi
cmp esi, dword [ebp - 8]
jl 0x46a445
mov eax, dword [ebx + 0xc]
xor ecx, ecx
cmp eax, dword [ebx + 8]
push 0x62f
setg cl
push str..Message.c
push ecx
call fcn.0042b04a
mov eax, dword [ebp - 4]
add esp, 0xc
call fcn.0046a60a
mov eax, dword [ebp - 4]
jmp 0x46a52f
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.:5:MessageCaptureScreen___FAILED:_EnlargeString___FAILED:_CurSize___d__CurPos___d
call fcn.0042b70b
mov eax, dword [ebp - 4]
add esp, 0xc
call fcn.0046a60a
cmp dword [ebp - 0x14], 0
je 0x46a52d
mov eax, dword [ebp - 4]
call fcn.004692da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ba07
Capabilities:
Read 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
xor edi, edi
cmp dword [0x6f098c], edi
jne 0x46bba0
push 0x103
lea eax, [ebp - 0x10f]
push edi
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], 0
call fcn.005306b0
add esp, 0xc
push str.FtpMode.dat
push edi
push edi
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x553c34
push eax
call fcn.00531b2f
push 0x66f
mov ebx, str..Network.c
mov esi, 0x54f4b8
push ebx
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.00434df1
add esp, 0x18
cmp eax, edi
mov dword [ebp - 0x118], eax
jne 0x46bb00
lea edi, [ebp - 0x110]
call fcn.00432263
test eax, eax
je 0x46bba0
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x674
push ebx
mov edx, esi
mov ecx, edi
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
jne 0x46bba0
cmp dword [0x6f09f4], eax
jne 0x46bba0
call fcn.00432263
push eax
mov eax, edi
push eax
push eax
push str.:7:GetDefaultFtpMode___FAILED:_fopen___s____rb___FAILED:_DoesFileExist___s___returns__d
call fcn.0042bd38
add esp, 0x10
mov dword [0x6f09f4], 1
jmp 0x46bba0
push eax
push 1
lea eax, [ebp - 0x114]
push 4
push eax
mov dword [ebp - 0x114], 0xfffe4df9
call fcn.00530e93
add esp, 0x10
cmp eax, 1
jae 0x46bb54
push edi
xor edx, edx
lea ecx, [ebp - 0x110]
call fcn.004328fa
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push str.:8:GetDefaultFtpMode___FAILED:_fread___s___FAILED:_The_file_may_be_invalid:_The_file_holds_only_one_INT_and_its_size_is__ld.
call fcn.0042b70b
mov ecx, dword [ebp - 0x118]
add esp, 0xc
call fcn.00435239
jmp 0x46bba0
mov ecx, dword [ebp - 0x118]
call fcn.00435239
mov eax, dword [ebp - 0x114]
lea ecx, [eax + 3]
cmp ecx, 6
ja 0x46bb8b
cmp eax, edi
je 0x46bb8b
jle 0x46bb7b
mov dword [0x6ed8cc], edi
jmp 0x46bba0
cmp eax, edi
jge 0x46bba0
mov dword [0x6ed8cc], 0x8000000
jmp 0x46bba0
push eax
lea eax, [ebp - 0x110]
push eax
push str.:9:GetDefaultFtpMode___FAILED:_At_initialization__the_mode_read_from_the_save_file___s__is_INVALID:_Valid_values_are__3___2___1__1__2__3:_The_mode_read___d.
call fcn.0042b70b
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [0x6ed8cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
Function at 0x46d099
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
xor esi, esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x46d0ed
push 1
push dword [ebp - 4]
call fcn.00530848
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x46d0e2
push 1
push dword [ebp - 4]
push str.:8:GetRouteGateway___FAILED:_calloc__d___d___FAILED:_Out_of_memory_
call fcn.0042b70b
add esp, 0xc
xor eax, eax
jmp 0x46d19c
push edi
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, edi
je 0x46d14b
cmp eax, 0x32
je 0x46d133
cmp eax, 0x57
je 0x46d11c
cmp eax, 0x7a
je 0x46d112
push str._GetLastError_
push str.:7:GetRouteGateway___FAILED:__s
call fcn.0042b70b
pop ecx
jmp 0x46d13d
push dword [ebp - 4]
push str.:8:GetRouteGateway___FAILED:_Buffer_size___ld:_The_buffer_pointed_to_by_the_pIpForwardTable_parameter_is_not_large_enough._The_required_size_is_returned_in_the_DWORD_variable_pointed_to_by_the_pdwSize_parameter.
jmp 0x46d10a
push dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push str.:8:GetRouteGateway__p___p__d___0__FAILED:_ERROR_INVALID_PARAMETER:_The_pdwSize_parameter_is_NULL__or_GetIpForwardTable_is_unable_to_write_to_the_memory_pointed_to_by_the_pdwSize_parameter.
call fcn.0042b70b
add esp, 0x10
jmp 0x46d13e
push str.:9:GetRouteGateway___FAILED:_This_function_is_not_supported_on_the_operating_system_in_use_on_the_local_system.
call fcn.0042b70b
pop ecx
cmp esi, edi
je 0x46d0db
push esi
call fcn.0053061e
pop ecx
jmp 0x46d0db
cmp dword [esi], edi
jle 0x46d193
lea ebx, [esi + 4]
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x46d15f
cmp dword [ebx + 0x10], eax
jne 0x46d180
mov ecx, dword [ebx]
cmp ecx, dword [ebp + 8]
jne 0x46d180
cmp dword [ebx + 0xc], 0
jne 0x46d18c
xor eax, eax
call fcn.0047077a
push eax
push str.:2:GetRouteGateway___encountered_an_undefined_gateway_for_ip_address__s_
call fcn.0042bd38
pop ecx
pop ecx
inc edi
add ebx, 0x38
cmp edi, dword [esi]
jl 0x46d152
xor edi, edi
jmp 0x46d193
imul edi, edi, 0x38
mov edi, dword [edi + esi + 0x10]
push esi
call fcn.0053061e
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46fd89
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x198], 0
push edi
push 0x18e
lea eax, [ebp - 0x196]
push 0
push eax
mov edi, ecx
call fcn.005306b0
add esp, 0xc
test edi, edi
jge 0x46fdc6
mov edi, 0x104
test esi, esi
je 0x46fe07
test edi, edi
jle 0x46fe07
lea eax, [ebp - 0x198]
push eax
push 0x101
mov byte [esi], 0
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x46fe03
push edi
push esi
call sub.WSOCK32.dll_gethostname
mov edi, eax
call sub.WSOCK32.dll_WSACleanup
test edi, edi
jne 0x46fe03
push esi
call fcn.00530f70
test eax, eax
pop ecx
ja 0x46fe07
xor eax, eax
jmp 0x46fe09
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005317e7
leave
ret
Function at 0x470bbe
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x18e
lea eax, [ebp - 0x322]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x338], edi
mov esi, edx
mov word [ebp - 0x324], bx
call fcn.005306b0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x8b]
push ebx
push eax
mov byte [ebp - 0x8c], bl
call fcn.005306b0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x193]
push ebx
push eax
mov byte [ebp - 0x194], bl
call fcn.005306b0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
jge 0x470c47
mov dword [ebp + 8], 0x104
cmp edi, ebx
je 0x470db1
cmp esi, ebx
je 0x470db1
cmp dword [ebp + 8], ebx
jle 0x470db1
call fcn.004fa8e4
push edi
push 0x7e
mov dword [ebp - 0x32c], eax
pop ecx
lea eax, [ebp - 0x8c]
mov byte [esi], bl
call fcn.004ccc3f
pop ecx
lea eax, [ebp - 0x194]
call fcn.004ccb8b
mov edi, 0x55e608
push edi
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x8c]
call fcn.004ce974
cmp eax, ebx
pop ecx
mov dword [ebp - 0x328], eax
je 0x470cbf
push edi
lea eax, [ebp - 0x330]
xor ecx, ecx
call fcn.004ce974
pop ecx
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
call fcn.004ccc0d
test eax, eax
jne 0x470cf5
push dword [ebp - 0x328]
mov ecx, 0x104
lea eax, [ebp - 0x194]
call fcn.004ccc3f
pop ecx
push 0x3a
xor eax, eax
lea edi, [ebp - 0x194]
call fcn.004cdba1
pop ecx
lea ebx, [ebp - 0x8c]
call fcn.0046fe16
test eax, eax
je 0x470db1
call fcn.00493572
test eax, eax
jne 0x470dc2
call fcn.004935a3
test eax, eax
je 0x470d39
push 0
call fcn.004934c9
pop ecx
push eax
mov eax, ebx
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
je 0x470dc2
lea eax, [ebp - 0x324]
push eax
push 0x101
mov byte [esi], 0
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x470db1
lea ecx, [ebp - 0x8c]
call fcn.004707d3
push 2
mov dword [ebp - 0x334], eax
push 4
lea eax, [ebp - 0x334]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov edi, eax
test edi, edi
je 0x470d9a
mov eax, dword [edi]
test eax, eax
je 0x470d9a
push eax
call fcn.00530f70
test eax, eax
pop ecx
jbe 0x470d9a
push dword [edi]
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004ccc3f
pop ecx
xor edi, edi
jmp 0x470d9d
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
test edi, edi
jne 0x470db1
push esi
call fcn.00530f70
test eax, eax
pop ecx
ja 0x470df4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
call fcn.00493572
cmp eax, 1
jne 0x470dd3
push str.WebSrv22
jmp 0x470de9
call fcn.00493572
cmp eax, 2
jne 0x470de4
push str.WebSrv21
jmp 0x470de9
push str.Mission_Control
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004ccc3f
pop ecx
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp + 8]
call fcn.004ccd0f
pop ecx
call fcn.004fa8e4
sub eax, dword [ebp - 0x32c]
cmp eax, 0x1388
jbe 0x470e36
call fcn.004fa8e4
sub eax, dword [ebp - 0x32c]
push eax
push esi
push dword [ebp - 0x338]
push str.:4:ResolveIPToHostName___took_too_long_to_resolve__s_to__s:__ums
call fcn.0042b70b
add esp, 0x10
mov eax, esi
jmp 0x470db3
Function at 0x4730e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and word [ebp - 0x14], 0
and dword [ebp - 4], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0044146b
test eax, eax
je 0x47310c
xor eax, eax
jmp 0x473189
push 0x212b
mov esi, str..Network.c
push esi
push str.addrchng.flg
push 0
call fcn.00493154
pop ecx
pop ecx
mov edx, 0x54f4b4
mov ecx, eax
call fcn.00434df1
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x473146
push str.:3:FlagIpAddressChange___FAILED:_fopen___FAILED.
call fcn.0042b70b
pop ecx
jmp 0x473108
push 0x2130
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004fb92f
add esp, 0xc
call fcn.004187ab
push edi
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.00531aad
push edi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00531aad
add esp, 0x20
mov ecx, edi
call fcn.00435239
xor eax, eax
inc eax
pop edi
pop esi
leave
ret