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

Disassembly:
sub esp, 0x268
push esi
mov esi, ecx
mov al, byte [esi + 0x16c]
test al, al
mov dword [esp + 0x10], esi
jne 0x403a14
mov eax, dword [0x445ee4]
push ebx
push edi
push 0xa
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xff
mov ebx, dword [eax + 0x114]
push ecx
push ebx
call fcn.004376eb
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareORLVNCviewerHistory
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esi + 0x3b38]
lea ecx, [esp + 0x74]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x403873
xor edi, edi
test ebx, ebx
jle 0x403991
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, edi
push 0xa
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x2c], edi
call fcn.004376eb
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x17c]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403963
add esi, 0x3b38
lea eax, [esp + 0x178]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403906
test cl, cl
je 0x403902
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403906
add eax, 2
add esi, 2
test cl, cl
jne 0x4038e2
xor eax, eax
jmp 0x40390b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40395f
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403916
sub eax, edx
mov edx, dword [esp + 0x14]
inc eax
push eax
lea eax, [esp + 0x7c]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
xor eax, eax
jmp 0x403940
mov cl, byte [esp + eax + 0x178]
mov byte [esp + eax + 0x78], cl
inc eax
test cl, cl
jne 0x403940
mov esi, dword [esp + 0x1c]
inc edi
cmp edi, ebx
jl 0x403890
jmp 0x403990
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x78]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403970
sub eax, edx
mov edx, dword [esp + 0x14]
inc eax
push eax
lea eax, [esp + 0x7c]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
pop ebp
mov eax, dword [esp + 0x1c]
pop edi
cmp eax, ebx
pop ebx
jne 0x4039f2
mov dword [esp + 0xc], 0xff
xor eax, eax
mov cl, byte [esp + eax + 0x1c]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x4039a5
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x170], cl
lea ecx, [esp + 0x170]
push ecx
push 0
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.SoftwareORLVNCviewerHistory
lea ecx, [esp + 0x170]
push ecx
lea ecx, [esi + 0x3b2c]
call fcn.0041a4c0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareORLVNCviewerHistory
lea eax, [esi + 0x3b38]
push eax
lea ecx, [esi + 0x3b2c]
call fcn.0041c900
pop esi
add esp, 0x268
ret
Function at 0x403bc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x21c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x403bdd
push 0x43a9b4
call fcn.00412e50
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x168], eax
jne 0x403c13
push 1
push str.Error_creating_socket
lea ecx, [esp + 0xc]
call fcn.00413df0
push 0x440620
lea eax, [esp + 8]
push eax
call fcn.0042d8be
push edi
lea edi, [esi + 0x58]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x403c6f
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x403c64
push edi
lea ecx, [esp + 0x28]
push str.Failed_to_get_server_address___s_._nDid_you_type_the_host_name_correctly_
push ecx
call fcn.0042da36
add esp, 0xc
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00413df0
push 0x440620
lea eax, [esp + 0xc]
push eax
call fcn.0042d8be
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
xor ecx, ecx
mov cx, word [esi + 0x54]
mov word [esp + 0x14], 2
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
mov word [esp + 0x1a], ax
mov eax, dword [esi + 0x168]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x403cd9
add esi, 0x3b38
push esi
lea ecx, [esp + 0x28]
push str.Failed_to_connect_to_server___.255s_
push ecx
call fcn.0042da36
add esp, 0xc
push 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00413df0
push 0x440620
lea eax, [esp + 0xc]
push eax
call fcn.0042d8be
mov ecx, dword [esi + 0x54]
push ecx
push edi
push str.Connected_to__s_port__d_n
push 0
push 0x445ec8
call fcn.00403360
mov ecx, dword [esi + 0x15c]
add esp, 0x14
test ecx, ecx
je 0x403d06
push 0x43a8fc
call fcn.00412e50
pop edi
pop esi
add esp, 0x21c
ret

Function at 0x4043d0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x80c
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov al, byte [esi + 0x4200]
test al, al
mov eax, str.tight
jne 0x4043f8
mov eax, 0x43ab10
mov edx, dword [esi + 0x41fc]
lea ecx, [esp + 4]
push ecx
movzx ecx, byte [esi + 0x41c9]
push eax
movzx eax, byte [esi + 0x41dd]
push edx
movzx edx, word [esi + 0x41c6]
push eax
movzx eax, word [esi + 0x41c4]
push ecx
mov ecx, dword [esi + 0x54]
push edx
push eax
mov eax, dword [esi + 0x41b4]
push ecx
lea edx, [esi + 0x58]
push edx
push eax
lea ecx, [esp + 0x38]
push str.Connected_to:__s_n_rHost:__s_port:__d_n_r_n_rDesktop_geometry:__d_x__d_x__d_n_rUsing_depth:__d_n_rCurrent_protocol_version:_3._d_s_n_r_n_rCurrent_keyboard_name:__s_n_r
push ecx
call fcn.0042da36
add esp, 0x30
push 0x40
push 0x43aa6c
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x80c
ret
Function at 0x404470
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4385b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push edi
mov edi, ecx
cmp dword [edi + 0x168], 0xffffffff
jne 0x4044bb
mov al, byte [edi + 0x1c2]
test al, al
je 0x4044bb
push str.Connection_closed.
lea ecx, [esp + 8]
call fcn.00413dc0
push 0x4405c4
lea eax, [esp + 8]
push eax
call fcn.0042d8be
push ebx
push ebp
lea ebx, [edi + 0x214]
push esi
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.004181a0
mov esi, dword [esp + 0x38]
push esi
push str.__reading__d_bytes_n
push 0xa
xor ebp, ebp
push 0x445ec8
mov dword [esp + 0x3c], ebp
call fcn.00403360
add esp, 0x10
test esi, esi
jle 0x40451f
mov ebx, dword [esp + 0x34]
mov edx, dword [edi + 0x168]
push 0
push esi
lea ecx, [ebx + ebp]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
je 0x404543
cmp eax, 0xffffffff
je 0x404562
sub esi, eax
add ebp, eax
test esi, esi
jg 0x4044f6
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.004181b0
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push 1
push str.Connection_closed.
lea ecx, [esp + 0x20]
call fcn.00413df0
push 0x440620
lea eax, [esp + 0x1c]
push eax
call fcn.0042d8be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x445ec8
call fcn.00403360
add esp, 0x10
push 1
push str.ReadExact:_Socket_error_while_reading.
lea ecx, [esp + 0x20]
mov byte [edi + 0x4202], 0
call fcn.00413df0
push 0x440620
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042d8be
int3
Function at 0x4045b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4385d8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
cmp edi, esi
mov ebp, ecx
je 0x40464e
cmp dword [ebp + 0x168], 0xffffffff
je 0x40464e
push ebx
lea ebx, [ebp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.004181a0
push edi
push str.__writing__d_bytes_n
push 0xa
push 0x445ec8
mov dword [esp + 0x38], esi
call fcn.00403360
add esp, 0x10
cmp edi, esi
jle 0x40463e
mov ebx, dword [esp + 0x30]
mov edx, dword [ebp + 0x168]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x404662
test eax, eax
je 0x404662
add esi, eax
cmp esi, edi
jl 0x404613
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.004181b0
pop ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [esp + 0x3c]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x34]
push ecx
push esi
push str.Socket_error__d:__s_n
push 1
push 0x445ec8
call fcn.00403360
mov edx, dword [esp + 0x48]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push str.WriteExact:_Socket_error_while_writing.
lea ecx, [esp + 0x1c]
mov byte [ebp + 0x4202], 0
call fcn.00413df0
push 0x440620
lea eax, [esp + 0x18]
push eax
call fcn.0042d8be
int3
Function at 0x405fa0
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push eax
mov esi, ecx
call fcn.00404470
push 0x10083
push 0
push str.VNCViewerBell
call dword [sym.imp.WINMM.dll_PlaySoundA]
test eax, eax
jne 0x405fd3
push 0x7d
push 0x1b8
call dword [sym.imp.KERNEL32.dll_Beep]
mov al, byte [esi + 0x3d5d]
test al, al
je 0x406024
mov ecx, dword [esi + 0x178]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x406024
push str.Leaving
push str._s_dormant_mode_n
push 5
push 0x445ec8
call fcn.00403360
add esp, 0x10
mov ecx, esi
mov byte [esi + 0x4230], 0
call fcn.00405cf0
mov edx, dword [esi + 0x178]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Bell__n
push 6
push 0x445ec8
call fcn.00403360
add esp, 0xc
pop esi
pop ecx
ret

