joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4785e0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x24
push ebp
push esi
xor esi, esi
xor eax, eax
push 0xf003f
push esi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, esi
jne 0x478624
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
push ebx
push edi
mov ebx, str.LanmanWorkstation
mov dword [esp + 0x14], 0x21
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4786df
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4786d8
cmp dword [esp + 0x1c], 4
je 0x4786d8
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [esp + 0x10]
push edx
call fcn.0048690e
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push 0
push esi
call fcn.00487630
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x4786cd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x14]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi]
push edx
push eax
push 2
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 0x40
sub dword [esp + 0x14], 1
jne 0x478633
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
Function at 0x478bb0
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x20
push esi
xor eax, eax
push 1
push str.guest
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push 0x4b06b8
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], eax
call sub.MPR.dll_WNetAddConnection2W
cmp eax, 0x1e7
ja 0x478c16
je case.0x478c29.1222
cmp eax, 0x40
ja case.0x478c29.1223
movzx edx, byte [eax + 0x478c6c]
jmp dword [edx*4 + 0x478c60]
sub eax, 0x4c6
cmp eax, 0xa3
ja case.0x478c29.1223
movzx eax, byte [eax + 0x478cbc]
jmp dword [eax*4 + 0x478cb0]
xor eax, eax
pop esi
add esp, 0x20
ret
push 1
push str.administrator
push 0x4b06b8
lea ecx, [esp + 0x10]
push ecx
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne case.0x478c29.1223
mov esi, 1
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x478d60
Capabilities:
Connect network resource

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20
test edx, edx
je 0x478dc9
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x478dc9
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 9
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 1
push 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call sub.MPR.dll_WNetAddConnection2W
add esp, 0x20
ret
mov eax, 0x35
add esp, 0x20
ret

Function at 0x478e10
Capabilities:
Impersonate user

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x478e44
lea ecx, [esp + 4]
push ecx
push 0
push 2
push 0x4aa2f4
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x478e44
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
xor eax, eax
ret
Function at 0x479150
Capabilities:
Delete file
Get common file path
Persist via application shimming
Write file on windows

Disassembly:
sub esp, 0x620
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push edi
mov edi, dword [esp + 0x62c]
test edi, edi
je 0x4792d7
mov ebx, dword [esp + 0x630]
test ebx, ebx
jbe 0x4792d7
push esi
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00487630
push 0x208
lea ecx, [esp + 0x430]
push 0
push ecx
call fcn.00487630
push 0x208
lea edx, [esp + 0x234]
push 0
push edx
call fcn.00487630
add esp, 0x24
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
push str._szcl.sdb
lea edx, [esp + 0x428]
push 0x104
push edx
call fcn.00466960
lea eax, [esp + 0x20]
push eax
push str._szcl.inf
lea ecx, [esp + 0x230]
push 0x104
push ecx
call fcn.00466960
add esp, 0x20
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47924e
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x479268
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00486dc0
add esp, 0x620
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x424]
push edx
push str._secedit.exe___configure__db__s__cfg__s__quiet
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00466960
push 1
lea eax, [esp + 0x28]
call fcn.00477910
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x18
lea ecx, [esp + 0x420]
push ecx
call esi
lea edx, [esp + 0x218]
push edx
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00486dc0
add esp, 0x620
ret
mov ecx, dword [esp + 0x624]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00486dc0
add esp, 0x620
ret
Function at 0x479750
Capabilities:
Create directory
Get common file path
Start service
Stop service

Disassembly:
sub esp, 0x430
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x42c], eax
xor eax, eax
push ebx
xor ebx, ebx
push edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00479690
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x479872
push ebp
push esi
push 0xf01ff
push str.spooler
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x47986d
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4797e9
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x4797e9
cmp eax, 3
jne 0x47986a
push 0x104
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.spoolPRINTERS
lea edx, [esp + 0x238]
push edx
push 0x4a971c
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.00466960
call fcn.00466600
lea ecx, [esp + 0x40]
push ecx
call fcn.0046eb30
add esp, 0x18
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00466660
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x479865
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x47986a
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
mov ecx, dword [esp + 0x434]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x430
ret
Function at 0x479890
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x660], eax
push esi
mov esi, dword [esp + 0x66c]
test esi, esi
jne 0x4798c8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.00486dc0
add esp, 0x664
ret
push edi
push 0x208
lea eax, [esp + 0x464]
push 0
push eax
call fcn.00487630
push 0x208
lea ecx, [esp + 0x268]
push 0
push ecx
call fcn.00487630
push 0
push 0x10000000
push 0x4a988c
push esi
call fcn.0046e420
push esi
push str._s
lea edx, [esp + 0x490]
push 0x104
push edx
call fcn.00466960
add esp, 0x38
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4799ff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0xc]
push edx
push edi
call ebp
test eax, eax
je 0x4799f7
test byte [esp + 0xc], 0x10
je 0x4799ae
cmp word [esp + 0x38], 0x2e
je 0x4799e7
lea eax, [esp + 0x38]
push eax
push esi
push 0x4a9cec
lea ecx, [esp + 0x268]
push 0x104
push ecx
call fcn.00466960
push 0
push 0x10000000
lea edx, [esp + 0x278]
push 0x4a9dec
push edx
call fcn.0046e420
lea eax, [esp + 0x280]
push eax
call fcn.00479890
add esp, 0x28
jmp 0x4799e7
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x4a9ef4
lea edx, [esp + 0x268]
push 0x104
push edx
call fcn.00466960
push 0
push 0x10000000
lea eax, [esp + 0x278]
push str.everyone
push eax
call fcn.0046e420
add esp, 0x24
lea ecx, [esp + 0xc]
push ecx
push edi
call ebp
test eax, eax
jne 0x479953
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x668]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00486dc0
add esp, 0x664
ret

Function at 0x479a20
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
mov dword [esp + 8], esi
cmp ebp, esi
je 0x479b09
push edi
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x479b08
push ebx
mov ebx, dword [esp + 0x24]
cmp ebx, esi
je 0x479b07
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479af9
lea eax, [esp + 0x10]
push eax
push 0x1f6
push edi
push esi
call sub.NETAPI32.dll_NetShareGetInfo
test eax, eax
jne 0x479af9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push ebx
push edi
call fcn.00478e50
add esp, 0x10
test eax, eax
je 0x479a96
mov esi, 1
mov eax, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x3ee
push edi
push 0
mov dword [esp + 0x30], eax
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
jne 0x479ab9
lea esi, [eax + 1]
mov edx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0x18]
push eax
push 0x3ec
push edi
push 0
mov dword [esp + 0x28], edx
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
jne 0x479adc
lea esi, [eax + 1]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebx
push ebp
call fcn.0046e940
add esp, 0x10
test eax, eax
je 0x479af9
mov esi, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x479b07
push eax
call sub.NETAPI32.dll_NetApiBufferFree
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
Function at 0x479b20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49eb33
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov esi, dword [esp + 0xbc]
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], 2
mov dword [esp + 0x28], vtable.ATL::CDacl.0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x48]
mov dword [esp + 0xb4], edi
call fcn.0046cd50
mov byte [esp + 0xb4], 1
cmp esi, edi
je 0x479cbf
cmp ebx, edi
je 0x479cbf
cmp ebp, edi
je 0x479cbf
cmp dword [esp + 0x14], edi
je 0x479cbf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479cbf
push 0x4a692c
push ebx
call fcn.00487536
add esp, 8
test eax, eax
je 0x479c1e
push ebx
call fcn.00465f50
add esp, 4
test eax, eax
je 0x479cbf
lea ecx, [esp + 0x28]
push ecx
push 1
push esi
call fcn.0046df40
add esp, 0xc
test al, al
je 0x479cbf
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov dword [esp + 0x1c], eax
jle 0x479cbf
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x10]
push edi
lea ecx, [esp + 0x2c]
call eax
mov esi, eax
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0046de50
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ebp, dword [esi + 0x64]
mov ecx, esi
call eax
test byte [esi + 0x68], 3
mov bl, al
je 0x479ca2
mov ecx, dword [esp + 0x98]
cmp dword [ecx - 0xc], 0
jne 0x479c89
lea ecx, [esp + 0x48]
call fcn.0046e210
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.00487536
add esp, 8
test eax, eax
je 0x479cab
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x479c42
jmp 0x479cbf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [ecx], ebp
mov byte [edx], bl
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x48]
call fcn.0046cdc0
lea ecx, [esp + 0x28]
call fcn.0046dec0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00486dc0
add esp, 0xa4
ret
Function at 0x47cac0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x49ebbb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
lea esi, [edi + 0x30]
push str.ComNetCardName
mov ecx, esi
mov dword [0x4d04a4], ebp
mov dword [0x4d04a8], ebp
call fcn.0040a7c0
push str.NetCardGUID
mov ecx, esi
mov dword [edi + 0x928], eax
call fcn.0040a7c0
push str.NetCardIP
mov ecx, esi
mov dword [edi + 0x92c], eax
call fcn.0040a7c0
push str.NetCardMask
mov ecx, esi
mov dword [edi + 0x930], eax
call fcn.0040a7c0
push str.NetCardGay
mov ecx, esi
mov dword [edi + 0x934], eax
call fcn.0040a7c0
mov ecx, dword [edi + 0x92c]
mov dword [edi + 0x938], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push ebp
call edx
mov ecx, dword [edi + 0x934]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push ebp
call edx
mov ecx, dword [edi + 0x938]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push ebp
call edx
call fcn.0047c3d0
mov ecx, eax
call fcn.0047c410
cmp eax, ebp
mov dword [esp + 0x14], eax
jle 0x47cc30
push 0x568
call fcn.004872c3
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x24], esi
cmp eax, esi
je 0x47cbc3
mov ecx, eax
call fcn.00413c10
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
push 0x14
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call edx
mov ebx, dword [esi]
push ebp
add ebx, 0x2c
call fcn.0047c3d0
mov ecx, eax
call fcn.0047c470
push eax
mov eax, dword [ebx]
mov ecx, esi
call eax
mov ecx, dword [edi + 0x928]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx + 0x10]
add ecx, 0x550
push esi
call eax
mov ecx, dword [edi + 0x928]
mov edx, dword [ecx + 0x698]
mov eax, dword [edx + 0xc]
add ecx, 0x698
push 0
push 0
call eax
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x47cb9f
push 0
mov ecx, edi
call fcn.0047c820
mov ecx, edi
call fcn.004015b0
mov ecx, dword [edi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47ece0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x120
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 6
push 1
push 2
xor edi, edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x47eddc
push 0x4caadc
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x47edd5
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
xor eax, eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov eax, 2
push edx
mov word [esp + 0x118], ax
mov dword [esp + 0x11c], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x116], ax
push 0x10
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
je 0x47edd0
jge 0x47ed9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47edd5
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esi + 1]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x3e8
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
je 0x47edd5
jl 0x47edd5
mov edi, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x124]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00486dc0
add esp, 0x120
ret
Function at 0x47ee00
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x30
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x47efe3
push 8
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47efcf
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xa1
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x20]
push edx
push ebp
push 0x27
push 0x4acd38
mov ecx, 2
push esi
mov word [esp + 0x36], ax
mov word [esp + 0x34], cx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47efcf
cmp eax, 0x27
jne 0x47efcf
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
xor eax, eax
push 0x200
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0048690e
push 0x200
mov edi, eax
push ebp
push edi
call fcn.00487630
add esp, 0x10
push 0x4caae0
lea eax, [esp + 0x30]
push eax
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recvfrom]
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47efcb
push 0x10
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x30
push 0x4acd08
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47efcb
cmp eax, 0x30
jne 0x47efcb
push 0xc8
call ebx
push 0x200
push 0
push edi
call fcn.00487630
add esp, 0xc
push 0x4caae0
lea edx, [esp + 0x30]
push edx
push 0
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47efcb
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
push 0x29
push 0x4accdc
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47efcb
cmp eax, 0x29
jne 0x47efcb
push 0xc8
call ebx
push 0x200
push 0
push edi
call fcn.00487630
add esp, 0xc
push 0x4caae0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47efcb
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x47efe3
push edi
call fcn.00487d04
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x30
ret
Function at 0x47f180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x101
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f1d4
mov eax, dword [esp + 4]
test eax, eax
je 0x47f1e3
mov edx, dword [esp + 0x14]
lea ecx, [esp]
push ecx
push 0
push 0x4cab84
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x47f1e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x47f1f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0x101
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x47f255
test eax, eax
jne 0x47f255
mov eax, dword [esp + 4]
test eax, eax
je 0x47f264
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
push 0x4cab88
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x47f264
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x47f270
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x102
push eax
push edi
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call ebp
mov esi, eax
cmp esi, 2
jne 0x47f2db
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x104
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x47f30d
lea ecx, [esp + 0x10]
push ecx
push 0x102
push eax
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x47f30d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47f30d
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
push 1
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret