joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e3d0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
movzx edx, byte [eax]
shl edx, 8
push esi
movzx esi, byte [eax + 1]
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xd]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xe]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xf]
shl edx, 8
xor edx, esi
cmp dword [esp + 8], 0x80
mov dword [ecx + 0xc], edx
jne 0x40e573
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
xor eax, 0x1000000
mov esi, edx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
and eax, 0xff000000
xor eax, esi
mov esi, edx
shr esi, 0x18
movzx esi, byte [esi*4 + str.ccccwwww]
xor eax, esi
mov esi, edx
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff00
xor eax, esi
xor eax, dword [ecx]
push edi
mov edi, dword [ecx + 4]
xor edi, eax
lea esi, [ecx + 0x10]
mov dword [esi], eax
mov eax, dword [ecx + 8]
xor eax, edi
mov dword [ecx + 0x18], eax
xor eax, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x1c], eax
mov edi, 0x6d5334
mov ecx, esi
mov edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 8
mov esi, edx
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
and eax, 0xff0000
and esi, 0xff000000
xor eax, esi
mov esi, edx
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
shr esi, 0x18
movzx esi, byte [esi*4 + str.ccccwwww]
xor eax, esi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx]
lea esi, [ecx + 0x10]
xor eax, dword [edi]
add edi, 4
mov dword [esi], eax
mov edx, dword [ecx + 4]
xor edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 8]
xor eax, edx
mov dword [ecx + 0x18], eax
mov edx, dword [ecx + 0xc]
xor edx, eax
mov dword [ecx + 0x1c], edx
cmp edi, 0x6d5358
jne 0x40e4e2
pop edi
mov eax, 0xa
pop esi
ret
movzx edx, byte [eax + 0x10]
movzx esi, byte [eax + 0x11]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x12]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x13]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x15]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x14]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x16]
movzx eax, byte [eax + 0x17]
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, eax
mov dword [ecx + 0x14], edx
xor eax, eax
pop esi
ret
Function at 0x40e5c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x18]
mov esi, ecx
call fcn.0040e3d0
lea edi, [eax*4]
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x40e631
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
lea esp, [esp]
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x40e5f0
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x40e7ef
lea edx, [eax - 1]
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d3f30]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4730]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4330]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d4b30]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d3f30]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4730]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4330]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d4b30]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d3f30]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4730]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4330]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d4b30]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d3f30]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4730]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d4330]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d4b30]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x40e640
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40fb60
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
cmp dword [esi], 0
jne 0x40fbce
push str.IMGSFMGR.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
je 0x40fbcf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3d
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push 0x3e
push eax
call edi
mov ecx, dword [esi]
push 0x41
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.AFV_02
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.AFV_15
push eax
call edi
mov ecx, dword [esi]
push str.AFV_01
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.AFV_04
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410810
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
push ebx
push str.n____d___c____s_
push 0xe9
push str..MaBrowsInjector.cpp
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.MaBrowsInjector::GetHwndFromCaptionName
call fcn.00401070
add esp, 0x10
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 4
jne 0x410854
push ebp
push 0x410c70
jmp 0x410870
cmp ebx, 1
je 0x41086a
cmp ebx, 2
je 0x41086a
test ebx, ebx
jne 0x410878
push ebp
push 0x411930
jmp 0x410870
push ebp
push 0x4115f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, eax
push edi
push str.bRet____d_
push 0xf2
push str..MaBrowsInjector.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.MaBrowsInjector::GetHwndFromCaptionName
call fcn.00401070
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 0x41fdc
pop esi
add eax, 0x12345
pop ebp
ret
Function at 0x4108c0
Capabilities:
Get common file path
Get program files directory
Link many functions at runtime

