joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467e95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x467fad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x467fad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048fcaa
mov esi, eax
test esi, esi
je 0x467fad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x467fad
mov ecx, esi
call fcn.00467e20
cmp edi, eax
jge 0x467fad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x467f33
mov dword [esp + 0x34], 1
jmp 0x467f8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x467fad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004673c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46ca90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x46cbe5
cmp di, 0x801
ja 0x46cbe5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x46cbe5
cmp bx, 0xc
ja 0x46cbe5
mov al, byte [esp + 0x30]
test al, al
je 0x46cae4
push edi
call fcn.0046d020
add esp, 4
cmp ax, bx
je 0x46cae4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.0046cbf0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.0046ca10
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x46cbe5
test ebx, ebx
jne 0x46cb79
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x46cbdb
test al, al
je 0x46cb6c
push 0xffffffffffffffe1
jmp 0x46cb6e
push 0x1f
push ebp
push edi
push esi
call fcn.0046c9c0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.0046c9c0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.0046cbf0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0046ca10
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x46cb46
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x46e290
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49e128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x56781c
lea ecx, [esp + 4]
call fcn.0048e1ec
push 0x546ec8
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.0048e1ec
push 0x546ec4
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0048e1ec
push 0x546ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.0048e1ec
push 0x546ebc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.0048e1ec
push 0x546eb8
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.0048e1ec
push 0x546eb4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.0048e1ec
push 0x546eb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.0048e1ec
push 0x546eac
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.0048e1ec
push 0x546ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.0048e1ec
push 0x546ea4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.0048e1ec
push 0x546ea0
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.0048e1ec
push 0x546e9c
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.0048e1ec
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x46e3c0
cmp eax, 0xc
jle 0x46e3c0
mov ecx, dword [esp + 0x48]
push 0x56781c
call fcn.0048e2bb
jmp 0x46e3ce
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.0048e26b
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.0048e17e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.0048e17e
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.0048e17e
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.0048e17e
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.0048e17e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.0048e17e
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.0048e17e
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.0048e17e
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0048e17e
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.0048e17e
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.0048e17e
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.0048e17e
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0048e17e
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x46ea70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49e333
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x5dc]
mov dword [esp + 0x18], 3
call fcn.0048e17e
lea edi, [esi + 0xbc]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x4dc]
mov byte [esp + 0x18], 8
call fcn.0049675c
lea ecx, [edi + 0x4a0]
mov byte [esp + 0x18], 7
call fcn.0049675c
lea ecx, [edi + 0x488]
mov byte [esp + 0x18], 6
call fcn.0048e17e
lea ecx, [edi + 0x484]
mov byte [esp + 0x18], 5
call fcn.0048e17e
lea ecx, [edi + 0x5c]
mov byte [esp + 0x18], 4
call fcn.0046b9f0
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.0048ef5d
lea ecx, [esi + 0x80]
mov byte [esp + 0x18], 1
call fcn.00496692
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0xd
call fcn.0048e17e
lea ecx, [edi + 0x28]
mov byte [esp + 0x18], 0xc
call fcn.0048e17e
lea ecx, [edi + 0x24]
mov byte [esp + 0x18], 0xb
call fcn.0048e17e
lea ecx, [edi + 0x20]
mov byte [esp + 0x18], 0xa
call fcn.0048e17e
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 9
call fcn.0048e17e
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
call fcn.0048e17e
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00490358
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x470820
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x470886
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x470886
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x470867
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4713c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00471510
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4713e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4713c1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00471510
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4713e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x471410
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x471467
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x47147d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004714a0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4714a0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x471530
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x471579
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x4719f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004715a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00471620
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00471620
lea ecx, [esi + 0xc]
call fcn.0048e109
lea ecx, [esi + 0x10]
call fcn.0048e109
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00473e20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00473e20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00473e20
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048e17e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048e17e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x472698
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e948
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4726a8
call fcn.00472bc0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x47278b
cmp byte [edi], 0
je 0x47278b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4726cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004713c0
test eax, eax
jne 0x4726ed
push 0x547330
lea ecx, [esi + 0x38]
call fcn.0048e2bb
jmp 0x47278b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00471410
test eax, eax
jne 0x47271c
mov ecx, esi
call fcn.00471510
push edi
add esi, 0x38
push 0x54730c
push esi
call fcn.0048bbda
add esp, 0xc
jmp 0x47278b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00473440
test eax, eax
je 0x472784
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00472860
test eax, eax
jne 0x4727a0
push edi
lea eax, [esi + 0x38]
push 0x5472e8
push eax
call fcn.0048bbda
add esp, 0xc
mov ecx, esi
call fcn.00472bc0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x472848
mov ecx, dword [0x547964]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0048bbda
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004714c0
test eax, eax
jne 0x47280a
push 0x5472cc
lea ecx, [esi + 0x38]
call fcn.0048e2bb
jmp 0x47281a
push 0xfa
mov ecx, esi
call fcn.00473440
test eax, eax
jne 0x472837
mov ecx, esi
call fcn.00472bc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0048e17e
jmp 0x47278b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0048e17e
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x48ef9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x48efbd
cmp dword [edi + 0x3c], 0
jne 0x48efbd
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00497ce6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0048efea
pop edi
pop esi
pop ebx
ret 8

Function at 0x490695
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4906cd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e5d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e5b1
jmp 0x4906d9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491d86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491dc8
call fcn.00497ce6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491dc8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491dbf
xor eax, eax
jmp 0x491dd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491dd6
pop edi
pop esi
pop ebx
ret 4
Function at 0x404e10
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x51b98c]
mov ecx, 0x42
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x51e9a0
je 0x404e58
inc dword [0x51eac0]
add ebx, 0x108
mov edi, ebx
mov dword [0x51b98c], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x520c68
mov dword [ebx + 0x2c], eax
call fcn.0042d9d0
jmp 0x404e5f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x51ead4], 0
xorps xmm0, xmm0
movlpd qword [0x521770], xmm0
je 0x404e8f
mov eax, dword [0x51d3e8]
mov ecx, 0x4f03e8
test eax, eax
je 0x404e88
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0xf], 0
jne 0x404f14
mov cl, byte [ebx + 0xee]
test cl, cl
jne 0x404ec4
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xee], cl
jne 0x404ec4
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x52177c], 0
je 0x404ed6
cmp dword [0x521778], 0
jne 0x404eda
test cl, cl
je 0x404f14
mov byte [ebx + 0xec], 0
test cl, cl
jne 0x404f14
cmp dword [0x52177c], 0
jge 0x404efd
pop edi
pop esi
mov dword [ebx + 0xe0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xdc], eax
mov eax, dword [0x52177c]
mov dword [ebx + 0xe0], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4069b0
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4069d2
call fcn.00406c90
test eax, eax
jne 0x4069d2
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.00406ae0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x406a18
cmp dword [esi + 0x18], eax
je 0x406a08
cmp dword [esi + 8], eax
je 0x4069f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4f0a4c
mov ecx, esi
call fcn.00406ae0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x406a5a
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x406a4b
cmp word [ecx], 0
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x406a8e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x406a84
cmp dword [esi + 8], 0
je 0x406a71
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406aa3
mov dword [esi + 4], 0
jmp 0x406a5a
cmp dword [esi + 0x18], 0
je 0x406acd
cmp dword [esi + 8], 0
je 0x406aba
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4f0a6c
mov ecx, esi
call fcn.00406ae0
pop edi
pop esi
ret 4
Function at 0x406b70
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406b89
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406c69
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.004cff45
add esp, 0xc
test eax, eax
je 0x406c5c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.004ce516
add esp, 8
test eax, eax
je 0x406c5c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.004ce516
add esp, 8
test eax, eax
je 0x406c5c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.004ce516
add esp, 8
test eax, eax
je 0x406c5c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.004ce516
add esp, 8
test eax, eax
je 0x406c5c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.004ce516
add esp, 8
test eax, eax
je 0x406c52
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x406c70
test esi, esi
je 0x406c5c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

Function at 0x406c90
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x406ca0
mov eax, 1
pop ebx
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x51ead8]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x406d0e
nop
mov eax, dword [0x51b998]
cmp eax, 0xffffffff
je 0x406cdf
test eax, eax
je 0x406d1f
call esi
mov ecx, dword [0x51b998]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x406d1f
mov edx, 1
mov dword [0x51b984], 0
mov ecx, 0x8000012f
call fcn.00401860
push dword [0x51ead8]
mov dword [0x51b984], 1
call edi
test eax, eax
je 0x406cc0
pop edi
pop esi
pop ebp
mov dword [ebx + 0x18], 1
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4076c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
cmp dword [0x522bd0], 0
mov ax, cx
push ebx
push ebp
push esi
push edi
mov word [esp + 0x12], ax
mov dword [esp + 0x14], str.getaddrinfo
mov dword [esp + 0x18], 0x4070c0
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x4074d0
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.00407070
je 0x407720
movzx eax, ax
mov eax, dword [eax*8 + 0x51d79c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push 0x104
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40781b
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004d425d
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call fcn.004d4379
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x38]
add esp, 0xc
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x40779a
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4077e4
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004d425d
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call fcn.004d4379
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x40781b
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x407818
xor esi, esi
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x407818
inc esi
cmp esi, 3
jl 0x4077e6
mov eax, dword [esp + 0x18]
mov dword [0x51d79c], eax
mov eax, dword [esp + 0x20]
mov dword [0x51d7a4], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.00407070], eax
jmp 0x40781b
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x51d79c]
mov dword [0x522bd0], 1
pop ebx
add esp, 0x234
ret