joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403760
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x407413
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov dword [esp + 0x24], 0x139
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x224], 2
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
push eax
call fcn.00406a20
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
cmp al, bl
je 0x4038c8
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push 0x1f8
push eax
push ecx
call fcn.004068b0
add esp, 0x18
test al, al
je 0x4038b2
cmp dword [esp + 0x18], 0x1f8
jne 0x4038b2
push 0x40a274
lea ecx, [esp + 0x20]
call fcn.00406c4e
lea edx, [esp + 0x19a]
mov byte [esp + 0x224], 3
push edx
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x224], 2
call sub.MFC42.DLL_CString::CString
mov ebp, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x40b034]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push eax
call edi
cmp eax, 0x102
jne 0x403938
push str._____
call esi
mov ecx, dword [0x40b030]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x22c]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov byte [esp + 0x224], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403983
mov edx, dword [0x40b030]
push 0xffffffffffffffff
push edx
call edi
lea ecx, [esp + 0x22c]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov byte [esp + 0x224], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x218
ret 0xc
Function at 0x4040e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40758f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 0x10], 0
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_1
push 0
push 1
push 2
mov byte [esp + 0x38], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4041b3
xor eax, eax
push 0x1ed3
mov dword [esp + 0x1a], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x38]
mov word [esp + 0x16], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x14]
push 0x10
push edx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4041ac
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4041ac
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x40a288
lea ecx, [esp + 0x10]
call fcn.00406c4e
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x405650
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40767f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0xc], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.com1_
lea ecx, [esp + 0xc]
call fcn.00406c6c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056ca
test al, 0x10
jne 0x405738
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1d], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x21], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x25], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x29], edx
push eax
mov word [esp + 0x31], dx
mov ecx, esi
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x33], dl
call fcn.00405780
test eax, eax
je 0x40572b
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
push eax
jmp 0x405731
mov ecx, dword [esp + 8]
push ebx
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov esi, dword [esp + 0x40]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4060a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x904
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x91c]
lea ecx, [esp + 0x114]
push eax
push 0x800
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
xor eax, eax
mov cl, byte [esp + eax + 0x114]
test cl, cl
jne 0x40610f
mov cl, byte [esp + eax + 0x115]
test cl, cl
je 0x406117
inc eax
cmp eax, 0x800
jl 0x4060f9
mov edi, dword [esp + 0x918]
push 0xffffffffffffffff
push 0
mov ecx, edi
lea ebx, [eax + 1]
call sub.MFC42.DLL_CStringArray::SetSize
xor esi, esi
test ebx, ebx
jle 0x406175
mov al, byte [esp + esi + 0x114]
mov byte [esp + ebp + 0x10], al
inc ebp
test al, al
jne 0x406170
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406167
mov ecx, dword [esp + 0x918]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edi, dword [esp + 0x918]
xor ebp, ebp
inc esi
cmp esi, ebx
jl 0x406132
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret 8
Function at 0x406240
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4077d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
lea ecx, [esp + 4]
mov dword [esp + 4], 0
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str._rundll32.exe
lea ecx, [esp + 8]
call fcn.00406c6c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40638f
mov edx, dword [esp + 0x5c]
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x3c
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
je 0x40635a
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40a3d8
lea ecx, [esp + 0xc]
call fcn.00406c4e
lea ecx, [esp + 4]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x58]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc
lea ecx, [esp + 4]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x58]
push 0x40a458
mov ecx, esi
call fcn.00406c4e
mov ecx, dword [esp + 0x48]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc
Function at 0x4063d0
Capabilities:
Create thread
Resume thread

Disassembly:
push str.GlobalCSPROCESSASMSS
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4063f3
xor eax, eax
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00406530
push 8
call sub.MFC42.DLL_operatornew
add esp, 0xc
test eax, eax
je 0x406418
mov ecx, eax
call fcn.00406190
jmp 0x40641a
xor eax, eax
push ebx
push esi
push edi
push 0x1c
mov dword [0x40b14c], eax
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x40643b
mov ecx, eax
call fcn.00401c50
mov esi, eax
jmp 0x40643d
xor esi, esi
mov dword [0x40b150], esi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test al, al
je 0x406466
push 0
push 4
push esi
push 0x4046e0
push 0
push 0
call edi
mov dword [esi + 4], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test al, al
je 0x40647e
mov eax, dword [esi + 4]
push eax
call ebx
jmp 0x406485
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4064a5
mov ecx, dword [0x40b150]
push ecx
mov ecx, eax
call fcn.004026b0
mov esi, eax
jmp 0x4064a7
xor esi, esi
mov dword [0x40b154], esi
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test al, al
je 0x4064ca
push 0
push 4
push esi
push 0x4046e0
push 0
push 0
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x4064dc
mov ecx, dword [esi + 4]
push ecx
call ebx
jmp 0x4064e3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov esi, dword [0x40b14c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
test al, al
je 0x406506
push 0
push 4
push esi
push 0x4046e0
push 0
push 0
call edi
mov dword [esi + 4], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test al, al
je 0x40651e
mov eax, dword [esi + 4]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x4065e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
push 1
push 0
push 0
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
je 0x406600
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret
Function at 0x4066e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x40b020]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
xor eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], edx
push eax
push ebx
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x48], eax
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x64], eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x406752
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret
cmp eax, 0xffffffff
jne 0x4067b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4067b5
mov eax, dword [esp + 0x4c]
push 0
push eax
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp edi, 0xffffffff
je 0x4067b5
test edi, edi
je 0x4067b5
lea edx, [esp + 0x48]
lea eax, [esp + 0x20]
push edx
push 0
push ebx
push eax
push ebp
mov dword [esp + 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret

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

Disassembly:
sub esp, 0x24
mov eax, dword [0x40b020]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
push ebp
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
push edx
push ebx
lea eax, [esp + 0x20]
push 1
push eax
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x406836
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret
cmp eax, 0xffffffff
jne 0x406899
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x406899
mov ecx, dword [esp + 0x4c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp edi, 0xffffffff
je 0x406899
test edi, edi
je 0x406899
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push 0
push ebx
push ecx
push ebp
mov dword [esp + 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret
Function at 0x4069d0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], eax
push ecx
mov word [esp + 4], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 2], ax
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
setne al
add esp, 0x10
ret

Function at 0x406a20
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x407808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x13c], 0
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov esi, dword [esp + 0x14c]
test eax, eax
mov dword [esi], eax
jne 0x406a6d
mov dword [esp + 0x13c], 0xffffffff
jmp 0x406bc6
mov ebp, dword [esp + 0x144]
push 1
push ebp
call fcn.004065e0
add esp, 8
test al, al
jne 0x406a9c
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esp + 0x13c], 0xffffffff
jmp 0x406bc6
mov edx, dword [ebp]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
push ecx
push 0x8004667e
push edx
call ebx
cmp eax, 0xffffffff
jne 0x406ae2
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x13c], 0xffffffff
jmp 0x406bc6
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x148]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
lea ecx, [esp + 0x148]
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push 0x1ed3
push ecx
push edx
call fcn.004069d0
mov eax, dword [ebp]
add esp, 0xc
lea ecx, [esp + 0x18]
xor esi, esi
push ecx
lea edx, [esp + 0x34]
push esi
push edx
push esi
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jbe 0x406ba5
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x20], esi
call ebx
cmp eax, edi
je 0x406ba5
lea ecx, [esp + 0x148]
mov dword [esp + 0x13c], edi
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x406bd4
mov edx, dword [esp + 0x14c]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x13c], edi
lea ecx, [esp + 0x148]
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x4243f8
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x42441a
mov eax, 0xfffffffd
jmp 0x424492
mov ebx, dword [0xd0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x424460
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0xd0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x424488
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x424492
mov esp, ebp
pop ebp
ret 4
Function at 0x43d4c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x40f4d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f4f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f4f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f4e8
mov eax, 1
add ebx, ebx
jne 0x40f50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f500
jne 0x40f51c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f500
xor ecx, ecx
sub eax, 3
jb 0x40f530
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f5a2
mov ebp, eax
add ebx, ebx
jne 0x40f53b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f56c
inc ecx
add ebx, ebx
jne 0x40f558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f54d
jne 0x40f569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f54d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f58c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f57d
jmp 0x40f4ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f58c
add edi, ecx
jmp 0x40f4ee
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f5aa
cmp byte [edi], 5
jne 0x40f5aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f5af
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f61e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1040c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f5dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x104c4]
or eax, eax
je 0x40f618
mov dword [ebx], eax
add ebx, 4
jmp 0x40f5f9
call dword [esi + 0x104d4]
mov ebp, dword [esi + 0x104c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f652
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403098
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x403078
xor eax, eax
push ebp
push 0x403071
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030b4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403078
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x472020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474048], 0
je 0x403dc5
cmp word [0x47421c], 0xd7b2
jne 0x403d8d
cmp dword [0x474224], 0
jbe 0x403d8d
mov eax, 0x474218
call dword [0x474234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47206c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dec
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x403de1
push 0
push 0x472064
push 0x47206c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret