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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x2d]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x34], 0
call fcn.00401f80
xor eax, eax
mov word [esp + 0x24], ax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
test ebx, ebx
jne 0x43d661
test esi, esi
jne 0x43d653
xor eax, eax
inc eax
jmp 0x43d730
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, eax
jmp 0x43d673
test esi, esi
jne 0x43d680
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
mov esi, ebx
mov edx, eax
xor ecx, ecx
lea edi, [esp + 0x18]
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.0043d46b
and dword [esp + 0xc], 0
mov edi, 0x190
lea esi, [edi - 0x64]
push 0x669
push str.ServerPAULA.c
mov edx, 0x4a82dc
lea ecx, [esp + 0x30]
call fcn.0048ae1a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43d6f5
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x43d6de
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x43d6de
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x43d6e0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x43d68d
xor eax, eax
jmp 0x43d730
xor esi, esi
push ebx
inc esi
push esi
push 0x10
push dword [esp + 0x20]
call fcn.0040257f
add esp, 0x10
cmp eax, esi
jne 0x43d720
push ebx
push esi
push 0x10
push dword [esp + 0x1c]
call fcn.0040257f
add esp, 0x10
cmp eax, esi
je 0x43d722
xor esi, esi
mov ecx, ebx
call fcn.0048d8ca
xor eax, eax
test esi, esi
setne al
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
Function at 0x4413f9
Capabilities:
Write file on windows

Disassembly:
push 0x10
push 0x4d5160
call fcn.00408120
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4414b1
push 1
mov esi, 0xfffc
push esi
call fcn.00401a3a
mov edi, eax
push 1
push esi
call fcn.00401a3a
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffdc
push edi
call fcn.00402b42
add esp, 0x24
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [edi + ecx]
mov dl, byte [eax]
cmp dl, 0xd
je 0x4414a4
cmp dl, 0xa
je 0x4414a4
add ecx, esi
mov word [ecx], 0x1d1c
mov word [ecx + 2], 0x1f1e
add ecx, 4
push ecx
call fcn.00441236
pop ecx
push dword [ebp + 8]
push esi
call fcn.00401a80
pop ecx
push eax
push 1
push esi
call fcn.0040257f
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 4
jle 0x441494
sub dword [ebp - 0x1c], 4
push edi
call fcn.00401a00
push esi
call fcn.00401a00
pop ecx
pop ecx
jmp 0x4414b1
mov byte [esi + ecx], dl
inc ecx
jmp 0x441449
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.00408165
ret