Disassembly:
sub esp, 0x108
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
test ebx, ebx
jne 0x41090c
mov eax, dword [0x70ad84]
test eax, eax
je 0x410942
push eax
push str.dll_F_Already_Loaded___g_hMod_F____X_
push 0xfe
push str..MaBrowsInjector.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.MaBrowsInjector::LoadDll
call fcn.00401070
add esp, 0xc
jmp 0x410a74
cmp ebx, 1
jne 0x410927
mov eax, dword [0x70ad88]
test eax, eax
je 0x410942
push eax
push str.dll_C_Already_Loaded___g_hMod_C____X_
push 0x103
jmp 0x4108ed
cmp ebx, 4
jne 0x410942
mov eax, dword [0x70ad90]
test eax, eax
je 0x410942
push eax
push str.dll_IE_Already_Loaded___g_hMod_IE____X_
push 0x10d
jmp 0x4108ed
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jl 0x4109ae
push str.MarkanyWebDRMNoAX_bin
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 8]
push eax
push str.szInstallFilePath____s_
push 0x11a
push str..MaBrowsInjector.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.MaBrowsInjector::LoadDll
call fcn.00401070
add esp, 0xc
test ebx, ebx
jne 0x4109f2
push str.MaWebDRMForFirefox.dll
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
mov dword [0x70ad84], eax
call esi
mov dword [0x70ad94], eax
mov eax, dword [0x70ad84]
push 2
push eax
call esi
mov dword [0x70ada4], eax
jmp 0x410a73
cmp ebx, 1
jne 0x410a33
push str.MaWebDRMForChrome.dll
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push eax
mov dword [0x70ad88], eax
call esi
mov dword [0x70ad98], eax
mov eax, dword [0x70ad88]
push 2
push eax
call esi
mov dword [0x70ada8], eax
jmp 0x410a73
cmp ebx, 4
jne 0x410a73
push str.MaWebDRMForIE.dll
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
mov dword [0x70ad90], eax
call esi
mov dword [0x70ada0], eax
mov eax, dword [0x70ad90]
push 2
push eax
call esi
mov dword [0x70adb0], eax
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00606c9e
add esp, 0x108
ret
Function at 0x411f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x103
lea eax, [esp + 0x19]
push 0
mov esi, 4
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], 0
call sub.MSVCR90.dll_memset
push str.SOFTWAREMarkAnyWebDRMNoAXDebug
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
call sub.MSVCR90.dll_strcpy_s
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x20]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41202c
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.DbgLog
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41202c
cmp dword [esp + 4], eax
jbe 0x41202c
mov dword [0x70bfdc], 1
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push reloc.WS2_32.dll_accept
call esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00606c9e
add esp, 0x118
ret

