joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d50
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x42bb50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.00429e00
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push esi
mov dword [esp + 0x1c], eax
call ebx
push 0xa
push esi
mov ebp, eax
call ebx
push 8
push esi
mov dword [esp + 0x18], eax
call ebx
push 0xa
push esi
mov dword [esp + 0x24], eax
call ebx
mov ecx, dword [esp + 0x1c]
cmp ebp, ecx
jle 0x415dcb
mov ebp, ecx
cmp dword [esp + 0x10], eax
jle 0x415dd5
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
push eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
mov ebx, eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
push esi
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 0
push ebx
mov ecx, edi
call fcn.00414f10
push 0x4373e8
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [edi + 4]
mov byte [esp + 0x2c], 1
inc ecx
mov eax, ecx
mov dword [edi + 4], ecx
cmp eax, 0x64
jl 0x415e49
mov dword [edi + 4], 0
test ebp, ebp
je 0x415e8f
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x40]
mov ecx, edi
push edx
push ebp
call fcn.00415110
test eax, eax
jne 0x415e86
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_AfxMessageBox
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x415e9d
push 0
push 0
push str.Failed_to_load_IDB_TEST
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x416320
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
mov dword [esp + 0x24], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416365
pop edi
pop esi
pop ebp
mov eax, 0xfffffcdd
pop ebx
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x4163b9
mov ebp, dword [esp + 0x120]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004163f0
mov esi, eax
test esi, esi
jne 0x4163d3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc edi
push 0x104
push edx
push edi
push eax
call ebx
test eax, eax
je 0x416388
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x4163f0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x49c
mov edx, dword [esp + 0x4a0]
push esi
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x4b0]
push 0xf003f
push 0
mov edi, 0x378
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416441
pop edi
mov eax, 0xfffffcdd
pop esi
add esp, 0x49c
ret 0xc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4165da
cmp dword [esp + 0xc], edi
jne 0x4165da
cmp dword [esp + 0x154], 1
jne 0x4165c2
cmp dword [esp + 0x178], 2
jne 0x4165c2
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x10]
push eax
push 0x4357c0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x4bc]
add esp, 0xc
test eax, eax
push 1
push str.SYSTEMCurrentControlSetServicesWinSock2TCPIPSH
push reloc.OLEAUT32.dll_SysReAllocString
jne 0x416563
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00416680
test eax, eax
jne 0x416502
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcda
pop esi
add esp, 0x49c
ret 0xc
lea edi, [esi + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4165c2
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcd9
pop esi
add esp, 0x49c
ret 0xc
lea edx, [esp + 0x3ac]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00416600
lea edi, [esp + 0x3a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x49c
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcdb
pop esi
add esp, 0x49c
ret 0xc
Function at 0x416600
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41666f
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416664
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x416664
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18

Function at 0x416680
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4166b0
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4166e5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18

Function at 0x416700
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
je 0x416771
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416771
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x41672a
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 0xc
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416771
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x416766
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
ret 0xc
Function at 0x416780
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42bb6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea ebp, [esi + 0x14]
mov ecx, ebp
call fcn.00429e00
xor ebx, ebx
mov dl, 1
lea edi, [esi + 0x2c]
mov ecx, 0x40
xor eax, eax
mov dword [esi], 0x42e57c
mov dword [esi + 0x18], ebx
mov byte [esi + 4], dl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esi + 0x1c], 0x7f
push eax
push 0xf003f
push ebx
mov byte [esi + 0x20], bl
push str.htmlfile_shellopencommand
mov dword [0x4380f4], ebx
push closesocket
mov dword [esp + 0x43c], ebx
mov byte [esi + 0x10], dl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416864
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0x4373e8
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416864
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x21]
cmp al, 0x22
jne 0x416858
mov al, byte [esp + 0x21]
cmp al, 0x22
je 0x416856
cmp al, bl
je 0x416864
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x22
jne 0x41684a
mov byte [ecx], bl
lea edx, [esp + 0x21]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x420]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret
Function at 0x4170f0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x417117
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 8], 0x3c
mov dword [esp + 0x14], str.open
pop edi
mov ecx, dword [eax - 8]
mov dword [esp + 0x14], str.IEXPLORE.exe
test ecx, ecx
je 0x41714c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x417163
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x18], edx
jmp 0x417167
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0x40
push eax
mov dword [esp + 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x41718d
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], ecx
pop esi
add esp, 0x3c
ret 4

Function at 0x417250
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
xor edx, edx
mov ebx, 1
movsx eax, dx
cmp word [eax*8 + 0x4358c0], 0
jne 0x417270
cmp word [ecx + eax*2 + 0x2c], bx
je 0x4172aa
inc edx
cmp dx, 0x21
jb 0x41725b
mov edi, dword [0x4380f4]
test edi, edi
je 0x4172f5
mov esi, dword [0x4380f0]
xor edx, edx
test esi, esi
jle 0x4172f5
xor eax, eax
cmp word [edi + eax*8], 0
jne 0x41729d
cmp word [ecx + eax*2 + 0x6e], bx
je 0x4172c2
inc edx
movsx eax, dx
cmp eax, esi
jl 0x41728f
pop edi
pop esi
pop ebx
pop ecx
ret
mov edi, dword [ecx + 0x1c]
movsx eax, dx
and edi, 0xfe
mov dword [ecx + 8], eax
mov dword [ecx + 0x1c], edi
lea edx, [esp + 0xc]
jmp 0x4172db
mov edi, dword [ecx + 0x1c]
movsx eax, dx
add eax, 0x21
and edi, 0xfe
mov dword [ecx + 8], eax
mov dword [ecx + 0x1c], edi
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push 0x416af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x417300
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp + 4]
push edx
push 0
push ecx
push 0x417330
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x418170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bd3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42e768
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x418200
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4181c7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4181f1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x418206
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x418206
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x42d854
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x42d868
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x418a70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
sete al
add esp, 0x190
ret
Function at 0x418ab0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x114
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0xc], eax
je 0x418ca3
mov eax, dword [eax + 0xc]
push ebp
xor ebp, ebp
mov ecx, dword [eax]
mov dword [esp + 8], ebp
test ecx, ecx
je 0x418c99
push ebx
push esi
mov esi, dword [esp + 0x124]
push edi
mov edx, dword [eax]
mov eax, dword [esi + 8]
mov ebx, ebp
mov edi, eax
add ebx, edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov dword [esp + 0x20], ebx
sar edx, 2
cmp edx, 1
jae 0x418bf8
mov edx, dword [esi + 4]
test edx, edx
je 0x418b2e
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x418b33
mov ecx, 1
test edx, edx
jne 0x418b3b
xor eax, eax
jmp 0x418b40
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x418b4c
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], eax
mov ebx, eax
je 0x418b79
push ebp
push ebx
call fcn.00406ac0
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x418b65
mov ecx, dword [esp + 0x20]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00406810
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004067e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004067d0
mov edx, dword [esi + 4]
push edx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
jne 0x418bdd
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x418c80
mov ecx, dword [esi + 8]
mov ebp, dword [esp + 0x14]
sub ecx, eax
mov dword [esi + 4], edx
sar ecx, 2
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x418c80
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x418c40
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004067e0
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00406810
mov eax, dword [esi + 8]
cmp edi, eax
je 0x418c7c
mov edx, dword [ebx]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x418c33
jmp 0x418c7c
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x18], ecx
push ecx
mov ecx, esi
call fcn.004067e0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x418c6a
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x418c5b
lea eax, [edi + 4]
cmp edi, eax
je 0x418c7c
mov ecx, dword [ebx]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x418c71
add dword [esi + 8], 4
mov edx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x14], ebp
mov eax, dword [edx + 0xc]
cmp dword [eax + ebp*4], 0
jne 0x418afb
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x114
ret
xor al, al
add esp, 0x114
ret
Function at 0x4193f0
Capabilities:
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x174]
test al, al
je 0x419406
call fcn.004194f0
mov eax, dword [esp + 0x28]
push 0
push 2
push 2
mov dword [esi + 0x16c], eax
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x148], eax
jne 0x419431
pop edi
xor al, al
pop esi
add esp, 0x14
ret 0xc
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
mov dword [esi + 0x14c], eax
call edi
mov dword [esi + 0x154], eax
call edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esi + 0x150], eax
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 0x148]
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp dword [esi + 0x148], 0xffffffff
jne 0x419495
pop edi
xor al, al
pop esi
add esp, 0x14
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 8]
push ebx
push edx
push 0
push esi
push 0x41ad40
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xf
push eax
mov dword [esi + 0x164], eax
call ebx
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x419a30
push 0
push 0
call edi
push 0xf
push eax
mov dword [esi + 0x160], eax
call ebx
mov al, 1
pop ebx
mov byte [esi + 0x174], al
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x41e200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
mov ebx, dword [esp + 0x1b0]
push ebp
push esi
test ebx, ebx
push edi
je 0x41e2d9
mov ebp, dword [esp + 0x1c0]
test ebp, ebp
je 0x41e2d9
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x41e251
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1b4]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e2d3
xor edx, edx
lea edi, [esp + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
movsx ecx, word [eax + 0xa]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1b8]
mov ax, word [eax + 8]
push ecx
mov word [esp + 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WSOCK32.dll_socket]
lea edx, [esp + 0x10]
mov edi, eax
push 0x10
push edx
push edi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x41e2e7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1a0
ret
mov esi, ebp
mov ebp, dword [sym.imp.WSOCK32.dll_send]
push 0
push esi
push ebx
push edi
call ebp
cmp eax, 0xffffffff
je 0x41e2cd
sub esi, eax
add ebx, eax
test esi, esi
jne 0x41e2ef
mov eax, dword [esp + 0x1c0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret