joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4115e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0x10b3
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CFile::constructor_class_FObj::CUnicodeString_const___unsigned_int_]
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.FineObj.dll_bool___cdecl_FObj::GenerateInternalError_enum_FObj::TInternalErrorType__wchar_t_const___wchar_t_const___wchar_t_const___int__unsigned_long_int_]
mov dword [ebp - 4], 0
sub eax, 0
je 0x40ec3f
sub eax, 1
je 0x40ec36
push 0
push 0xa8
push str.SrcDumpTools.cpp
push 0x413520
push 0x413520
push 0
call esi
add esp, 0x18
jmp 0x40ec46
mov dword [ebp - 0x1c], 0
jmp 0x40ec46
mov dword [ebp - 0x1c], 2
lea ecx, [ebp - 0x28]
call dword [sym.imp.FineObj.dll_public:_void____thiscall_FObj::CFile::Handle_void_const]
push 0
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40f1f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f980
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40ecbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaf
push str.SrcDumpTools.cpp
push 0x413520
push 0x413520
push 1
call esi
add esp, 0x18
lea ecx, [ebp - 0x28]
call dword [sym.imp.FineObj.dll_public_virtual:_void___thiscall_FObj::CFile::Close_void_]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040f9e0
lea ecx, [ebp - 0x28]
call dword [sym.imp.FineObj.dll_public_virtual:_void___thiscall_FObj::CFile::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401ec2
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [edi], ebx
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push esi
push 0xc0000000
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 4], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x10], eax
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 4]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x401f53
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cce
add esp, 0xc
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401f68
push str._Could_not_load_Python_
call fcn.0040891e
add eax, 0x40
push eax
call fcn.00408778
pop ecx
pop ecx
push dword [ebp - 0x10]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 4]
call esi
mov ecx, 0x1000
cmp eax, ecx
jae 0x401f95
push ebx
push dword [ebp - 4]
call esi
mov esi, eax
jmp 0x401f97
mov esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00408087
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x401fcf
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x401fe8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 8], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x40206f
cmp dword [ebp - 4], eax
je 0x40206f
cmp dword [ebp - 0xc], eax
je 0x40206f
cmp dword [ebp - 8], eax
je 0x40206f
cmp esi, eax
je 0x40206f
push 0x4325a0
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401bbf
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x402068
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x402072
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402077
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov edi, eax
cmp edi, ebx
jne 0x40211f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
call fcn.00401654
add esp, 0x10
or eax, 0xffffffff
jmp 0x4021f7
push dword [ebp - 0x20]
call fcn.00401fe8
pop ecx
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x1c]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x20], ebx
je 0x4021e2
mov eax, str.Running_the_pre_installation_script_failed_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402151
push ebx
push dword [ebp - 0x14]
sub eax, edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x402175
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.00408087
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021d7
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x1c], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402195
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, esi
push esi
mov byte [eax + edi], bl
call fcn.00401654
push esi
call fcn.00407f30
pop ecx
jmp 0x4021e1
push str.Out_of_memory_
call fcn.00401654
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x74
leave
ret
Function at 0x4013b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWARETFTPD32DHCP
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x4014d6
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov ebp, 4
push ecx
push 0x413cf0
push 0
push 0
push str.IP_Pool
push edx
mov dword [esp + 0x28], ebp
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x413cf4
push 0
push 0
push str.PoolSize
push ecx
mov dword [esp + 0x28], ebp
call ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x413d04
push 0
push 0
push str.BootFile
push eax
mov dword [esp + 0x28], 0x100
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x413cfc
push 0
push 0
push 0x41119c
push edx
mov dword [esp + 0x28], ebp
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x413cf8
push 0
push 0
push str.Mask
push ecx
mov dword [esp + 0x28], ebp
call ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x413d00
push 0
push 0
push str.Gateway
push eax
mov dword [esp + 0x28], ebp
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x413e04
push 0
push 0
push str.DomainName
push edx
mov dword [esp + 0x28], 0x40
call ebx
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x413cf0]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push eax
push 0xbc2
push esi
call ebx
mov edx, dword [0x413cf8]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
push 0xbc3
push esi
call ebx
mov eax, dword [0x413cfc]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push 0xbc7
push esi
call ebx
mov ecx, dword [0x413d00]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
push 0xbcd
push esi
call ebx
push 0x413d04
push 0xbca
push esi
call ebx
mov edx, dword [0x413cf4]
push 0
push edx
push 0xbc8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x413e04
push 0xbd6
push esi
call ebx
mov eax, dword [0x413cf4]
xor esi, esi
cmp eax, esi
je 0x4015a9
shl eax, 5
push eax
call fcn.0040965a
add esp, 4
cmp eax, esi
mov dword [0x413cb0], eax
jne 0x4015a9
push 0x10
push str.Tftpd32
push str.Can_not_allocate_memory
push ebp
call fcn.00402ba0
add esp, 0x10
push esi
push esi
push 0x10
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, edi
mov dword [0x413cb4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401d00
Capabilities:
Get file size
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov ecx, 0x11
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov esi, 0x411080
lea ebx, [ebp + 0xf0]
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x11
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x413cf8]
mov dword [ebx + 0x10], eax
mov ecx, dword [0x413d00]
mov dword [ebx + 0x18], ecx
mov edx, dword [0x413cfc]
mov dword [ebx + 0x20], edx
mov eax, dword [0x413cfc]
mov dword [ebx + 0x30], eax
mov al, byte [0x41265c]
test al, 8
je 0x401dbc
lea ecx, [esp + 0x14]
push 0x100
push ecx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x401dbc
lea edx, [esp + 0x14]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x401dbc
mov esi, dword [eax + 0xc]
test esi, esi
je 0x401dbc
mov eax, dword [esi]
xor edi, edi
test eax, eax
je 0x401db0
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x413cf8]
and edx, ecx
mov ecx, esi
mov eax, dword [eax]
and eax, dword [0x413cf8]
cmp eax, edx
je 0x401db0
mov eax, dword [ecx + 4]
add ecx, 4
inc edi
test eax, eax
jne 0x401d99
mov esi, dword [esi + edi*4]
test esi, esi
je 0x401dbc
mov ecx, dword [esi]
mov dword [ebx + 0x28], ecx
push 0
push 0x80
push 3
push 0
push 1
push connect
push 0x413d04
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401df7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shr eax, 9
push esi
mov word [ebx + 0x3e], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push 0x100
push edx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x401e5b
lea eax, [esp + 0x14]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
mov dword [esp + 0x10], eax
je 0x401e5b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x401e5b
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
je 0x401e52
mov esi, dword [ebp + 0x10]
mov edx, dword [0x413cf8]
and esi, edx
mov edx, eax
mov ecx, dword [ecx]
mov ebp, dword [0x413cf8]
and ecx, ebp
cmp ecx, esi
je 0x401e52
mov ecx, dword [edx + 4]
add edx, 4
inc edi
test ecx, ecx
jne 0x401e39
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401e5f
jmp 0x401e73
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x401e6e
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
jmp 0x401e73
mov eax, 0x4110c4
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov al, byte [0x413e04]
test al, al
je 0x401eb5
push 0x413e04
mov byte [ebx + 0x40], 0xf
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx ecx, al
mov edx, ecx
mov esi, 0x413e04
lea edi, [ebx + 0x42]
mov byte [ebx + 0x41], al
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, byte [ebx + 0x41]
mov byte [eax + ebx + 0x42], 0xff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x401ed0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x114
push esi
push 0
push 2
push 2
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f12
mov esi, dword [esp + 0x11c]
push 0x10
push str.Tftpd32
push str.Error_:_Cant_create_BootP_socket
push esi
call fcn.00402ba0
add esp, 0x10
jmp 0x401fdb
mov ecx, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x14]
push 4
push edx
push 0x20
push 0xffff
push esi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x401f73
mov esi, dword [esp + 0x11c]
push 0x10
push str.Tftpd32
push str.Error:_Cant_set_broadcast_option._nPlease_suppress_DHCP_server_in_the_global_settings
push esi
call fcn.00402ba0
add esp, 0x10
jmp 0x401fdb
mov al, byte [0x41264c]
test al, al
jne 0x401f86
mov dword [esp + 8], 0
jmp 0x401f94
push 0x41264c
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x401ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push str.Error_Cant_bind_the_BOOTP_port__nEither_you_do_not_have_necessary_privilege_nor_a_BOOTP_daemon_is_already_started_nor_IP_configuration_has_changed_n_nbind_returns_error__d__GetLastError__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x12c]
push 0x10
lea edx, [esp + 0x2c]
push str.Tftpd32
push edx
push esi
call fcn.00402ba0
add esp, 0x20
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
or eax, 0xffffffff
pop esi
add esp, 0x114
ret
mov eax, esi
pop esi
add esp, 0x114
ret
Function at 0x402980
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x2c]
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 8]
push esi
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x20], esi
je 0x4029c6
mov dword [esp + 0x1c], 0x402a00
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x4029ec
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4029ec
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x402c90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402ce0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret
Function at 0x403070
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x110
push esi
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4030aa
mov esi, dword [esp + 0x118]
push 0x10
push str.Tftpd32
push str.Error_:_Cant_create_socket
push esi
call fcn.00402ba0
add esp, 0x10
jmp 0x40313f
xor eax, eax
push 0x411774
mov dword [esp + 8], eax
push str.syslog
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x4030e1
mov cx, word [eax + 8]
mov word [esp + 6], cx
jmp 0x4030f0
push 0x202
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x403157
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push str.Error_Cant_bind_the_SYSLOG_port__nEither_you_do_not_have_necessary_privilege_or_a_SYSLOG_daemon_is_already_started_n_nbind_returns_error__d__GetLastError__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x128]
push 0x10
lea ecx, [esp + 0x28]
push str.Tftpd32
push ecx
push esi
call fcn.00402ba0
add esp, 0x20
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
mov eax, esi
pop esi
add esp, 0x110
ret
Function at 0x404160
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x404380
lea ecx, [esp + 0x18]
push 0x100
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
test al, al
jne 0x4042b2
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call edi
mov ax, word [esi + 0x4268]
push eax
call sub.WSOCK32.dll_ntohs
cmp ax, 1
mov dword [esp + 0x10], 0x411d1c
je 0x4041d6
mov dword [esp + 0x10], str.from
mov ecx, dword [esi + 0x425c]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov edx, dword [esp + 0x10]
push eax
lea eax, [esi + 0x426a]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s__s__s
push ecx
call ebx
mov eax, dword [esi + 0x20]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi + 0x4478]
test eax, eax
je 0x404229
push eax
lea ecx, [esp + 0x1c]
push str.File_size_:__d
push ecx
call ebx
add esp, 0xc
jmp 0x40429b
lea edx, [esp + 0x18]
push str.File_size_:_Unknown
push edx
call ebx
mov eax, dword [esi + 0x20]
add esp, 8
push 0
push 0x4b0
push eax
call ebp
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
push 0x206
call edi
shr eax, 0x10
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + ecx*4]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call edi
mov ecx, eax
and ecx, 0xffff
mov eax, ecx
shl eax, 6
add eax, ecx
mov ecx, dword [esi + 0x20]
shl eax, 1
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x4b1
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esp + 0x14]
push ecx
call fcn.004096e6
mov edx, dword [esi + 0x4480]
mov eax, dword [esp + 0x18]
add esp, 4
cmp edx, eax
je 0x404380
mov eax, dword [esi + 0x20]
push 0x4b0
push eax
call ebp
mov ecx, dword [esi + 0x4478]
mov edi, eax
cmp ecx, 0x64
jbe 0x40430e
mov eax, 0x51eb851f
push 0
mul ecx
mov eax, dword [esi + 0x4470]
mov ecx, edx
shr ecx, 5
xor edx, edx
div ecx
push eax
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dx, word [esi + 0x4268]
push edx
call sub.WSOCK32.dll_ntohs
cmp ax, 1
mov dword [esp + 0x10], str.sent
je 0x404331
mov dword [esp + 0x10], str.rcvd
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x447c]
mov ecx, dword [esi + 0x4470]
sub edi, eax
mov eax, ecx
xor edx, edx
div edi
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x24]
push str._d_Bytes__s__t__d_Bytes_sec
push ecx
call ebx
mov eax, dword [esi + 0x20]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push 0x4b2
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x4480], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405310
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push 5
lea edi, [ebx + 0x50]
call sub.WSOCK32.dll_htons
mov ebp, dword [esp + 0x18]
mov word [edi], ax
push ebp
call sub.WSOCK32.dll_htons
mov word [edi + 2], ax
mov eax, dword [0x4117a8]
test eax, eax
mov esi, 0x4117a8
jl 0x40534f
cmp eax, ebp
je 0x40534f
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jge 0x405341
cmp dword [esi], 0
jge 0x405369
add ebp, 0xffffff9c
push ebp
call fcn.00409d8d
mov dword [esi + 4], eax
add esp, 4
mov word [edi + 2], 0
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0
mov byte [esi + edi + 4], 0
mov eax, dword [ebx + 0x18]
add esi, 5
push esi
push edi
push eax
call sub.WSOCK32.dll_send
sub eax, esi
pop edi
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
ret

Function at 0x4055b0
Capabilities:
Delete file
Send data
Send data on socket

Disassembly:
sub esp, 0x200
push ebx
push esi
push edi
push 5
call sub.WSOCK32.dll_htons
push 0
mov word [0x4146a9], ax
call sub.WSOCK32.dll_htons
mov word [0x4146ab], ax
mov eax, dword [0x414abc]
push 0
push 4
push 0x4146a9
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [0x415740]
mov edx, dword [0x414abc]
push 0
push 0
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [0x415740]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x659
push eax
call esi
mov ecx, dword [0x415740]
push 0x65a
push ecx
call esi
mov edx, dword [0x414abc]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x414ac4]
or esi, 0xffffffff
push eax
mov dword [0x414abc], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x415740]
push 1
mov dword [0x414ac4], esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push 0x7d4
push ecx
mov dword [0x414ac0], 0
call esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov edx, dword [0x415740]
push 1
push 0x7d3
push edx
call esi
push eax
call edi
push eax
call ebx
mov eax, dword [0x415740]
push 0
push 0x7d8
push eax
call esi
push eax
call edi
push eax
call ebx
mov ecx, dword [0x415740]
push 0x4144a4
push 0x7d9
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 0
mov edx, dword [0x415740]
push 0x402
push 0x7d7
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x210]
lea eax, [esp + 0x214]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov ecx, dword [0x415740]
push 0x10
lea eax, [esp + 0x10]
push str.Tftpd32
push eax
push ecx
call fcn.00402ba0
mov al, byte [0x4144a8]
add esp, 0x10
cmp al, 1
pop edi
pop esi
pop ebx
jne 0x405731
mov eax, dword [0x414ab8]
test eax, eax
je 0x405731
push 0x4144a9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add esp, 0x200
ret