joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479e68
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x557bec]
cmp dword [eax + 0x30], 0
je 0x479f12
cmp dword [ebx + 0x94], 0
jne 0x479f0c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x479df8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x479f0c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x479ed2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x479f0c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041de30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x479ee1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47aa70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47aaa5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e24
jmp 0x47aab2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d88
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47bc7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47bcbd
mov eax, esi
call fcn.004610f0
test al, al
je 0x47bcbd
mov eax, dword [ebx + 0x84]
call fcn.00460dec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47bcbd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00460dec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47f0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x47f0d7
push 0
push 0
mov dx, 4
mov eax, ebx
call fcn.0047e6f8
cmp dword [ebx + 0x38], 0xffffffff
jne 0x47f0ec
push 0xffffffffffffffff
push 0xffffffffffffffe8
mov dx, 0x18
mov eax, ebx
call fcn.0047e6f8
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0047f06c
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x47f124
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x47f124
xor eax, eax
jmp 0x47f126
mov al, 1
test al, al
jne 0x47f13e
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
mov dx, 2
mov eax, ebx
call fcn.0047e6f8
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.00481e34
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x47f2d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x47f2fb
push 0
push 0
mov dx, 4
mov eax, ebx
call fcn.0047e6f8
mov eax, dword [esi]
mov byte [eax + 0x14], 1
cmp dword [ebx + 0x38], 0xffffffff
jne 0x47f316
push 0xffffffffffffffff
push 0xffffffffffffffe8
mov dx, 0x18
mov eax, ebx
call fcn.0047e6f8
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x47f33f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x47f33f
xor eax, eax
jmp 0x47f341
mov al, 1
test al, al
jne 0x47f359
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
mov dx, 3
mov eax, ebx
call fcn.0047e6f8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4822b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4823e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4823f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x4823c9
mov dl, 1
mov eax, dword [0x41bdb8]
call fcn.00403eb8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4823c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00405380
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00405380
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051f4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004051f4
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x482382
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0xc]
call fcn.00405380
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x48238a
cmp ebx, 0x103
jne 0x48238e
test ebx, ebx
je 0x482314
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823c9
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.00403ee8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823eb
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404d58
ret
Function at 0x4869e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x486a0f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x486a8e
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0048529c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x486a5c
mov cx, word [esp]
sub cx, si
jmp 0x486a5e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x486a45
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x486a84
mov cx, word [esp]
sub cx, si
jmp 0x486a86
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x486a6d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x486aeb
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004866b4
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x486ad6
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x486aeb
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4869ea
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48d020
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x557c98
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x48d042
shr eax, 1
xor eax, 0xedb88320
jmp 0x48d044
shr eax, 1
dec edx
jne 0x48d030
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x48d029
mov byte [0x558098], 1
pop esi
pop ebx
ret

Function at 0x48d060
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x558098], 0
jne 0x48d077
call fcn.0048d020
mov eax, edi
dec eax
test eax, eax
jl 0x48d0a0
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x557c98]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x48d081
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48fbbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x48fbed
dec al
je 0x48fc29
dec al
je 0x48fc6d
dec al
je 0x48fcd8
jmp 0x48fd62
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48fd62
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48fbfd
jmp 0x48fd62
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48fd62
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48fc39
jmp 0x48fd62
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48fd62
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x48fc9b
xor ebp, ebp
jmp 0x48fcac
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x48fcb5
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48fc7d
jmp 0x48fd62
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48fd62
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x48fd30
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0048d0a8
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48fcec
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49bc0c
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x550018], 0
mov eax, dword [0x556b60]
cmp dword [eax], 2
jne 0x49bde5
mov eax, dword [0x5562a8]
cmp dword [eax], 5
jl 0x49bde5
call fcn.00498d3c
test al, al
jne 0x49bc3d
call fcn.00498d48
call fcn.00498d34
mov dword [0x550020], eax
push 0x49bde8
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54ffe4], eax
cmp dword [0x54ffe4], 0
jne 0x49bc98
mov edx, 0x8000
mov eax, 0x49bdfc
call fcn.004100ac
mov dword [0x55001c], eax
mov eax, dword [0x55001c]
mov dword [0x550020], eax
push 0x49bde8
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54ffe4], eax
cmp dword [0x54ffe4], 0
je 0x49bde0
push 0x49be08
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54ffe8], eax
cmp dword [0x54ffe8], 0
je 0x49bde0
push 0x49be14
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54ffec], eax
cmp dword [0x54ffec], 0
je 0x49bde0
mov byte [0x550018], 1
push 0x49be24
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54fff0], eax
push 0x49be30
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54fff4], eax
push 0x49be3c
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54fff8], eax
push 0x49be4c
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54fffc], eax
push 0x49be5c
mov eax, dword [0x550020]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x550000], eax
mov edx, 0x8000
mov eax, 0x49be74
call fcn.004100ac
mov dword [0x550024], eax
cmp dword [0x550024], 0
je 0x49bde5
push 0x49be84
mov eax, dword [0x550024]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x550004], eax
push 0x49bea0
mov eax, dword [0x550024]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x550008], eax
push 0x49bec0
mov eax, dword [0x550024]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55000c], eax
push 0x49bedc
mov eax, dword [0x550024]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x550010], eax
push 0x49bef4
mov eax, dword [0x550024]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x550014], eax
ret
call fcn.0049bb8c
ret
Function at 0x49e5a8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49e6d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0049e490
mov eax, dword [esi]
call fcn.0040614c
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4941a0]
call fcn.00406328
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402edc
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402edc
add ebx, 0x1c
mov eax, dword [esi]
call fcn.0040614c
mov dword [ebp - 0xc], eax
mov eax, dword [0x5569c0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.00495f28
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403650
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.0040614c
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.00495e4c
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.00495c10
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00495f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e6d7
lea eax, [ebp - 8]
mov edx, dword [0x4941a0]
call fcn.00406454
ret

Function at 0x4b540c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b5484
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00409888
mov eax, dword [ebp - 8]
mov esi, dword [0x555fec]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x4b5465
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405380
jmp 0x4b546e
mov eax, ebx
xor edx, edx
call fcn.00405380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b548b
lea eax, [ebp - 8]
call fcn.00404d34
ret
Function at 0x4be3b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4be412
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004be3ac
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bbdfc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bba18
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be419
lea eax, [ebp - 4]
call fcn.00404d34
ret
Function at 0x4d521c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4d524a
mov eax, ebx
call fcn.004d5cd0
cmp dword [ebx + 0x40], 0
je 0x4d5243
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4d52bb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4d52ad
cmp dword [ebx + 8], 0
je 0x4d526c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4d527e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d52ad
cmp dword [ebx + 8], 0
je 0x4d525f
cmp eax, 3
je 0x4d5291
dec eax
jne 0x4d525f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d525f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4d525f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4d52d9
cmp dword [ebx + 0x14], 0xcc
je 0x4d52d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d52e4
pop ebx
ret

Function at 0x4ef5bc
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00404d34
test ebx, ebx
je 0x4ef65d
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4ef5f8
mov eax, ebx
call fcn.004051f4
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4ef669
mov eax, esi
mov edx, ebx
call fcn.00404d88
jmp 0x4ef669
mov eax, ebx
call fcn.004051f4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4ef669
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x4ef678
call fcn.0040b1d0
jmp 0x4ef669
mov eax, esi
mov edx, 0x4ef68c
call fcn.00404d88
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4f0a8c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4f0b15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5584e4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4f0aff
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040d858
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4f0b2c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x5568c4]
mov dl, 1
mov eax, dword [0x4efab8]
call fcn.0040e198
call fcn.00404688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0b1c
lea eax, [ebp - 0x1c]
call fcn.00404d34
ret
Function at 0x4f11e0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004f1104
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004040f0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4f1244
call fcn.004f09d4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4f1236
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004040f0
pop esi
pop ebx
ret

Function at 0x4f14f4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004051f4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403650
test ebx, ebx
je 0x4f153f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4f161c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4f164d
mov ecx, dword [0x556b2c]
mov dl, 1
mov eax, dword [0x4efab8]
call fcn.0040e15c
call fcn.00404688
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4f167a
mov ecx, dword [0x556558]
mov dl, 1
mov eax, dword [0x4efab8]
call fcn.0040e15c
call fcn.00404688
xor eax, eax
push ebp
push 0x4f16fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004040f0
cmp byte [ebp + 8], 0
je 0x4f16d5
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004f1584
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f1160
jmp 0x4f16f1
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004f0cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f1718
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10