joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ed80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaec
push esi
push edi
mov esi, 0x51c740
lea edi, [ebp - 0x104]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x51c844
lea edi, [ebp - 0x208]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x51c948
lea edi, [ebp - 0x30c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x51ca4c
lea edi, [ebp - 0x410]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x51cb50
lea edi, [ebp - 0x514]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
jne 0x45ee0e
mov esi, 0x5d6011
lea edi, [ebp - 0x104]
mov eax, edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x104]
test edx, edx
je 0x45ee57
lea ecx, [ebp - 0x104]
push ecx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x45ee57
lea eax, [ebp - 0x104]
push eax
call fcn.004cdfec
pop ecx
movsx edx, byte [ebp + eax - 0x105]
cmp edx, 0x5c
je 0x45ee57
push 0x5d6025
lea ecx, [ebp - 0x104]
push ecx
call fcn.004cdf10
add esp, 8
push 0x5d6027
lea eax, [ebp - 0x104]
push eax
call fcn.004cdf10
add esp, 8
push 0x2100
lea edx, [ebp - 0x104]
push edx
call fcn.00405b9c
add esp, 8
test eax, eax
jne 0x45ee8a
xor eax, eax
jmp 0x45ef54
test byte [ebp + 8], 1
je 0x45ee9a
mov eax, 1
jmp 0x45ef54
mov byte [ebp - 0x30c], 0
mov dl, byte [0x519bf1]
test dl, dl
jne 0x45eebe
mov cl, byte [0x519bf5]
test cl, cl
jne 0x45eebe
mov al, byte [0x519bf7]
test al, al
je 0x45ef3c
lea edx, [ebp - 0x208]
push edx
push 0x1faf
call fcn.0044fe28
add esp, 8
lea ecx, [ebp - 0x30c]
push ecx
lea eax, [ebp - 0x208]
push eax
call fcn.00439de4
add esp, 8
lea edx, [ebp - 0x208]
push edx
push 0x1fb0
call fcn.0044fe28
add esp, 8
lea ecx, [ebp - 0x514]
push ecx
lea eax, [ebp - 0x208]
push eax
call fcn.00439de4
add esp, 8
lea edx, [ebp - 0x208]
push edx
push 0x1fb1
call fcn.0044fe28
add esp, 8
lea ecx, [ebp - 0x410]
push ecx
lea eax, [ebp - 0x208]
push eax
call fcn.00439de4
add esp, 8
push 0x10100
push 0
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.0045fde8
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45fe44
Capabilities:
Persist via run registry key

