joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cfa00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x4cfa30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret
Function at 0x4cfa60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [esp + 0x418]
test esi, esi
jne 0x4cfa7c
xor al, al
pop esi
add esp, 0x410
ret
mov ecx, dword [esp + 0x41c]
test ecx, ecx
push ebx
push edi
je 0x4cfbfd
call fcn.00497d20
mov ebx, eax
call fcn.004cb0e0
test al, al
je 0x4cfb5f
lea eax, [esp + 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x4cfc56
lea ecx, [esp + 0xc]
push ecx
push 0
push str.flash
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b8350
mov edi, eax
add esp, 8
test edi, edi
je 0x4cfc56
cmp ebx, 5
jle 0x4cfb1f
mov edx, esi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfb00
push edi
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
push 0
push edi
call fcn.004d9d70
push edi
mov ebx, eax
call fcn.00439d00
add esp, 0xc
test ebx, ebx
je 0x4cfc56
mov edx, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfb40
push ebx
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
lea ecx, [esp + 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4cfc56
lea edx, [esp + 0xc]
push edx
push 0
push 0x548210
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cfc56
cmp ebx, 5
lea ecx, [esp + 0xc]
jle 0x4cfbdf
push 0
push 6
push ecx
call fcn.004b8440
add esp, 0xc
test eax, eax
je 0x4cfc56
mov ecx, eax
sub esi, eax
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4cfbc0
push eax
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
mov edx, esi
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfbe7
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
lea edx, [esp + 0x214]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
push eax
push 0
push 0x548210
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfc40
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x410
ret
Function at 0x4cfe40
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov ecx, dword [esp + 0x814]
test ecx, ecx
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 2
je 0x4cffe0
call fcn.00497d20
mov ebx, eax
call fcn.004cb0e0
test al, al
je 0x4cff3f
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4d0049
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push str.AppData
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4d003e
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004b8350
mov edi, eax
add esp, 8
test edi, edi
je 0x4d003e
cmp ebx, 5
jle 0x4cff09
mov ecx, dword [esp + 0x81c]
push edi
call fcn.00435020
push edi
call fcn.00439d00
add esp, 4
jmp 0x4d003e
push 0
push edi
call fcn.004d9d70
push edi
mov ebx, eax
call fcn.00439d00
add esp, 0xc
test ebx, ebx
je 0x4d003e
mov ecx, dword [esp + 0x81c]
push ebx
call fcn.00435020
push ebx
call fcn.00439d00
add esp, 4
jmp 0x4d003e
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push 0x548230
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4d0049
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x548224
push edx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4cffd9
cmp ebx, 5
jle 0x4cffc8
push eax
lea eax, [esp + 0x1c]
push 6
push eax
call fcn.004b8440
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cffd9
mov ecx, dword [esp + 0x81c]
push edi
call fcn.00435020
push edi
call fcn.00439d00
mov edx, dword [esp + 0x10]
add esp, 4
push edx
jmp 0x4d0043
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x820]
call fcn.00435020
mov edx, dword [esp + 0xc]
push edx
jmp 0x4d0043
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x548230
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4d0049
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push 0x548224
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4d003e
mov ecx, dword [esp + 0x81c]
lea edx, [esp + 0x18]
push edx
call fcn.00435020
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
add esp, 0x80c
ret
Function at 0x4d0a80
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 0x4d0aff
cmp dword [esp + 0xc], 5
jb 0x4d0aff
cmp dword [esp + 0x10], 1
jb 0x4d0aff
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 0x4d0af5
cmp dword [esp + 8], 1
jne 0x4d0af5
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x200a
call esi
test eax, eax
je 0x4d0af5
cmp dword [esp + 4], 2
jne 0x4d0af5
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 0x4d2aa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x130
push esi
push 0x105
lea eax, [esp + 0x20]
mov esi, ecx
push eax
mov dword [0x563e4c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d2b3b
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 8]
call fcn.00435980
push 0x5c
lea ecx, [esp + 8]
call fcn.00434e00
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x14]
call fcn.004359a0
push str.MacromedFlash_
lea ecx, [esp + 0x14]
call fcn.00435140
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0041c7c0
test al, al
jne 0x4d2b14
mov ecx, dword [esp + 4]
push ecx
mov ecx, esi
call fcn.0041c7c0
mov edx, dword [esp + 0x10]
push edx
call fcn.00435680
mov dword [esi + 0x860], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00439d00
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00439d00
add esp, 0xc
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x890], eax
pop esi
add esp, 0x130
ret

Function at 0x4d2c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
call fcn.004fc970
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x22c
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0x8ac], eax
call fcn.0041bf60
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x884]
push eax
mov dword [ebx], 0
mov dword [esi + 0x888], 0
mov byte [esi + 0x880], 0
mov byte [esi + 0x88c], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
ja 0x4d2d25
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4d2d25
push ebx
push 0x551470
push 3
push 0
push 0x551460
mov byte [esi + 0x88c], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4d2d25
mov ecx, dword [ebx]
lea edi, [esi + 0x888]
push edi
push 0x548404
push ebx
call dword [ecx]
cmp dword [edi], 0
je 0x4d2d25
mov byte [esi + 0x880], 1
add esi, 0x894
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2e60
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 0x4d2ecd
cmp ebx, 0xff
jg 0x4d2ecd
cmp ebx, 0x7f
jg 0x4d2ec6
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x4d2eb6
test al, al
je 0x4d2ec6
push ebx
call fcn.00435d00
add esp, 4
test al, al
jne 0x4d2eba
push ebx
mov ecx, esi
call fcn.004d2d40
movzx ebx, al
pop esi
mov al, bl
pop ebx
ret 4
test al, al
jne 0x4d2ea4
movzx eax, bl
movzx ebx, byte [eax + 0x53ff38]
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 0x4d4140
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
mov esi, ecx
call fcn.0043c990
xor ebx, ebx
push str.MacromediaMutexOmega
push 1
push ebx
mov dword [esi], 0x548b54
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x4d420f
push str.MacromediaFMOmega
push 0xfc10
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x4d4205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x24]
push 0xfc10
push ebx
push ebx
push 0xf001f
cmp eax, 0xb7
push ecx
setne byte [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp byte [esp + 0xc], bl
mov dword [esi + 4], eax
je 0x4d41f2
cmp eax, ebx
je 0x4d4205
mov dword [eax], 1
mov edx, dword [esi + 4]
mov dword [edx + 4], 1
mov eax, dword [esi + 4]
mov byte [eax + 0xa010], bl
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], ebx
mov edx, dword [esi + 4]
mov dword [edx + 8], ebx
jmp 0x4d4205
cmp eax, ebx
je 0x4d4205
cmp dword [eax], 1
je 0x4d4205
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 4], ebx
jne 0x4d423d
mov eax, dword [esi + 0x24]
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4d4228
push eax
call edi
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4d4235
push eax
call edi
mov dword [esi + 0x20], ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x4d5270
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d52e7
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push str.MHz
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d52dc
cmp dword [esp + 8], 4
jne 0x4d52dc
mov eax, dword [esp]
test eax, eax
jbe 0x4d52dc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x1f4
add esp, 0xc
ret
Function at 0x4d6180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0xc7c]
xor bl, bl
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x4d61aa
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 0x4d7960
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x5646d4]
sub esp, 0x190
cmp eax, 1
jne 0x4d7977
add esp, 0x190
ret
cmp eax, 2
jne 0x4d7985
xor eax, eax
add esp, 0x190
ret
push esi
push str.WSOCK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4d7ad8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push esi
call edi
push str.WSAStartup
push esi
mov dword [0x564688], eax
call edi
push str.listen
push esi
mov dword [0x56468c], eax
call edi
push str.closesocket
push esi
mov dword [0x564690], eax
call edi
push str.bind
push esi
mov dword [0x564694], eax
call edi
push str.htons
push esi
mov dword [0x564698], eax
call edi
push str.htonl
push esi
mov dword [0x56469c], eax
call edi
push str.socket
push esi
mov dword [0x5646a0], eax
call edi
push str.WSAAsyncSelect
push esi
mov dword [0x5646a4], eax
call edi
push str.accept
push esi
mov dword [0x5646a8], eax
call edi
push str.WSAGetLastError
push esi
mov dword [0x5646ac], eax
call edi
push str.WSAAsyncGetHostByName
push esi
mov dword [0x5646b0], eax
call edi
push str.inet_addr
push esi
mov dword [0x5646b4], eax
call edi
push str.connect
push esi
mov dword [0x5646b8], eax
call edi
push str.send
push esi
mov dword [0x5646bc], eax
call edi
push str.sendto
push esi
mov dword [0x5646c0], eax
call edi
push str.recv
push esi
mov dword [0x5646c4], eax
call edi
push str.recvfrom
push esi
mov dword [0x5646c8], eax
call edi
push str.WSACancelAsyncRequest
push esi
mov dword [0x5646cc], eax
call edi
mov dword [0x5646d0], eax
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x56468c]
test eax, eax
pop edi
jne 0x4d7ad8
mov ax, word [esp + 4]
cmp al, 1
jne 0x4d7ad2
cmp ah, al
jne 0x4d7ad2
mov dword [0x5646d4], 1
mov eax, 1
pop esi
add esp, 0x190
ret
call dword [0x564688]
mov dword [0x5646d4], 2
xor eax, eax
pop esi
add esp, 0x190
ret

Function at 0x4d7b30
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 1
jne 0x4d7b76
mov ecx, dword [esi]
push 1
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
test eax, eax
jne 0x4d7b76
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esi]
push 0
push ecx
push edx
push eax
call dword [0x5646c4]
pop esi
ret 0x14
xor eax, eax
pop esi
ret 0x14
Function at 0x4d7b80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
mov dword [esp], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0xc], eax
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
mov al, byte [esp + 0x28]
mov byte [esp + 0x28], al
cmp dword [esi + 8], 1
jne 0x4d7c06
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0x20
push 0xffff
push edx
call sub.WSOCK32.dll_setsockopt
test eax, eax
jne 0x4d7c06
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push 0
push ecx
push edx
push eax
call dword [0x5646c4]
pop esi
add esp, 0x10
ret 0x14
xor eax, eax
pop esi
add esp, 0x10
ret 0x14

Function at 0x4d7d40
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4d7d6b
cmp dword [0x5646d4], 1
jne 0x4d7d6b
cmp dword [ebp], 0xffffffff
jne 0x4d7d7a
push 0
push 1
push 2
call dword [0x5646a4]
mov dword [ebp], eax
cmp dword [ebp], 0xffffffff
jne 0x4d7d7a
xor al, al
pop ebp
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ebx
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
mov ebx, dword [esp + 0x24]
mov word [esp + 0x12], ax
cmp byte [ebx], 0
je 0x4d7e0b
mov edi, 0x5406e0
mov esi, ebx
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4d7e0b
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4d7e19
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4d7de5
pop edi
pop esi
pop ebx
xor al, al
pop ebp
add esp, 0x10
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x10], ax
jmp 0x4d7e19
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x14], eax
mov edx, dword [ebp]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x5646bc]
test eax, eax
jne 0x4d7dd9
mov al, byte [esp + 0x2c]
test al, al
jne 0x4d7e52
mov ecx, dword [ebp]
push 4
lea eax, [esp + 0x30]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x40], 1
call sub.WSOCK32.dll_setsockopt
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x10
ret 0xc
Function at 0x4d8210
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.0044ea50
add esp, 8
test al, al
je 0x4d83ba
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push 1
push ebp
push edx
call fcn.0044ead0
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x4d8266
mov eax, dword [esp + 0x48]
push ebp
push eax
mov ecx, edi
call fcn.004d8170
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.004624d0
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.004624f0
mov ecx, esi
call fcn.00462640
push esi
call fcn.00439d00
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 0x4d9930
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 0x4d9aaa
push esi
push edi
push eax
call fcn.00439d00
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 5
mov dword [ebx + 4], 0
jle 0x4d9a31
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4d9993
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4d99bf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.004b8350
add esp, 8
jmp 0x4d99b5
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4d99bf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 6
push eax
call fcn.004b8440
add esp, 0xc
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebx + 4]
test esi, esi
je 0x4d9a9f
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d99d0
sub eax, edx
mov edi, eax
cmp byte [esi], 0
je 0x4d9a9f
lea ecx, [esp + 0x10]
push ecx
lea edx, [edi + esi]
push edx
push esi
call fcn.004b7d70
add esp, 0xc
cmp word [esp + 0x10], 0xd
jne 0x4d9a1b
cmp byte [esi], 0
mov eax, esi
je 0x4d9a16
mov cl, byte [eax + 1]
test cl, cl
je 0x4d9a16
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d9a05
mov byte [eax], 0
jmp 0x4d9a1d
add esi, eax
cmp byte [esi], 0
jne 0x4d99e4
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 0x4d9a6a
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d9a42
sub eax, edx
inc eax
push eax
call fcn.0052b380
add esp, 4
mov dword [ebx + 4], eax
mov ecx, esi
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4d9a60
mov edx, dword [ebx + 4]
test edx, edx
je 0x4d9a9f
mov al, byte [edx]
test al, al
je 0x4d9a9f
cmp al, 0xd
jne 0x4d9a98
cmp byte [edx], 0
mov eax, edx
je 0x4d9a93
mov cl, byte [eax + 1]
test cl, cl
je 0x4d9a93
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d9a82
mov byte [eax], 0
jmp 0x4d9a99
inc edx
mov al, byte [edx]
test al, al
jne 0x4d9a77
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
ret 4