joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4924bc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4925c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00493d94
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x49258b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409b44
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00492da0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409a28
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00492e14
jmp 0x49259d
xor edx, edx
mov eax, ebx
call fcn.00492da0
xor edx, edx
mov eax, ebx
call fcn.00492e14
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404938
ret

Function at 0x493ff8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x494056
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004940d4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x49403e
lea eax, [ebp - 4]
call fcn.004940d4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x494040
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49405d
lea eax, [ebp - 4]
call fcn.00404914
ret

Function at 0x494064
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4940c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004940d4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.00409ee8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4940cf
lea eax, [ebp - 4]
call fcn.00404914
ret
Function at 0x499624
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.00499858
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.00499858
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x499698
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4996bd
inc esi
mov eax, edi
call fcn.0049967c
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00499624
inc ebx
dec esi
jne 0x4996a7
pop edi
pop esi
pop ebx
ret

Function at 0x49974c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4997c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004996c4
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0049967c
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00499624
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x49978c
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4997c8
lea eax, [ebp - 4]
call fcn.00404914
ret
Function at 0x49a384
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a568
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x49a524
mov eax, dword [ebp - 4]
call fcn.0049bce0
cmp ebx, eax
jge 0x49a524
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00490a64
mov edx, dword [0x491e54]
call fcn.00403c0c
mov esi, eax
mov eax, esi
call fcn.00492d34
test al, al
je 0x49a51a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x49a50e
xor eax, eax
push ebp
push 0x49a507
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a93c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041be60
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404f60
mov eax, dword [ebp - 8]
call fcn.00404e2c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049a700
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a552
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x49a506
mov eax, dword [ebp - 4]
call fcn.0049a9c0
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00409ee8
jmp 0x49a552
mov eax, dword [ebp - 8]
call fcn.00404914
jmp 0x49a552
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040944c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x417bac]
call fcn.0040cec0
call fcn.004042ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a56f
lea eax, [ebp - 0x54]
call fcn.00404914
ret
Function at 0x49fcf4
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 0x49fd7d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b1d98
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49fd67
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c64c
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, 0x49fd94
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4b0cf0]
mov dl, 1
mov eax, dword [0x49f47c]
call fcn.0040cf7c
call fcn.004042ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fd84
lea eax, [ebp - 0x1c]
call fcn.00404914
ret

Function at 0x4a0424
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004a0348
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403c58
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4a0488
call fcn.0049fc3c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4a047a
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.00403c58
pop esi
pop ebx
ret

Function at 0x4a04ac
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404dd4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403300
test ebx, ebx
je 0x4a04f7
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 0x4a05d4
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 0x4a0605
mov ecx, dword [0x4b0bb8]
mov dl, 1
mov eax, dword [0x49f47c]
call fcn.0040cf40
call fcn.004042ac
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 0x4a0632
mov ecx, dword [0x4b0b1c]
mov dl, 1
mov eax, dword [0x49f47c]
call fcn.0040cf40
call fcn.004042ac
xor eax, eax
push ebp
push 0x4a06ae
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.00403c58
cmp byte [ebp + 8], 0
je 0x4a068a
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004a053c
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 eax, dword [ebp - 4]
call fcn.004a0424
jmp 0x4a06a4
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049ff28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a06cb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a08ac
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004a01e4
xor eax, eax
push ebp
push 0x4a0a1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4a0a07
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4a08f7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a0901
call fcn.00404358
jmp 0x4a0a24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041be60
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4a09fc
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4a09af
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4a099c
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c58
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004a0864
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4a0a30]
cmp dl, byte [eax + 0x28]
je 0x4a0a03
call fcn.0040ce58
jmp 0x4a0a03
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041be80
jmp 0x4a0a03
cmp ecx, ebx
jge 0x4a09cb
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041be80
jmp 0x4a0901
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041be60
cmp edx, dword [esp + 4]
jne 0x4a09eb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4a0901
push ebp
call fcn.004a0864
pop ecx
jmp 0x4a0a03
push ebp
call fcn.004a0864
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0a24
mov eax, dword [ebp - 4]
call fcn.004a01f0
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0a34
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0b56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a01e4
xor eax, eax
push ebp
push 0x4a0b39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a0a84
call fcn.00404358
jmp 0x4a0b40
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4a0b23
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4a0b23
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c58
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4a0b23
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c64c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4a0b70
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b0cf0]
mov dl, 1
mov eax, dword [0x49f47c]
call fcn.0040cf7c
call fcn.004042ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0b40
mov eax, dword [ebp - 4]
call fcn.004a01f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0b5d
lea eax, [ebp - 0x28]
call fcn.00404914
ret
Function at 0x4a0bbc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0d06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a01e4
xor eax, eax
push ebp
push 0x4a0ce9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4a0c21
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4a0c21
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4a0cd3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a0c34
call fcn.00404358
jmp 0x4a0cf0
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4a0cd3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4a0cd3
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c58
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4a0cd3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c64c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4a0d20
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b0cf0]
mov dl, 1
mov eax, dword [0x49f47c]
call fcn.0040cf7c
call fcn.004042ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0cf0
mov eax, dword [ebp - 4]
call fcn.004a01f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d0d
lea eax, [ebp - 0x28]
call fcn.00404914
ret

Function at 0x4a1368
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00485c44
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.00485c34
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x4a8208
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4a8378
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404914
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dd4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4a834f
mov eax, ebx
call fcn.00402804
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a8348
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4a8332
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a8388
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x14], 0
je 0x4a82d4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00407928
mov edx, dword [ebp - 0x14]
mov dx, word [edx]
call fcn.0040791c
lea ecx, [ebp - 0x1c]
mov edx, 8
call fcn.0040910c
mov eax, esi
call fcn.00404914
push 0x4a83ac
push dword [ebp - 0x1c]
push 0x4a83c8
push dword [ebp - 8]
lea eax, [ebp - 0x120]
mov edx, 4
call fcn.00404c94
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
call fcn.00409d94
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a8332
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00409ee8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a834f
mov eax, dword [ebp - 0x10]
call fcn.00402824
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a837f
lea eax, [ebp - 0x120]
call fcn.00404914
lea eax, [ebp - 0x1c]
call fcn.00404914
lea eax, [ebp - 4]
call fcn.00404914
ret

Function at 0x4a83cc
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
cmp byte [0x4b079c], 0
jne 0x4a83f4
push esp
xor edx, edx
mov al, 2
call fcn.00407908
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
sete byte [0x4b079c]
add esp, 0x190
ret
Function at 0x4a83fc
Capabilities:
Act as tcp client
Check for time delay via queryperformancecounter
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4a8598
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
call fcn.004a83cc
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a8582
lea eax, [ebp - 0x40]
mov edx, 0x10
call fcn.0040794c
mov word [ebp - 0x40], 2
mov ax, word [ebp - 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebp - 0x3c], edi
inc edi
jne 0x4a84a6
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a8582
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 0x3c]
call fcn.00407944
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push ebx
call sub.wsock32.dll_ioctlsocket
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x30], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
push 0x10
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.wsock32.dll_connect
lea eax, [ebp - 0x144]
call fcn.00485c44
lea edx, [ebp - 0x144]
mov eax, ebx
call fcn.00485c34
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x144]
push eax
push 0
push 0
call sub.wsock32.dll_select
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test esi, esi
jle 0x4a8571
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edx
fild qword [ebp - 0x14c]
fild qword [ebp - 0x18]
fdivp st(1)
fmul dword [0x4a85ac]
call fcn.00402cfc
inc eax
mov dword [ebp - 0xc], eax
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4a8582
test esi, esi
jg 0x4a8582
mov dword [ebp - 0xc], 0xfffffffe
push ebx
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a859f
lea eax, [ebp - 4]
call fcn.00404914
ret
Function at 0x4a8a7c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov eax, dword [ebp - 8]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4a8b06
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403300
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push ebx
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404dd4
push eax
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
call sub.kernel32.dll_CreateProcessA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8b0d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404938
ret