Disassembly:
push ebx
add esp, 0xfffff7f4
push 0x5d62e1
push 0x80000002
call fcn.00407308
add esp, 8
mov ebx, eax
xor eax, eax
test ebx, ebx
mov dword [esp], eax
je 0x45fed0
mov dword [esp + 4], 0x400
mov dword [esp + 8], 1
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0x414]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040739c
add esp, 0x18
test eax, eax
je 0x45fed0
lea eax, [esp + 0x40c]
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0045fe0c
add esp, 8
test al, al
jne 0x45fe68
push 0x10
push 0
lea ecx, [esp + 0x414]
push ecx
call fcn.0045fdc4
add esp, 0xc
jmp 0x45fe68
push 0x5d630f
push 0x80000001
call fcn.00407308
add esp, 8
mov ebx, eax
xor eax, eax
test ebx, ebx
mov dword [esp], eax
je 0x45ff55
mov dword [esp + 4], 0x400
mov dword [esp + 8], 1
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0x414]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040739c
add esp, 0x18
test eax, eax
je 0x45ff55
lea eax, [esp + 0x40c]
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0045fe0c
add esp, 8
test al, al
jne 0x45feed
push 0x10
push 0
lea ecx, [esp + 0x414]
push ecx
call fcn.0045fdc4
add esp, 0xc
jmp 0x45feed
mov eax, 1
add esp, 0x80c
pop ebx
ret
Function at 0x461d74
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x461d90
mov ebx, dword [ebp + 8]
push 0
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x461dcb
test byte [ebp + 0x21], 1
je 0x461dc4
push 0
mov ecx, dword [ebp + 8]
push ecx
push 1
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.00461ab0
add esp, 0x10
xor eax, eax
jmp 0x461eff
test esi, esi
jne 0x461de3
push edi
lea edi, [ebp - 0x110]
mov eax, edi
mov esi, 0x5d64a3
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
jmp 0x461df8
push esi
push 0x5d64a6
lea edx, [ebp - 0x110]
push edx
call fcn.004d26c8
add esp, 0xc
test edi, edi
je 0x461e14
lea esi, [ebp - 0x110]
push edi
lea eax, [ebp - 0x110]
push eax
call fcn.004cdf10
add esp, 8
jmp 0x461e16
xor esi, esi
mov edi, 0x10
test esi, esi
jne 0x461e2b
test byte [ebp + 0x21], 0x10
jne 0x461e2b
or edi, 0x100
mov eax, dword [ebp + 0x1c]
push eax
push esi
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 1
push 2
push edi
push 0xf01ff
push ebx
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_CreateServiceA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x461e8c
test byte [ebp + 0x21], 1
je 0x461e78
push 0
mov ecx, dword [ebp + 8]
push ecx
push 2
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.00461ab0
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
call fcn.00461d40
add esp, 8
xor eax, eax
jmp 0x461eff
test ebx, ebx
je 0x461eed
push 0x5d64aa
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x461eed
push 0x5d64b7
push eax
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x461eed
xor eax, eax
push esi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x110]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [ebp - 0xc], eax
push edx
push 1
mov ecx, dword [ebp - 4]
push ecx
call esi
test eax, eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
call fcn.00461d40
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461f50
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x10000
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x461f77
xor eax, eax
jmp 0x461faa
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_DeleteService
test eax, eax
jne 0x461f98
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 8]
push eax
call fcn.00461d40
add esp, 8
xor eax, eax
jmp 0x461faa
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461d40
add esp, 8
mov al, 1
pop ecx
pop ecx
pop ebp
ret
Function at 0x461fb0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push 0x20
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x461fd4
xor eax, eax
jmp 0x462017
lea edx, [ebp - 0x24]
push edx
push 1
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.dll_ControlService
test eax, eax
jne 0x461ffb
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
call fcn.00461d40
add esp, 8
xor eax, eax
jmp 0x462017
mov edx, dword [ebp + 0xc]
push edx
call fcn.004d9f54
pop ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 8]
push eax
call fcn.00461d40
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x46201c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x10
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x462040
xor eax, eax
jmp 0x462077
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.dll_StartServiceA
test eax, eax
jne 0x462065
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 8]
push eax
call fcn.00461d40
add esp, 8
xor eax, eax
jmp 0x462077
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461d40
add esp, 8
mov al, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x46207c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push 4
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x4620a0
xor eax, eax
jmp 0x4620df
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.dll_QueryServiceStatus
test eax, eax
je 0x4620cd
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x4620cd
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461d40
add esp, 8
mov al, 1
jmp 0x4620df
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461d40
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4621f0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push 4
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461cc4
add esp, 0x10
test al, al
jne 0x462214
xor eax, eax
jmp 0x46224b
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.dll_QueryServiceStatus
test eax, eax
je 0x462239
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
call fcn.00461d40
add esp, 8
mov al, 1
jmp 0x46224b
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
call fcn.00461d40
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46eef4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
mov al, byte [0x519bf1]
test al, al
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
je 0x46efd4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push edx
push 0x5d748f
push ecx
call fcn.004d26c8
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push 0x5d7492
lea edx, [ebp - 0x48]
push edx
call fcn.004d26c8
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
push 0x5d7495
lea eax, [ebp - 0x68]
push eax
call fcn.004d26c8
add esp, 0xc
mov edx, dword [ebp + 0x18]
push edx
push 0x5d7498
lea ecx, [ebp - 0x88]
push ecx
call fcn.004d26c8
add esp, 0xc
mov eax, dword [ebp + 0x1c]
push eax
push 0x5d749b
lea edx, [ebp - 0xa8]
push edx
call fcn.004d26c8
add esp, 0xc
test byte [0x516435], 4
je 0x46ef9f
push 0x5d74a6
push 0x5d749e
push 0x516438
call fcn.00451598
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xa8]
push ecx
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x141
call fcn.00462bcc
add esp, 0x2c
jmp 0x46f0fa
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x46efeb
push 0
push 0
push 0xb8
push 0x12
call sub.USER32.dll_keybd_event
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x46f002
push 0
push 0
push 0x9d
push 0x11
call sub.USER32.dll_keybd_event
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46f019
push 0
push 0
push 0xaa
push 0x10
call sub.USER32.dll_keybd_event
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x46f02d
push 0
push 0
push 0
push 9
call sub.USER32.dll_keybd_event
mov esi, ebx
mov bl, byte [esi]
test bl, bl
je 0x46f074
push ebx
call sub.USER32.dll_VkKeyScanA
mov ebx, eax
xor eax, eax
mov byte [ebp - 1], 0
xor edi, edi
test bl, bl
mov dword [ebp - 8], eax
je 0x46f05b
mov edx, dword [ebp - 8]
push edx
push edi
mov cl, byte [ebp - 1]
push ecx
push ebx
call sub.USER32.dll_keybd_event
test bl, bl
je 0x46f071
mov eax, dword [ebp - 8]
or edi, 2
push eax
push edi
mov dl, byte [ebp - 1]
push edx
push ebx
call sub.USER32.dll_keybd_event
inc esi
jmp 0x46f02f
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x46f088
push 0
push 2
push 0
push 9
call sub.USER32.dll_keybd_event
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46f09f
push 0
push 2
push 0xb8
push 0x12
call sub.USER32.dll_keybd_event
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x46f0b6
push 0
push 2
push 0x9d
push 0x11
call sub.USER32.dll_keybd_event
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46f0cd
push 0
push 2
push 0xaa
push 0x10
call sub.USER32.dll_keybd_event
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x46f0e1
push 0
push 0
push 0
push 0xd
call sub.USER32.dll_keybd_event
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x46f0f5
push 0
push 2
push 0
push 0xd
call sub.USER32.dll_keybd_event
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470abc
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, dword [0x5889e8]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov ax, word [0x5889ec]
xor ebx, ebx
mov word [ebp - 4], ax
lea eax, [ebp - 0x10c]
mov byte [ebp - 1], 0
push 0x5d790a
push eax
call fcn.004d26c8
add esp, 8
lea edx, [ebp - 0x210]
lea ecx, [ebp - 8]
lea eax, [ebp - 0x10c]
push 1
push 0x104
push edx
push ecx
push eax
push 0x80000002
call fcn.00406a20
add esp, 0x18
test eax, eax
je 0x470d38
mov esi, 0x5d7956
lea edi, [ebp - 0x10c]
mov eax, edi
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x210]
push ecx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x470d38
push 0x5d7990
lea eax, [ebp - 0x10c]
push eax
call fcn.004d26c8
add esp, 8
lea edx, [ebp - 0x210]
lea ecx, [ebp - 8]
lea eax, [ebp - 0x10c]
push 1
push 0x104
push edx
push ecx
push eax
push 0x80000001
call fcn.00406a20
add esp, 0x18
test eax, eax
je 0x470d38
push 0
push 0x2001
push 0x5d79c6
lea edx, [ebp - 0x10c]
push edx
call fcn.00453684
add esp, 0x10
push 0x5d79d0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004cdf10
add esp, 8
lea eax, [ebp - 0x210]
push eax
call fcn.004cdfec
pop ecx
push eax
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x210]
push ecx
call fcn.004ce208
add esp, 0xc
test eax, eax
jne 0x470d38
lea eax, [ebp - 0x10c]
push eax
call fcn.004cdfec
pop ecx
push eax
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x210]
push ecx
call fcn.004ce208
add esp, 0xc
test eax, eax
jne 0x470c1f
mov bl, 1
push 0x5d79d8
lea eax, [ebp - 0x10c]
push eax
call fcn.004d26c8
add esp, 8
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x10c]
push 1
push 0x104
push edx
push 0x5d7a12
push ecx
push 0x80000001
call fcn.00406a20
add esp, 0x18
test eax, eax
je 0x470d38
push 0
push 0x2001
push 0x5d7a18
lea eax, [ebp - 0x10c]
push eax
call fcn.00453684
add esp, 0x10
push 0x5d7a22
lea edx, [ebp - 0x10c]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call fcn.004cdfec
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004ce208
add esp, 0xc
test eax, eax
jne 0x470d38
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004cdfec
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004ce208
add esp, 0xc
test eax, eax
jne 0x470ce5
mov byte [ebp - 1], 1
mov cl, byte [ebp - 1]
cmp bl, cl
je 0x470d38
mov byte [ebp + 8], bl
mov al, byte [ebp + 8]
test al, al
je 0x470d18
test byte [0x516435], 4
je 0x470d38
push 0x5d7a38
push 0x5d7a2a
push 0x516438
call fcn.00451598
add esp, 0xc
jmp 0x470d38
test byte [0x516435], 4
je 0x470d38
push 0x5d7a4c
push 0x5d7a3e
push 0x516438
call fcn.00451598
add esp, 0xc
mov al, byte [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471780
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
add esp, 0xfffffcec
mov eax, dword [0x58ab0c]
mov dword [esp], eax
mov ax, word [0x58ab10]
mov word [esp + 4], ax
push 0x5d7bfb
lea edx, [esp + 0xc]
push edx
call fcn.004d26c8
add esp, 8
push 0x5d7c47
lea ecx, [esp + 0x214]
push ecx
call fcn.004d26c8
add esp, 8
push 1
push 0x104
lea eax, [esp + 0x114]
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push ecx
push 0x80000002
call fcn.00406a20
add esp, 0x18
test eax, eax
je 0x47181f
lea eax, [esp + 0x10c]
lea edx, [esp + 0x210]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x47181f
test cl, cl
je 0x471816
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x47181f
add eax, 2
add edx, 2
test cl, cl
jne 0x4717fa
jne 0x47181f
mov al, 1
jmp 0x4718b0
push 1
lea edx, [esp + 0x214]
push edx
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push eax
push 0x80000002
call fcn.00406a5c
add esp, 0x14
test eax, eax
je 0x4718ae
test byte [0x516435], 4
je 0x471864
lea edx, [esp + 8]
push edx
push 0x5d7c81
push 0x516438
call fcn.00451598
add esp, 0xc
test byte [0x516435], 4
je 0x471887
lea ecx, [esp + 0x10c]
push ecx
push 0x5d7c93
push 0x516438
call fcn.00451598
add esp, 0xc
test byte [0x516435], 4
je 0x4718aa
lea eax, [esp + 0x210]
push eax
push 0x5d7ca6
push 0x516438
call fcn.00451598
add esp, 0xc
mov al, 1
jmp 0x4718b0
xor eax, eax
add esp, 0x314
ret
Function at 0x47b308
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x5958e8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004d08c0
mov word [ebp - 0x14], 8
call fcn.00401270
mov word [ebp - 0x14], 8
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x47b363
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47b363
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b3cf
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x47b394
call fcn.00401270
sub eax, ebx
cmp eax, 0x2710
jbe 0x47b386
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b3cf
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x47b336
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b3cf
mov esp, ebp
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
pop ebp
ret

Function at 0x47b3dc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x5958fc
push ebx
push esi
push edi
call fcn.004d08c0
mov word [ebp - 0x14], 8
xor edx, edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
push ecx
push 0x4004667f
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x47b430
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47b430
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b482
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x47b448
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b482
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b482
mov esp, ebp
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
pop ebp
ret
Function at 0x47b490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x595910
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.004d08c0
xor ebx, ebx
xor esi, esi
call fcn.00401270
mov dword [ebp - 0x28], eax
mov word [ebp - 0x14], 8
push edi
call fcn.0047b308
pop ecx
sub eax, 0xffffffff
je 0x47b4cc
dec eax
je 0x47b535
dec eax
je 0x47b4dd
jmp 0x47b4dd
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b59a
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, ebx
push ecx
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
push edi
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jne 0x47b508
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b59a
cmp esi, 0xffffffff
jne 0x47b535
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47b527
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b59a
push 0
push 0
call fcn.004013d8
add esp, 8
xor esi, esi
add ebx, esi
mov eax, dword [ebp + 0x10]
cmp ebx, eax
je 0x47b561
call fcn.00401270
mov edx, dword [ebp - 0x28]
sub eax, edx
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jbe 0x47b4b8
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b59a
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b59a
mov esp, ebp
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x595924
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
call fcn.004d08c0
xor ebx, ebx
call fcn.00401270
mov word [ebp - 0x14], 8
mov edi, eax
push 0
mov eax, esi
sub eax, ebx
push eax
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x47b630
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47b622
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b68e
push 0
push 0
call fcn.004013d8
add esp, 8
xor eax, eax
add ebx, eax
cmp esi, ebx
je 0x47b652
call fcn.00401270
sub eax, edi
cmp eax, 0x2710
jbe 0x47b5ed
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b68e
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47b68e
mov esp, ebp
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
pop ebp
ret
Function at 0x47c78c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x595acc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d08c0
mov word [ebp - 0x14], 8
push 0
call sub.KERNEL32.dll_Sleep
test ebx, ebx
jne 0x47c7d2
push ebx
push 0x5d8ffa
call fcn.0047c020
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47c8db
mov ecx, dword [ebx + 4]
cmp ecx, 0x18b6
je 0x47c7fc
push ebx
push 0x5d9005
call fcn.0047c020
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47c8db
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x47c84c
xor eax, eax
mov dword [ebx + 0xc], eax
push 0xfe
call fcn.004cd9c8
pop ecx
mov esi, eax
call fcn.00401270
mov ecx, ebx
xor esi, eax
or esi, 1
mov eax, 0x14
mov dword [ebx + 0x10], esi
lea edx, [ecx + 0x14]
movsx ecx, byte [edx]
add dword [ebx + 0xc], ecx
inc eax
mov cl, byte [ebx + 0x10]
xor byte [edx], cl
inc edx
cmp eax, 0x18b6
jne 0x47c82c
xor eax, eax
mov edx, dword [ebx + 0xc]
sub eax, edx
mov dword [ebx + 0xc], eax
jmp 0x47c88e
mov dl, byte [ebx + 0xc]
mov ecx, ebx
mov eax, 0x14
lea esi, [ecx + 0x14]
mov cl, byte [ebx + 0x10]
inc eax
xor byte [esi], cl
add dl, byte [esi]
inc esi
cmp eax, 0x18b6
jne 0x47c859
test dl, dl
je 0x47c889
push ebx
push 0x5d9010
call fcn.0047c020
add esp, 8
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x47c8db
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x47c89b
mov ebx, eax
jmp 0x47c7a8
mov word [ebp - 0x14], 0
jmp 0x47c8c2
mov dword [0x4dd074], 0x160
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
pop ebp
ret