joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449f71
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x449f82
mov byte [ebx], 0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x449f92
xor eax, eax
jmp 0x449fee
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x449f8e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x449fe6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x449fe5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
test ebx, ebx
je 0x449fdc
mov eax, dword [ebp + 0xc]
cmp eax, esi
jb 0x449fd1
mov eax, esi
push eax
push edi
push ebx
call fcn.00452790
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44a080
Capabilities:
Log keystrokes
Open clipboard

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x44a0e7
cmp dword [esp + 0x1c], 1
jl 0x44a0e7
push ebx
push ebx
mov byte [eax], bl
call fcn.00449f71
mov esi, eax
mov ebp, 0x1000
cmp esi, ebx
jle 0x44a0fd
lea eax, [esi + 0x100]
cmp eax, ebp
jg 0x44a0ba
mov eax, ebp
push 1
push eax
call fcn.00452b24
mov edi, eax
pop ecx
pop ecx
mov dword [esp + 0x10], edi
cmp edi, ebx
je 0x44a0e7
push esi
push edi
call fcn.00449f71
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x44a0f1
push edi
call fcn.00452756
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebx
push 1
push ebx
push 0x11
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x11
call edi
push ebx
push ebx
push ebx
push 0x43
call esi
push eax
push 0x43
call edi
push ebx
push 2
push ebx
push 0x43
call esi
push eax
push 0x43
call edi
push ebx
push 3
push ebx
push 0x11
call esi
push eax
push 0x11
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
call fcn.00449f71
mov edi, eax
lea eax, [edi + 0x100]
cmp eax, ebp
jg 0x44a15c
mov eax, ebp
push 1
push eax
call fcn.00452b24
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x44a17f
cmp dword [esp + 0x10], ebx
je 0x44a0e7
push dword [esp + 0x10]
jmp 0x44a0e1
push edi
push esi
call fcn.00449f71
mov ebp, dword [esp + 0x1c]
push esi
dec ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp ebp, eax
jge 0x44a19b
mov eax, ebp
jmp 0x44a1a3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00452756
mov esi, dword [esp + 0x14]
pop ecx
cmp esi, ebx
je 0x44a1cb
push esi
call fcn.00449ff4
push esi
call fcn.00452756
pop ecx
mov eax, edi
jmp 0x44a0e9
Function at 0x44aa6e
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0xa0]
push esi
mov esi, dword [ebp + 0x9c]
push edi
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0xff
push edi
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.00452e00
add esp, 0xc
test esi, esi
je 0x44ab1e
push esi
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x44ab1e
test ebx, ebx
je 0x44ab1e
push ebx
call esi
test eax, eax
je 0x44ab1e
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x80]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x70]
push eax
push 0
call fcn.00448338
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x7c]
push 0x16
push eax
add edi, 0x14
push edi
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x94
leave
ret 8
Function at 0x44abb4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
push edi
mov edi, 0x1ff
xor ebx, ebx
push edi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00452e00
mov eax, dword [ebp + 0x198]
add esp, 0xc
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
cmp eax, ebx
je 0x44ad2b
cmp byte [eax], bl
je 0x44ad2b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
cmp eax, 0x1e0
jge 0x44ac58
push 0x25
push dword [ebp + 0x198]
call fcn.00452d30
pop ecx
pop ecx
test eax, eax
je 0x44ac58
lea eax, [ebp + 0x19c]
push eax
push dword [ebp + 0x198]
call fcn.0044a1d2
test eax, eax
je 0x44ac83
lea eax, [ebp + 0x19c]
push eax
push dword [ebp + 0x198]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
jmp 0x44ac83
push dword [ebp + 0x198]
call esi
inc eax
cmp eax, edi
jle 0x44ac69
mov eax, edi
jmp 0x44ac72
push dword [ebp + 0x198]
call esi
inc eax
push eax
push dword [ebp + 0x198]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp - 0x78], 0x2a
jne 0x44acbf
cmp byte [ebp - 0x77], 0x5c
jne 0x44acbf
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
jle 0x44acb0
lea eax, [ebp - 0x78]
push eax
call esi
push eax
lea eax, [ebp - 0x77]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00452ea0
add esp, 0xc
push str.HKEY_CURRENT_USERSOFTWARE_vTask
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.00449673
lea eax, [ebp - 0x78]
push eax
call fcn.004483cc
lea ecx, [ebp - 0x7c]
push ecx
push 0x20019
push ebx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ad2b
xor esi, esi
cmp dword [ebp + 0x194], 1
mov dword [ebp - 0x80], edi
jne 0x44ad00
push edi
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x44ad16
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc esi
cmp eax, ebx
je 0x44ace3
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 1]
cmp eax, ebx
jge 0x44ad2d
xor eax, eax
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x18c
leave
ret
Function at 0x44c262
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov edi, dword [ebp + 0x98]
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x77]
push ebx
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x78], bl
call fcn.00452e00
add esp, 0xc
cmp esi, ebx
je 0x44c3a8
cmp byte [esi], bl
je 0x44c3a8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [eax + 1]
mov eax, 0xff
cmp ecx, eax
jg 0x44c2d4
push dword [ebp - 0x7c]
call esi
inc eax
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
push ebx
push 0x464a50
push 0x46493c
lea eax, [ebp - 0x78]
push eax
call fcn.0044923e
cmp edi, ebx
je 0x44c343
cmp byte [edi], bl
je 0x44c343
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment_s
push edi
call esi
push eax
push edi
push 1
push 2
call fcn.0044ad45
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push str.HKEY_CURRENT_USEREnvironment_s
push edi
call esi
push eax
push edi
push 1
push 2
call fcn.0044ad45
add esp, 0x18
jmp 0x44c37a
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment_s
push ebx
push ebx
push ebx
push 4
call fcn.0044ad45
lea eax, [ebp - 0x78]
push eax
push str.HKEY_CURRENT_USEREnvironment_s
push ebx
push ebx
push ebx
push 4
call fcn.0044ad45
add esp, 0x30
lea eax, [ebp - 0x80]
push eax
push 0x1388
push 2
push str.Environment
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x7c]
jmp 0x44c3aa
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x8c
leave
ret 8
Function at 0x44c5b3
Capabilities:
Log keystrokes
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 0xfa
mov dword [esp + 0x10], edi
cmp eax, ebx
jge 0x44c5cd
mov eax, ebx
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push eax
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x44c616
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp ebp, edi
je 0x44c616
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call ebp
cmp esi, edi
je 0x44c639
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c639
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call ebp
cmp esi, edi
je 0x44c652
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c652
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call ebp
cmp esi, edi
je 0x44c69e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c69e
push edi
push esi
call fcn.0044a2f8
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push edi
push edi
push edi
push 0x12
call esi
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push edi
push edi
push 0x73
pop ebp
push ebp
call ebx
push eax
push ebp
call esi
push edi
push 2
push edi
push ebp
call ebx
push eax
push ebp
call esi
push edi
push 2
push edi
push 0x12
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x44e40c
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [0x485728], eax
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x20]
test al, 0x10
je 0x44e44a
push ebp
call fcn.00452e90
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x44e473
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44e473
mov eax, esi
jmp 0x44e5cc
xor ebx, ebx
cmp edi, ebx
jne 0x44e477
test eax, 0x4000
je 0x44e477
test al, 0x21
jne 0x44e463
test al, 2
je 0x44e477
push ebx
push ebp
jmp 0x44e465
push ebp
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
jne 0x44e5cc
mov eax, dword [esp + 0x14]
mov dword [0x485564], eax
mov dword [0x485458], ebx
mov dword [0x485448], ebx
mov dword [0x48544c], ebx
mov dword [0x485710], ebx
cmp edi, ebx
je 0x44e4a9
push edi
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [0x48545c], edi
test eax, eax
jne 0x44e4af
mov dword [0x48545c], ebx
cmp ebp, ebx
jne 0x44e4c6
test dword [0x485564], 0x700
jne 0x44e4c6
xor eax, eax
jmp 0x44e5cc
mov al, byte [0x485564]
xor edi, edi
mov byte [0x485568], bl
mov esi, 0x466424
test al, 0x21
je 0x44e513
push ebx
push 1
mov edi, 0x485460
push 0x103
test al, 0x20
je 0x44e4f4
push 0x485568
jmp 0x44e4f5
push edi
push ebx
push esi
push ebp
call fcn.0044cdae
push ebx
push 1
push 0x464a50
push 0x468d40
push edi
call fcn.0044923e
xor edi, edi
inc edi
test byte [0x485564], 2
je 0x44e52f
push ebx
push 1
push 0x3f
push 0x485670
push edi
push esi
push ebp
call fcn.0044cdae
inc edi
test byte [0x485564], 4
je 0x44e54b
push ebx
push 1
push 0x1f
push 0x4856b0
push edi
push esi
push ebp
call fcn.0044cdae
inc edi
test byte [0x485564], 8
je 0x44e567
push ebx
push 1
push 0x1f
push 0x4856d0
push edi
push esi
push ebp
call fcn.0044cdae
inc edi
test byte [0x485564], 0x10
je 0x44e5bb
push ebx
push 1
push 0x1f
mov ebx, 0x4856f0
push ebx
push edi
push esi
push ebp
call fcn.0044cdae
mov al, byte [0x4856f0]
cmp al, 0x23
je 0x44e5a5
cmp al, 0x78
je 0x44e5a5
cmp al, 0x58
je 0x44e5a5
cmp al, 0x30
jne 0x44e5bb
mov al, byte [0x4856f1]
cmp al, 0x78
je 0x44e5a5
cmp al, 0x58
jne 0x44e5bb
push ebx
call fcn.00424471
push eax
push 0x464bf4
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebp
push 0x44e3a7
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x485458]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x44e5d3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
call fcn.004487fc
mov dword [ebp - 0x18], eax
cmp eax, 2
jl 0x44e63e
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44e60f
xor al, al
jmp 0x44e66c
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x18], 1
jl 0x44e65d
test byte [ebp + 8], 4
je 0x44e65d
xor dword [ebp + 8], 4
push esi
push dword [ebp + 0xc]
push esi
push 0x400
call fcn.0044e40c
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00452dee
leave
ret 8
Function at 0x44ec4e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x408], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00452e00
add esp, 0xc
test ebx, ebx
je 0x44ecbd
cmp byte [ebx], 0
je 0x44ecbd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
inc eax
cmp eax, esi
jle 0x44eca7
mov eax, esi
jmp 0x44ecab
push ebx
call edi
inc eax
push eax
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
jmp 0x44eccf
push str.http:__www.google.com
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop esi
pop ebx
test eax, eax
je 0x44ecfd
push 0
push 1
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
neg eax
sbb eax, eax
neg eax
jmp 0x44ecff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452dee
leave
ret 4

Function at 0x44f032
Capabilities:
Link many functions at runtime

Disassembly:
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x485e20], eax
cmp eax, 0x20
jae 0x44f04e
xor eax, eax
jmp 0x44f10d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.MAPILogon
push eax
call esi
xor edi, edi
mov dword [0x485c58], eax
cmp eax, edi
je 0x44f0ed
push str.MAPILogoff
push dword [0x485e20]
call esi
mov dword [0x485c3c], eax
cmp eax, edi
je 0x44f0ed
push str.MAPISendMail
push dword [0x485e20]
call esi
mov dword [0x485c38], eax
cmp eax, edi
je 0x44f0ed
push str.MAPIResolveName
push dword [0x485e20]
call esi
mov dword [0x485c30], eax
cmp eax, edi
je 0x44f0ed
push str.MAPIFreeBuffer
push dword [0x485e20]
call esi
mov dword [0x485c34], eax
cmp eax, edi
je 0x44f0ed
xor eax, eax
cmp dword [esp + 0x14], edi
mov esi, 0x485c54
setne al
push esi
push edi
add eax, 2
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call dword [0x485c58]
cmp eax, 1
jne 0x44f0f1
xor eax, eax
jmp 0x44f10b
cmp eax, edi
jne 0x44f0fa
xor eax, eax
inc eax
jmp 0x44f10b
push esi
push edi
push edi
push edi
push edi
push edi
call dword [0x485c58]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
ret 0xc
Function at 0x44f346
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x1f98]
mov eax, 0x2018
call fcn.004550e0
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x1f94], eax
push ebx
push esi
mov esi, dword [ebp + 0x1fa0]
xor ebx, ebx
mov dword [ebp - 0x80], esi
cmp esi, ebx
je 0x44f540
cmp byte [esi], bl
je 0x44f540
push 0x485c60
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x44f3ae
push str.WSAStartup_Error
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x44f540
mov ax, word [0x485c60]
cmp al, 2
jne 0x44f527
cmp ah, al
jne 0x44f527
or dword [0x485c40], 0xffffffff
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x44f455
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x485c40], eax
cmp eax, 0xffffffff
je 0x44f502
cmp dword [ebp + 0x1fa4], ebx
je 0x44f402
push dword [ebp + 0x1fa4]
jmp 0x44f414
push ebx
push str.mail
call dword [sym.imp.WS2_32.dll_getservbyname]
cmp eax, ebx
jne 0x44f41f
push 0x19
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
jmp 0x44f423
movzx eax, word [eax + 8]
push 2
pop ecx
mov word [ebp - 0x7a], ax
mov word [ebp - 0x7c], cx
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
push 0x10
lea eax, [ebp - 0x7c]
push eax
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x44f455
or dword [0x485c40], 0xffffffff
cmp dword [0x485c40], 0xffffffff
je 0x44f502
mov esi, 0xfff
push esi
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.00452e00
push esi
lea eax, [ebp + 0xf95]
push ebx
push eax
mov byte [ebp + 0xf94], bl
call fcn.00452e00
add esp, 0x18
push str.HELO
lea eax, [ebp + 0xf94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xf94]
push eax
call esi
push 0x4663d8
lea eax, [ebp + 0xf94]
push eax
call esi
push ebx
lea eax, [ebp + 0xf94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp + 0xf94]
push eax
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x44f50c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_send_error:__d
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x44f540
push str.Invalid_socket
jmp 0x44f39b
push ebx
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_recv]
xor eax, eax
inc eax
jmp 0x44f542
push str.Cant_find_a_useable_WinSock_DLL
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp + 0x1f94]
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x1f98
leave
ret 8
Function at 0x44f996
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004550e0
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, str.QUIT_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_send]
pop esi
cmp eax, 0xffffffff
jne 0x44f9ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_send_error:__d
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x44fa21
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_recv]
and dword [0x485c40], 0
mov byte [ebp + eax - 0x1004], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452dee
leave
ret

Function at 0x44fa2d
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00452e00
add esp, 0xc
cmp dword [0x485c40], ebx
je 0x44faa9
push esi
push ebx
mov esi, str.QUIT_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_send]
push ebx
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_recv]
push ebx
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_shutdown]
pop esi
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x485c40], ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret

Function at 0x44face
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
xor edx, edx
mov ecx, 0x3e8
div ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x80], eax
imul edx, edx, 0x3e8
mov eax, dword [0x485c40]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push eax
xor eax, eax
push eax
push eax
push ecx
push eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00452dee
add ebp, 0x90
leave
ret 4