Function at 0x412730
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x240
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebp
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
mov dword [esp + 0x14], 0
call sub.KERNEL32.dll_Process32First
test al, al
je 0x4127fe
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea esi, [esp + 0x34]
lea ecx, [esp + 0x138]
sub esi, ecx
jmp 0x412790
push 0x105
lea edx, [esp + 0x13c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, 0x105
lea eax, [esp + 0x138]
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x4127ce
mov cl, byte [esi + eax]
test cl, cl
je 0x4127ce
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4127b3
jmp 0x4127d2
test edx, edx
jne 0x4127d3
dec eax
push ebx
lea edx, [esp + 0x13c]
push edx
mov byte [eax], 0
call ebp
test eax, eax
jne 0x4127f6
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test al, al
jne 0x412790
jmp 0x4127fe
mov dword [esp + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00606c9e
add esp, 0x240
ret
Function at 0x415480
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
movzx edx, byte [eax]
shl edx, 8
push esi
movzx esi, byte [eax + 1]
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xd]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xe]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xf]
shl edx, 8
xor edx, esi
cmp dword [esp + 8], 0x80
mov dword [ecx + 0xc], edx
jne 0x415623
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x6d1308]
xor eax, 0x1000000
mov esi, edx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x6d1308]
and esi, 0xff0000
and eax, 0xff000000
xor eax, esi
mov esi, edx
shr esi, 0x18
movzx esi, byte [esi*4 + 0x6d1308]
xor eax, esi
mov esi, edx
and esi, 0xff
mov esi, dword [esi*4 + 0x6d1308]
and esi, 0xff00
xor eax, esi
xor eax, dword [ecx]
push edi
mov edi, dword [ecx + 4]
xor edi, eax
lea esi, [ecx + 0x10]
mov dword [esi], eax
mov eax, dword [ecx + 8]
xor eax, edi
mov dword [ecx + 0x18], eax
xor eax, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x1c], eax
mov edi, 0x6d2b0c
mov ecx, esi
mov edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 8
mov esi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x6d1308]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x6d1308]
and eax, 0xff0000
and esi, 0xff000000
xor eax, esi
mov esi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x6d1308]
shr esi, 0x18
movzx esi, byte [esi*4 + 0x6d1308]
xor eax, esi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx]
lea esi, [ecx + 0x10]
xor eax, dword [edi]
add edi, 4
mov dword [esi], eax
mov edx, dword [ecx + 4]
xor edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 8]
xor eax, edx
mov dword [ecx + 0x18], eax
mov edx, dword [ecx + 0xc]
xor edx, eax
mov dword [ecx + 0x1c], edx
cmp edi, 0x6d2b30
jne 0x415592
pop edi
mov eax, 0xa
pop esi
ret
movzx edx, byte [eax + 0x10]
movzx esi, byte [eax + 0x11]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x12]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x13]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x15]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x14]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x16]
movzx eax, byte [eax + 0x17]
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, eax
mov dword [ecx + 0x14], edx
xor eax, eax
pop esi
ret
Function at 0x415670
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x18]
mov esi, ecx
call fcn.00415480
lea edi, [eax*4]
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x4156e1
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
lea esp, [esp]
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x4156a0
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x41589f
lea edx, [eax - 1]
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + 0x6d1308]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + 0x6d1308]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d1708]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1f08]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + 0x6d1308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1b08]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6d1308]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d2308]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + 0x6d1308]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + 0x6d1308]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d1708]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1f08]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + 0x6d1308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1b08]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6d1308]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d2308]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + 0x6d1308]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + 0x6d1308]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d1708]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1f08]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + 0x6d1308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1b08]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6d1308]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d2308]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + 0x6d1308]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + 0x6d1308]
and edi, 0xff
mov edi, dword [edi*4 + 0x6d1708]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1f08]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + 0x6d1308]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6d1308]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x6d1b08]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x6d2308]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x4156f0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41cca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x41ccfd
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x41ccf7
call esi
cmp eax, 0x2733
je 0x41ccf7
call esi
cmp eax, 0x2714
je 0x41ccf7
push str.error_on_reading_from_skt_n
push 2
call fcn.0041dc50
add esp, 8
or eax, 0xffffffff
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x41cd00
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 8]
mov edx, dword [edi + 0x104]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x41cd63
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x41cd4a
call esi
cmp eax, 0x2733
je 0x41cd4a
call esi
cmp eax, 0x2714
je 0x41cd4a
pop esi
or eax, 0xffffffff
pop edi
ret
call esi
cmp eax, 0x2733
jne 0x41cd5d
or dword [edi + 0x120], 0x200
mov eax, 0xfffffffe
pop esi
pop edi
ret
Function at 0x41da50
Capabilities:
Resolve dns

Disassembly:
mov dword [esp + 4], 0
jmp 0x41ebe0
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x41ec19
test ecx, ecx
jne 0x41ec19
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41ec14
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x41ec19
test ecx, ecx
jne 0x41ec19
or eax, 0xffffffff
pop esi
ret
mov edx, dword [esp + 0x10]
mov dword [edx + 4], eax
xor eax, eax
pop esi
ret

Function at 0x41e730
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
mov eax, dword [eax]
xor ecx, ecx
lea edx, [esp]
push edx
push ecx
push ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
inc eax
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret

Function at 0x41e9f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x32c], 0
mov ebx, 1
mov dword [esp + 0x10], ebx
je 0x41ea6c
push 4
lea eax, [esp + 0x2c]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x3c], ebx
call ebp
test eax, eax
jl 0x41ea94
mov ecx, dword [edi + 0x32c]
mov edx, dword [edi + 0x334]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0xc
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
push ecx
push 0x98000004
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x41ea94
push 0x61c218
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_getprotobyname]
test eax, eax
jne 0x41ea9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getprotobyname___failed_with_error__d_n
push ebx
call fcn.0041dc50
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
movsx eax, word [eax + 8]
push 4
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push esi
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x41eae0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41eb1c
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00606c9e
add esp, 0x194
ret
push eax
push str.WSAStartup_failed_with_error:__d_n
push 1
call fcn.0041dc50
mov ecx, dword [esp + 0x19c]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.00606c9e
add esp, 0x194
ret