joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a70
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0x80
push 3
push 0
push 1
push connect
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x405ba4
test eax, eax
je 0x405ba4
push 0
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x405aee
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x405b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.004057f0
push eax
push str.mm_file_map___s__failed__x
push 0x2a
push str.....commonmm_file.cpp
push str.ERROR
call fcn.00416980
add esp, 0x18
mov ecx, esi
call fcn.00402860
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x405ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.map_file__x
push 0x33
push str.....commonmm_file.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
mov ecx, esi
call fcn.00402860
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x408]
call fcn.004057f0
push eax
push str.mm_file_open___s__failed__x
push 0x17
push str.....commonmm_file.cpp
push str.ERROR
call fcn.00416980
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor al, al
pop edi
pop esi
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
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 + 0x436100]
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, 0x435f82
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 0x415940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x441288]
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], 0x4158d0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4159ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_StartServiceCtrlDispatcher____failed:__d
call fcn.004168e0
add esp, 8
mov ecx, dword [esp + 0x1a4]
xor eax, eax
xor ecx, esp
call fcn.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x416650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fb2b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1050
call fcn.004249d0
mov eax, dword [0x441288]
xor eax, esp
mov dword [esp + 0x104c], eax
push esi
push edi
mov eax, dword [0x441288]
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 [0x4434c0], al
je 0x416725
push str.wttftp.log
mov edx, 0x4435cc
lea ecx, [esp + 0x40]
call fcn.00403140
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
cmp eax, esi
je 0x416710
cmp dword [esp + 0x28], 8
jb 0x4166ef
push dword [esp + 0x14]
call fcn.0041e452
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 0x416735
push dword [esp + 0x3c]
call fcn.0041e452
add esp, 4
jmp 0x416735
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 0x4167f6
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.00416d80
add esp, 0x24
xor eax, eax
cmp byte [esp + eax + 0x54], 0
je 0x4167db
cmp byte [esp + eax + 0x55], 0
je 0x4167da
cmp byte [esp + eax + 0x56], 0
je 0x4167d5
cmp byte [esp + eax + 0x57], 0
je 0x4167d0
add eax, 4
cmp eax, 0x1000
jb 0x4167a8
jmp 0x4167db
add eax, 3
jmp 0x4167db
add eax, 2
jmp 0x4167db
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 0x416809
push dword [esp + 0x14]
call fcn.0041e452
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.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x416b80
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 1
lea eax, [ebp - 0x20]
mov dword [0x4434b0], 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 [0x442370], eax
cmp eax, 0xffffffff
jne 0x416bf4
push str..mailslotWTFTPLogging
push str.ERROR:_failed_to_create_mailslot___s_.
call fcn.004168e0
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x416ad0
call fcn.004213fb
add esp, 0xc
test eax, eax
jne 0x416c1c
push str.ERROR:__beginthread____failed.
call fcn.004168e0
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4170d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fb68
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x441288]
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.00417070
test al, al
je 0x417201
lea eax, [ebp - 0x8c]
push eax
lea ecx, [edi + 8]
call fcn.004186e0
push eax
mov edx, 0x4435fc
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.0041eaf5
add esp, 8
cmp eax, 0xffffffff
jne 0x4171b2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0042155d
add esp, 4
test eax, eax
jne 0x4171d0
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.004184a0
add esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00403050
cmp dword [ebp - 0x18], 8
jb 0x417228
push dword [ebp - 0x2c]
call fcn.0041e452
add esp, 4
jmp 0x417228
call fcn.0041e289
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.00416980
add esp, 0x10
mov ecx, esi
call fcn.00405550
lea ecx, [ebp - 0x2c]
call fcn.00403110
jmp 0x417228
call fcn.0041e289
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.00416980
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.0041e246
mov esp, ebp
pop ebp
ret 4
Function at 0x417a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x441288]
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 0x417b82
push 0
call fcn.004215bf
add esp, 4
push eax
call fcn.004215af
add esp, 4
lea eax, [ebp - 0x48]
push 0x40
push 0
push eax
call fcn.00429040
add esp, 0xc
mov byte [ebp - 0x48], 0x37
mov edx, str..mailslotWTDHCPReceiver_
lea ecx, [ebp - 0x48]
call fcn.00416e70
call fcn.0042158e
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00405030
cmp dword [eax + 0x14], 0x10
jb 0x417a9e
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00416e70
cmp dword [ebp - 0x4c], 0x10
jb 0x417ab9
push dword [ebp - 0x60]
call fcn.0041e452
add esp, 4
lea edx, [ebp - 0x47]
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x64]
call fcn.004042e0
test al, al
je 0x417b5f
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 0x417b4a
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.00416980
add esp, 0x18
push edi
call esi
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
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.0041e246
mov esp, ebp
pop ebp
ret
call fcn.0041e289
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.00416980
add esp, 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x418030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x441288]
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.0041eaf5
add esp, 8
cmp eax, 0xffffffff
jne 0x418080
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 0x4180fc
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4180ff
mov eax, dword [ebp - 0x10]
push 0xf
push esi
push dword [eax]
call fcn.0041f0c2
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x4180fc
xor ecx, ecx
test edx, edx
jle 0x4180f1
jmp 0x4180d0
mov al, byte [ecx + esi]
cmp al, 0xa
je 0x4180ef
cmp al, 7
je 0x4180ef
cmp al, 0xd
je 0x4180ef
inc ecx
cmp ecx, edx
jl 0x4180d0
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418101
mov edx, ecx
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418101
mov eax, dword [ebp - 0x18]
xor bl, bl
cmp eax, 0xffffffff
je 0x41812f
cmp byte [ebp - 0x14], 0
push eax
je 0x418127
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.0041ef4d
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 0x418150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x441288]
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.0041eaf5
add esp, 8
cmp eax, 0xffffffff
jne 0x4181a0
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 0x41821c
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x41821f
mov eax, dword [ebp - 0x10]
push 0x1f
push esi
push dword [eax]
call fcn.0041f0c2
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x41821c
xor ecx, ecx
test edx, edx
jle 0x418211
jmp 0x4181f0
mov al, byte [ecx + esi]
cmp al, 0xa
je 0x41820f
cmp al, 7
je 0x41820f
cmp al, 0xd
je 0x41820f
inc ecx
cmp ecx, edx
jl 0x4181f0
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418221
mov edx, ecx
mov eax, dword [ebp - 0x18]
mov bl, 1
mov byte [edx + esi], 0
jmp 0x418221
mov eax, dword [ebp - 0x18]
xor bl, bl
cmp eax, 0xffffffff
je 0x41824f
cmp byte [ebp - 0x14], 0
push eax
je 0x418247
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.0041ef4d
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 0x4184a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x441288]
xor eax, esp
mov dword [esp + 0x430], eax
push edi
mov eax, dword [0x441288]
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 0x418526
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.004203fa
push str.wtc_terminal.log
mov edx, 0x4435cc
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 0x4185fe
xor ecx, ecx
cmp byte [esp + ecx + 0x34], 0
je 0x4185cc
cmp byte [esp + ecx + 0x35], 0
je 0x4185cb
cmp byte [esp + ecx + 0x36], 0
je 0x4185c6
cmp byte [esp + ecx + 0x37], 0
je 0x4185c1
add ecx, 4
cmp ecx, 0x400
jb 0x418598
jmp 0x4185cc
add ecx, 3
jmp 0x4185cc
add ecx, 2
jmp 0x4185cc
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 0x43e1fc
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41861e
call fcn.0041e289
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.00416980
add esp, 0x14
cmp dword [esp + 0x30], 8
jb 0x418631
push dword [esp + 0x1c]
call fcn.0041e452
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.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x418910
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x441288]
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 0x418968
mov byte [ebp - 0x430], 0
jmp 0x4189a0
xor edx, edx
cmp byte [edi], dl
je 0x418998
lea esi, [ebp - 0x430]
mov ecx, edi
sub esi, edi
jmp 0x418980
cmp edx, 0x3ff
je 0x418a02
mov al, byte [ecx]
inc edx
mov byte [esi + ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x418980
mov byte [ebp + edx - 0x430], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4189a5
sub ecx, edx
lea esi, [ecx + 5]
cmp ebx, 1
je 0x418b47
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 0x418a13
cmp byte [ebp + ecx - 0x443], 0
je 0x418a12
cmp byte [ebp + ecx - 0x442], 0
je 0x418a0d
cmp byte [ebp + ecx - 0x441], 0
je 0x418a08
add ecx, 4
cmp ecx, 0x10
jb 0x4189d0
jmp 0x418a13
mov byte [ebp - 0x31], 0
jmp 0x4189a0
add ecx, 3
jmp 0x418a13
add ecx, 2
jmp 0x418a13
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418a25
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 0x418a50
cmp byte [ebp + ecx - 0x444], 0
je 0x418a8d
cmp byte [ebp + ecx - 0x443], 0
je 0x418a8c
cmp byte [ebp + ecx - 0x442], 0
je 0x418a87
cmp byte [ebp + ecx - 0x441], 0
je 0x418a82
add ecx, 4
cmp ecx, 0x10
jb 0x418a50
jmp 0x418a8d
add ecx, 3
jmp 0x418a8d
add ecx, 2
jmp 0x418a8d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418a9f
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 0x418aff
cmp byte [ebp + ecx - 0x443], 0
je 0x418afe
cmp byte [ebp + ecx - 0x442], 0
je 0x418af9
cmp byte [ebp + ecx - 0x441], 0
je 0x418af4
add ecx, 4
cmp ecx, 0x10
jb 0x418ac2
jmp 0x418aff
add ecx, 3
jmp 0x418aff
add ecx, 2
jmp 0x418aff
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418b11
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.00416930
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 0x418b7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168e0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e246
mov esp, ebp
pop ebp
ret
Function at 0x418b90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x441288]
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 0x418bfa
mov al, byte [ecx + str.WTware_TFTP_v.6.2.22.]
mov byte [ebp + ecx - 0x430], al
inc ecx
cmp byte [ecx + str.WTware_TFTP_v.6.2.22.], 0
jne 0x418bd1
mov byte [ebp + ecx - 0x430], 0
jmp 0x418bfe
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x430]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418c07
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 0x418c60
cmp byte [ebp + ecx - 0x443], 0
je 0x418c5f
cmp byte [ebp + ecx - 0x442], 0
je 0x418c5a
cmp byte [ebp + ecx - 0x441], 0
je 0x418c55
add ecx, 4
cmp ecx, 0x10
jb 0x418c23
jmp 0x418c60
add ecx, 3
jmp 0x418c60
add ecx, 2
jmp 0x418c60
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418c72
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 0x418cd2
cmp byte [ebp + ecx - 0x443], 0
je 0x418cd1
cmp byte [ebp + ecx - 0x442], 0
je 0x418ccc
cmp byte [ebp + ecx - 0x441], 0
je 0x418cc7
add ecx, 4
cmp ecx, 0x10
jb 0x418c95
jmp 0x418cd2
add ecx, 3
jmp 0x418cd2
add ecx, 2
jmp 0x418cd2
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418ce4
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 0x418d10
cmp byte [ebp + ecx - 0x444], 0
je 0x418d4d
cmp byte [ebp + ecx - 0x443], 0
je 0x418d4c
cmp byte [ebp + ecx - 0x442], 0
je 0x418d47
cmp byte [ebp + ecx - 0x441], 0
je 0x418d42
add ecx, 4
cmp ecx, 0x10
jb 0x418d10
jmp 0x418d4d
add ecx, 3
jmp 0x418d4d
add ecx, 2
jmp 0x418d4d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d5f
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.00416930
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 0x418dbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168e0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e246
mov esp, ebp
pop ebp
ret