joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
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 0x403b1d
mov esi, dword [esp + 0x118]
push 0x10
push 0x415200
push str.Error_:_Cant_create_socket
push esi
call fcn.004032c0
add esp, 0x10
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
xor eax, eax
push 0x415548
mov dword [esp + 8], eax
push 0x4158fc
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 0x403b54
mov cx, word [eax + 8]
mov word [esp + 6], cx
jmp 0x403b60
push 0x7b
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 0x403bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push str.Error_Cant_bind_the_SNTP_port__nEither_you_do_not_have_necessary_privilege_or_a_SNTP_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 0x415200
push ecx
push esi
call fcn.004032c0
add esp, 0x20
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea edx, [esp + 0x14]
push edx
push 0x6a4
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
mov eax, esi
pop esi
add esp, 0x110
ret

Function at 0x403e20
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 0x403e5a
mov esi, dword [esp + 0x118]
push 0x10
push 0x415200
push str.Error_:_Cant_create_socket
push esi
call fcn.004032c0
add esp, 0x10
jmp 0x403eef
xor eax, eax
push 0x415548
mov dword [esp + 8], eax
push 0x4159f8
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 0x403e91
mov cx, word [eax + 8]
mov word [esp + 6], cx
jmp 0x403ea0
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 0x403f07
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 0x415200
push ecx
push esi
call fcn.004032c0
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 0x404f90
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 0x4051b0
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 0x4050e2
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], 0x415fa8
je 0x405006
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 0x405059
push eax
lea ecx, [esp + 0x1c]
push str.File_size_:__d
push ecx
call ebx
add esp, 0xc
jmp 0x4050cb
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.0040b12b
mov edx, dword [esi + 0x4480]
mov eax, dword [esp + 0x18]
add esp, 4
cmp edx, eax
je 0x4051b0
mov eax, dword [esi + 0x20]
push 0x4b0
push eax
call ebp
mov ecx, dword [esi + 0x4478]
mov edi, eax
cmp ecx, 0x64
jbe 0x40513e
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 0x405161
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 0x4061d0
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 [0x415a10]
test eax, eax
mov esi, 0x415a10
jl 0x40620f
cmp eax, ebp
je 0x40620f
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jge 0x406201
cmp dword [esi], 0
jge 0x406229
add ebp, 0xffffff9c
push ebp
call fcn.0040ba43
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 0x406300
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 [0x41bba9], ax
call sub.WSOCK32.dll_htons
mov word [0x41bbab], ax
mov eax, dword [0x423bbd]
push 0
push 4
push 0x41bba9
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [0x423c0c]
mov edx, dword [0x423bbd]
push 0
push 0
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [0x423c0c]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x659
push eax
call esi
mov ecx, dword [0x423c0c]
push 0x65a
push ecx
call esi
mov edx, dword [0x423bbd]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x423bc5]
or esi, 0xffffffff
push eax
mov dword [0x423bbd], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x423c0c]
push 1
mov dword [0x423bc5], esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push 0x7d4
push ecx
mov dword [0x423bc1], 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 [0x423c0c]
push 1
push 0x7d3
push edx
call esi
push eax
call edi
push eax
call ebx
mov eax, dword [0x423c0c]
push 0
push 0x7d8
push eax
call esi
push eax
call edi
push eax
call ebx
mov ecx, dword [0x423c0c]
push 0x41b998
push 0x7d9
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 0
mov edx, dword [0x423c0c]
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 [0x423c0c]
push 0x10
lea eax, [esp + 0x10]
push 0x415200
push eax
push ecx
call fcn.004032c0
mov edx, dword [0x41b9a0]
add esp, 0x10
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov al, byte [0x41b9a8]
pop edi
pop esi
cmp al, 1
pop ebx
jne 0x406492
mov eax, dword [0x423bb9]
test eax, eax
je 0x406492
push 0x41b9a9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
add esp, 0x200
ret
Function at 0x4064a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x41b9a8]
push esi
and eax, 0xff
push edi
dec eax
je 0x40651b
dec eax
jne 0x406509
push 0
push 0x8000020
push 3
push 0
push 1
push bind
push 0x41b9a9
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x423bc5], eax
jne 0x4064fb
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41b9a9
push str.Error_opening_file__s_for_reading_nreturn_code_is__d___s_
call fcn.00406300
add esp, 0x10
pop edi
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x423bdd], eax
mov eax, dword [0x423bc5]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x8000020
push 1
push 0
push 0
push 0x40000000
push 0x41b9a9
call esi
cmp eax, 0xffffffff
mov dword [0x423bc5], eax
jne 0x40650e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
jne 0x406509
mov eax, dword [0x423c0c]
push 3
push 0x415200
push str.File_exists__overwrite_it__
push eax
call fcn.004032c0
add esp, 0x10
cmp eax, 6
jne 0x406509
push 0
push 0x8000020
push 2
push 0
push 0
push 0x40000000
push 0x41b9a9
call esi
cmp eax, 0xffffffff
mov dword [0x423bc5], eax
jne 0x40650e
call fcn.00403340
push eax
call edi
push eax
push 0x41b9a9
push str.Error_opening_file__s_for_writing_nreturn_code_is__d___s_
call fcn.00406300
add esp, 0x10
pop edi
pop esi
ret
Function at 0x407c50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
xor eax, eax
push esi
push edi
cmp eax, 0x200
mov edi, 0x41fbaf
jge 0x407d63
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
cmp byte [edi], 0
je 0x407d63
mov ecx, edi
mov esi, edi
sub ecx, 0x41fbad
sub ecx, 2
cmp ecx, 0x200
jge 0x407ca9
cmp byte [esi], 0
je 0x407ca9
inc esi
mov edx, esi
sub edx, 0x41fbad
sub edx, 2
cmp edx, 0x200
jl 0x407c90
inc esi
mov eax, esi
sub eax, 0x41fbad
sub eax, 2
cmp eax, 0x200
je 0x407d6d
cmp byte [0x41b9a8], 1
jne 0x407d27
push str.tsize
push edi
call ebp
test eax, eax
jne 0x407d27
push esi
call fcn.0040b8a0
add esp, 4
mov dword [0x423bdd], eax
push 4
call sub.WSOCK32.dll_htons
push 0
mov word [0x41bba9], ax
call sub.WSOCK32.dll_htons
mov ecx, dword [0x423bd1]
mov edx, dword [0x423c0c]
push 0
push ecx
push 0x659
push edx
mov word [0x41bbab], ax
call ebx
mov eax, dword [0x423bbd]
push 0
push 4
push 0x41bba9
push eax
call sub.WSOCK32.dll_send
push str.blksize
push edi
call ebp
test eax, eax
jne 0x407d41
push esi
call fcn.0040b8a0
add esp, 4
mov dword [0x423be9], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + esi + 1]
mov ecx, edi
sub ecx, 0x41fbad
sub ecx, 2
cmp ecx, 0x200
jl 0x407c72
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407d80
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
mov eax, dword [0x423c10]
sub esp, 0x270
mov ecx, eax
inc eax
test ecx, ecx
push esi
mov dword [0x423c10], eax
je 0x407da2
xor eax, eax
pop esi
add esp, 0x270
ret
push 0
push 0x8000020
push 2
push 0
push 1
push 0x40000000
push str.dir.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407dd0
xor eax, eax
pop esi
add esp, 0x270
ret
lea edx, [esp + 0x34]
push edx
push 0x41665c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x407eb6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esp + 0x40], 0x10
jne 0x407e97
lea eax, [esp + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
lea ecx, [esp + 0x30]
push 0x10
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x18c]
push str._s_t_s_t_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x180]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x18c]
push eax
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x41664c
push esi
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407e02
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x423c10], 0
mov eax, 1
pop esi
add esp, 0x270
ret
Function at 0x4090a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
push ebx
push esi
push str._Tftpd32__by_Ph._Jounin_MutEx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x409124
call esi
cmp eax, 0xb7
jne 0x409124
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tftpd32_by_Ph._Jounin
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x409103
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 0x10
push 0x10
push 0x415200
push str.Tftpd32_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 0x10
push str.TFTP_LOG
call fcn.0040ba93
add esp, 4
test eax, eax
je 0x40914f
push str.TFTP_LOG
call fcn.0040ba93
push eax
call fcn.0040b8a0
add esp, 8
mov dword [0x416b18], eax
jmp 0x409159
mov dword [0x416b18], 8
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40917a
call esi
jmp 0x4091af
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0040b8b0
add esp, 8
test eax, eax
je 0x409191
mov byte [eax + 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
push edx
push 0x424760
call esi
lea eax, [esp + 8]
push eax
push 0x424880
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push str.Tftpd32.hlp
push 0x424760
call esi
push str.Tftpd32.ini
push 0x424880
call esi
mov esi, dword [esp + 0x114]
push esi
push 0
push 0x408590
push 0x65
push 0
call fcn.0040a830
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
push esi
push str.TftpAddIpBackGround
call edi
push esi
push str.SyslogBackGround
call edi
push esi
push str.SntpBackGround
call edi
push esi
push str.DhcpBackGround
call edi
push esi
push str.Ttftpd32BackGround
call edi
push esi
push str.Ttftpd32ClientBackGround
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 0x10

Function at 0x409de0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, 0x416904
mov eax, dword [esi - 4]
mov ecx, dword [esi]
mov edx, dword [esi - 8]
push 0x424880
push eax
mov eax, dword [esi - 0xc]
push ecx
push edx
push eax
push str.SOFTWARETFTPD32
call fcn.00403720
add esi, 0x10
add esp, 0x18
cmp esi, 0x416a24
jb 0x409de6
mov eax, dword [0x416b64]
pop esi
test eax, eax
jne 0x409e26
mov dword [0x416b64], 0xf
push 0x416a18
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
ret
Function at 0x409e40
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x98
lea eax, [esp + 4]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._d__d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x18]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
lea eax, [esp + 0x1c]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push str.LastWindowPos
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
and esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x98
ret

Function at 0x409ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push edi
push edi
push str.LastWindowPos
push eax
mov dword [esp + 0x30], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x2c]
mov byte [esp + 0xab], 0
test al, al
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x2c]
je 0x40a01d
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
cmp byte [esi], 0x20
jne 0x409fbe
mov eax, edi
inc edi
cmp eax, 3
mov byte [esi], 0
ja case.default.0x409f7e
jmp dword [eax*4 + 0x40a02c]
push ecx
call fcn.0040b8a0
add esp, 4
mov ebp, eax
jmp case.default.0x409f7e
push ecx
call fcn.0040b8a0
add esp, 4
mov ebx, eax
jmp case.default.0x409f7e
push ecx
call fcn.0040b8a0
add esp, 4
mov dword [esp + 0x24], eax
jmp case.default.0x409f7e
push ecx
call fcn.0040b8a0
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409f6e
cmp edi, 4
jne 0x40a01d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
lea edx, [ebp + 0x96]
cmp edx, eax
jge 0x40a01d
push 1
call esi
lea ecx, [ebx + 0x96]
cmp ecx, eax
jge 0x40a01d
mov ecx, dword [esp + 0x24]
cmp ebp, ecx
jge 0x40a01d
mov eax, dword [esp + 0x28]
cmp ebx, eax
jge 0x40a01d
test ebp, ebp
jl 0x40a01d
test ebx, ebx
jl 0x40a01d
mov edx, dword [esp + 0xb0]
sub eax, ebx
push 1
sub ecx, ebp
push eax
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
Function at 0x40a0b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
mov ebx, dword [esp + 0x130]
push esi
push 0x417078
push ebx
call fcn.0040b540
add esp, 8
test eax, eax
jne 0x40a0ea
push 0x417074
push ebx
call fcn.0040b540
add esp, 8
test eax, eax
jne 0x40a0ea
mov esi, 1
jmp 0x40a0ec
xor esi, esi
mov al, byte [ebx]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 0x5c
push edi
je 0x40a0fe
cmp al, 0x2f
jne 0x40a139
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x36]
push ecx
call ebp
mov ecx, eax
lea edi, [esp + 0x36]
mov esi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a137
lea eax, [esp + 0x36]
push eax
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x40a137
mov esi, 1
jmp 0x40a139
xor esi, esi
cmp byte [ebx + 1], 0x3a
jne 0x40a17a
lea ecx, [esp + 0x34]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x34]
push edx
call ebp
mov ecx, eax
lea edi, [esp + 0x34]
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a178
lea ecx, [esp + 0x34]
push ecx
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x40a178
mov esi, 1
jmp 0x40a17a
xor esi, esi
mov eax, dword [0x416b28]
pop edi
cmp eax, 3
pop ebp
ja case.default.0x40a18a
jmp dword [eax*4 + 0x40a234]
pop esi
mov eax, 1
pop ebx
add esp, 0x128
ret
test esi, esi
jne 0x40a1ae
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebx
add esp, 0x128
ret
test esi, esi
je 0x40a21c
mov eax, dword [esp + 0x138]
mov dword [esp + 0x1c], 0
cmp eax, 2
jne 0x40a1f4
lea edx, [esp + 8]
push edx
push ebx
call fcn.0041235e
add esp, 8
cmp eax, 0xffffffff
je case.default.0x40a18a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a1f4
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
pop esi
pop ebx
sete al
add esp, 0x128
ret
test esi, esi
je 0x40a21c
mov ecx, dword [esp + 0x138]
mov eax, 1
cmp ecx, eax
je 0x40a229
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x40a870
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x58
mov ecx, dword [str.Ark]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x18]
push 0x40
push ecx
push eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0x806f
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x60]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x58
ret
Function at 0x40a9e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0
push 0x18b
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x40aa19
push 0
push esi
push 0x18a
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
add edi, eax
inc esi
cmp esi, ebx
jl 0x40aa03
lea edi, [edi + ebx*2 + 1]
push edi
mov dword [esp + 0x14], edi
call fcn.0040aff1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40aa40
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor edi, edi
mov esi, eax
test ebx, ebx
jle 0x40aa8c
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
push 0
push edi
push 0x18a
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x10]
add eax, esi
cmp eax, ecx
jae 0x40aa88
push esi
push edi
push 0x189
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, eax
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
inc edi
cmp edi, ebx
jl 0x40aa52
mov eax, dword [esp + 0x18]
push eax
mov byte [esi], 0
call fcn.004033b0
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040b3d5
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret