joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0f0
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d116
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 0x74], eax
push edi
jne 0x40d13b
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x94], 0xa
mov dword [esi + 0x98], 0x4b
lea eax, [ecx + ecx]
lea ecx, [esi + 0x7c]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
call fcn.00404d90
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x20], 0
lea ebx, [edx + edx]
test ebx, ebx
jbe 0x40d1c2
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40d1e0
push 0
push 0
call dword [0x59a084]
add esp, 0x18
test eax, eax
je 0x40d1cc
mov ecx, dword [esi + 0x20]
push eax
inc ecx
mov dword [esi + 0x20], ecx
call ebp
inc edi
cmp edi, ebx
jb 0x40d195
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x74]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret

Function at 0x40d3e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push esi
mov ebx, ecx
push 0x18
call fcn.00545379
mov edx, eax
add esp, 4
test edx, edx
je 0x40d40d
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 1
pop edi
jmp 0x40d40f
xor edx, edx
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esi + 0x50]
push 1
push edx
push eax
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40d453
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40d453
push 0
push esi
mov ecx, ebx
call fcn.0040dbe0
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x40d9b0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [0x5cea9c]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test al, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x40d9fc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
or al, 1
mov byte [0x5cea9c], al
call esi
mov dword [0x5cead8], eax
jmp 0x40da02
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5ceae8]
add eax, edi
mov dword [0x5ceae8], eax
call esi
sub eax, dword [0x5cead8]
cmp eax, 0x3e8
jb 0x40da41
call esi
mov dword [0x5cead8], eax
mov eax, dword [0x5ceae8]
add ebx, 0x14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x5ceae8], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.004026b0
mov ecx, ebx
call fcn.004024e0
test eax, eax
jne 0x40da83
mov ecx, ebx
call fcn.00402680
mov ecx, dword [esi + 0x2060]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x18
call fcn.00545379
mov edx, eax
add esp, 4
test edx, edx
je 0x40daa9
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 2
mov edi, edx
jmp 0x40daab
xor edi, edi
mov eax, dword [ebp - 0x14]
push 3
push esi
mov edx, dword [eax + 8]
push edx
call dword [eax + 4]
push 0
mov ecx, ebx
call fcn.004026a0
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.004024e0
lea ecx, [esi + 0x2058]
push 0
push edi
push 0x8000
mov dword [ecx], eax
mov eax, dword [esi]
push ecx
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40db08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40db08
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.0040dbe0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dbe0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x567470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [esp + 0xc]
call fcn.0054949c
mov eax, dword [0x5bb5e4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00549567
push 0x5ceab0
mov dword [esp + 0x14], 0x5ceab0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.0054942e
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x40dc83
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40dcc5
cmp dword [eax + 8], esi
je 0x40dc97
mov eax, dword [eax]
test eax, eax
jne 0x40dc8a
jmp 0x40dcc5
test eax, eax
je 0x40dcc5
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [edi + 8]
push 2
push esi
push eax
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.0040de20
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0054942e
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40de20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5674d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push str.MoveToFreePool
lea ecx, [esp + 0x10]
call fcn.0054949c
mov eax, dword [0x5bb5e4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00549567
push 0x5ceab0
mov dword [esp + 0x14], 0x5ceab0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0054942e
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x40df8e
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x40deb1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40de9b
jmp 0x40df8e
test ebx, ebx
je 0x40df8e
push ebp
lea ecx, [edi + 0x14]
call fcn.00402680
lea ecx, [edi + 4]
call fcn.00402680
lea ecx, [edi + 0x24]
call fcn.00402680
lea ecx, [edi + 0x34]
call fcn.00402680
mov eax, dword [esi + 0x58]
mov ebp, dword [esi + 0x50]
test eax, eax
jne 0x40df11
mov edx, dword [esi + 0x60]
push 0xc
lea eax, [esi + 0x5c]
push edx
push eax
call fcn.005447b6
mov ecx, dword [esi + 0x60]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x40df11
inc ecx
mov edx, dword [esi + 0x58]
mov dword [eax], edx
mov dword [esi + 0x58], eax
sub eax, 0xc
dec ecx
jne 0x40df03
mov edi, dword [esi + 0x58]
push 1
mov eax, dword [edi]
mov dword [esi + 0x58], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ecx, dword [esi + 0x54]
lea ebp, [edi + 8]
inc ecx
push ebp
mov dword [esi + 0x54], ecx
call fcn.0047eb40
mov ecx, dword [esp + 0x2c]
mov dword [ebp], ecx
mov eax, dword [esi + 0x50]
test eax, eax
pop ebp
je 0x40df47
mov dword [eax], edi
jmp 0x40df4a
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x2c]
mov dword [esi + 0x50], edi
cmp ebx, dword [ecx + 4]
jne 0x40df5c
mov edx, dword [ebx]
mov dword [ecx + 4], edx
jmp 0x40df63
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [eax], edx
cmp ebx, dword [ecx + 8]
jne 0x40df70
mov eax, dword [ebx + 4]
mov dword [ecx + 8], eax
jmp 0x40df78
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ecx + 0x10]
mov dword [ebx], edx
mov eax, dword [ecx + 0xc]
dec eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], eax
jne 0x40df8e
call fcn.00517620
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0054942e
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4105e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x5679bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x5bb5e4]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edi
mov ecx, dword [0x5ceb94]
mov dword [esp + 0x124], 0
test ecx, ecx
je 0x410637
call fcn.0040dd00
mov ecx, dword [0x5ceb94]
test ecx, ecx
je 0x410637
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x9c
call fcn.00545379
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x124], 1
je 0x41065d
mov ecx, eax
call fcn.0040cad0
jmp 0x41065f
xor eax, eax
mov ebp, dword [esp + 0x12c]
mov ecx, eax
push ebp
push 0x186a0
push edi
push 0x4104a0
mov byte [esp + 0x134], 0
mov dword [0x5ceb94], eax
call fcn.0040cce0
test al, al
je 0x4107b4
push ebx
lea eax, [esp + 0x20]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x410719
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.0054980a
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jae 0x410719
xor edi, edi
push 0x5b94d8
lea ecx, [esp + 0x14]
call fcn.0054980a
mov edx, dword [esi + 0xc]
add edi, 4
mov eax, dword [edx + edi]
mov ecx, dword [eax]
push ecx
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.0054980a
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx + edi]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jb 0x4106dd
mov edi, dword [esp + 0x1c]
mov eax, dword [0x5bb5e4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
lea esi, [edi + 0x38c]
push edx
push 0
mov ecx, esi
mov byte [esp + 0x130], 3
call fcn.00439160
push ebp
lea eax, [esp + 0x18]
push 0x5b94cc
push eax
call fcn.00542c1f
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 2
mov ecx, esi
call fcn.00439160
mov edx, dword [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x20]
push 0x5b94a0
push eax
call fcn.00542c1f
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push ecx
mov ecx, dword [0x5ceb44]
call fcn.0040ee90
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 2
call fcn.0054942e
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call fcn.0054942e
pop ebx
jmp 0x4107fd
push ebp
lea edx, [esp + 0x10]
push 0x5b9464
push edx
call fcn.00542c1f
mov eax, dword [esp + 0x18]
add esp, 0xc
lea esi, [edi + 0x38c]
push eax
push 0
mov ecx, esi
call fcn.00439160
push 0x5b945c
push 2
mov ecx, esi
call fcn.00439160
mov ecx, dword [esp + 0xc]
push 1
push 0
push ecx
mov ecx, dword [0x5ceb44]
call fcn.0040ee90
push 0x5b9450
push 3
mov ecx, esi
call fcn.00439160
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call fcn.0054942e
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
Function at 0x412e60
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x412ea5
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x412ea5
sub esi, eax
add edi, eax
test esi, esi
jg 0x412e8b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x412eb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2104
call fcn.0052e380
mov eax, dword [esp + 0x2108]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [esp + 0x14]
cmp dword [ecx], ebx
je 0x412f0a
inc eax
add ecx, 4
cmp eax, 1
jb 0x412efd
cmp eax, 1
jne 0x412f1b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 2
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x412fc0
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412f77
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebp
call edi
mov esi, eax
test esi, esi
jle 0x412fc0
lea eax, [esp + 0x114]
push esi
push eax
push ebx
call fcn.00412e60
add esp, 0xc
test eax, eax
je 0x412fc0
cmp eax, esi
jne 0x412fc0
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412eeb
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x412fc0
lea eax, [esp + 0x114]
push esi
push eax
push ebp
call fcn.00412e60
add esp, 0xc
test eax, eax
je 0x412fc0
cmp eax, esi
je 0x412eeb
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2104
ret 4

Function at 0x412fe0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412ffe
xor eax, eax
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor eax, eax
push edx
mov dword [esp + 0xa], eax
mov word [esp + 8], 2
mov dword [esp + 0xe], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x413051
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
push 3
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x413070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
xor eax, eax
push esi
mov dword [esp + 0xa], eax
mov word [esp + 8], 0
mov dword [esp + 0xe], eax
mov dword [esp + 4], 0x10
mov dword [esp + 0x12], eax
push eax
push eax
mov word [esp + 0x1e], ax
call fcn.00412fe0
mov esi, eax
add esp, 8
test esi, esi
jbe 0x4130bc
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4130ca
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x4130f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x4131c0
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov eax, 0x2018
call fcn.0052e380
push ebx
push edi
mov ecx, 0x803
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x14], 0x57bb78
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2024]
push eax
push 0
call fcn.00412fe0
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
add esp, 8
test edi, edi
jbe 0x4132d1
mov ecx, dword [esp + 0x2028]
push ecx
push 0
call fcn.00412fe0
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jbe 0x4132ce
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_accept]
push esi
push 0
push 0
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4132c5
lea edx, [esp + 0x14]
push 4
push edx
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4132c5
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call ebp
cmp eax, 0xffffffff
jne 0x413290
push 0x3e8
call esi
jmp 0x413277
mov ecx, dword [esp + 0x24]
cmp ecx, 0x800
jge 0x4132a5
inc ecx
mov dword [esp + 0x24], ecx
mov dword [esp + ecx*4 + 0x28], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0
push edx
push 0x413120
push 0
push 0
call edi
test eax, eax
je 0x413287
push eax
call ebx
jmp 0x413277
push esi
call ebx
mov eax, dword [esp + 0x10]
pop esi
pop ebp
push eax
call ebx
push edi
call ebx
pop edi
xor eax, eax
pop ebx
add esp, 0x2018
ret

Function at 0x4138f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x41390e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41390e
test al, 0x10
jne 0x41390e
mov eax, 1
ret
xor eax, eax
ret
Function at 0x419740
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4197a5
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41979d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8

Function at 0x4197b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419853
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x4197e5
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.00545379
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x19
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov edx, dword [eax + 0x154]
mov ecx, dword [eax + 0x158]
push edx
call fcn.0040d460
push ebp
call fcn.005453a2
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x42e010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56ab19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00548c8c
mov eax, dword [0x5bb5e4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x5bb5e4]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x68], 0x5832e0
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x583288
call fcn.00564a9f
lea edx, [esi + 0x40]
or eax, 0xffffffff
push edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x431030
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
push eax
lea ebx, [edi + 0x3c]
push ecx
mov ecx, ebx
call fcn.0042f8a0
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
mov ecx, esi
call fcn.0042e210
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
call fcn.0042e350
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x43107a
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 4]
test ebp, ebp
je 0x431087
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43109f
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x43109f
push 0
mov ecx, ebx
call fcn.0042fb20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14