joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55fdf8
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff0
push 0x100
push 0
push 0x58ab0c
call fcn.00543c8b
add esp, 0xc
call sub.KERNEL32.DLL_GetVersion
cmp eax, 0x80000000
jae 0x55fe61
xor eax, eax
xor edx, edx
mov dword [esp], edx
push esp
push 0x66
push eax
call sub.NETAPI32.DLL_NetWkstaGetInfo
test eax, eax
jne 0x55fe50
push 0
push 0
push 0x100
push 0x58ab0c
push 0xffffffffffffffff
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
push eax
push 0
push 0
call sub.KERNEL32.DLL_WideCharToMultiByte
cmp dword [esp], 0
je 0x55fec0
mov edx, dword [esp]
push edx
call sub.NETAPI32.DLL_NetApiBufferFree
jmp 0x55fec0
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDVNETSUP
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x55feb0
lea eax, [esp + 0xc]
push eax
push 0x58ab0c
lea edx, [esp + 0x10]
push edx
push 0
push str.Workgroup
mov ecx, dword [esp + 0x18]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 0x58ab0c
add esp, 0x10
ret
Function at 0x401977
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor eax, eax
cmp edx, dword [edi + 0xa4]
sete al
cmp byte [eax + edi + 0xb0], 0
jne 0x4019c5
cmp dword [edi + 0x168], 0
je 0x4019a2
or esi, 0xffffffff
jmp 0x4019b8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x4019c9
xor esi, esi
jmp 0x4019e2
mov edx, eax
mov ecx, edi
call fcn.004037cc
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00401832
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push 0x37
cmp esi, 0xffffffff
mov dword [eax], esi
pop eax
pop edi
cmovne eax, ecx
pop esi
pop ecx
pop ebp
ret

Function at 0x401ad6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
test eax, eax
je 0x401af8
push dword [esi + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
jmp 0x401b25
cmp edx, 2
ja 0x401b23
push dword [esi + 0x10]
push 1
push 2
push dword [edx*4 + 0x54f3a0]
call fcn.004f892c
push dword [esi + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f892c
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401c34
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x581d10]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401c79
mov eax, dword [esp]
cmp al, 1
jne 0x401c73
shr eax, 8
cmp al, 1
jne 0x401c73
xor eax, eax
jmp 0x401c7c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x402e63
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x124], edx
push esi
push edi
mov dword [ebp - 0x128], ebx
mov edi, dword [ebx]
push dword [edi + 0x74]
call fcn.004f9020
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x402fd6
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call fcn.004f28b0
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [edi + 0x74]
call esi
mov edx, dword [edi + 0x74]
lea eax, [ebp - 0x11c]
push eax
push 0
mov ecx, ebx
call fcn.00406ddb
pop ecx
pop ecx
cmp eax, 1
jne 0x402ef0
lea edx, [ebp - 0x11c]
mov ecx, ebx
call fcn.0040a922
mov ebx, dword [ebp - 0x11c]
test ebx, ebx
je 0x402f0b
push dword [edi + 0x74]
lea eax, [ebp - 0x108]
push eax
call fcn.004f9230
pop ecx
pop ecx
cmp byte [ebp - 0x108], 0
jne 0x402f21
push dword [edi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x402fcd
lea eax, [ebp - 0x108]
push eax
push str.We_bind_local_end_to__s_n
push edi
call fcn.004017c3
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x402fc1
test ebx, ebx
je 0x402fc1
mov esi, dword [ebx]
mov edx, ebx
mov ecx, edi
call fcn.00406f2b
push dword [esi + 0x10]
push dword [esi + 0x14]
mov esi, dword [ebp - 0x124]
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x402fa0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x10
push eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x402f9c
push str.getsockname___failed
push edi
call fcn.00401832
pop ecx
pop ecx
jmp 0x402fd6
xor eax, eax
jmp 0x402fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x128]
mov edx, eax
mov dword [edi + 0x8318], eax
call fcn.004037cc
push eax
push str.bind_failure:__s
jmp 0x402fcd
lea eax, [ebp - 0x108]
push eax
push str.couldnt_find_my_own_IP_address___s_
push edi
call fcn.00401832
add esp, 0xc
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x4030bc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x1b6]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x403106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, edi
call fcn.004037cc
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004017c3
add esp, 0xc
jmp 0x403113
push str.TCP_NODELAY_set_n
push esi
call fcn.004017c3
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403119
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [edx + 0xc]
mov eax, ecx
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ecx
push dword [eax + 0x28]
mov edi, dword [eax]
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4032ea
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
xor ebx, ebx
push 0x80
mov byte [eax], bl
call fcn.00406ca3
pop ecx
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
push edi
call fcn.004017c3
add esp, 0xc
cmp byte [edi + 0x1b6], bl
je 0x4031ad
mov ecx, dword [ebp - 0x90]
mov edx, esi
call fcn.004030bc
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx]
cmp dword [eax + 0x74], ebx
je 0x4031c9
mov edx, esi
call fcn.00402e63
test eax, eax
jne 0x4032e3
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x28], 1
jne 0x403207
mov eax, dword [ebp - 0x8c]
push dword [eax + 0x10]
push dword [eax + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
cmp eax, 0xb
je 0x40328b
cmp eax, 0x2732
jle 0x40322f
cmp eax, 0x2734
jle 0x40328b
mov ecx, dword [ebp - 0x90]
mov edx, eax
call fcn.004037cc
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.00401832
mov eax, dword [ebp - 0x8c]
add esp, 0x10
mov dword [edi + 0x8318], eax
lea edx, [ebp - 0x8c]
mov ecx, esi
call fcn.00402fea
test ebx, ebx
jne 0x4032a9
test al, al
je 0x4032bd
mov eax, dword [ebp - 0x94]
push str.connected_n
push edi
mov byte [eax], 1
call fcn.004017c3
pop ecx
pop ecx
jmp 0x4032a5
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.00402e40
mov ebx, eax
cmp ebx, 1
jne 0x40325e
cmp dword [edi + 0x2d8], 2
jne 0x40325e
mov eax, esi
jmp 0x4032ed
cmp ebx, 1
jne 0x4032bd
push str.Timeout_n
push edi
call fcn.004017c3
pop ecx
pop ecx
jmp 0x4032e3
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov dword [edi + 0x8318], edx
call fcn.004037cc
push eax
push 0x556244
push edi
call fcn.004017c3
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x406f9d
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor ecx, ecx
lea eax, [esi + edx]
mov edx, 0x1505
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x406fc9
movsx ecx, byte [esi]
imul edx, edx, 0x21
xor edx, ecx
inc esi
inc ebx
cmp ebx, edi
jb 0x406fbb
pop edi
pop esi
mov eax, edx
pop ebx
ret

Function at 0x40a7b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
push 0x28
mov dword [ebp - 4], edx
mov ebx, ecx
call dword [0x5a8840]
and dword [ebp - 0xc], 0
mov esi, eax
and dword [ebp - 8], 0
pop ecx
pop ecx
test esi, esi
jne 0x40a7ed
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x40a91c
push edi
lea edi, [ebx + 0x320]
mov ecx, dword [edi]
call fcn.004039ea
push dword [ebp - 4]
call dword [0x5a8834]
mov dword [edi], eax
pop ecx
test eax, eax
jne 0x40a81a
push esi
call dword [0x5a8838]
pop ecx
push 0xc
jmp 0x40a8aa
mov eax, dword [ebp + 8]
mov dword [ebx + 0x324], eax
xor eax, eax
push eax
push 1
mov byte [ebx + 0x32c], al
mov dword [ebx + 0x330], eax
mov dword [ebx + 0x328], eax
mov dword [ebx + 0x334], esi
or dword [esi + 0xc], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x14], eax
test eax, eax
je 0x40a8a1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
je 0x40a8a1
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x40a8a1
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
test eax, eax
je 0x40a8a1
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40a8b2
mov ecx, edi
call fcn.0040a6f1
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a8ef
call fcn.004f9145
add eax, 0x40
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
push 0
push ebx
push 0x40a548
xor ebx, ebx
push ebx
push ebx
call fcn.004f5bb2
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40a8f3
call fcn.004f9cd5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.0040a6f1
xor al, al
jmp 0x40a91b
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
push ecx
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40abb3
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 0x32c], ebx
cdq
mov ecx, 0x3e8
idiv ecx
or ecx, 0xffffffff
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x334], eax
imul eax, edx, 0x3e8
mov edx, esi
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x330], eax
xor eax, eax
inc eax
cmp ebx, 0xffffffff
je 0x40ac27
mov edx, eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x324], eax
mov ecx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x21c], esi
cmp edi, 0xffffffff
je 0x40ac6d
mov dword [ebp - 0x21c], eax
mov eax, esi
mov dword [ebp - 0x218], edi
test edx, edx
je 0x40ac52
cmp dword [ebp + eax*4 - 0x110], edi
je 0x40ac52
inc eax
cmp eax, edx
jb 0x40ac44
cmp eax, edx
jne 0x40ac68
cmp edx, 0x40
jae 0x40ac68
mov dword [ebp + eax*4 - 0x110], edi
inc dword [ebp - 0x114]
cmp edi, ecx
cmova ecx, edi
lea ebx, [ecx + 1]
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x328], eax
cmp eax, 0xffffffff
jne 0x40acaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 4
je 0x40ac70
mov eax, dword [ebp - 0x328]
mov ebx, dword [ebp - 0x32c]
test eax, eax
jns 0x40acbe
or eax, 0xffffffff
jmp 0x40ad25
jne 0x40acc4
xor eax, eax
jmp 0x40ad25
cmp ebx, 0xffffffff
je 0x40acf4
lea eax, [ebp - 0x324]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push 1
test eax, eax
pop eax
cmovne esi, eax
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40acf4
or esi, 4
cmp edi, 0xffffffff
je 0x40ad23
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40ad0e
or esi, 2
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40ad23
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x40d827
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
mov esi, dword [eax]
mov ebx, dword [eax + 0xa4]
mov dword [ebp - 0x18], eax
call fcn.0040ab70
push edx
push eax
call fcn.0040ab70
push edx
push eax
call fcn.0040ab92
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esi + 0x9c]
add esp, 0x10
test ecx, ecx
jne 0x40d879
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x40d893
sub ecx, eax
test ecx, ecx
jg 0x40d893
push str.Timed_out_before_server_could_connect_to_us
push esi
call fcn.00401832
pop ecx
pop ecx
push 0x1c
jmp 0x40d93e
push 0x3c
test ecx, ecx
pop eax
cmovne eax, ecx
or edx, 0xffffffff
imul eax, eax, 0x3e8
mov ecx, ebx
push eax
call fcn.0040abb3
pop ecx
cmp eax, 0xffffffff
je 0x40d92f
test eax, eax
je 0x40d928
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
or edi, 0xffffffff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40d8e4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x40d8f7
push str.Error_accept__ing_server_connect
jmp 0x40d934
push str.Connection_accepted_from_server_n
push esi
call fcn.004017c3
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov dword [eax + 0xa4], edi
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x40d93f
push str.Timeout_while_waiting_for_server_connect
jmp 0x40d934
push str.Error_while_waiting_for_server_connect
push esi
call fcn.00401832
pop ecx
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4116b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4116ee
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00401832
add esp, 0xc
jmp 0x411716
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x411709
shr eax, 8
test al, al
jne 0x411709
xor eax, eax
jmp 0x411719
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00401832
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x411f89
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax + 0x16c]
mov ecx, dword [eax]
mov dword [ebp - 0x910], ecx
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
pop edx
call fcn.00411b7b
mov eax, dword [esi + 0x1aac]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x4120ef
cmp ecx, 0x23
je 0x4120cd
cmp ecx, 0x27
jne 0x412165
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.00402c98
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
push 4
pop edi
jmp 0x41209c
push dword [esi]
call fcn.004f9020
inc eax
add eax, edi
mov dword [ebp - 0x914], eax
pop ecx
cmp eax, 0x7fa
jae 0x412099
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [esi]
call fcn.004f774c
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.00402c98
mov edi, dword [ebp - 0x914]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x412031
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x559118
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.00402c98
add esp, 0x14
add edi, 2
jmp 0x41212e
add esi, 0x1828
push esi
call fcn.004f9020
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x23
jmp 0x41210f
add esi, 0x1808
push esi
call fcn.004f9020
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.00402c98
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x910]
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.00411b7b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x412a9a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov esi, str.netascii
push 3
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, str.octet
mov dword [ebp - 4], ecx
pop ecx
cmp byte [ebx + 0x18c], 0
cmove esi, eax
mov dword [ebp - 8], esi
sub edx, 0
je 0x412b54
sub edx, ecx
je 0x412b25
dec edx
je 0x412af6
dec edx
je 0x412b66
dec edx
je 0x412b54
push str.tftp_send_first:_internal_error_n
push ebx
call fcn.00401832
pop ecx
pop ecx
jmp 0x412c4e
push str.Connected_for_transmit
push 0x556244
push ebx
call fcn.004017c3
add esp, 0xc
mov dword [edi], 2
mov ecx, edi
call fcn.0041296b
push 4
pop edx
mov ecx, edi
call fcn.00412dca
jmp 0x412c4e
push str.Connected_for_receive
push 0x556244
push ebx
call fcn.004017c3
add esp, 0xc
mov dword [edi], 1
mov ecx, edi
call fcn.0041296b
push 3
pop edx
mov ecx, edi
call fcn.00412c55
jmp 0x412c4e
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x412b6d
mov dword [edi + 8], 9
mov dword [edi], ecx
jmp 0x412c4e
cmp byte [ebx + 0x199], 0
je 0x412bcd
push 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x268], ax
call fcn.004f9020
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0041456c
mov dword [ebp - 4], eax
lea ecx, [edi + 0x26c]
mov eax, dword [edi + 0xc]
mov dword [eax + 0x1fc], ecx
mov ecx, dword [ebx + 0xa8]
mov eax, ecx
mov edx, dword [ebx + 0xac]
and eax, edx
cmp eax, 0xffffffff
je 0x412bdc
push edx
push ecx
mov ecx, ebx
call fcn.0041368e
add esp, 8
jmp 0x412bdc
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x268], ax
push 0
push esi
mov esi, dword [ebp - 4]
lea eax, [edi + 0x26a]
push 0
push esi
push str._s_c_s_c
push eax
call fcn.00402e04
push esi
call fcn.004f9020
add esp, 0x1c
mov esi, eax
push dword [ebp - 8]
call fcn.004f9020
pop ecx
lea ecx, [eax + 4]
mov eax, dword [edi + 0xc]
add ecx, esi
mov eax, dword [eax + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x14]
lea eax, [edi + 0x268]
push 0
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412c4e
call fcn.004f9cd5
push dword [eax]
call fcn.004f95c8
pop ecx
push eax
push 0x556244
push ebx
call fcn.00401832
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c55
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
push 3
pop edi
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov dword [ebp - 4], esi
sub edx, edi
je 0x412ce9
dec edx
dec edx
je 0x412c9e
dec edx
je 0x412c7b
push str.tftp_rx:_internal_error
jmp 0x412cd6
inc dword [ebx + 0x14]
push dword [ebx + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push esi
call fcn.004017c3
mov eax, dword [ebx + 0x14]
add esp, 0xc
cmp eax, dword [ebx + 0x1c]
jle 0x412ca5
mov dword [ebx + 8], 8
mov dword [ebx], edi
jmp 0x412dab
push dword [ebx + 0x58]
lea eax, [ebx + 0x48]
push eax
push 0
push 4
lea eax, [ebx + 0x268]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412dab
call fcn.004f9cd5
push dword [eax]
call fcn.004f95c8
pop ecx
push eax
push 0x556244
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412dab
movzx eax, word [ebx + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
movzx eax, word [ebx + 0x30]
inc eax
cmp eax, edi
je 0x412d33
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push esi
call fcn.004017c3
add esp, 0xc
inc dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
jle 0x412d33
movzx eax, word [ebx + 0x30]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412dc3
and dword [ebx + 0x14], 0
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 0x30], di
lea edi, [ebx + 0x268]
push 4
call esi
mov word [edi], ax
movzx eax, word [ebx + 0x30]
push eax
call esi
push dword [ebx + 0x58]
mov word [ebx + 0x26a], ax
lea eax, [ebx + 0x48]
push eax
push 0
push 4
push edi
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412d96
call fcn.004f9cd5
push dword [eax]
call fcn.004f95c8
mov esi, dword [ebp - 4]
pop ecx
push eax
push 0x556244
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412d99
mov esi, dword [ebp - 4]
xor eax, eax
inc eax
cmp dword [ebx + 0x5c], 0x204
push 3
pop ecx
cmovl eax, ecx
mov dword [ebx], eax
movzx eax, word [ebx + 0x30]
cdq
shld edx, eax, 9
shl eax, 9
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret