joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [esp + 0x418]
test esi, esi
jne 0x4cc86c
xor al, al
pop esi
add esp, 0x410
ret
mov ecx, dword [esp + 0x41c]
test ecx, ecx
push ebx
push edi
je 0x4cc9ed
call fcn.00495de0
mov ebx, eax
call fcn.004c80c0
test al, al
je 0x4cc94f
lea eax, [esp + 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x4cca46
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 0x4cca46
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b5740
mov edi, eax
add esp, 8
test edi, edi
je 0x4cca46
cmp ebx, 5
jle 0x4cc90f
mov edx, esi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cc8f0
push edi
call fcn.00527b30
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
push 0
push edi
call fcn.004d70d0
push edi
mov ebx, eax
call fcn.00527b30
add esp, 0xc
test ebx, ebx
je 0x4cca46
mov edx, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cc930
push ebx
call fcn.00527b30
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 0x4cca46
lea edx, [esp + 0xc]
push edx
push 0
push 0x544f28
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cca46
cmp ebx, 5
lea ecx, [esp + 0xc]
jle 0x4cc9cf
push 0
push 6
push ecx
call fcn.004b5830
add esp, 0xc
test eax, eax
je 0x4cca46
mov ecx, eax
sub esi, eax
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4cc9b0
push eax
call fcn.00527b30
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 0x4cc9d7
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 0x4cca46
lea eax, [esp + 0xc]
push eax
push 0
push 0x544f28
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cca46
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 0x4cca30
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 0x4ccc30
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 0x4ccdd0
call fcn.00495de0
mov ebx, eax
call fcn.004c80c0
test al, al
je 0x4ccd2f
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 0x4cce39
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 0x4cce2e
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004b5740
mov edi, eax
add esp, 8
test edi, edi
je 0x4cce2e
cmp ebx, 5
jle 0x4cccf9
mov ecx, dword [esp + 0x81c]
push edi
call fcn.00434770
push edi
call fcn.00527b30
add esp, 4
jmp 0x4cce2e
push 0
push edi
call fcn.004d70d0
push edi
mov ebx, eax
call fcn.00527b30
add esp, 0xc
test ebx, ebx
je 0x4cce2e
mov ecx, dword [esp + 0x81c]
push ebx
call fcn.00434770
push ebx
call fcn.00527b30
add esp, 4
jmp 0x4cce2e
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push 0x544f48
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4cce39
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 0x544f3c
push edx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4ccdc9
cmp ebx, 5
jle 0x4ccdb8
push eax
lea eax, [esp + 0x1c]
push 6
push eax
call fcn.004b5830
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4ccdc9
mov ecx, dword [esp + 0x81c]
push edi
call fcn.00434770
push edi
call fcn.00527b30
mov edx, dword [esp + 0x10]
add esp, 4
push edx
jmp 0x4cce33
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x820]
call fcn.00434770
mov edx, dword [esp + 0xc]
push edx
jmp 0x4cce33
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x544f48
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4cce39
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 0x544f3c
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4cce2e
mov ecx, dword [esp + 0x81c]
lea edx, [esp + 0x18]
push edx
call fcn.00434770
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 0x4cda90
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 0x4cdb0f
cmp dword [esp + 0xc], 5
jb 0x4cdb0f
cmp dword [esp + 0x10], 1
jb 0x4cdb0f
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 0x4cdb05
cmp dword [esp + 8], 1
jne 0x4cdb05
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x200a
call esi
test eax, eax
je 0x4cdb05
cmp dword [esp + 4], 2
jne 0x4cdb05
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 0x4cfaa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x130
push esi
push 0x105
lea eax, [esp + 0x20]
mov esi, ecx
push eax
mov dword [0x560dec], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4cfb3b
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 8]
call fcn.004350d0
push 0x5c
lea ecx, [esp + 8]
call fcn.00434550
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x14]
call fcn.004350f0
push str.MacromedFlash_
lea ecx, [esp + 0x14]
call fcn.00434890
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0041c5b0
test al, al
jne 0x4cfb14
mov ecx, dword [esp + 4]
push ecx
mov ecx, esi
call fcn.0041c5b0
mov edx, dword [esp + 0x10]
push edx
call fcn.00434dd0
mov dword [esi + 0x860], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00527b30
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00527b30
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 0x4cfc60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
call fcn.004f9120
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.0041bd50
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 0x4cfd25
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4cfd25
push ebx
push 0x54e1b0
push 3
push 0
push 0x54e1a0
mov byte [esi + 0x88c], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4cfd25
mov ecx, dword [ebx]
lea edi, [esi + 0x888]
push edi
push 0x5451cc
push ebx
call dword [ecx]
cmp dword [edi], 0
je 0x4cfd25
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 0x4cfe60
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 0x4cfecd
cmp ebx, 0xff
jg 0x4cfecd
cmp ebx, 0x7f
jg 0x4cfec6
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x4cfeb6
test al, al
je 0x4cfec6
push ebx
call fcn.00435450
add esp, 4
test al, al
jne 0x4cfeba
push ebx
mov ecx, esi
call fcn.004cfd40
movzx ebx, al
pop esi
mov al, bl
pop ebx
ret 4
test al, al
jne 0x4cfea4
movzx eax, bl
movzx ebx, byte [eax + 0x53cee8]
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 0x4d07f0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, eax
cmp byte [esi], 0
je 0x4d0831
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea edi, [esp + 0xc]
sub edi, esi
lea esp, [esp]
cmp byte [esi], 0x5c
jne 0x4d0822
push 0
lea eax, [esp + 0x10]
push eax
mov byte [edi + esi], 0
call ebx
mov cl, byte [esi]
mov al, byte [esi + 1]
mov byte [edi + esi], cl
inc esi
test al, al
jne 0x4d0810
pop edi
pop ebx
pop esi
add esp, 0x104
ret
Function at 0x4d14e0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
mov esi, ecx
call fcn.0043bee0
xor ebx, ebx
push str.MacromediaMutexOmega
push 1
push ebx
mov dword [esi], 0x54592c
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 0x4d15af
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 0x4d15a5
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 0x4d1592
cmp eax, ebx
je 0x4d15a5
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 0x4d15a5
cmp eax, ebx
je 0x4d15a5
cmp dword [eax], 1
je 0x4d15a5
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 0x4d15dd
mov eax, dword [esi + 0x24]
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4d15c8
push eax
call edi
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4d15d5
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 0x4d2610
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d2687
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 0x4d267c
cmp dword [esp + 8], 4
jne 0x4d267c
mov eax, dword [esp]
test eax, eax
jbe 0x4d267c
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 0x4d3520
Capabilities:
Log keystrokes via polling

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

Disassembly:
mov eax, dword [0x561674]
sub esp, 0x190
cmp eax, 1
jne 0x4d4ce7
add esp, 0x190
ret
cmp eax, 2
jne 0x4d4cf5
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 0x4d4e48
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push esi
call edi
push str.WSAStartup
push esi
mov dword [0x561628], eax
call edi
push str.listen
push esi
mov dword [0x56162c], eax
call edi
push str.closesocket
push esi
mov dword [0x561630], eax
call edi
push str.bind
push esi
mov dword [0x561634], eax
call edi
push str.htons
push esi
mov dword [0x561638], eax
call edi
push str.htonl
push esi
mov dword [0x56163c], eax
call edi
push str.socket
push esi
mov dword [0x561640], eax
call edi
push str.WSAAsyncSelect
push esi
mov dword [0x561644], eax
call edi
push str.accept
push esi
mov dword [0x561648], eax
call edi
push str.WSAGetLastError
push esi
mov dword [0x56164c], eax
call edi
push str.WSAAsyncGetHostByName
push esi
mov dword [0x561650], eax
call edi
push str.inet_addr
push esi
mov dword [0x561654], eax
call edi
push str.connect
push esi
mov dword [0x561658], eax
call edi
push str.send
push esi
mov dword [0x56165c], eax
call edi
push str.sendto
push esi
mov dword [0x561660], eax
call edi
push str.recv
push esi
mov dword [0x561664], eax
call edi
push str.recvfrom
push esi
mov dword [0x561668], eax
call edi
push str.WSACancelAsyncRequest
push esi
mov dword [0x56166c], eax
call edi
mov dword [0x561670], eax
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x56162c]
test eax, eax
pop edi
jne 0x4d4e48
mov ax, word [esp + 4]
cmp al, 1
jne 0x4d4e42
cmp ah, al
jne 0x4d4e42
mov dword [0x561674], 1
mov eax, 1
pop esi
add esp, 0x190
ret
call dword [0x561628]
mov dword [0x561674], 2
xor eax, eax
pop esi
add esp, 0x190
ret

Function at 0x4d4ea0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 1
jne 0x4d4ee6
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 0x4d4ee6
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 [0x561664]
pop esi
ret 0x14
xor eax, eax
pop esi
ret 0x14
Function at 0x4d4ef0
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 0x4d4f76
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 0x4d4f76
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 [0x561664]
pop esi
add esp, 0x10
ret 0x14
xor eax, eax
pop esi
add esp, 0x10
ret 0x14

Function at 0x4d50b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4d50db
cmp dword [0x561674], 1
jne 0x4d50db
cmp dword [ebp], 0xffffffff
jne 0x4d50ea
push 0
push 1
push 2
call dword [0x561644]
mov dword [ebp], eax
cmp dword [ebp], 0xffffffff
jne 0x4d50ea
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 0x4d517b
mov edi, 0x53d688
mov esi, ebx
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4d517b
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4d5189
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4d5155
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 0x4d5189
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 [0x56165c]
test eax, eax
jne 0x4d5149
mov al, byte [esp + 0x2c]
test al, al
jne 0x4d51c2
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 0x4d5580
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.0044dbb0
add esp, 8
test al, al
je 0x4d572a
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push 1
push ebp
push edx
call fcn.0044dc30
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x4d55d6
mov eax, dword [esp + 0x48]
push ebp
push eax
mov ecx, edi
call fcn.004d54e0
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.004614e0
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.00461500
mov ecx, esi
call fcn.00461640
push esi
call fcn.00527b30
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 0x4d6ca0
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 0x4d6e1a
push esi
push edi
push eax
call fcn.00527b30
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 5
mov dword [ebx + 4], 0
jle 0x4d6da1
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4d6d03
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4d6d2f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.004b5740
add esp, 8
jmp 0x4d6d25
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4d6d2f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 6
push eax
call fcn.004b5830
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 0x4d6e0f
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6d40
sub eax, edx
mov edi, eax
cmp byte [esi], 0
je 0x4d6e0f
lea ecx, [esp + 0x10]
push ecx
lea edx, [edi + esi]
push edx
push esi
call fcn.004b5170
add esp, 0xc
cmp word [esp + 0x10], 0xd
jne 0x4d6d8b
cmp byte [esi], 0
mov eax, esi
je 0x4d6d86
mov cl, byte [eax + 1]
test cl, cl
je 0x4d6d86
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d6d75
mov byte [eax], 0
jmp 0x4d6d8d
add esi, eax
cmp byte [esi], 0
jne 0x4d6d54
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 0x4d6dda
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6db2
sub eax, edx
inc eax
push eax
call fcn.00439320
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 0x4d6dd0
mov edx, dword [ebx + 4]
test edx, edx
je 0x4d6e0f
mov al, byte [edx]
test al, al
je 0x4d6e0f
cmp al, 0xd
jne 0x4d6e08
cmp byte [edx], 0
mov eax, edx
je 0x4d6e03
mov cl, byte [eax + 1]
test cl, cl
je 0x4d6e03
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d6df2
mov byte [eax], 0
jmp 0x4d6e09
inc edx
mov al, byte [edx]
test al, al
jne 0x4d6de7
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
ret 4