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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x2c], xmm0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.0042f060
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x4161d4
mov esi, dword [esp + 0x14]
jmp 0x4161e1
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x416255
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.0042f260
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x416243
cmp byte [esp + 0x20], 3
jne 0x41624a
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x41621f
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x41622f
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.004028a0
mov ecx, dword [esp + 0xc]
mov edx, 4
call fcn.004028a0
mov edi, dword [esp + 4]
jmp 0x41624a
cmp dword [esp + 0x54], 0
je 0x41629a
mov dword [edi], 0
jmp 0x416341
cmp al, 3
jne 0x41628f
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x416271
push dword [esp + 4]
call eax
add esp, 4
mov ecx, dword [esp + 4]
cmp dword [ebx + 4], 0
je 0x416283
mov edx, dword [ebx + 8]
call fcn.004028a0
mov ecx, esi
mov edx, 4
call fcn.004028a0
mov dword [edi], 0
jmp 0x416347
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x4162cc
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x416336
mov eax, dword [esp + 0x18]
jmp 0x4162ce
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x416325
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
mov dword [esp + 0x18], edi
mov edi, eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
mov edi, dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x416325
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x416341
mov dword [edi], 0
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
jmp 0x416341
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
call fcn.0043089e

Function at 0x431ef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.0042f350
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x431f44
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.0042f4b0
add esp, 4
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x431f51
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x431f69
mov byte [esi], 4
test ebx, ebx
jne 0x431f78
jmp 0x431f49
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x431f49
mov ecx, edi
mov edx, 2
call fcn.004028a0
jmp 0x431f49

Function at 0x433820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, ecx
test ecx, ecx
jne 0x433837
movzx eax, byte [0x4a5064]
test al, al
je 0x433854
mov byte [0x4a5064], 1
call fcn.004338a0
test eax, eax
je 0x433858
mov ecx, dword [eax]
mov dword [eax], esi
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x43384b
test esi, esi
je 0x433868
lock dec dword [esi]
jne 0x433868
mov ecx, esi
call fcn.00433980
lea eax, [ebp - 9]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x49bb28
push 0x49a954
push eax
call fcn.00404a20
mov edi, eax
test esi, esi
je 0x433897
lock dec dword [esi]
jne 0x433897
mov ecx, esi
call fcn.00433980
push edi
call fcn.004423e0
nop dword [eax]
Function at 0x4338a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x447048]
test eax, eax
je 0x433945
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x4338c4
add eax, 4
jmp 0x433940
je 0x43393e
movzx eax, byte [0x4a5058]
mov ecx, 8
call fcn.0043cf80
test eax, eax
je 0x43396c
mov dword [eax], 0x447048
mov dword [eax + 4], 0
mov edi, eax
mov ebx, eax
mov eax, dword [0x447048]
test eax, eax
je 0x433954
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
mov esi, eax
mov eax, dword [0x447048]
test eax, eax
je 0x433960
dec eax
add edi, 4
push ebx
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x43393a
mov eax, dword [esi + 4]
test eax, eax
je 0x43392e
lock dec dword [eax]
jne 0x43392e
mov ecx, dword [esi + 4]
call fcn.00433980
mov ecx, esi
mov edx, 4
call fcn.004028a0
mov eax, edi
jmp 0x433940
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x447048
call fcn.0040f3b0
jmp 0x4338b4
mov ecx, 0x447048
call fcn.0040f3b0
jmp 0x4338fa
mov ecx, 0x447048
call fcn.0040f3b0
jmp 0x43390c
mov ecx, 4
mov edx, 8
call fcn.00402c10
nop dword [eax + eax]
Function at 0x439110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.0042f350
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x439160
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.00439040
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x4391a5
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x439197
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x439178
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x439188
mov edx, dword [ebx + 8]
mov ecx, esi
call fcn.004028a0
mov ecx, edi
mov edx, 4
call fcn.004028a0
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4391c6
mov eax, dword [ebp - 0x10]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
jmp 0x43919d
test ebx, ebx
mov dword [esi], 0x80000000
je 0x43919d
mov ecx, edi
mov edx, 2
call fcn.004028a0
jmp 0x43919d
Function at 0x43b930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.0043fcd0
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x434500
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x43ba4d
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43b98e
cmp dword [ebp - 0x18], 0
jne 0x43ba54
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x43ba54
cmp ebx, 0x1000
ja 0x43ba80
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x43ba6d
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x434500
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x43ba4f
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43ba00
cmp dword [ebp - 0x18], 0
jne 0x43ba54
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x43b9c0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x434500
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
jmp 0x43b981
jmp 0x43ba4f
call sub.KERNEL32.dll_GetLastError
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov ecx, edi
push 0x49c9a8
call fcn.00404b20
add esp, 4
jmp 0x43ba94
mov edx, 0x1000
mov ecx, ebx
push 0x49c9a8
call fcn.00403ab0
add esp, 4
ud2
Function at 0x43f9f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x24], edx
add eax, edx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
call fcn.00437840
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x43fa27
lea ecx, [ebp - 0x18]
call fcn.0042f9f0
mov edi, dword [ebp - 0x14]
mov word [edi + ebx*2], 0
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x43fa57
mov byte [esi], 4
cmp dword [ebp - 0x18], 0
je 0x43fa4f
mov ecx, edi
mov edx, 2
call fcn.004028a0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
cmp dword [ebp - 0x18], 0
jne 0x43fa43
jmp 0x43fa4f
Function at 0x444770
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00445450
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00445450
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4447d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4a5154]
test esi, esi
jle 0x4448f0
mov eax, dword [0x4a5158]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x444804
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x444887
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4447f0
mov dword [esp], ebx
call fcn.00445160
mov edi, eax
test eax, eax
je 0x444917
mov eax, dword [0x4a5158]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00445270
mov edx, dword [0x4a5158]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4448f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x444880
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x444890
add dword [0x4a5154], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4a5158]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x444880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00444770
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x44480e
mov eax, dword [0x4a5158]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00444770
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00444770
lea esi, [esi]
nop
Function at 0x444dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4a5170
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4a5168]
sub esp, 4
test ebx, ebx
je 0x444e25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x444e1e
test esi, esi
je 0x444e1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x444e00
mov dword [esp], 0x4a5170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x404cd0
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x4f8174]
mov ecx, 0x42
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x4fa948
je 0x404d18
inc dword [0x4faa68]
add ebx, 0x108
mov edi, ebx
mov dword [0x4f8174], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4fcc10
mov dword [ebx + 0x2c], eax
call fcn.0042e650
jmp 0x404d1f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x4faa7c], 0
xorps xmm0, xmm0
movlpd qword [0x4fd718], xmm0
je 0x404d4f
mov eax, dword [0x4f9bd8]
mov ecx, 0x4cec30
test eax, eax
je 0x404d48
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 0x404dd4
mov cl, byte [ebx + 0xee]
test cl, cl
jne 0x404d84
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xee], cl
jne 0x404d84
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4fd724], 0
je 0x404d96
cmp dword [0x4fd720], 0
jne 0x404d9a
test cl, cl
je 0x404dd4
mov byte [ebx + 0xec], 0
test cl, cl
jne 0x404dd4
cmp dword [0x4fd724], 0
jge 0x404dbd
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 [0x4fd724]
mov dword [ebx + 0xe0], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4068a0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
lea ebx, [esi + 0x18]
push edi
mov edi, ebx
jne 0x40692e
call fcn.00406bd0
test eax, eax
jne 0x40692b
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebx], eax
je 0x4068e6
cmp dword [esi + 8], eax
je 0x4068d4
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebx], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x4068ff
push dword [esi + 4]
call edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406910
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cec30
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4fcc10
call fcn.0044df00
pop edi
pop esi
pop ebx
pop ecx
ret 4
lea edi, [esi + 0x18]
push ebp
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4069ad
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebx], eax
je 0x406967
cmp dword [esi + 8], eax
je 0x406955
push dword [esi]
call ebp
mov dword [esi + 8], 0
mov ebx, edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebx], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x406980
push dword [esi + 4]
call ebp
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406991
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cec30
push 0x4cf294
mov ecx, 0x4fcc10
call fcn.0044df00
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x4069f9
mov edx, dword [esi + 0xc]
xor cl, cl
mov ebp, edi
test edx, edx
je 0x4069e6
cmp word [edx], 0
push eax
sete byte [esp + 0x17]
call ebx
mov cl, byte [esp + 0x13]
lea ebp, [esi + 0x18]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
push eax
test cl, cl
je 0x406a2e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
mov edi, ebp
cmp dword [edi], 0
je 0x406a21
cmp dword [esi + 8], 0
je 0x406a0f
push dword [esi]
call ebx
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [edi], 0
mov dword [esi], 0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406a43
mov dword [esi + 4], 0
jmp 0x4069f7
cmp dword [edi], 0
je 0x406a6c
cmp dword [esi + 8], 0
je 0x406a59
push dword [esi]
call ebx
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x406a85
push dword [esi + 4]
call ebx
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406a96
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cec30
push 0x4cf2b4
mov ecx, 0x4fcc10
call fcn.0044df00
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x406ac0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
test esi, esi
je 0x406ada
mov dword [esi], 0
mov ebx, dword [esp + 0x21c]
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x406bb0
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x406ba2
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406ba2
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406ba2
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x406ba2
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x406ba2
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x406b98
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x406bb7
test esi, esi
je 0x406ba2
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 0xc], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

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

Disassembly:
push ebp
mov ebp, ecx
cmp dword [ebp + 0x18], 0
je 0x406be0
mov eax, 1
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4faa80]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406c4e
nop
mov eax, dword [0x4f8180]
cmp eax, 0xffffffff
je 0x406c1f
test eax, eax
je 0x406c5f
call esi
mov ecx, dword [0x4f8180]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406c5f
mov edx, 1
mov dword [0x4f816c], 0
mov ecx, 0x8000012f
call fcn.004018d0
push dword [0x4faa80]
mov dword [0x4f816c], 1
call edi
test eax, eax
je 0x406c00
pop edi
pop esi
pop ebx
mov dword [ebp + 0x18], 1
mov eax, 1
pop ebp
ret
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
Function at 0x406d70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x81c
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x29]
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x30], 0
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push ebx
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x28
mov eax, dword [esp + 0x83c]
mov edi, eax
push ebx
mov byte [ebp], 0
mov dword [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x406f51
cmp word [ebx + 8], 2
jne 0x406e4f
cmp word [ebx + 0xa], 4
jne 0x406e4f
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406e4f
nop dword [eax]
push dword [eax]
mov edx, dword [esp + 0x834]
push dword [esp + 0x838]
mov ecx, dword [esp + 0x20]
call fcn.00406cf0
mov dword [edi], eax
test eax, eax
je 0x406f3d
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x406e20
push 0x400
push dword [ebx]
push 0x401
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov eax, dword [esp + 0x84c]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x406eec
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e77
sub ecx, edx
je case.0x406f61.11003
mov ebx, dword [esp + 0x14]
mov eax, ebp
mov ecx, ebx
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406eb0
test dl, dl
je 0x406eac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406eb0
add ecx, 2
add eax, 2
test dl, dl
jne 0x406e90
xor eax, eax
jmp 0x406eb5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x406f61.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x406f61.11003
mov eax, ebx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x1c]
mov ebp, eax
jmp 0x406de2
mov esi, 0x2afb
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
cmp dword [esp + 0x838], esi
je 0x406f81
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f00
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x406f2a
push ebp
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x83c]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x406f81
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x406f61.11001
jmp dword [eax*4 + 0x406f90]
mov esi, 0x2afa
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, 0x2af9
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10