joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fda10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x53b0b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00522a2d
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00522a2d
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004fe530
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4fe580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53b190
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0052ee51
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4fe5b3
xor al, al
jmp 0x4fe6df
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4fe5d5
xor al, al
jmp 0x4fe6df
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4fe5e8
xor al, al
jmp 0x4fe6df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4fe5fc
xor al, al
jmp 0x4fe6df
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00522af2
test eax, eax
jne 0x4fe630
xor al, al
jmp 0x4fe6df
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x8c7454
mov dword [esp + 0x20], ebp
call fcn.0052ee51
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0052b9e3
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0052ba3a
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4fe6c4
mov ax, word [ebx]
test ax, ax
je 0x4fe6b6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004fe700
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4fe69a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0052ba3a
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4fec00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0052d146
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4fec46
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00500a48
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x8ee6c8
push ecx
call fcn.00502a0f
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x519c60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x53c550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0050eb26
mov eax, dword [0x8cb020]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0050ea58
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0051a760
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x519d07
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x519cfe
cmp al, 0xff
je 0x519cfe
dec al
mov byte [ecx], al
jmp 0x519d07
push ecx
call fcn.00524673
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x519d38
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x519d2f
cmp al, 0xff
je 0x519d2f
dec al
mov byte [ecx], al
jmp 0x519d38
push ecx
call fcn.00524673
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x526d52
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x526d8a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00524d64
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00524d3c
jmp 0x526d96
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5286cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x52870e
call fcn.0052ee51
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52870e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x528705
xor eax, eax
jmp 0x528716
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052871c
pop edi
pop esi
pop ebx
ret 4

Function at 0x52f381
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x52f3af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52f3cd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052f2e7
jmp 0x52f3cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52f3cd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052f2e7
test edi, edi
mov eax, edi
jne 0x52f3b7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x531c3f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x531c67
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x531c78
push 2
call edi
test ax, ax
jge 0x531c78
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00526388
cmp dword [esi + 0x30], ebx
jne 0x531d52
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00526388
cmp eax, dword [esp + 0x34]
jne 0x531d52
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x531cee
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x531d33
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x531d52
cmp eax, 0x205
je 0x531d52
cmp eax, 0x201
je 0x531d52
cmp eax, 0x204
je 0x531d52
cmp eax, ebx
jne 0x531d19
cmp dword [esp + 0x1c], 0x1b
je 0x531d52
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x9450b4]
jbe 0x531d48
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x531cab
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401bb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b9b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 2
push 0x40d4d0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004023e0
push eax
push 0x80
lea eax, [ebp - 0x94]
push eax
push 0x40d4bc
lea ecx, [ebp - 0x14]
call fcn.004023e0
push eax
lea ecx, [ebp + 0xc]
call fcn.004023e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x40d4bc
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x401c61
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x98]
call fcn.0040afc6
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040af78
mov ecx, dword [ebp - 0x9c]
or ecx, 1
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401cd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ba01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 2
push str.forceUpdate
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004023e0
push eax
push 0x80
lea eax, [ebp - 0x94]
push eax
push 0x40d4bc
lea ecx, [ebp - 0x14]
call fcn.004023e0
push eax
lea ecx, [ebp + 0xc]
call fcn.004023e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::Empty
lea ecx, [ebp - 0x94]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x401d87
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x98]
call fcn.0040afc6
push 0x40d4e8
lea eax, [ebp - 0x98]
push eax
call fcn.00402400
and eax, 0xff
test eax, eax
je 0x401df8
push 0x40d4dc
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x9c]
or ecx, 1
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x401ec6
push 0x80
push 0
lea edx, [ebp - 0x94]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40d4d0
lea ecx, [ebp - 0x14]
call fcn.0040afc6
lea ecx, [ebp + 0x10]
call fcn.004023e0
push eax
push 0x80
lea eax, [ebp - 0x94]
push eax
push 0x40d4bc
lea ecx, [ebp - 0x14]
call fcn.004023e0
push eax
lea ecx, [ebp + 0xc]
call fcn.004023e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x94]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x401e72
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x98]
call fcn.0040afc6
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040af78
mov ecx, dword [ebp - 0x9c]
or ecx, 1
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402300
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov word [ebp - 0xc], 2
lea eax, [ebp - 0x19c]
push eax
mov cx, word [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40233e
push 0
push 0
push 0x40d510
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x19c]
and edx, 0xff
cmp edx, 2
je 0x402363
push 0
push 0
push 0x40d4f8
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bad9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x40277e
xor eax, eax
jmp 0x4028f0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x908], 0
je 0x402792
mov ecx, dword [ebp - 0x10]
call fcn.00402cb0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x804], edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x910], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x910], 0
jne 0x4027d8
push 0
push 0x40d528
push str.gethostbyname__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4028f0
push 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x910]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x804]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1d]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x1e]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x1f]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x20]
and eax, 0xff
push eax
push str._d._d._d._d
mov ecx, dword [ebp - 0x10]
add ecx, 0x808
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
push 0x10
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x90c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4028de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
push str.connect__
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0x40d528
lea ecx, [ebp - 0x2c]
call fcn.004023e0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x30]
jmp 0x4028f0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x908], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x908], 0
jne 0x402bcc
xor eax, eax
jmp 0x402c3b
cmp dword [ebp + 8], 0
jne 0x402bdb
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x402bf3
mov edx, dword [ebp - 4]
add edx, 4
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp + 0xc], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90c]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x402c2a
push 0
push 0x40d528
push str.send__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402c3b
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00402df0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x908], 0
jne 0x402c6c
xor eax, eax
jmp 0x402c9a
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x90c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x402c97
mov ecx, dword [ebp - 4]
call fcn.00402cb0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402d80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x402d9b
mov dword [ebp + 0xc], 0x1006
jmp 0x402da2
mov dword [ebp + 0xc], 0x1005
push 4
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402de2
push 0
push 0x40d528
push str.setsockopt__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402de7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x918], 0
jne 0x402ed8
mov byte [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x402ebf
cmp dword [ebp - 0xc], 0x400
jge 0x402ebf
push 0
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90c]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ecx + 0x404], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jl 0x402eba
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x400]
cmp edx, 0xd
jne 0x402eba
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax + 0x401]
cmp ecx, 0xa
jne 0x402eba
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx + 0x402]
cmp eax, 0xd
jne 0x402eba
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x403]
cmp edx, 0xa
jne 0x402eba
mov dword [ebp - 0x10], 1
jmp 0x402e1e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x91c], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x918], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x91c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
add eax, 0x404
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4034ca
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
jmp 0x4034cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8