Function at 0x406300
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4387de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push 1
mov esi, ecx
push 0
mov dword [esp + 0x10], esi
call fcn.00418390
lea ecx, [esi + 0x1cc]
mov dword [esp + 0x24], 0
mov dword [esi], 0x43ada0
call fcn.00418180
lea ecx, [esi + 0x1e4]
mov byte [esp + 0x24], 1
call fcn.00418180
lea ecx, [esi + 0x1fc]
mov byte [esp + 0x24], 2
call fcn.00418180
lea ecx, [esi + 0x214]
mov byte [esp + 0x24], 3
call fcn.00418180
lea ecx, [esi + 0x22c]
mov byte [esp + 0x24], 4
call fcn.00418180
lea ecx, [esi + 0x244]
mov byte [esp + 0x24], 5
call fcn.00418180
lea ecx, [esi + 0x25c]
mov byte [esp + 0x24], 6
call fcn.00418180
lea ecx, [esi + 0x3a28]
mov byte [esp + 0x24], 7
call fcn.004178c0
lea ecx, [esi + 0x3b2c]
call fcn.0041a990
push 0x40
lea ecx, [esi + 0x40c4]
mov byte [esp + 0x28], 8
call fcn.00402fc0
push 0x40
lea ecx, [esi + 0x40f4]
mov byte [esp + 0x28], 9
call fcn.00402fc0
push 0x40
lea ecx, [esi + 0x4124]
mov byte [esp + 0x28], 0xa
call fcn.00402fc0
push 0x40
lea ecx, [esi + 0x4154]
mov byte [esp + 0x28], 0xb
call fcn.00402fc0
push 0x40
lea ecx, [esi + 0x4184]
mov byte [esp + 0x28], 0xc
call fcn.00402fc0
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x28], 0xd
call fcn.00404ab0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x168], eax
mov byte [esi + 0x16c], 1
mov dword [esp + 0xc], 0x10
push eax
call dword [sym.imp.WSOCK32.dll_getpeername]
cmp eax, 0xffffffff
je 0x40649b
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x11]
push eax
movzx eax, byte [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esi + 0x58]
push str._d._d._d._d
push ecx
call fcn.0042da36
movzx edx, word [esp + 0x26]
add esp, 0x18
mov dword [esi + 0x54], edx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [0x43aed4]
lea eax, [esi + 0x58]
mov dword [eax], ecx
mov edx, dword [0x43aed8]
mov dword [eax + 4], edx
mov cx, word [0x43aedc]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x54], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x409760
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43884b
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
push edi
or edi, 0xffffffff
cmp eax, edi
jne 0x40978d
call fcn.00403aa0
jmp 0x4097b1
mov eax, dword [esi + 0x158]
mov cl, byte [eax + 8]
test cl, cl
je 0x4097b1
push str.SoftwareORLVNCviewerHistory
lea ecx, [esi + 0x3b38]
push ecx
lea ecx, [esi + 0x3b2c]
call fcn.0041c2d0
push 4
call fcn.0042cf65
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x4097e8
mov ecx, dword [esi + 0x158]
lea edx, [esi + 0x3b38]
push edx
mov edx, dword [ecx + 0x59c]
push edx
mov ecx, eax
call fcn.00412ec0
jmp 0x4097ea
xor eax, eax
mov dword [esi + 0x15c], eax
cmp dword [esi + 0x168], edi
mov dword [esp + 0x24], edi
jne 0x409803
mov ecx, esi
call fcn.00403bc0
mov ecx, dword [esi + 0x168]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x409846
push 1
push str.Error_disabling_Nagles_algorithm
lea ecx, [esp + 0x18]
call fcn.00413df0
push 0x440620
lea edx, [esp + 0x14]
push edx
call fcn.0042d8be
mov ecx, esi
call fcn.00404c70
mov ecx, esi
call fcn.004087f0
mov ecx, esi
call fcn.00409200
mov al, byte [esi + 0x3d5c]
push 1
lea ecx, [esp + 0xf]
push ecx
mov ecx, esi
mov byte [esp + 0x13], al
call fcn.004045b0
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x409887
push 0x43ad88
call fcn.00412e50
mov ecx, esi
call fcn.00407880
mov al, byte [esi + 0x4200]
test al, al
je 0x4098d5
mov ecx, esi
call fcn.00406d50
push 0x82
lea ecx, [esi + 0x4154]
mov byte [esi + 0x160], 0
call fcn.00403220
test al, al
je 0x4098d5
push 0x82
lea ecx, [esi + 0x4124]
call fcn.00403220
test al, al
je 0x4098d5
mov byte [esi + 0x160], 1
mov edi, dword [esi + 0x15c]
test edi, edi
je 0x4098f9
mov ecx, edi
call fcn.00412e40
push edi
call fcn.0042d3ed
add esp, 4
mov dword [esi + 0x15c], 0
mov ecx, esi
call fcn.00407540
mov ecx, esi
call fcn.00403d50
push str.Requesting_8_bit_truecolour_n
push 2
push 0x445ec8
mov byte [esi + 0x3d49], 1
call fcn.00403360
mov eax, dword [0x43a49c]
mov ecx, dword [0x43a4a0]
lea edx, [esi + 0x41dc]
mov dword [edx], eax
mov eax, dword [0x43a4a4]
mov dword [edx + 4], ecx
mov ecx, dword [0x43a4a8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
add esp, 0xc
mov ecx, esi
call fcn.00405480
mov ecx, esi
call fcn.00418830
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x409970
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.Clipboard_changed_n
mov esi, ecx
push 2
push 0x445ec8
mov dword [ebp - 0x14], esi
call fcn.00403360
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [esi + 0x170]
jne 0x4099d1
push str.We_changed_it___ignore__n
push 2
push 0x445ec8
call fcn.00403360
add esp, 0xc
jmp 0x409b52
mov al, byte [esi + 0x423c]
test al, al
jne 0x4099fb
push str.Dont_send_initial_clipboard__n
push 2
push 0x445ec8
call fcn.00403360
add esp, 0xc
mov byte [esi + 0x423c], 1
jmp 0x409b52
mov al, byte [esi + 0x3d5e]
test al, al
jne 0x409b52
lea edi, [esi + 0x1fc]
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.004181a0
mov eax, dword [esi + 0x170]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409b44
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x409a4f
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x409b44
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea edx, [eax + 1]
jmp 0x409a60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a60
sub eax, edx
inc eax
push eax
call fcn.0042d009
mov ebx, eax
mov eax, esi
add esp, 4
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a80
sub eax, edx
inc eax
push eax
call fcn.0042d009
mov edi, eax
mov edx, ebx
add esp, 4
mov dword [ebp - 0x20], edi
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409aa0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebx]
xor ecx, ecx
test al, al
je 0x409ad6
mov edx, ebx
mov al, byte [edx]
cmp al, 0xd
je 0x409ace
mov byte [ecx + edi], al
inc ecx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x409ac4
mov eax, edi
mov byte [ecx + edi], 0
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ae3
mov ecx, dword [ebp - 0x14]
sub eax, edx
push eax
push edi
call fcn.00405c80
jmp 0x409b2f
push ebx
call fcn.0042da31
push edi
call fcn.0042da31
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
add esp, 8
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004181b0
mov eax, dword [esi + 0x4238]
push 0
push 0
push 0x308
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438888
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov al, byte [esi + 0x3d5e]
test al, al
jne 0x409cf9
push ebx
mov ebx, dword [esp + 0x28]
push ebp
lea eax, [ebx + ebx + 1]
push edi
push eax
call fcn.0042d009
mov edx, dword [esi + 0x1c4]
mov ebp, eax
xor ecx, ecx
add esp, 4
xor eax, eax
cmp byte [edx], cl
je 0x409bf5
mov edi, dword [esp + 0x2c]
cmp byte [ecx + edi], 0xa
jne 0x409bdd
mov byte [eax + ebp], 0xd
inc eax
inc ebx
mov dl, byte [ecx + edi]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0x1c4]
inc ecx
inc eax
cmp byte [ecx + edx], 0
jne 0x409bd1
mov dword [esp + 0x30], ebx
lea edi, [esi + 0x1fc]
mov ecx, edi
mov byte [eax + ebp], 0
mov dword [esp + 0x2c], edi
call fcn.004181a0
mov eax, dword [esi + 0x170]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x409c42
push 1
push str.Failed_to_open_clipboard_n
lea ecx, [esp + 0x18]
call fcn.00413df0
push 0x440620
lea ecx, [esp + 0x14]
push ecx
call fcn.0042d8be
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x409c6b
push 1
push str.Failed_to_empty_clipboard_n
lea ecx, [esp + 0x18]
call fcn.00413df0
push 0x440620
lea edx, [esp + 0x14]
push edx
call fcn.0042d8be
inc ebx
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409cb5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x30]
mov edx, ecx
shr ecx, 2
mov edi, eax
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ebx
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, dword [esp + 0x2c]
push ebp
call fcn.0042da31
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x409ce7
push 1
push str.Failed_to_close_clipboard_n
lea ecx, [esp + 0x18]
call fcn.00413df0
push 0x440620
lea edx, [esp + 0x14]
push edx
call fcn.0042d8be
mov ecx, edi
mov dword [esp + 0x24], 0xffffffff
call fcn.004181b0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x40b950
Capabilities:
Read .ini file

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x608
test al, al
push ebx
mov ebx, dword [esp + 0x610]
push esi
push edi
mov esi, ecx
je 0x40b9f1
xor eax, eax
mov ecx, 0x13
mov edi, 0x445c70
rep stosd dword es:[edi], eax
mov dword [0x445c70], 0x4c
mov dword [0x445c7c], 0x443204
mov dword [0x445c90], 0x104
mov dword [0x445c98], 0x200
mov dword [0x445cac], 0x43b858
mov eax, dword [esi + 0x154]
lea ecx, [esp + 0x10]
push 0x445c70
mov dword [0x445c74], eax
mov dword [0x445c8c], ebx
mov dword [0x445c94], ecx
mov dword [0x445ca4], 4
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
jne 0x40b9f1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 0xfa
lea edi, [esi + 0x58]
push edi
push 0x43ab10
push str.host
push str.connection
call ebp
test eax, eax
jne 0x40ba42
mov edx, dword [0x443c18]
mov eax, dword [esi + 0x170]
push 0x10
push edx
push str.Error_reading_host_name_from_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push ebx
push 0
push str.port
push str.connection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x54], eax
jne 0x40ba87
mov ecx, dword [0x443c18]
mov edx, dword [esi + 0x170]
push 0x10
push ecx
push str.Error_reading_port_number_from_file
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push edi
lea ecx, [esi + 0x3b38]
push ecx
push eax
call fcn.0041dd90
add esp, 0xc
push ebx
push 0x20
lea edx, [esp + 0x21c]
push edx
push 0x43ab10
push str.password
push str.connection
mov byte [esi + 0x41b8], 0
call ebp
test eax, eax
jbe 0x40baff
xor edi, edi
lea ebp, [esp + 0x214]
jmp 0x40bad0
lea eax, [esp + 0x10]
push eax
push 0x43b9ac
push ebp
mov dword [esp + 0x1c], 0
call fcn.0042da8e
mov cl, byte [esp + 0x1c]
add esp, 0xc
mov byte [esi + edi + 0x41b8], cl
inc edi
add ebp, 2
cmp edi, 8
jl 0x40bad0
mov al, byte [esp + 0x620]
test al, al
je 0x40bb1b
push ebx
lea ecx, [esi + 0x3b2c]
call fcn.00419e50
call fcn.0041a140
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x608
ret 8

Function at 0x40bdb0
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
mov byte [ecx + 0x3d48], al
mov dword [esp + 4], 0
jmp fcn.0040bb40