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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46b8c3
cmp dword [ebx + 0x94], 0
jne 0x46b8bd
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b7ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b8bd
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 0x46b883
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b8bd
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.00419ff0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b892
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46badc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4ae5e0]
cmp dword [eax + 0x30], 0
je 0x46bc39
test bl, bl
jne 0x46bb8a
cmp dword [esi + 0x9c], 0
jne 0x46bb7f
mov eax, esi
call fcn.0046e330
push eax
push 0x46ba08
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x46bb50
mov eax, dword [0x4ae5e0]
call fcn.0046ea10
test al, al
je 0x46bb50
mov eax, dword [0x4ae604]
call fcn.00405d60
mov edi, eax
cmp edi, 0
jl 0x46bb50
push 0
mov eax, dword [0x4ae604]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46bb3a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46bb7f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419ff0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46bb5f
inc dword [esi + 0x9c]
jmp 0x46bc39
cmp dword [esi + 0x9c], 0
jle 0x46bc39
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46bc39
cmp dword [esi + 0x44], 0
je 0x46bbe5
mov eax, dword [0x4ae5e0]
call fcn.0046ea10
test al, al
je 0x46bbe5
mov eax, dword [0x4ae604]
call fcn.00405d60
mov edi, eax
cmp edi, 0
jl 0x46bbe5
push 5
mov eax, dword [0x4ae604]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46bbcf
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46bc14
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419ff0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46bbf4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4ae604
mov ecx, 1
mov edx, dword [0x46b9e8]
call fcn.00405f14
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46c6cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46c736
mov eax, ebx
call fcn.0046ea10
test al, al
jne 0x46c736
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.00404d2c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46c723
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46c743
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c90
jmp 0x46c743
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c90
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46db34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46dba2
mov eax, esi
call fcn.00457148
test al, al
je 0x46dba2
mov eax, dword [ebx + 0x84]
call fcn.00456d98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46dba2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46db96
push 0
mov eax, dword [ebx + 0x84]
call fcn.00456d98
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044ed20
jmp 0x46dba2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046d970
pop esi
pop ebx
ret
Function at 0x48384c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov edi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x4a5f84]
cmp eax, dword [edx]
jne 0x48387b
push 0x40
push edi
push 0
push ebx
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov esi, eax
jmp 0x483886
push edi
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov esi, eax
dec esi
je 0x4838a8
sub esi, 0x101
jne 0x4838bc
push esp
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetExitCodeThread
mov eax, dword [esp]
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_TerminateThread
jmp 0x4838bc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_PeekMessageA
jmp 0x48385b
cmp dword [ebx], 0xffffffff
je 0x4838cf
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [ebx], 0xffffffff
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4839ac
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x483a23
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 1
jne 0x4839e4
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c], 0
jmp 0x483a12
cmp dword [ebp - 8], 0xffffffff
jne 0x483a12
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, 0x483a50
mov dl, 1
mov eax, dword [0x483774]
call fcn.00411234
call fcn.004045d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483a3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
add esp, 0xfffffff8
xor edx, edx
mov dword [esp], edx
xor edx, edx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0xc], edx
xor edx, edx
mov dword [eax + 0x10], edx
push 0
push eax
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
push edx
push 1
lea edx, [eax + 0x20]
push edx
mov eax, dword [eax + 0x14]
push eax
call sub.ws2_32.dll_WSARecv
mov bl, 1
inc eax
jne 0x483c74
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x483c74
xor ebx, ebx
mov eax, ebx
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebx
push ecx
xor edx, edx
xor ecx, ecx
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov dword [eax + 0x10], ecx
push 0
push eax
push edx
lea edx, [esp + 0xc]
push edx
push 1
lea edx, [eax + 0x20]
push edx
mov eax, dword [eax + 0x14]
push eax
call sub.ws2_32.dll_WSASend
mov bl, 1
inc eax
jne 0x483cc3
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x483cc3
xor ebx, ebx
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x483cc8
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
je 0x483cf0
push 0x40
push 0x483cf8
push 0x483d04
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x190
ret

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

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
push 1
push 0
push 0
push 0
push 1
push 2
call sub.ws2_32.dll_WSASocketA
mov dword [esp], eax
cmp dword [esp], 0xffffffff
je 0x483dcf
test ebx, ebx
je 0x483dcf
mov word [esp + 4], 2
push ebx
call sub.ws2_32.dll_htons
mov word [esp + 6], ax
xor eax, eax
mov dword [esp + 8], eax
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.ws2_32.dll_bind
inc eax
jne 0x483dcf
mov eax, esp
call fcn.00483dd8
mov eax, dword [esp]
add esp, 0x14
pop ebx
ret

Function at 0x484450
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
xor eax, eax
mov dword [esi + 0xc0170], eax
xor eax, eax
mov dword [esi + 0xc01a4], eax
xor eax, eax
call fcn.00483d78
mov edi, eax
mov dword [esi + 0x28], edi
cmp edi, 0xffffffff
setne bl
test bl, bl
je 0x484492
push 0x10
mov eax, dword [esi + 0x80090]
push eax
push edi
call sub.ws2_32.dll_WSAEventSelect
inc eax
jne 0x484492
xor ebx, ebx
test bl, bl
je 0x484507
mov word [esp], 2
movzx eax, word [esi + 0xc0178]
push eax
call sub.ws2_32.dll_htons
mov word [esp + 2], ax
mov eax, dword [esi + 0xc017c]
call fcn.004050dc
push eax
call sub.ws2_32.dll_inet_addr
mov dword [esp + 4], eax
mov edx, 0x10000
mov eax, dword [esi + 0x28]
call fcn.00483e20
mov edx, 0x10000
mov eax, dword [esi + 0x28]
call fcn.00483df8
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_connect
inc eax
jne 0x484507
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esi + 0xc0170], edi
cmp edi, 0x2733
je 0x484507
xor ebx, ebx
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48461e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x80094]
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_recv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x484604
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
add dword [ebx + 4], eax
xor eax, eax
push ebp
push 0x48459e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
add dword [edx + 0xc01b8], eax
mov eax, dword [ebx + 4]
push eax
lea ecx, [ebx + 0x10]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xa00ec]
call dword [ebx + 0xa00e8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x484608
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484625
lea eax, [ebp - 0x10]
call fcn.00404c3c
ret
Function at 0x48479c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
call sub.kernel32.dll_EnterCriticalSection
mov edi, ebx
mov ebx, esi
mov eax, dword [ebp - 4]
add eax, 0x44
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4848b5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4847f2
test ebx, ebx
jne 0x484834
mov byte [ebp - 5], 1
call fcn.0040467c
jmp 0x4848bc
add ebx, eax
cmp ebx, 0x80000
jae 0x484811
test esi, esi
jbe 0x48482e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, edi
mov ecx, esi
call fcn.004032ec
jmp 0x48482e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
call fcn.0040467c
jmp 0x4848bc
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 8]
test ebx, ebx
jbe 0x484892
push 0
push ebx
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.ws2_32.dll_send
mov esi, eax
test esi, esi
jle 0x484854
sub ebx, esi
add edi, esi
jmp 0x48488e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x484887
mov eax, dword [ebp - 0xc]
cmp edi, dword [eax + 8]
je 0x484877
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, edi
mov ecx, ebx
call fcn.004032ec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x484892
call fcn.0040467c
jmp 0x4848bc
test ebx, ebx
ja 0x484838
mov eax, dword [ebp - 0xc]
mov dword [eax], ebx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4848bc
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov ebp, eax
mov esi, 2
mov byte [esp + 5], 0
mov dword [esp + 8], ecx
mov byte [esp + 6], 0xeb
mov byte [esp + 7], 0x3b
mov edi, dword [esp]
dec edi
test edi, edi
jl 0x484f63
inc edi
movzx eax, byte [ebp]
xor al, byte [esp + 6]
inc ebp
cmp esi, 6
jne 0x484f13
mov edx, eax
and dl, 0x3f
movzx edx, dl
movzx ebx, byte [esp + 7]
add edx, ebx
mov byte [ecx], dl
inc ecx
movzx eax, al
shr eax, 2
and al, 0x30
or byte [esp + 5], al
movzx eax, byte [esp + 5]
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
mov byte [esp + 5], 0
jmp 0x484f4d
movzx edx, al
shr edx, 2
mov byte [esp + 4], dl
movzx edx, byte [esp + 4]
and dl, 0x3c
and al, 3
or dl, al
movzx eax, dl
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
movzx eax, byte [esp + 5]
add eax, eax
add eax, eax
movzx edx, byte [esp + 4]
and dl, 3
or al, dl
mov byte [esp + 5], al
mov eax, esi
mov ebx, 6
cdq
idiv ebx
add edx, 2
mov esi, edx
dec edi
jne 0x484ed1
cmp esi, 2
je 0x484f77
movzx eax, byte [esp + 5]
movzx edx, byte [esp + 7]
add eax, edx
mov byte [ecx], al
inc ecx
mov eax, ecx
sub eax, dword [esp + 8]
mov byte [ecx], 0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484f88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp]
test eax, eax
jns 0x484fa4
add eax, 3
sar eax, 2
mov edx, dword [esp]
and edx, 0x80000003
jns 0x484fb7
dec edx
or edx, 0xfffffffc
inc edx
mov dword [esp + 4], edx
mov byte [esp + 0xd], 0xeb
mov dl, 0x3b
dec eax
test eax, eax
jl 0x485071
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 8]
add esi, esi
add esi, esi
lea eax, [esi + ebp]
add eax, 3
movzx eax, byte [eax]
sub al, dl
mov byte [esp + 0xc], al
lea eax, [esi + ebp]
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
lea eax, [esi + ebp]
inc eax
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
add ebx, ebx
add ebx, ebx
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
add esi, ebp
add esi, 2
movzx eax, byte [esi]
sub al, dl
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc0
or al, cl
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
inc dword [esp + 8]
dec dword [esp + 0x14]
jne 0x484fd8
cmp dword [esp + 4], 2
jne 0x4850b7
mov eax, dword [esp]
add eax, ebp
mov ecx, eax
dec ecx
movzx ecx, byte [ecx]
sub cl, dl
mov byte [esp + 0xc], cl
sub eax, 2
movzx eax, byte [eax]
sub al, dl
mov edx, eax
add edx, edx
add edx, edx
and dl, 0xf0
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc
or dl, cl
and al, 3
or dl, al
mov eax, edx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
jmp 0x485125
cmp dword [esp + 4], 3
jne 0x485125
mov esi, dword [esp]
add esi, ebp
mov eax, esi
dec eax
movzx eax, byte [eax]
sub al, dl
mov byte [esp + 0xc], al
mov eax, esi
sub eax, 3
movzx eax, byte [eax]
sub al, dl
mov ecx, eax
add ecx, ecx
add ecx, ecx
and cl, 0xf0
movzx ebx, byte [esp + 0xc]
and bl, 0xc
or cl, bl
and al, 3
or cl, al
mov eax, ecx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
sub esi, 2
movzx eax, byte [esi]
sub al, dl
mov edx, eax
add edx, edx
add edx, edx
and dl, 0xf0
movzx ecx, byte [esp + 0xc]
add ecx, ecx
add ecx, ecx
and cl, 0xc
or dl, cl
and al, 3
or dl, al
mov eax, edx
xor al, byte [esp + 0xd]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, dword [esp + 0x10]
mov byte [edi], 0
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4851d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov edx, 0x4afa28
xor ebx, ebx
cmp ebx, 0x100
je 0x485203
mov eax, ebx
mov ecx, 8
test eax, 1
je 0x4851f7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4851f9
shr eax, 1
loop 0x4851e7
mov dword [edx], eax
add edx, 4
inc ebx
jmp 0x4851d8
pop ebx
ret
Function at 0x485208
Capabilities:
Encode data using xor

Disassembly:
not eax
or edx, edx
je 0x48522e
jecxz 0x48522e
push esi
push ebx
mov esi, 0x4afa28
movzx ebx, al
xor bl, byte [edx]
shr eax, 8
and eax, 0xffffff
xor eax, dword [esi + ebx*4]
inc edx
loop 0x485217
not eax
pop ebx
pop esi
ret

Function at 0x4852bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, eax
test esi, esi
jne 0x4852d2
mov eax, esi
call fcn.00485290
mov edi, 1
jmp 0x4852da
inc edi
cmp byte [esi + edi - 1], 0x20
je 0x4852d9
cmp byte [esi + edi - 1], 0x2d
jne 0x4852ef
mov eax, esi
call fcn.00485290
cmp byte [esi + edi - 1], 0x2b
jne 0x4852f7
inc edi
cmp byte [esi + edi - 1], 0x24
je 0x48531a
cmp byte [esi + edi - 1], 0x30
jne 0x4853d4
movzx eax, byte [esi + edi]
call fcn.00403430
cmp al, 0x58
jne 0x4853d4
cmp byte [esi + edi - 1], 0x30
jne 0x485322
inc edi
inc edi
cmp byte [esi + edi - 1], 0
jne 0x485331
mov eax, esi
call fcn.00485290
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4853c5
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x48535c
add al, 0xf9
sub al, 6
jb 0x485367
add al, 0xe6
sub al, 6
jb 0x485372
jmp 0x48537d
movzx eax, bl
sub eax, 0x30
mov dword [ebp - 0x1c], eax
jmp 0x485384
movzx eax, bl
sub eax, 0x37
mov dword [ebp - 0x1c], eax
jmp 0x485384
movzx eax, bl
sub eax, 0x57
mov dword [ebp - 0x1c], eax
jmp 0x485384
mov eax, esi
call fcn.00485290
mov eax, dword [ebp - 0x14]
shr eax, 0x1c
xor edx, edx
cmp edx, 0
jne 0x485398
cmp eax, 0
jbe 0x4853a1
jmp 0x48539a
jle 0x4853a1
mov eax, esi
call fcn.00485290
mov eax, dword [ebp - 0x1c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
shld edx, eax, 4
shl eax, 4
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc edi
movzx ebx, byte [esi + edi - 1]
test bl, bl
jne 0x485346
jmp 0x48544c
cmp byte [esi + edi - 1], 0
jne 0x4853e2
mov eax, esi
call fcn.00485290
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x485437
xor bl, 0x30
movzx eax, bl
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 4]
mov ecx, 0xa
mul ecx
or edx, edx
jne 0x48541f
mov esi, eax
mov eax, dword [ebp - 8]
mul ecx
add edx, esi
add eax, dword [ebp - 0xc]
adc edx, 0
jb 0x48541f
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jmp 0x485426
mov dword [ebp - 0xc], 0x29a
pop esi
mov eax, dword [ebp - 0xc]
sub eax, 0xa
jb 0x485436
mov eax, esi
call fcn.00485290
inc edi
movzx ebx, byte [esi + edi - 1]
test bl, bl
jne 0x4853ee
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d9ec
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49dba4
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49da52
lea eax, [ebp - 0x1c]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x49dbb8
call fcn.0040e6fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0049d574
test ebx, ebx
je 0x49da5e
mov dword [ebp - 0x10], ebx
jmp 0x49daf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
add eax, 0x40
push eax
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x49daa9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00484dd8
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dab0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
add eax, 0x40
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], 3
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
push edx
push edx
mov edx, dword [ebp - 0x18]
push edx
lea edx, [eax + 0x38]
push edx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 4]
test eax, eax
jne 0x49db81
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x49db81
lea eax, [ebp - 0x2c]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x49dbfc
call fcn.0040e6fc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0049d574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dbab
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404c60
lea eax, [ebp - 0x1c]
call fcn.00404c3c
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d47c], 1
mov dword [0x40d478], 1
mov dword [0x40d474], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d014], eax
mov eax, dword [0x40d488]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d49c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d484]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409038], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056