joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e76c0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0xc]
push eax
push ecx
xor bl, bl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.004e6890
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e77a5
mov eax, dword [edi + 0xc]
test eax, eax
push ebp
push esi
je 0x4e7744
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4e7744
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4e770f
call fcn.00438e30
mov ebp, eax
jmp 0x4e7711
xor ebp, ebp
mov ebx, dword [edi + 0xc]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, edi
call fcn.00438e30
push eax
call fcn.004cb420
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov ecx, edi
call fcn.00438e30
push eax
push 1
push 0
push ebp
push esi
call dword [ebx + 0x20]
jmp 0x4e778a
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.00439100
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e7752
mov ecx, dword [esp + 0x20]
sub eax, edx
test ecx, ecx
mov ebp, eax
je 0x4e776e
call fcn.00439100
mov edi, eax
jmp 0x4e7770
xor edi, edi
mov esi, dword [esp + 0x1c]
inc ebp
push ebp
mov ecx, ebx
call fcn.00439100
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
pop ebp
mov bl, 1
je 0x4e7796
mov bl, byte [esp + 0xb]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e77a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
pop ecx
ret 0x10

Function at 0x4e77b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
mov ecx, dword [esp + 0x10]
push eax
mov dword [edi], 0
mov edx, dword [esi + 0xc]
push ecx
push edx
lea ecx, [esp + 0x28]
xor bl, bl
call fcn.004e6800
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e7889
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
je 0x4e7832
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4e7832
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e7811
call fcn.00438e30
jmp 0x4e7813
xor eax, eax
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [ecx + 0x1c]
jmp 0x4e7860
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e7841
call fcn.00439100
jmp 0x4e7843
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e787a
cmp dword [esp + 0x18], 4
jne 0x4e787a
cmp dword [esp + 0x14], 4
jne 0x4e787a
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov bl, 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e7889
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x10
Function at 0x4e7990
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4e79ee
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4e79ee
lea ecx, [esp + 0x20c]
push ecx
push 0x104
call eax
test eax, eax
jbe 0x4e7a37
lea edx, [esp + 4]
push edx
push 0
push str.flash
lea eax, [esp + 0x218]
push eax
call dword [esi + 0x58]
test eax, eax
jbe 0x4e7a37
push 0x5dab2c
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e4cf0
pop esi
add esp, 0x410
ret
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4e7a37
lea eax, [esp + 0x20c]
push eax
push 0
push 0x5e3dd8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4e7a37
lea edx, [esp + 0x20c]
push edx
mov ecx, esi
call fcn.004e5180
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret

Function at 0x4e7996
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4e79ee
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4e79ee
lea ecx, [esp + 0x20c]
push ecx
push 0x104
call eax
test eax, eax
jbe 0x4e7a37
lea edx, [esp + 4]
push edx
push 0
push str.flash
lea eax, [esp + 0x218]
push eax
call dword [esi + 0x58]
test eax, eax
jbe 0x4e7a37
push 0x5dab2c
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e4cf0
pop esi
add esp, 0x410
ret
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4e7a37
lea eax, [esp + 0x20c]
push eax
push 0
push 0x5e3dd8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4e7a37
lea edx, [esp + 0x20c]
push edx
mov ecx, esi
call fcn.004e5180
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x4e8880
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x4e8903
mov eax, dword [esp + 0xc]
cmp eax, 5
ja 0x4e88b2
jne 0x4e8903
cmp dword [esp + 0x10], 1
jb 0x4e8903
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x4a
call esi
test eax, eax
je 0x4e88f9
cmp dword [esp + 8], 1
jne 0x4e88f9
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x200a
call esi
test eax, eax
je 0x4e88f9
cmp dword [esp + 4], 2
jne 0x4e88f9
mov eax, 1
pop esi
add esp, 0x9c
ret
xor eax, eax
pop esi
add esp, 0x9c
ret
xor al, al
add esp, 0x9c
ret
Function at 0x4ea9e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
push edi
mov ebx, ecx
push 0xdc
mov dword [0x635c14], ebx
call fcn.0043f000
add esp, 4
test eax, eax
je 0x4eab18
push 0
mov ecx, eax
call fcn.004e7e80
mov esi, eax
test esi, esi
je 0x4eab18
push esi
call fcn.004ecb60
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00438e70
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004e7330
test al, al
je 0x4eaab5
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00438c70
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00438c70
push str.Macromed
lea ecx, [esp + 0x14]
call fcn.004394d0
push str.Flash
lea ecx, [esp + 0x14]
call fcn.004394d0
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, ebx
call fcn.0041db10
test al, al
jne 0x4eaa97
lea ecx, [esp + 0x20]
push ecx
push esi
mov ecx, ebx
call fcn.0041db10
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.0041dd20
lea ecx, [esp + 0x10]
call fcn.00438bc0
lea ecx, [esp + 0x20]
call fcn.00438bc0
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x9c
call edi
test eax, eax
jne 0x4eaaee
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0x94
call edi
test eax, eax
je 0x4eab07
mov eax, dword [esp + 0x50]
cmp eax, 2
jb 0x4eab07
jne 0x4eab00
cmp dword [esp + 0x44], 5
jb 0x4eab07
mov byte [ebx + 0x8bd], 1
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x30]
call fcn.00438bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4eade0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 2
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x4eae4d
cmp ebx, 0xff
jg 0x4eae4d
cmp ebx, 0x7f
jg 0x4eae46
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x4eae36
test al, al
je 0x4eae46
push ebx
call fcn.0041d100
add esp, 4
test al, al
jne 0x4eae3a
push ebx
mov ecx, esi
call fcn.004eacc0
movzx ebx, al
pop esi
mov al, bl
pop ebx
ret 4
test al, al
jne 0x4eae24
movzx eax, bl
movzx ebx, byte [eax + 0x5da1c8]
xor ebx, eax
pop esi
mov al, bl
pop ebx
ret 4
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4
Function at 0x4eb920
Capabilities:
Check mutex on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
je 0x4eb941
mov dword [esi], 0x5e3ff8
mov dword [esi + 0x20], 0x5da860
push ebx
mov ecx, esi
call fcn.004417b0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esi + ecx], 0x5e3f6c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push str.MacromediaMutexOmega
lea ecx, [eax - 0x20]
mov dword [eax + esi - 4], ecx
push 1
push ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
je 0x4eb995
call edi
cmp eax, 0xb7
jne 0x4eb995
mov cl, 1
jmp 0x4eb997
xor cl, cl
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4eba25
cmp cl, bl
je 0x4eb9b3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4eba25
push str.MacromediaFMOmega
push 0xfc10
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
call edi
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4eba1b
push 0xfc10
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x4eba1b
cmp edi, 0xb7
setne dl
mov ecx, esi
push edx
push eax
call fcn.00441040
mov ecx, esi
call fcn.00441080
test al, al
jne 0x4eba1b
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 8], ebx
jne 0x4eba4a
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4eba3d
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4eba4a
push eax
call edi
mov dword [esi + 0x14], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4ed900
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0xd6c]
xor bl, bl
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x4ed92a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
pop esi
setl al
pop ebx
ret 4
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x4eefa0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x636454]
sub esp, 0x190
cmp eax, 1
je 0x4eefdd
cmp eax, 2
je 0x4eeff8
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4eefee
mov ax, word [esp]
cmp al, 1
jne 0x4eefe9
cmp ah, al
jne 0x4eefe9
mov dword [0x636454], 1
mov eax, 1
add esp, 0x190
ret
call sub.WSOCK32.dll_WSACleanup
mov dword [0x636454], 2
xor eax, eax
add esp, 0x190
ret
Function at 0x4ef1a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4ef1c5
cmp dword [0x636454], 1
je 0x4ef1b7
or eax, 0xffffffff
jmp 0x4ef1c2
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4ef1e6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
je 0x4ef1ef
mov eax, 1
pop esi
ret 0x10
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [esi + 4]
push ecx
add eax, 4
push eax
push edx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x4ef21d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4ef21d
mov eax, 2
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

Function at 0x4ef4a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], esi
push eax
mov dword [esp + 0x14], esi
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x24]
push ecx
mov edi, eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x28]
mov word [esp + 0xe], ax
lea eax, [ecx + 4]
xor edx, edx
mov ebx, eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
xor eax, eax
cmp edi, 0xffffffff
pop edi
pop esi
mov dword [ecx + 0x14], 0x10
setne al
pop ebx
add esp, 0x10
ret

Function at 0x4ef510
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x5e4268
mov dword [esi + 4], 0xffffffff
call fcn.004eefa0
cmp dword [0x636454], 1
je 0x4ef538
or eax, 0xffffffff
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x4ef9c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
push edi
lea eax, [esp + 0x44]
mov edi, ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.00454d80
add esp, 8
test al, al
je 0x4efb6a
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push 1
push ebp
push edx
call fcn.00454e00
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x4efa16
mov eax, dword [esp + 0x48]
push ebp
push eax
mov ecx, edi
call fcn.004ef920
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 0x10
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
mov ch, al
movzx edx, ah
movzx eax, byte [esp + 0x52]
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
mov ebp, eax
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x24]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
mov dword [esp + 0x10], 0x28
mov edx, dword [esi + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, 1
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov eax, dword [esi + 8]
mov ecx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov cl, byte [eax + 6]
mov byte [esp + 0x3a], cl
mov dl, byte [eax + 5]
mov byte [esp + 0x39], dl
mov cl, byte [eax + 4]
mov byte [esp + 0x38], cl
mov byte [esp + 0x3b], bl
mov dl, byte [eax + 0xa]
mov byte [esp + 0x3e], dl
mov cl, byte [eax + 9]
mov byte [esp + 0x3d], cl
mov dl, byte [eax + 8]
mov ecx, esi
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3f], bl
call fcn.0046b990
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
push 0xb8074a
push ebx
lea ebx, [esp + 0x18]
push ebx
mov ebx, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x10]
push ebx
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push 0
push 0
sub ebx, ecx
push ebx
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x48]
push edx
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, esi
call fcn.0046b9b0
mov ecx, esi
call fcn.0046bb00
push esi
call fcn.0043f020
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
add esp, 4
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
push eax
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 0x10
Function at 0x4f0920
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
call fcn.004f0210
mov eax, dword [0x636494]
test eax, eax
je 0x4f0950
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x636494]
push eax
call fcn.0043f020
add esp, 4
mov dword [0x636494], 0
test byte [esp + 8], 1
je 0x4f0960
push esi
call fcn.0043f020
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x4f0b80
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
test esi, esi
je 0x4f0bac
mov eax, dword [esi]
test eax, eax
je 0x4f0b9d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
push esi
call fcn.0043f020
add esp, 4
mov dword [edi], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4f0bf2
mov ecx, esi
call fcn.004f0210
mov eax, dword [0x636494]
test eax, eax
je 0x4f0be2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x636494]
push eax
call fcn.0043f020
add esp, 4
mov dword [0x636494], 0
push esi
call fcn.0043f020
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x4f15e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov byte [esi + 0x24], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4f165d
cmp dword [esp + 0x1c], 2
jne 0x4f165d
cmp dword [esp + 0x10], 4
mov eax, str.Security.dll
je 0x4f1629
mov eax, str.Secur32.dll
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4f165c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitSecurityInterfaceA
push eax
call edi
test eax, eax
jne 0x4f1667
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
pop edi
pop ebp
mov eax, esi
pop esi
add esp, 0x9c
ret
call eax
test eax, eax
mov dword [esi + 4], eax
jne 0x4f1675
mov edx, dword [esi]
push edx
jmp 0x4f164f
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [eax + 4]
test eax, eax
jne 0x4f1691
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push ecx
call dword [eax + 0x40]
push str.crypt32.dll
call ebp
test eax, eax
mov dword [esi + 8], eax
je 0x4f1670
push str.CertGetCertificateChain
push eax
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x4f170c
mov eax, dword [esi + 8]
push str.CertVerifyCertificateChainPolicy
push eax
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x4f170c
mov ecx, dword [esi + 8]
push str.CertFreeCertificateChain
push ecx
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x4f170c
mov edx, dword [esi + 8]
push 0x5e44f8
push edx
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x4f170c
mov eax, dword [esi + 8]
push str.CertOpenSystemStoreW
push eax
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x4f170c
mov ecx, dword [esi + 8]
push 0x5e44d0
push ecx
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x4f165b
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call edi
mov eax, dword [esi]
push eax
mov dword [esi + 8], 0
call edi
pop edi
pop ebp
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x9c
ret
Function at 0x4f1d20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x208
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 8]
call fcn.004ef180
cmp eax, 0xffffffff
jne 0x4f1d4e
pop edi
xor al, al
pop esi
add esp, 0x208
ret 8
mov cl, byte [esp + 0x214]
push ebx
xor edx, edx
mov ebx, 1
test bl, cl
mov dword [esp + 0x110], edx
mov dword [esp + 0xc], edx
je 0x4f1d7a
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], ebx
test cl, 2
je 0x4f1d87
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
push edx
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push ecx
push ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4f1da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esp + 0x21c]
test al, al
jne 0x4f1dc8
mov ecx, esi
call fcn.004f19d0
cmp dword [esi + 4], 3
jmp 0x4f1dcc
cmp dword [esi + 4], 2
je 0x4f1dd0
xor bl, bl
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x208
ret 8
Function at 0x4f3cd0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f3d48
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4f3d42
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x4f3d41
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3d10
sub eax, edx
inc eax
push eax
call fcn.0043f000
mov edi, eax
mov edx, edi
add esp, 4
mov eax, esi
sub edx, esi
jmp 0x4f3d30
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4f3d30
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4f3d50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
mov eax, dword [ebx + 4]
je 0x4f3eca
push esi
push edi
push eax
call fcn.0043f020
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 5
mov dword [ebx + 4], 0
jle 0x4f3e52
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4f3db3
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4f3de1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.004cb710
add esp, 8
jmp 0x4f3dd7
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4f3de1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 0
push 6
push eax
call fcn.004cb800
add esp, 0x10
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebx + 4]
test esi, esi
je 0x4f3ebf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3df1
sub eax, edx
mov edi, eax
cmp byte [esi], 0
je 0x4f3ebf
lea ecx, [esp + 0x10]
push ecx
lea edx, [edi + esi]
push edx
push esi
call fcn.004cb040
add esp, 0xc
cmp word [esp + 0x10], 0xd
jne 0x4f3e3c
cmp byte [esi], 0
mov eax, esi
je 0x4f3e37
mov cl, byte [eax + 1]
test cl, cl
je 0x4f3e37
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f3e26
mov byte [eax], 0
jmp 0x4f3e3e
add esi, eax
cmp byte [esi], 0
jne 0x4f3e05
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
ret 4
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4f3e8a
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3e63
sub eax, edx
inc eax
push eax
call fcn.0043f000
add esp, 4
mov dword [ebx + 4], eax
mov ecx, esi
mov edx, eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4f3e80
mov edx, dword [ebx + 4]
test edx, edx
je 0x4f3ebf
mov al, byte [edx]
test al, al
je 0x4f3ebf
cmp al, 0xd
jne 0x4f3eb8
cmp byte [edx], 0
mov eax, edx
je 0x4f3eb3
mov cl, byte [eax + 1]
test cl, cl
je 0x4f3eb3
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4f3ea2
mov byte [eax], 0
jmp 0x4f3eb9
inc edx
mov al, byte [edx]
test al, al
jne 0x4f3e97
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
ret 4