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

Disassembly:
jmp 0x4ca120
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4ca16c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4ca131
pop ebx
pop edi
pop esi
ret

Function at 0x4063f2
Capabilities:
Resolve dns

Disassembly:
jmp 0x4882d0
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x48845f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x48844a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48832c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488320
sub eax, edx
inc eax
jmp 0x48832e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x48833f
lea ebp, [ecx + 0xe]
jmp 0x48834b
cmp ecx, 0x17
jne 0x4883ec
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x4883ec
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4883ec
cmp ecx, ebp
jb 0x4883ec
add eax, 0x20
add eax, ebp
push eax
call dword [0x66100c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48843b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00407847
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x4883d8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00407847
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x4883e8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x488312
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x48840c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x488446
test edi, edi
je 0x48842b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x661010]
add esp, 4
mov edi, esi
test esi, esi
jne 0x488414
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x4883fb
test edi, edi
jne 0x488456
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
Function at 0x40663b
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
jmp 0x472510
sub esp, 0x194
mov eax, dword [0x661540]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x47256f
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x472555
mov eax, dword [esp]
cmp al, 2
jne 0x47254f
shr eax, 8
cmp al, 2
je 0x47256f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00403eb3
add esp, 0x194
ret
call fcn.00404d4a
test eax, eax
jne 0x4726f4
push esi
push edi
push 0x617ed0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x47259c
mov dword [0x664a14], esi
jmp 0x4726ca
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x617ef0
push str.iphlpapi.dll
mov ebx, eax
call fcn.004036b6
add esp, 8
test eax, eax
je 0x4725ec
test ebx, ebx
je 0x4725da
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4726a5
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4726a5
test ebx, ebx
je 0x472611
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x472611
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4726a5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x47269f
lea ecx, [ebp + 0xd]
push ecx
call dword [0x66100c]
mov edi, eax
add esp, 4
test edi, edi
je 0x472695
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x472695
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472645
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x472660
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x472672
test ebx, ebx
je 0x47268c
push 8
push 0
push edi
call ebx
jmp 0x472693
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x661010]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x664a14], esi
test esi, esi
je 0x4726c8
push str.if_nametoindex
push esi
call ebp
mov ecx, dword [0x664a10]
test eax, eax
cmovne ecx, eax
mov dword [0x664a10], ecx
pop ebp
pop ebx
push 3
push 2
push 0
push 0
push 6
call fcn.00406479
add esp, 0x14
test al, al
setne byte [0x6666d1]
push 0x6666e0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00403eb3
add esp, 0x194
ret
Function at 0x40679e
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0x4c8d20
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004060e1
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x66100c]
mov esi, eax
add esp, 8
test esi, esi
je 0x4c8ea2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4c8da2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c8e13
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c8dd0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4c8e45
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x622d59
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x622d5a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4c8e20
push dword [esp + 0x30]
call fcn.004060e1
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x4c8e70
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x661010]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x406e0b
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x456890
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x45693b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.00402ab3
add esp, 0xc
cmp eax, 4
jne 0x4568f6
cmp byte [0x66490c], 0
jne 0x456902
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x45693d
mov eax, dword [esp + 0x1c]
jmp 0x45691f
imul eax, dword [0x664908], 0x41c64e6d
add eax, 0x3039
mov dword [0x664908], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x456933
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x456923
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4568b0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407743
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x48cd10
sub esp, 0x118
mov eax, dword [0x661540]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x120]
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [eax], edi
mov dword [ecx], edi
mov ecx, esi
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48cd50
sub ecx, edx
je 0x48cf13
test cl, 3
jne 0x48cf13
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x48cd84
inc edi
lea eax, [eax - 1]
cmp edi, 2
ja 0x48cf13
cmp byte [eax], 0x3d
je 0x48cd72
xor eax, eax
shr ecx, 2
test edi, edi
mov edx, ecx
setne al
sub edx, eax
lea eax, [ecx + ecx*2]
sub eax, edi
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
inc eax
push eax
call dword [0x66100c]
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48cdce
pop edi
mov eax, 0x1b
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00403eb3
add esp, 0x118
ret
push ebx
push ebp
push 0x2b
mov ebx, eax
lea eax, [esp + 0x28]
push 0xff
push eax
call fcn.00404007
push 0x85
lea eax, [esp + 0xaf]
push 0xff
push eax
call fcn.00404007
movups xmm0, xmmword [0x61bcb8]
xor ebp, ebp
add esp, 0x18
movups xmmword [esp + 0x4f], xmm0
movups xmm0, xmmword [0x61bcc8]
movups xmmword [esp + 0x5f], xmm0
movups xmm0, xmmword [0x61bcd8]
movups xmmword [esp + 0x6f], xmm0
movups xmm0, xmmword [0x61bce8]
movups xmmword [esp + 0x7f], xmm0
movups xmm0, xmmword [0x61bcf8]
movups xmmword [esp + 0x8f], xmm0
cmp dword [esp + 0x10], ebp
jbe 0x48ce7d
xor eax, eax
xor edx, edx
movzx ecx, byte [esi]
inc esi
mov cl, byte [esp + ecx + 0x24]
cmp cl, 0xff
je 0x48ce98
shl eax, 6
inc edx
movzx ecx, cl
or eax, ecx
cmp edx, 4
jl 0x48ce48
mov ecx, eax
mov byte [ebx + 2], al
shr ecx, 8
inc ebp
shr eax, 0x10
mov byte [ebx + 1], cl
mov byte [ebx], al
add ebx, 3
cmp ebp, dword [esp + 0x10]
jb 0x48ce44
test edi, edi
je 0x48cef8
xor ecx, ecx
xor edx, edx
xor ebp, ebp
mov al, byte [esi]
lea esi, [esi + 1]
cmp al, 0x3d
jne 0x48cec4
inc edx
shl ecx, 6
cmp edx, edi
jbe 0x48ced7
mov eax, dword [esp + 0x14]
push eax
call dword [0x661010]
add esp, 4
mov eax, 0x3d
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00403eb3
add esp, 0x118
ret
movzx eax, al
mov al, byte [esp + eax + 0x24]
cmp al, 0xff
je 0x48ce98
shl ecx, 6
movzx eax, al
or ecx, eax
inc ebp
cmp ebp, 4
jl 0x48ce87
cmp edi, 1
jne 0x48ceea
mov eax, ecx
shr eax, 8
mov byte [ebx + 1], al
shr ecx, 0x10
mov eax, 3
sub eax, edi
mov byte [ebx], cl
add ebx, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [ebx], 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x48ceab
mov ecx, dword [esp + 0x11c]
mov eax, 0x3d
pop edi
pop esi
xor ecx, esp
call fcn.00403eb3
add esp, 0x118
ret
Function at 0x407d7e
Capabilities:
Move file

Disassembly:
jmp 0x487cb0
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004070cc
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004040fc
push dword [esp + 0x40]
mov edi, eax
call fcn.004040fc
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x487d45
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.004070cc
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0040837d
add esp, 0x20
test edx, edx
ja 0x487d69
jb 0x487d37
cmp eax, 0x3e8
ja 0x487d69
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x487d00
test edi, edi
je 0x487d52
push edi
call fcn.0040570e
add esp, 4
test esi, esi
je 0x487d5f
push esi
call fcn.0040570e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x487d76
push edi
call fcn.0040570e
add esp, 4
test esi, esi
je 0x487d83
push esi
call fcn.0040570e
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x408c83
Capabilities:
Query environment variable

Disassembly:
jmp 0x48cc70
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x661014]
mov edi, eax
add esp, 8
test edi, edi
je 0x48ccc7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x48ccdf
cmp esi, ebx
je 0x48ccdf
cmp esi, 0x8000
ja 0x48ccdf
cmp esi, ebx
jb 0x48ccd8
push esi
push edi
call dword [0x661014]
mov edi, eax
add esp, 8
test edi, edi
jne 0x48cc90
push ebp
call dword [0x661010]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x661010]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408fd0
Capabilities:
Get common file path

Disassembly:
jmp 0x472320
push ecx
push ebx
push edi
push 0x617ed0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x47233a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x617ef0
push esi
call fcn.004036b6
add esp, 8
test eax, eax
je 0x472382
test ebp, ebp
je 0x472373
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4723a8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4723a8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x47245f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4723c5
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x66100c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x472455
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x472455
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4723f7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472410
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x472420
test ebp, ebp
je 0x47244c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x661010]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x661010]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x416fd0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
push ebx
push esi
push edi
lea edi, [ebp - 0x1f0]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x661540]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x733e51

Function at 0x417780
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x661540]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x734f3e

Function at 0x417890
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604daf
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x70]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x661540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
jmp 0x73756e
Function at 0x4605a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x46062c
push esi
call fcn.00404548
add esp, 4
test al, al
jne 0x46062c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4605c3
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00402f4a
add esp, 0xc
test eax, eax
je 0x4605f7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00402f4a
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4605f9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x460625
mov al, byte [esi]
push eax
call fcn.0040598e
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x460607
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x48ed30
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48ed7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00407be9
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0048e450
add esp, 0x10
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x12c]
mov dword [esp + 8], eax
jne 0x48f073
push esi
lea ecx, [ebp + 0x1cb4]
push edi
lea edi, [ebp + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x48ef5d
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x48ef71
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48ef71
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48efdb
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0048e590
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x128]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x48f033
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00407be9
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.0048edb0
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x128]
call edi
test eax, eax
jns 0x48f071
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00407be9
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret