joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push ecx
mov byte [eax], bl
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
jne 0x405f6c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0xc]
cmp dword [edx + ebx*4], 0
je 0x406063
push 0x42d1a8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
xor esi, esi
movsx eax, word [edi + 0xa]
cmp esi, eax
jge 0x405fdb
mov ecx, dword [edi + 0xc]
xor eax, eax
mov edx, dword [ecx + ebx*4]
lea ecx, [ebp - 0x24]
mov al, byte [edx + esi]
push eax
push 0x42bb54
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
inc esi
jmp 0x405f88
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
cmp eax, 4
jle 0x406057
dec eax
push 0x3a
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push eax
push 0x42bb50
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [esi + eax]
push 0x42b080
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp - 0x14]
add esp, 0xc
add esi, dword [edx - 8]
mov dword [ebp - 0x18], esi
inc ebx
jmp 0x405f6c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406380
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423cf0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4063f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x4063f9
mov edx, dword [esp + 0x28]
push 0x42b7cc
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40642c
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x406610
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc]
push 0x100
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x407fb0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
lea eax, [esp + 0xc]
push esi
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov ebp, ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40804c
lea ecx, [ebp + 0xaba]
lea esi, [ebp + 0x5b0]
push edi
mov dword [esp + 0x10], ecx
add ebp, 0x1ec4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40803c
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 3
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
inc ebx
add ebp, 4
add edx, 0x201
add esi, 0x81
cmp ebx, 0xa
mov dword [esp + 0x10], edx
jl 0x407ff8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
pop edi
mov eax, dword [ebp + 0x584]
mov ecx, dword [ebp + 0x580]
lea esi, [ebp + 0x580]
cmp eax, ecx
je 0x4080b5
mov eax, dword [ebp + 0x588]
test eax, eax
jne 0x4080b5
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4080b5
mov edx, dword [esp + 0xc]
push 4
push esi
push 4
push eax
push str.SyncMode5
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40aaa0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x28
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 8]
push 0x42b080
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push 0
push 0x40a750
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0x18
pop edi
pop esi
ret 4

Function at 0x40ca00
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x424298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0040c250
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x40ca50
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x427bd8
push ecx
mov byte [esp + 0x13], al
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x40c740
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x40ca91
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x427ac8
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40cab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x427ac8
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40cae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x427ac8
push ecx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, edi
mov dword [esi + 0x1c], 1
call fcn.0040c260
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40d0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d0d8
cmp dword [esp + 0x10], 4
setne al
pop ecx
ret
mov eax, 2
pop ecx
ret

Function at 0x40d0e0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x40d100
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d138
cmp dword [esp + 0x10], 1
setne al
pop ecx
ret
mov eax, 2
pop ecx
ret

Function at 0x40d140
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret

Function at 0x40ec60
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x410f40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, ecx
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 0xa
cmp esi, 0x2800
jge 0x411050
mov eax, dword [ebp + 0x54]
mov cl, byte [eax + 0xc]
test cl, cl
jne 0x411050
mov cl, byte [0x42d514]
test cl, cl
jne 0x411050
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, dword [eax + 8]
call fcn.00422650
test eax, eax
jle 0x411050
mov dl, byte [esp + 0x13]
mov byte [esi + edi], dl
inc esi
cmp esi, 4
jl 0x410f69
cmp byte [esi + edi - 4], 0xd
jne 0x410f69
cmp byte [esi + edi - 3], bl
jne 0x410f69
cmp byte [esi + edi - 2], 0xd
jne 0x410f69
cmp byte [esi + edi - 1], bl
jne 0x410f69
mov byte [esi + edi], 0
mov al, byte [0x42d521]
test al, al
je 0x41104c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x58]
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
push ecx
push str..debug_response__d.dat
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
push eax
call fcn.00401400
mov ecx, dword [esp + 0x34]
push 0x42b7cc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x41103b
push ebp
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x411053
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41b9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov ecx, 9
mov edx, str.netbladeprotected
push ebx
push ebp
push esi
push edi
mov esi, str.0123456789abcdefghijklmnopqrstvuwxyz
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov eax, edi
sub edx, edi
mov esi, 0xf
movsx ebx, byte [edx + eax]
movsx ebp, byte [eax]
imul ebx, ebp
and ebx, 0x8000007f
jns 0x41ba33
dec ebx
or ebx, 0xffffff80
inc ebx
and ebx, 0xff
add ecx, ecx
xor ecx, ebx
inc eax
dec esi
jne 0x41ba1c
and ecx, 0x800000ff
jns 0x41ba51
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov dl, byte [edi + 0xf]
sar eax, 4
cmp dl, byte [esp + eax + 0x10]
jne 0x41ba87
and ecx, reloc.WS2_32.dll_ntohs
jns 0x41ba72
dec ecx
or ecx, 0xfffffff0
inc ecx
mov al, byte [edi + 0x10]
mov dl, byte [esp + ecx + 0x10]
cmp al, dl
jne 0x41ba87
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x41d910
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x425158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1457c]
mov dword [esp + 0x38], 0
test eax, eax
je 0x41d945
call fcn.0041d850
mov ecx, esi
call fcn.0041d880
test eax, eax
jne 0x41d974
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
lea eax, [esp + 0x40]
lea ecx, [esi + 0x8e0]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
push ecx
mov dword [esi + 0x8e4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41d9c3
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov edx, dword [eax + 0xc]
push edi
push ebx
mov eax, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xf]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xd]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
and edi, 0xff
push eax
push edi
lea ecx, [esp + 0x24]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0x14584]
add esp, 0x18
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov edi, dword [eax + 0x30]
push ecx
push edx
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x24]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esi + 8]
call fcn.004226c0
test eax, eax
pop edi
jne 0x41da63
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esi + 8]
push 0x15f90
call fcn.00422570
lea ecx, [esp + 0x40]
mov dword [esi + 0x1457c], 1
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x41dc20
Capabilities:
Check mutex on windows

Disassembly:
push str.NetbladeIf_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x41dc34
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x421140
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [0x42da7c]
push ebx
push esi
cmp eax, 2
push edi
jne 0x421226
call fcn.004212f0
test eax, eax
je 0x421221
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x421295
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4211cf
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x42d1a8
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42da84], 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x421295
mov edi, 0x42d1a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
jmp 0x42127f
mov eax, dword [0x42da84]
test eax, eax
jne 0x421221
mov edi, 0x42d1a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x421295
mov edi, 0x42d1a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x42da7c]
test eax, eax
jbe 0x421295
cmp eax, 2
ja 0x421295
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x42128b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x421295
mov edi, 0x42d1a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x421295
mov edi, 0x42d1a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x421b70
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WiseNetbladeIf
push 0
mov dword [0x42da88], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x42da88]
push eax
push str.WiseNetbladeIf
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x120]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x421bef
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x108
ret

Function at 0x4221a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4221ca
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov eax, esi
mov word [0x42da9c], cx
mov dword [esi], 0xffffffff
pop esi
add esp, 0x190
ret

Function at 0x422280
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x422298
call fcn.004222d0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
test eax, eax
jge 0x4222b0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
neg eax
dec eax
pop ecx
ret

Function at 0x422320
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x422338
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
test esi, esi
mov dword [esp + 0x14], eax
jne 0x42235f
mov dword [esp + 0xc], esi
jmp 0x422391
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x422391
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42232e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x42238b
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
pop edi
test eax, eax
setl cl
dec ecx
pop esi
mov eax, ecx
add esp, 0x10
ret 8
Function at 0x4223d0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x4223e8
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x422437
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4223de
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x422431
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8

Function at 0x4224a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x4224b6
xor eax, eax
pop edi
pop ecx
ret
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
jge 0x4224cc
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0x260
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4224f0
mov ecx, eax
call fcn.00422200
mov esi, eax
test esi, esi
je 0x4224f2
mov dword [esi + 4], edi
jmp 0x422502
xor esi, esi
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop esi
pop edi
pop ecx
ret

Function at 0x422570
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x42da9c]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x422584
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x4225b5
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
ret 4