joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c3e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f1f2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c1334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x596fa4
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], 1
push esi
call fcn.004566d0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00438a80
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x5c8430]
mov dword [esi + 0x40], eax
mov eax, dword [0x5c8434]
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 1
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00438110
test eax, eax
jne 0x46c521
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043c9b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480660
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0xc
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x818], 0
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x814], 1
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4806c4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x80c]
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x824], eax
xor eax, eax
push 0x3f4
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x3f8]
push eax
mov dword [ebp - 0x834], 0x101
call sub.VCRUNTIME140.dll_memset
movq xmm0, qword [str.Cmd.exe__C]
lea edi, [ebp - 0x404]
mov eax, dword [0x597e20]
add esp, 0xc
movq qword [ebp - 0x404], xmm0
dec edi
mov dword [ebp - 0x3fc], eax
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x480738
push esi
mov ecx, 8
lea eax, [ebp - 0x870]
mov esi, str.wmic_diskdrive_get_name__signature
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x404]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x80c]
test eax, eax
jne 0x4807a6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x808]
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480855
nop word [eax + eax]
lea eax, [ebp - 0x804]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4807f8
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x480804
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x804]
push 0x400
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4807f0
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x482570
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57064b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0
push edx
mov dword [ebp - 0x220], edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
shl esi, 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
mov eax, esi
or eax, 0x1000000
cmp dword [ebp + 8], 0
cmove eax, esi
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482610
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0043e6f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret

Function at 0x486270
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570b10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c1334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x10]
mov dword [esi + 0x10], 0
push dword [esi + 8]
call fcn.0052ffad
add esp, 4
test eax, eax
je 0x4862bf
push eax
call fcn.0053073a
add esp, 4
push dword [esi + 4]
mov byte [esi + 0xc], 1
call fcn.005303a1
add esp, 4
test eax, eax
je 0x4862db
push eax
call fcn.0053073a
add esp, 4
push dword [esi + 8]
call fcn.00530022
add esp, 4
test eax, eax
je 0x4862f3
push eax
call fcn.0053073a
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 2
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.005303de
test edi, edi
je 0x48632f
push 1
push edi
call fcn.005283f2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ee50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x5c1334]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48eea8
mov eax, dword [esp]
cmp al, 2
jne 0x48eea2
shr eax, 8
cmp al, 2
jne 0x48eea2
call fcn.00493d70
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00528802
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.00528802
mov esp, ebp
pop ebp
ret

Function at 0x48f270
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x18], esi
test edi, edi
jne 0x48f3af
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub ecx, eax
lea eax, [esp + 0xc]
push eax
sub esp, 8
mov dword [esp + 0x20], ecx
mov ecx, ebx
call fcn.00491620
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48f282
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x48f3a3
test eax, eax
jne 0x48f33b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, edx
sub edx, dword [esp + 0x10]
imul eax, edx, 0x3e8
sub eax, dword [esp + 0x14]
add eax, ecx
cmp eax, 0xa
jg 0x48f33b
inc esi
cmp esi, 2
jle 0x48f33d
cmp esi, 0xa
jge 0x48f32d
mov ecx, dword [esp + 0x18]
mov eax, 1
shl eax, cl
test eax, eax
je 0x48f33d
jns 0x48f332
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x48f33d
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48f33d
xor esi, esi
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.00492b20
mov edi, eax
test edi, edi
jne 0x48f282
cmp dword [esp + 0x1c], eax
jne 0x48f282
test ebx, ebx
je 0x48f282
cmp dword [ebx], 0xbab1e
jne 0x48f282
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + 0xc], eax
je 0x48f282
mov edx, dword [ecx]
push edi
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call fcn.004a4aa0
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x48f282
mov eax, dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 3
mov eax, 0x2b
pop edi
mov ecx, 0x1b
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4943e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x49445e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49442e
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.00490350
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00494100
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x863c], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x494880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x4948a6
push dword [edi + 0x174]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
call eax
add esp, 0x14
pop edi
pop ebp
ret
cmp edx, 2
ja 0x4948dc
push dword [edi + 0x170]
lea eax, [edx*2 + 0x593c64]
push 1
add eax, edx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x170]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4948f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x320], 0
je case.default.0x494934
test eax, eax
je case.default.0x494934
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x494934
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x494934
jmp dword [ecx*4 + 0x494a08]
mov eax, str.Header
mov ecx, str.from
jmp 0x494951
mov eax, str.Header
mov ecx, 0x59a67c
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.004a4150
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494976
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.00494880
add esp, 8
test eax, eax
jne 0x4949f7
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x4949c3
push dword [edi + 0x174]
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x4949f5
push dword [edi + 0x170]
lea eax, [esi*2 + 0x593c64]
push 1
add eax, esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push 2
push eax
call esi
push dword [edi + 0x170]
push 1
push dword [ebp + 0xc]
push ebx
call esi
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x4953d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x495588
cmp dword [edi + 0x250], 0
jne 0x495581
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49545b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00490350
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00494100
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4954b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00490350
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00494100
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00495370
add esp, 4
test eax, eax
jne 0x495503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00490350
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00494100
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x108]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.00495370
add esp, 4
test eax, eax
jne 0x495581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00490350
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00494100
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004952b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x495b80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5c8398]
mov dword [ebp - 0x130], 0x4020
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x134], 4
push esi
mov esi, ecx
test eax, eax
jne 0x495c2e
push 0x114
push eax
lea eax, [ebp - 0x120]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x495c22
mov dword [0x5c8398], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov dword [0x5c8398], 1
jmp 0x495c33
cmp eax, 2
je 0x495c7e
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x495c64
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x130]
jg 0x495c7e
push 4
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x4962f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov ebx, dword [eax + 0x600]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4963c3
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4963c3
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4963b6
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004a5e40
test eax, eax
je 0x4963b6
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], edx
nop dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
je 0x49636d
nop dword [eax + eax]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
cmp ecx, ebx
je 0x4963cd
test eax, eax
jne 0x496360
test edi, edi
je 0x49637a
mov eax, dword [edi + 8]
mov edi, eax
test eax, eax
jne 0x4963b0
mov eax, dword [ebp - 0x1c]
mov ecx, edx
mov esi, dword [eax + 0x10]
cmp ecx, esi
jge 0x4963ac
mov eax, dword [eax]
lea edx, [eax + ecx*4]
nop dword [eax + eax]
mov eax, dword [edx]
inc ecx
mov eax, dword [eax]
test eax, eax
jne 0x4963a5
add edx, 4
cmp ecx, esi
jl 0x496390
mov edx, dword [ebp - 8]
jmp 0x4963ac
mov edx, ecx
mov edi, eax
mov dword [ebp - 8], edx
test edi, edi
je 0x4963b6
mov eax, dword [edi]
test eax, eax
jne 0x496350
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x600], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4963d6
mov dword [esi], ebx
cmp dword [ebx + 0x17c], 0
mov esi, dword [ebx + 0x154]
jne 0x4963f8
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4963c3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d9c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov eax, 0x493e0
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
mov ebx, edx
xor eax, eax
mov ecx, dword [esi + 0x220]
test ecx, ecx
mov edx, dword [esi + 0x224]
setg al
push edi
test edx, edx
jle 0x49d9f9
or eax, 2
sub eax, 1
je 0x49da19
sub eax, 1
je 0x49da14
sub eax, 1
jne 0x49da1c
cmp ecx, edx
mov eax, ecx
cmovge eax, edx
mov dword [ebp - 4], eax
jmp 0x49da1c
mov dword [ebp - 4], edx
jmp 0x49da1c
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, dword [esi + 0x570]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
mov edx, dword [ebp - 0xc]
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [edx + 0x574]
imul ecx
imul eax, esi, 0x3e8
mov esi, dword [ebp - 4]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add esi, eax
mov eax, 0xffffffff
cmove esi, eax
cmp dword [ebx + 0x250], 0
je 0x49da90
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
lea eax, [ebx + 0x90]
push eax
mov ecx, edi
call fcn.0049bb80
mov eax, dword [ebx + 0xa8]
add esp, 4
test eax, eax
je 0x49db51
cmp byte [eax], 0
je 0x49db51
lea eax, [ebx + 0xa0]
mov ecx, edi
push eax
call fcn.0049bb80
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
js 0x49dbbc
mov edx, dword [ebx + 0xa8]
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xb0]
mov ecx, ebx
call fcn.004971f0
add esp, 8
cmp eax, 1
jne 0x49db13
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x49dbbc
cmp dword [ebp - 4], 0
jne 0x49dbc3
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push edi
call fcn.00494100
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 5
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0
test esi, esi
js 0x49dbbc
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.004971f0
add esp, 8
cmp eax, 1
je 0x49dafa
cmp eax, 0xfffffffe
je 0x49dbbc
cmp dword [ebp - 4], 0
jne 0x49dbc3
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push edi
call fcn.00494100
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 6
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ea00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.004a16c0
movsd qword [ebx + 0x538], xmm0
add esp, 0x10
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x49ea6f
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], 0
mov dword [edi + 0x2a4], 0
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x49ead1
mov ecx, dword [edi + 0x2d8]
test ecx, ecx
je 0x49eaad
push ecx
call dword [0x5c1c7c]
mov dword [edi + 0x2d8], 0
add esp, 4
mov eax, dword [ebx + 0x42c]
push eax
push str.User_Agent:__s_r_n
call fcn.004a4250
add esp, 8
mov dword [edi + 0x2d8], eax
test eax, eax
jne 0x49ead1
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x49eb33
mov dword [edi + 0x270], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.00496110
test eax, eax
je 0x49ebd7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.004a16c0
add esp, 0x10
movsd qword [ebx + 0x540], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.004a16c0
mov eax, dword [esp + 0x1c]
add esp, 0x10
movsd qword [ebx + 0x548], xmm0
mov ecx, edi
mov dword [edi + 0x270], 1
mov dword [eax], 1
mov edx, dword [edi + 0x154]
call fcn.004953d0
mov ecx, edi
call fcn.0049b9d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret