joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 2], 0
mov byte [ebp - 1], 1
mov eax, 0x20
movzx edx, byte [eax + esi - 1]
dec eax
mov ecx, edx
movzx ebx, byte [eax + 0x4370f0]
sub ecx, ebx
xor ebx, edx
sar ecx, 8
dec ebx
and cl, byte [ebp - 1]
or byte [ebp - 2], cl
sar ebx, 8
and byte [ebp - 1], bl
test eax, eax
jne 0x4153f5
cmp byte [ebp - 2], al
pop esi
sete al
neg eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
add ecx, 2
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 8], ecx
mov eax, 0x436f72
push edi
jmp 0x415450
xor bl, bl
mov esi, ecx
mov edi, 8
lea esp, [esp]
movzx ecx, byte [eax - 1]
lea esi, [esi + 4]
xor cl, byte [esi - 5]
mov dl, byte [eax - 2]
xor dl, byte [esi - 6]
or dl, cl
movzx ecx, byte [eax + 1]
xor cl, byte [esi - 3]
or dl, cl
movzx ecx, byte [eax]
xor cl, byte [esi - 4]
add eax, 4
or dl, cl
or bl, dl
dec edi
jne 0x415460
test bl, bl
je 0x4154ac
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 4], ecx
cmp ecx, 0x180
mov ecx, dword [ebp - 8]
jb 0x415450
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415920
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x442288]
xor eax, esp
mov dword [esp + 0x1a4], eax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp]
mov dword [esp], str.WTware_TFTP
push eax
mov dword [esp + 8], 0x4158b0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x41598b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_StartServiceCtrlDispatcher____failed:__d
call fcn.004168b0
add esp, 8
mov ecx, dword [esp + 0x1a4]
xor eax, eax
xor ecx, esp
call fcn.0041e406
mov esp, ebp
pop ebp
ret
Function at 0x416620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fceb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1050
call fcn.00424b90
mov eax, dword [0x442288]
xor eax, esp
mov dword [esp + 0x104c], eax
push esi
push edi
mov eax, dword [0x442288]
xor eax, esp
push eax
lea eax, [esp + 0x1060]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x1068], eax
cmp byte [0x4444c0], al
je 0x4166f5
push str.wttftp.log
mov edx, 0x4445cc
lea ecx, [esp + 0x40]
call fcn.00403140
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
cmp eax, esi
je 0x4166e0
cmp dword [esp + 0x28], 8
jb 0x4166bf
push dword [esp + 0x14]
call fcn.0041e612
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00402ff0
cmp dword [esp + 0x50], 8
jb 0x416705
push dword [esp + 0x3c]
call fcn.0041e612
add esp, 4
jmp 0x416705
push 0xa
push str.wttftp.log
lea ecx, [esp + 0x1c]
call fcn.00404640
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push 0x80
push 4
push 0
push 1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4167c6
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x38]
movzx eax, word [esp + 0x36]
push edi
push ecx
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x4a]
push eax
lea eax, [esp + 0x70]
push str.__02d._02d._d__02d:_02d:_02d___s_n
push eax
call fcn.00416d50
add esp, 0x24
xor eax, eax
cmp byte [esp + eax + 0x54], 0
je 0x4167ab
cmp byte [esp + eax + 0x55], 0
je 0x4167aa
cmp byte [esp + eax + 0x56], 0
je 0x4167a5
cmp byte [esp + eax + 0x57], 0
je 0x4167a0
add eax, 4
cmp eax, 0x1000
jb 0x416778
jmp 0x4167ab
add eax, 3
jmp 0x4167ab
add eax, 2
jmp 0x4167ab
inc eax
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 8
jb 0x4167d9
push dword [esp + 0x14]
call fcn.0041e612
add esp, 4
mov ecx, dword [esp + 0x1060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104c]
xor ecx, esp
call fcn.0041e406
mov esp, ebp
pop ebp
ret
Function at 0x416b50
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 1
lea eax, [ebp - 0x20]
mov dword [0x4444b0], edx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0x80
push str..mailslotWTFTPLogging
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x443370], eax
cmp eax, 0xffffffff
jne 0x416bc4
push str..mailslotWTFTPLogging
push str.ERROR:_failed_to_create_mailslot___s_.
call fcn.004168b0
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x416aa0
call fcn.004215bb
add esp, 0xc
test eax, eax
jne 0x416bec
push str.ERROR:__beginthread____failed.
call fcn.004168b0
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x417090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd28
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x442288]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], 0
call fcn.00417030
test al, al
je 0x4171c1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [edi + 8]
call fcn.00418700
push eax
mov edx, 0x4445fc
lea ecx, [ebp - 0x2c]
call fcn.00403140
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0041ecb5
add esp, 8
cmp eax, 0xffffffff
jne 0x417172
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0042171d
add esp, 4
test eax, eax
jne 0x417190
movzx eax, byte [edi + 0xd]
lea ecx, [ebp - 0x4c]
push eax
movzx eax, byte [edi + 0xc]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
movzx eax, byte [edi + 9]
push eax
movzx eax, byte [edi + 8]
push eax
sub esp, 8
call fcn.004028b0
push str.WTware_TFTP
lea eax, [ebp - 0x4c]
push eax
push str.__s__Created._Source:__s.
call fcn.004184c0
add esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00403050
cmp dword [ebp - 0x18], 8
jb 0x4171e8
push dword [ebp - 0x2c]
call fcn.0041e612
add esp, 4
jmp 0x4171e8
call fcn.0041e449
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x42
push str.e:workcommon_terminalID.h
push str.ERROR
call fcn.00416950
add esp, 0x10
mov ecx, esi
call fcn.00405550
lea ecx, [ebp - 0x2c]
call fcn.00403110
jmp 0x4171e8
call fcn.0041e449
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x3e
push str.e:workcommon_terminalID.h
push str.ERROR
call fcn.00416950
add esp, 0x10
mov ecx, esi
call fcn.00405550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e406
mov esp, ebp
pop ebp
ret 4
Function at 0x417a30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x442288]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotWTDHCPLogging
mov edi, ecx
mov dword [ebp - 0x68], 0x100
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x417ba2
push 0
call fcn.0042177f
add esp, 4
push eax
call fcn.0042176f
add esp, 4
lea eax, [ebp - 0x48]
push 0x40
push 0
push eax
call fcn.00429200
add esp, 0xc
mov byte [ebp - 0x48], 0x37
mov edx, str..mailslotWTDHCPReceiver_
lea ecx, [ebp - 0x48]
call fcn.00416e40
call fcn.0042174e
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00405030
cmp dword [eax + 0x14], 0x10
jb 0x417abe
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00416e40
cmp dword [ebp - 0x4c], 0x10
jb 0x417ad9
push dword [ebp - 0x60]
call fcn.0041e612
add esp, 4
lea edx, [ebp - 0x47]
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x64]
call fcn.004042e0
test al, al
je 0x417b7f
lea eax, [ebp - 0x6c]
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.004058c0
push eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
push edi
mov edi, dword [ebp - 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x47]
push eax
push str.Error_reading_from_mailslot__s._Error__d
push 0x104
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416950
add esp, 0x18
push edi
call esi
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e406
mov esp, ebp
pop ebp
ret
push edi
call esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e406
mov esp, ebp
pop ebp
ret
call fcn.0041e449
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0xfa
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416950
add esp, 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041e406
mov esp, ebp
pop ebp
ret
Function at 0x418050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x442288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push edi
call fcn.0041ecb5
add esp, 8
cmp eax, 0xffffffff
jne 0x4180a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.00404b00
test al, al
je 0x41811c
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x41811f
mov eax, dword [ebp - 0x10]
push 0xf
push esi
push dword [eax]
call fcn.0041f283
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x41811c
xor ecx, ecx
test edx, edx
jle 0x418111
jmp 0x4180f0
mov al, byte [ecx + esi]
cmp al, 0xa
je 0x41810f
cmp al, 7
je 0x41810f
cmp al, 0xd
je 0x41810f
inc ecx
cmp ecx, edx
jl 0x4180f0
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418121
mov edx, ecx
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418121
mov eax, dword [ebp - 0x18]
xor bl, bl
cmp eax, 0xffffffff
je 0x41814f
cmp byte [ebp - 0x14], 0
push eax
je 0x418147
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041f10e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x442288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push edi
call fcn.0041ecb5
add esp, 8
cmp eax, 0xffffffff
jne 0x4181c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.00404b00
test al, al
je 0x41823c
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x41823f
mov eax, dword [ebp - 0x10]
push 0x1f
push esi
push dword [eax]
call fcn.0041f283
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x41823c
xor ecx, ecx
test edx, edx
jle 0x418231
jmp 0x418210
mov al, byte [ecx + esi]
cmp al, 0xa
je 0x41822f
cmp al, 7
je 0x41822f
cmp al, 0xd
je 0x41822f
inc ecx
cmp ecx, edx
jl 0x418210
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418241
mov edx, ecx
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418241
mov eax, dword [ebp - 0x18]
xor bl, bl
cmp eax, 0xffffffff
je 0x41826f
cmp byte [ebp - 0x14], 0
push eax
je 0x418267
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041f10e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4184c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fe5b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x442288]
xor eax, esp
mov dword [esp + 0x430], eax
push edi
mov eax, dword [0x442288]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x26]
push eax
lea eax, [esp + 0x4c]
push str.__02d._02d._d__02d:_02d:_02d_
push eax
call fcn.00405a50
lea ecx, [esp + 0x54]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418546
lea eax, [ebp + 0xc]
sub ecx, edx
push eax
push dword [ebp + 8]
mov eax, 0x400
sub eax, ecx
push eax
lea eax, [esp + 0x40]
add eax, ecx
push eax
call fcn.004205bb
push str.wtc_terminal.log
mov edx, 0x4445cc
lea ecx, [esp + 0x30]
call fcn.00403140
add esp, 0x14
push 0
push 0x80
push 4
push 0
mov dword [esp + 0x458], 0
lea eax, [esp + 0x2c]
cmp dword [esp + 0x40], 8
push 1
cmovae eax, dword [esp + 0x30]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41861e
xor ecx, ecx
cmp byte [esp + ecx + 0x34], 0
je 0x4185ec
cmp byte [esp + ecx + 0x35], 0
je 0x4185eb
cmp byte [esp + ecx + 0x36], 0
je 0x4185e6
cmp byte [esp + ecx + 0x37], 0
je 0x4185e1
add ecx, 4
cmp ecx, 0x400
jb 0x4185b8
jmp 0x4185ec
add ecx, 3
jmp 0x4185ec
add ecx, 2
jmp 0x4185ec
inc ecx
push 0
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 1
push 0x43f1ec
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41863e
call fcn.0041e449
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x61
push str.e:workwtftp.._common_fileio.h
push str.ERROR
call fcn.00416950
add esp, 0x14
cmp dword [esp + 0x30], 8
jb 0x418651
push dword [esp + 0x1c]
call fcn.0041e612
add esp, 4
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0041e406
mov esp, ebp
pop ebp
ret
Function at 0x418930
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x442288]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
push 5
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x450], eax
call esi
push ebx
mov word [ebp - 0x434], ax
call esi
mov word [ebp - 0x432], ax
test edi, edi
jne 0x418988
mov byte [ebp - 0x430], 0
jmp 0x4189c0
xor edx, edx
cmp byte [edi], dl
je 0x4189b8
lea esi, [ebp - 0x430]
mov ecx, edi
sub esi, edi
jmp 0x4189a0
cmp edx, 0x3ff
je 0x418a22
mov al, byte [ecx]
inc edx
mov byte [esi + ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x4189a0
mov byte [ebp + edx - 0x430], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4189c5
sub ecx, edx
lea esi, [ecx + 5]
cmp ebx, 1
je 0x418b67
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x444]
movzx edx, bl
call fcn.004015f0
xor ecx, ecx
lea ecx, [ecx]
cmp byte [ebp + ecx - 0x444], 0
je 0x418a33
cmp byte [ebp + ecx - 0x443], 0
je 0x418a32
cmp byte [ebp + ecx - 0x442], 0
je 0x418a2d
cmp byte [ebp + ecx - 0x441], 0
je 0x418a28
add ecx, 4
cmp ecx, 0x10
jb 0x4189f0
jmp 0x418a33
mov byte [ebp - 0x31], 0
jmp 0x4189c0
add ecx, 3
jmp 0x418a33
add ecx, 2
jmp 0x418a33
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418a45
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 8
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
jmp 0x418a70
cmp byte [ebp + ecx - 0x444], 0
je 0x418aad
cmp byte [ebp + ecx - 0x443], 0
je 0x418aac
cmp byte [ebp + ecx - 0x442], 0
je 0x418aa7
cmp byte [ebp + ecx - 0x441], 0
je 0x418aa2
add ecx, 4
cmp ecx, 0x10
jb 0x418a70
jmp 0x418aad
add ecx, 3
jmp 0x418aad
add ecx, 2
jmp 0x418aad
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418abf
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418b1f
cmp byte [ebp + ecx - 0x443], 0
je 0x418b1e
cmp byte [ebp + ecx - 0x442], 0
je 0x418b19
cmp byte [ebp + ecx - 0x441], 0
je 0x418b14
add ecx, 4
cmp ecx, 0x10
jb 0x418ae2
jmp 0x418b1f
add ecx, 3
jmp 0x418b1f
add ecx, 2
jmp 0x418b1f
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418b31
mov word [ebp + ecx - 0x444], 0x2e
shr ebx, 0x18
lea ecx, [ebp - 0x28]
mov edx, ebx
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
push edi
push dword [ebp - 0x44c]
lea eax, [ebp - 0x444]
push eax
push str.__s__Sending_ERR__d__message___s_.
call fcn.00416900
add esp, 0x10
push 0x10
push dword [ebp - 0x450]
lea eax, [ebp - 0x434]
push 0
push esi
push eax
push dword [ebp - 0x448]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x418b9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168b0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e406
mov esp, ebp
pop ebp
ret
Function at 0x418bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x442288]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ebx, edx
push edi
push 3
mov edi, ecx
mov dword [ebp - 0x448], eax
call esi
push 0
mov word [ebp - 0x434], ax
call esi
mov word [ebp - 0x432], ax
xor ecx, ecx
cmp ecx, 0x3ff
je 0x418c1a
mov al, byte [ecx + str.WTware_TFTP_v.6.2.14.]
mov byte [ebp + ecx - 0x430], al
inc ecx
cmp byte [ecx + str.WTware_TFTP_v.6.2.14.], 0
jne 0x418bf1
mov byte [ebp + ecx - 0x430], 0
jmp 0x418c1e
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x430]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418c27
sub ecx, edx
movzx edx, bl
lea esi, [ecx + 4]
lea ecx, [ebp - 0x444]
call fcn.004015f0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418c80
cmp byte [ebp + ecx - 0x443], 0
je 0x418c7f
cmp byte [ebp + ecx - 0x442], 0
je 0x418c7a
cmp byte [ebp + ecx - 0x441], 0
je 0x418c75
add ecx, 4
cmp ecx, 0x10
jb 0x418c43
jmp 0x418c80
add ecx, 3
jmp 0x418c80
add ecx, 2
jmp 0x418c80
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418c92
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 8
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418cf2
cmp byte [ebp + ecx - 0x443], 0
je 0x418cf1
cmp byte [ebp + ecx - 0x442], 0
je 0x418cec
cmp byte [ebp + ecx - 0x441], 0
je 0x418ce7
add ecx, 4
cmp ecx, 0x10
jb 0x418cb5
jmp 0x418cf2
add ecx, 3
jmp 0x418cf2
add ecx, 2
jmp 0x418cf2
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d04
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
jmp 0x418d30
cmp byte [ebp + ecx - 0x444], 0
je 0x418d6d
cmp byte [ebp + ecx - 0x443], 0
je 0x418d6c
cmp byte [ebp + ecx - 0x442], 0
je 0x418d67
cmp byte [ebp + ecx - 0x441], 0
je 0x418d62
add ecx, 4
cmp ecx, 0x10
jb 0x418d30
jmp 0x418d6d
add ecx, 3
jmp 0x418d6d
add ecx, 2
jmp 0x418d6d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d7f
mov word [ebp + ecx - 0x444], 0x2e
shr ebx, 0x18
lea ecx, [ebp - 0x28]
mov edx, ebx
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
lea eax, [ebp - 0x444]
push eax
push str.__s__Sending_WTware_TFTP_version.
call fcn.00416900
add esp, 8
lea eax, [ebp - 0x434]
push 0x10
push dword [ebp - 0x448]
push 0
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x418ddf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168b0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e406
mov esp, ebp
pop ebp
ret