Function at 0x441762
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ebx, eax
test esi, esi
jns 0x44176f
xor esi, esi
test ebx, ebx
jns 0x441775
xor ebx, ebx
test esi, esi
jle 0x4417bc
test ebx, ebx
jle 0x4417bc
push 1
push 0x1f8
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4417bc
mov dword [edi], esi
imul esi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi + 0x14]
push eax
push 4
mov dword [edi + 4], ebx
call fcn.00401a3a
pop ecx
pop ecx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4417c2
push edi
call fcn.00401a00
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
test esi, esi
jle 0x4417df
mov ecx, dword [edi + 0x14]
mov byte [ecx + eax*4], 0x20
mov ecx, dword [edi + 0x14]
push 7
pop edx
mov word [ecx + eax*4 + 2], dx
inc eax
cmp eax, esi
jl 0x4417c8
mov eax, dword [0x5d619c]
test eax, eax
jne 0x441807
call fcn.004439f3
mov dword [0x5d619c], eax
test eax, eax
jne 0x441807
push dword [edi + 0x14]
call fcn.00401a00
push edi
call fcn.00401a00
pop ecx
jmp 0x4417bb
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + esi*4 + 4]
push 5
mov dword [edi + 0x24], ecx
add esi, 2
pop ecx
mov dword [edi + 0x20], esi
cmp esi, ecx
jge 0x441821
mov dword [edi + 0x20], ecx
push edi
mov ebx, eax
mov dword [edi + 0x10], 7
mov word [edi + 0x1c], 0x709
call fcn.004439a2
lea ebx, [edi + 0x38]
mov dword [esp], str.ScreenBuffer.c
push ebx
call fcn.00488834
pop ecx
pop ecx
mov esi, str.A_ScreenBuffer_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.004886bf
mov eax, 0x7d0
mov ecx, ebx
call fcn.004886ac
mov eax, edi
call fcn.0044173f
mov eax, edi
jmp 0x4417be
Function at 0x4482ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.00401f80
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.00439c56
test eax, eax
jne 0x448458
mov ecx, dword [ebp + 8]
push 0x15b9
push str.Printer.c
mov edx, 0x4a82dc
call fcn.0048ae1a
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 8], ebx
cmp ebx, edi
jne 0x448313
push dword [ebp + 8]
push str.PrinterSaveConfig___FAILED:_Could_not_open_the_given_file___s__for_writing.
call fcn.004909d6
pop ecx
pop ecx
jmp 0x448458
push 0x15c0
push esi
call fcn.004474c5
pop ecx
pop ecx
test eax, eax
je 0x448451
mov edx, esi
call fcn.00446981
test eax, eax
je 0x448451
push 0x42
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401330
add esp, 0xc
push ebx
push 0x42
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0040257f
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
add esp, 0x10
cmp dword [ebp - 0x50], edi
je 0x4483d0
push dword [esi + 0xc]
call ebx
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4483c1
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 4], eax
cmp eax, edi
jle 0x4483a6
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.0040257f
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call fcn.0040257f
add esp, 0x20
jmp 0x4483b6
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevMode:__GetLastError_
call fcn.004909d6
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4483d0
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevMode_during_save___ld_:__GetLastError_
call fcn.004909d6
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x4c], edi
je 0x44843d
push dword [esi + 0x10]
call ebx
push dword [esi + 0x10]
mov ebx, eax
cmp ebx, edi
je 0x44842e
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 4], eax
cmp eax, edi
jle 0x448413
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.0040257f
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push ebx
call fcn.0040257f
add esp, 0x20
jmp 0x448423
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevNames:__GetLastError_
call fcn.004909d6
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x44843d
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevNames_during_save___ld_:__GetLastError_
call fcn.004909d6
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
call fcn.00446974
mov ecx, dword [ebp - 8]
call fcn.0048d8ca
xor eax, eax
inc eax
jmp 0x44845a
mov ecx, ebx
call fcn.0048d8ca
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x453c08
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x453c25
cmp dword [ebp + 0xc], 0
je 0x453c25
cmp dword [ebp + 0xc], 0xffffffff
je 0x453c25
call fcn.00453ba5
mov dword [ebp + 8], eax
push ebx
push esi
mov esi, 0x5d1768
push edi
mov edx, esi
call fcn.00439c56
mov edi, 0x104
test eax, eax
je 0x453c75
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.APPDATA
call ebx
test eax, eax
jne 0x453c6e
push edi
push esi
push str.SystemDrive
call ebx
test eax, eax
jne 0x453c75
push 0x4bed9c
mov ecx, edi
mov eax, esi
call fcn.00438b01
pop ecx
jmp 0x453c75
mov byte [0x5d176a], 0
push esi
mov esi, 0x5d1870
mov ecx, edi
mov eax, esi
call fcn.00438b01
mov ebx, dword [ebp + 8]
pop ecx
test ebx, ebx
je 0x453cca
push esi
push ebx
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x453cc8
cmp dword [ebp + 0xc], 0xffffffff
je 0x453cc8
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.00404995
add esp, 0x10
test eax, eax
jns 0x453cc8
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x453ea3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
cmp eax, ebx
jne 0x453ede
cmp dword [ebp + 0xc], ebx
je 0x453ede
cmp dword [ebp + 0xc], 0xffffffff
je 0x453ede
call fcn.00453ba5
mov dword [ebp - 0x10c], eax
mov eax, fcn.00453da5
mov esi, 0x5d1ea0
mov edi, 0x104
mov edx, esi
cmp eax, fcn.00453ea3
je 0x453f3b
call fcn.00439c56
test eax, eax
jne 0x453f0b
cmp dword [0x5d175c], ebx
je 0x453fe5
push edi
push ebx
push esi
call fcn.00401f80
push ebx
push ebx
mov dword [0x5d175c], ebx
call fcn.00453da5
push eax
push str._sPAULA_
push edi
push esi
call fcn.004392d1
push esi
call fcn.00401a80
add esp, 0x28
jmp 0x453fe0
call fcn.00439c56
test eax, eax
jne 0x453f50
cmp dword [0x5d175c], ebx
je 0x453fe5
push edi
push ebx
push esi
call fcn.00401f80
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [0x5d175c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.APPDATA
call ebx
test eax, eax
jne 0x453fb3
push edi
lea eax, [ebp - 0x108]
push eax
push str.USERPROFILE
call ebx
test eax, eax
jne 0x453fb3
push edi
lea eax, [ebp - 0x108]
push eax
push str.ProgramData
call ebx
test eax, eax
jne 0x453fb3
push str.C:ProgramData
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.00438b01
pop ecx
lea eax, [ebp - 0x108]
push str._.
push eax
call fcn.00401bb0
lea eax, [ebp - 0x108]
push eax
push str._sPAULA_
push edi
push esi
call fcn.004392d1
push esi
call fcn.00401a80
add esp, 0x1c
mov dword [0x5d186c], eax
mov ebx, 0x5d1fa8
push esi
mov ecx, edi
mov eax, ebx
call fcn.00438b01
mov ecx, dword [0x5d186c]
push esi
mov esi, 0x5d20b0
mov eax, esi
call fcn.00438b01
cmp dword [ebp - 0x10c], 0
pop ecx
pop ecx
jne 0x45401c
cmp dword [ebp + 0xc], 0xffffffff
je 0x454080
mov eax, ebx
jmp 0x454080
cmp dword [ebp + 0xc], 0xffffffff
jne 0x454039
push esi
push dword [ebp - 0x10c]
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
jmp 0x45407a
push ebx
push dword [ebp - 0x10c]
call fcn.00401ba0
push ebx
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x45407a
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, esi
push edi
push eax
call fcn.00404995
add esp, 0x10
test eax, eax
jns 0x45407a
mov byte [esi + 0x103], 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4561f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4562cd
cmp dword [esi + 4], ebx
jle 0x4562cd
push edi
call fcn.004439f3
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x45627a
lea eax, [esi + 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx ebx, word [eax]
mov edi, dword [ebp - 8]
call fcn.00443b85
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x45624e
movsx eax, word [edi]
mov ebx, dword [ebp - 8]
push eax
call fcn.004439a2
pop ecx
cmp word [edi + 6], 0
jle 0x456264
movsx ebx, word [edi]
push 1
push dword [ebp - 8]
call fcn.00443b27
pop ecx
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
mov dword [ebp - 0xc], edi
cmp eax, dword [esi + 4]
jl 0x45622c
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x4562bf
lea eax, [esi + 0x63]
mov dword [ebp - 0xc], eax
jmp 0x456292
mov eax, dword [ebp - 0xc]
xor ebx, ebx
mov edi, dword [ebp - 8]
mov byte [eax], bl
movsx ebx, word [eax - 0x23]
call fcn.00443ad0
test eax, eax
je 0x4562ad
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov byte [eax], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], 0x90
cmp eax, dword [esi + 4]
jl 0x45628d
mov esi, dword [ebp - 8]
call fcn.004439b6
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x4562d0
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x460890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0xff
push esi
xor ebx, ebx
lea eax, [ebp - 0x10b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x10c], 0
call fcn.00401f80
add esp, 0xc
cmp edi, ebx
je 0x4608d8
mov eax, edi
call fcn.00438b7b
push ebx
call fcn.00460513
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4608ec
xor eax, eax
jmp 0x4609d4
push str.SELECT_STORE_PROFILE.STORE_NUM__COMPANY.NAME_FROM_STORE_PROFILE__COMPANY_WHERE_STORE_PROFILE.COMPANY_IDCOMPANY.ID
push edi
mov dword [ebp - 0x110], ebx
call fcn.0045f780
pop ecx
pop ecx
test eax, eax
je 0x4609c1
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x118], ebx
call fcn.0045f37f
add esp, 0x14
test eax, eax
je 0x4609c7
mov ebx, 0x4bd1fc
cmp dword [ebp - 0x118], 0xde
jge 0x4609c7
cmp dword [ebp - 0x110], 0
jne 0x46099c
lea eax, [ebp - 0x10c]
push eax
call fcn.00402c68
cmp dword [ebp - 0x114], 0
pop ecx
mov dword [ebp - 0x110], eax
je 0x46099c
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00401b10
pop ecx
pop ecx
test eax, eax
je 0x46099c
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00401b10
mov ecx, dword [ebp + 8]
inc eax
push eax
mov eax, dword [ebp - 0x114]
call fcn.00438b01
add esp, 0xc
call fcn.0043983b
inc dword [ebp - 0x118]
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.0045f37f
add esp, 0x14
test eax, eax
jne 0x46092f
jmp 0x4609c7
mov dword [ebp - 0x110], ebx
push edi
call fcn.0045f66b
mov eax, dword [ebp - 0x110]
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x460a8f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
lea eax, [ebp - 0x47]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x48], 0
call fcn.00401f80
add esp, 0xc
call fcn.0041b82a
cmp esi, ebx
je 0x460ac7
mov dword [esi], ebx
push ebx
call fcn.00460513
mov edi, eax
pop ecx
cmp edi, ebx
je 0x460b6d
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call fcn.004609e3
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.0045f780
add esp, 0xc
test eax, eax
je 0x460b43
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.0045f37f
jmp 0x460b39
cmp ebx, 0xde
jge 0x460b40
lea esi, [ebp - 0x48]
call fcn.00439ce8
test eax, eax
je 0x460b25
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
or dword [ebp - 0x4c], eax
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
inc ebx
call fcn.0045f37f
mov esi, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x460b07
mov ebx, dword [ebp - 0x4c]
push edi
call fcn.0045f66b
pop ecx
test esi, esi
je 0x460b50
mov dword [esi], ebx
test bl, 1
je 0x460b6d
test bl, 2
je 0x460b6d
test bl, 8
je 0x460b69
test bl, 0x10
je 0x460b69
test bl, 4
jne 0x460b6d
xor eax, eax
jmp 0x460b70
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x464504
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00401f80
add esp, 0xc
test esi, esi
je 0x46457f
cmp dword [ebp + 8], 0
jle 0x46457f
lea eax, [esp + 8]
push eax
push 0x101
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x46457b
push dword [ebp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_gethostname]
mov edi, eax
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x46457b
push esi
call fcn.00401a80
pop ecx
test eax, eax
jne 0x46457f
xor eax, eax
jmp 0x464581
mov eax, esi
mov ecx, dword [esp + 0x19c]
pop edi
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
Function at 0x464594
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
xor edi, edi
call esi
cmp eax, 0x7a
jne 0x4645d3
push 1
push dword [ebp - 4]
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x4645cb
xor eax, eax
jmp 0x464622
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, ebx
je 0x4645e4
cmp edi, ebx
je 0x4645c7
push edi
call fcn.00401a00
pop ecx
jmp 0x4645c7
mov edx, dword [edi]
xor eax, eax
cmp edx, ebx
jle 0x464619
lea ecx, [edi + 4]
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x4645fc
cmp dword [ecx + 0x10], esi
jne 0x464608
mov esi, dword [ecx]
cmp esi, dword [ebp + 8]
jne 0x464608
cmp dword [ecx + 0xc], ebx
jne 0x464612
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x4645ef
jmp 0x464619
imul eax, eax, 0x38
mov ebx, dword [eax + edi + 0x10]
push edi
call fcn.00401a00
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46580a
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosw word es:[edi], ax
mov edx, esi
mov dword [ebp - 0x38], esi
stosb byte es:[edi], al
call fcn.00439c56
test eax, eax
jne 0x465913
mov al, byte [esi]
cmp al, bl
je 0x46586c
mov ecx, esi
cmp al, 0x2e
je 0x46586c
cmp al, 0x3f
je 0x46590c
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x465859
mov eax, esi
call fcn.00464ccc
test eax, eax
je 0x465913
mov eax, str._._._._
call fcn.00464ccc
test eax, eax
je 0x465913
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x34], ebx
call edi
cmp eax, 0x7a
jne 0x465913
push 1
push dword [ebp - 0x34]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x465913
push ebx
lea eax, [ebp - 0x34]
push eax
push esi
call edi
mov dword [ebp - 0x30], ebx
cmp dword [esi], ebx
jle 0x465934
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x18]
call fcn.004644ab
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x2c]
call fcn.004644ab
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.00465375
test eax, eax
je 0x46592c
lea edx, [ebp - 0x2c]
mov ecx, str._._._._
call fcn.00465375
test eax, eax
je 0x46592c
push edi
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
test eax, eax
jne 0x465925
inc dword [ebp - 0x30]
jmp 0x46592c
mov byte [0x4eba91], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
mov byte [0x4eba92], 1
inc ebx
add edi, 0x38
cmp ebx, dword [esi]
jl 0x4658c7
push esi
call fcn.00401a00
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x465916
Function at 0x465c02
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x328], eax
xor eax, eax
push 0x18e
mov word [ebp - 0x324], ax
xor ebx, ebx
lea eax, [ebp - 0x322]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x32c], edi
call fcn.00401f80
push 0x7f
lea eax, [ebp - 0x8b]
push ebx
push eax
mov byte [ebp - 0x8c], bl
call fcn.00401f80
mov esi, 0x103
push esi
lea eax, [ebp - 0x193]
push ebx
push eax
mov byte [ebp - 0x194], bl
call fcn.00401f80
add esp, 0x24
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x334], ebx
cmp dword [ebp - 0x328], ebx
je 0x465dca
cmp edi, ebx
je 0x465dca
call fcn.0041b82a
push dword [ebp - 0x328]
lea eax, [ebp - 0x8c]
push 0x7e
pop ecx
mov byte [edi], bl
call fcn.00438b01
lea eax, [ebp - 0x194]
call fcn.00438b7b
mov edi, 0x4b8290
push edi
lea eax, [ebp - 0x334]
lea ecx, [ebp - 0x8c]
call fcn.004390d0
pop ecx
pop ecx
mov dword [ebp - 0x328], eax
cmp eax, ebx
je 0x465cf5
push edi
lea eax, [ebp - 0x334]
xor ecx, ecx
call fcn.004390d0
pop ecx
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
call fcn.00439c56
test eax, eax
jne 0x465d2b
push dword [ebp - 0x328]
mov ecx, 0x104
lea eax, [ebp - 0x194]
call fcn.00438b01
push 0x3a
xor eax, eax
lea edi, [ebp - 0x194]
call fcn.0043875a
pop ecx
pop ecx
lea ebx, [ebp - 0x8c]
call fcn.00464d2d
test eax, eax
je 0x465dca
call fcn.00453bf0
test eax, eax
jne 0x465ddb
mov ebx, dword [ebp - 0x32c]
mov byte [ebx], al
lea eax, [ebp - 0x324]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x465dca
lea ecx, [ebp - 0x8c]
call fcn.004650d1
push 2
mov dword [ebp - 0x330], eax
push 4
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov edi, eax
test edi, edi
je 0x465db2
mov eax, dword [edi]
test eax, eax
je 0x465db2
push eax
call fcn.00401a80
pop ecx
test eax, eax
je 0x465db2
push dword [edi]
mov ecx, esi
mov eax, ebx
call fcn.00438b01
pop ecx
xor edi, edi
jmp 0x465db5
or edi, 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x465dca
push ebx
call fcn.00401a80
pop ecx
test eax, eax
jne 0x465e06
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
cmp eax, 1
jne 0x465de7
push str.WebSrv22
jmp 0x465df8
cmp eax, 2
jne 0x465df3
push str.WebSrv21
jmp 0x465df8
push str.Mission_Control
mov eax, dword [ebp - 0x32c]
mov ecx, esi
call fcn.00438b01
pop ecx
lea eax, [ebp - 0x194]
push eax
mov eax, esi
mov esi, dword [ebp - 0x32c]
call fcn.00439c15
pop ecx
call fcn.0041b82a
mov eax, esi
jmp 0x465dcc