joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cc9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408d77
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408d62
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
call fcn.00408cc9
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x408d54
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x408d17
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x408d77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret

Function at 0x408e13
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x3ff
lea eax, [ebp - 0x404]
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
cmp dword [ebp + 0xc], ebx
je 0x408e95
lea eax, [ebp - 0x404]
push edi
push eax
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
mov ecx, esi
sub ecx, eax
lea eax, [ebp - 0x404]
push ecx
push 0x4aca04
push eax
call edi
lea eax, [ebp - 0x404]
push eax
call sub.MSVCRT.dll_strlen
sub esi, eax
lea eax, [ebp - 0x404]
push esi
push dword [ebp + 0xc]
push eax
call edi
add esp, 0x20
pop edi
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x404]
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408ebd
xor eax, eax
jmp 0x408eeb
cmp dword [ebp + 0x10], ebx
je 0x408edf
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x40964c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0x18], bl
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
lea ecx, [ebp + 8]
lea eax, [esi + 8]
push ecx
push ebx
push eax
push 0x409b75
push ebx
push ebx
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x409684
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x409691
mov byte [esi + 0x18], 1
xor al, al
jmp 0x409693
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x409f67
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 0x4affd8
jmp 0x409f5d
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x101
mov dword [esi], 0x49a668
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x40fcc4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x492170
call fcn.004903f0
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push edi
push esi
mov ebx, ecx
push 0x300a
call fcn.004219c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x24]
mov dword [ebx + 0x40e], eax
call fcn.00413e91
mov dword [ebp - 0x24], 0x49a6b8
test byte [ebx + 0x256], 1
mov dword [ebp - 4], esi
jne 0x40fd7d
mov dword [ebp - 0x10], esi
mov ecx, dword [ebx + 0x248]
lea edi, [ebx + 0x244]
test ecx, ecx
jne 0x40fd21
xor eax, eax
jmp 0x40fd2c
mov eax, dword [edi + 8]
push 0x18
sub eax, ecx
pop ecx
cdq
idiv ecx
mov esi, dword [ebp - 0x10]
cmp esi, eax
jge 0x40fd6f
mov eax, dword [ebx + 0x248]
lea esi, [esi + esi*2]
shl esi, 3
test byte [eax + esi + 4], 2
jne 0x40fd6a
mov ecx, edi
call fcn.004133c5
cmp dword [ebp - 0x10], eax
jge 0x40fd5f
mov eax, dword [edi + 4]
mov ecx, edi
add eax, esi
push eax
call fcn.00413f34
dec dword [ebp - 0x10]
jns 0x40fd0d
and dword [ebp - 0x10], 0
jmp 0x40fd0d
inc dword [ebp - 0x10]
jmp 0x40fd0d
mov byte [ebx + 0x34f], 1
xor bl, bl
jmp 0x40fe43
mov ecx, dword [ebx + 0x248]
cmp ecx, esi
je 0x40fd6f
mov eax, dword [ebx + 0x24c]
push 0x18
sub eax, ecx
pop ecx
cdq
idiv ecx
cmp eax, esi
je 0x40fd6f
jle 0x40fe2a
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x248]
mov ecx, dword [ebp - 0x10]
push 5
lea edi, [ebp - 0x48]
lea esi, [ecx + eax + 4]
mov al, byte [ebx + 0x256]
pop ecx
rep movsd dword es:[edi], dword [esi]
or byte [ebp - 0x48], 2
xor al, byte [ebp - 0x48]
mov ecx, dword [ebx + 0x34]
and al, 1
xor byte [ebp - 0x48], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00427d85
mov ecx, eax
call fcn.004232ce
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0041312e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 0x49a694
mov dword [ebp - 0x30], 0x49a690
call fcn.00413edc
push dword [ebx + 0x40]
mov ecx, dword [ebp - 0x1c]
call fcn.0040102c
push eax
mov ecx, ebx
call fcn.00429a30
add dword [ebp - 0x10], 0x18
dec dword [ebp - 0x14]
jne 0x40fda5
and byte [ebx + 0x2f8], 0
push 1
push 0x7d0
push 9
mov ecx, ebx
call fcn.0042197b
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0x49a694
mov dword [ebp - 0x20], 0x49a690
call fcn.00413edc
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41037b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.004148d1
lea eax, [ebp - 0x108]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4103e3
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4103e3
push edi
xor edi, edi
mov eax, dword [eax]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401c7c
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [eax + edi]
test eax, eax
jne 0x4103c1
pop edi
xor eax, eax
pop esi
cmp eax, dword [ebx + 0xc]
pop ebx
sbb eax, eax
neg eax
leave
ret 4

Function at 0x410b0b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4ad268
push str.mp_test.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x410b67
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x410b6b
mov ecx, dword [edi + 8]
sub ecx, eax
cmp esi, ecx
jae 0x410b6b
movzx eax, byte [eax + esi]
mov dword [ebp + 8], eax
push ebx
push 1
lea eax, [ebp + 8]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x410b5f
inc esi
jmp 0x410b2e
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x410b75
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410b7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x4ad26c
push str.mp_test.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x410bf8
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
call esi
mov edi, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x410bdd
mov al, byte [ebp - 4]
mov ecx, edi
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
call fcn.00412d5c
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x410bba
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [edi + 4]
pop ecx
test eax, eax
pop esi
je 0x410bf8
mov ecx, dword [edi + 8]
sub ecx, eax
je 0x410bf8
mov al, 1
jmp 0x410bfa
xor al, al
pop edi
pop ebx
leave
ret 4
Function at 0x412206
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x41224d
mov eax, dword [esi + 4]
test eax, eax
jne 0x412221
mov eax, 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]
jmp 0x412223
add eax, edi
movsx eax, byte [eax]
push eax
call dword [sym.imp.MSVCRT.dll_isdigit]
test eax, eax
pop ecx
jne 0x412247
mov eax, dword [esi + 4]
test eax, eax
jne 0x412240
mov eax, 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]
jmp 0x412242
add eax, edi
cmp byte [eax], 0x2e
jne 0x41224d
inc edi
cmp edi, dword [esi + 8]
jb 0x412213
cmp edi, dword [esi + 8]
mov esi, dword [esi + 4]
jb 0x412268
test esi, esi
jne 0x41225f
mov esi, 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]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x412288
test esi, esi
jne 0x412272
mov esi, 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]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x412281
xor al, al
jmp 0x412290
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
ret 8

Function at 0x41d916
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0x14], bl
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
lea ecx, [ebp + 8]
lea eax, [esi + 8]
push ecx
push ebx
push eax
push 0x41db23
push ebx
push ebx
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x41d94e
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x41d95b
mov byte [esi + 0x14], 1
xor al, al
jmp 0x41d95d
mov al, 1
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41e039
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop esi
call fcn.0041dd2d
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], 0xe
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
xor dword [ecx + 0x9c], edi
mov eax, dword [ebp + 8]
push 0x25
cdq
pop ebx
add dword [ebp + 8], 0xe
idiv ebx
xor dword [ecx + edx*4 + 0x9c], esi
sub edi, esi
cmp dword [ebp + 8], 0x206
lea eax, [ecx + edx*4 + 0x9c]
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x41e067
mov esi, 0x3e8
call fcn.0041dfb7
dec esi
jne 0x41e098
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f842
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x20
mov eax, dword [esi*4 + 0x49a6f4]
pop edx
and eax, dword [ebp + 8]
sub edx, esi
cmp edx, esi
jl 0x41f887
push ebx
mov ebx, dword [ebp + 8]
mov edi, edx
sub edi, esi
mov ecx, edi
shr ebx, cl
mov ecx, edx
mov edx, ebx
mov ebx, eax
shr ebx, cl
mov ecx, edi
xor edx, ebx
and edx, dword [esi*4 + 0x49a778]
shl edx, cl
add eax, edx
mov edx, edi
cmp edx, esi
jge 0x41f85e
pop ebx
test edx, edx
jle 0x41f89d
mov edi, eax
mov ecx, esi
shr edi, cl
xor edi, dword [ebp + 8]
and edi, dword [edx*4 + 0x49a778]
add eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41fba0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x41fbda
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x41fbd7
push 0x10
xor eax, eax
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 0x10]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add dword [ebp + 8], edx
dec ecx
jne 0x41fbee
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fedb
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x420b85
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x420bbf
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x420bbc
push 0xd
xor eax, eax
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 0x10]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
add ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add dword [ebp + 8], edx
dec ecx
jne 0x420bd3
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420c2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x10
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
mov al, byte [ebp + 0xc]
push 5
mov byte [ebp - 8], al
mov eax, dword [ebp + 8]
mov dword [ebp - 7], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041feac
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x3c]
push 0x20
push eax
push edi
call fcn.0041feac
mov esi, edi
lea eax, [ebp - 0x2c]
add esp, 0x24
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x2c]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x10
mov byte [ebp + ecx - 0x1d], dl
jl 0x420c79
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret
Function at 0x420ec7
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov dword [ebp + 8], eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x420f01
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x420efe
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr edx, 5
add edx, dword [ebp - 8]
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
mov esi, dword [ebp + 8]
add esi, eax
xor edx, esi
sub ebx, edx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add eax, 0x61c88647
sub dword [ebp + 8], edx
dec ecx
jne 0x420f18
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4211c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
push dword [edi + 4]
mov dword [ebp + 8], eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x14]
sub eax, ecx
mov dword [ebp + 0xc], 4
mov dword [ebp - 4], eax
jmp 0x4211fa
mov eax, dword [ebp - 4]
push dword [eax + edi]
call esi
mov dword [edi], eax
add edi, 4
dec dword [ebp + 0xc]
jne 0x4211f7
push 5
mov eax, 0xf1bbcdc8
pop edx
mov ecx, 0x61c88647
sub eax, ecx
dec edx
jne 0x421216
push 0xd
pop edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
shr esi, 5
add esi, dword [ebp - 8]
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
mov edi, dword [ebp + 8]
add edi, eax
xor esi, edi
sub ebx, esi
mov esi, ebx
mov edi, ebx
shr esi, 5
add esi, dword [ebp - 0x10]
shl edi, 4
add edi, dword [ebp - 0x14]
xor esi, edi
lea edi, [eax + ebx]
xor esi, edi
add eax, ecx
sub dword [ebp + 8], esi
dec edx
jne 0x42121e
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4235cd
Capabilities:
Resolve dns

Disassembly:
mov ax, word [esp + 8]
push esi
mov esi, ecx
and dword [esi], 0
mov word [esi + 4], ax
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4235ec
mov eax, 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]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x423600
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, esi
pop esi
ret 8

Function at 0x424003
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Initialize winsock library

Disassembly:
mov eax, 0x49341a
call fcn.004903f0
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0x49a5f0
push eax
call edi
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x20]
xor ebx, ebx
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov dword [ebp - 4], ebx
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00424e24
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00424e24
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00424e24
mov dword [esi + 0x35c], ebx
mov byte [esi + 0x360], bl
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x364]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x374]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x384]
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x394]
mov dword [eax], 0x49a5f0
add eax, 4
push eax
call edi
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x3b0]
mov byte [ebp - 4], 7
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0042518f
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 8
mov dword [esi + 0x3c0], eax
mov eax, dword [eax + 0x10]
add eax, 2
lea ecx, [esi + 0x3c4]
push eax
call fcn.00424804
mov byte [esi + 0x3d4], bl
lea edi, [esi + 0x3d8]
mov eax, 0x4255d2
mov dword [edi + 0x10], esi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], eax
mov byte [edi + 0x18], 1
mov dword [edi], 0x49a818
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 0xa
push eax
push 0x101
mov byte [esi + 0x3f4], bl
mov dword [esi], 0x49a814
mov dword [esi + 0x50], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x258], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, edi
call fcn.00424880
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0x18], bl
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
lea ecx, [ebp + 8]
lea eax, [esi + 8]
push ecx
push ebx
push eax
push 0x424b1c
push ebx
push ebx
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4248b8
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x4248c5
mov byte [esi + 0x18], 1
xor al, al
jmp 0x4248c7
mov al, 1
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4256e6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ax, word [ebp + 0xc]
push esi
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
push 1
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call fcn.00425757
cmp byte [ebp + 0x14], 0
pop ecx
mov esi, eax
je 0x42572d
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x425741
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004257b3
add esp, 0xc
test al, al
jne 0x425752
cmp esi, 0xffffffff
je 0x42574d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x425754
mov eax, esi
pop esi
leave
ret

Function at 0x425757
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push ebx
je 0x425767
push 0x11
push 2
jmp 0x42576b
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4257ae
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
lea eax, [ebp + 8]
push 4
push eax
mov edi, 0xffff
push 0x1002
push edi
push ebx
mov dword [ebp + 8], 0x10000
call esi
lea eax, [ebp + 8]
push 4
push eax
push 0x1001
push edi
push ebx
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret