joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518c50
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebp, ebx
push edi
mov ecx, dword [esi + 0x1c]
sub ebp, ecx
cmp eax, 6
je 0x518c76
push ebx
push esi
call fcn.00518f60
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x518c8c
push esi
call fcn.00518dd0
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x518d48
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x518cb7
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.00518e20
add esp, 0xc
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
mov al, byte [edi + 0x47]
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x518cd7
push eax
push esi
call fcn.00518b50
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea ecx, [edx + ebp + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edx, edx
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x518d3b
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x518d21
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x518d62
push 0x14
push esi
call fcn.00518b50
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add edi, 0x18
mov eax, edi
lea edx, [ecx + ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
mov al, byte [esi + 0x30]
test cl, al
je 0x518da6
push 0xffffffffffffffff
push 0
push esi
call fcn.00518b80
add esp, 0xc
mov edx, dword [esi + 0xc]
push esi
mov eax, dword [edx - 8]
call dword [eax + 0xc]
add esp, 4
shl eax, 4
mov ecx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret
Function at 0x519870
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.0051c6e0
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.005186b0
push esi
push edi
call fcn.00518690
add esp, 0x18
pop edi
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 6
ja case.default.0x519881
jmp dword [ecx*4 + 0x5198f0]
mov dword [esp + 8], eax
jmp 0x51c790
mov dword [esp + 8], eax
jmp 0x51c830
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.0051d910
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x51ccd0
mov dword [esp + 8], eax
jmp 0x518660
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0051d910
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
add ecx, 0x10
push 0
push ecx
push eax
push edx
call fcn.0051d910
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0051d910
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0051d910
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.0051d910
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0051d910
mov eax, dword [esi + 0x38]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0051d910
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.0051d910
push 0
push 0x48
push esi
push edi
call fcn.0051d910
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x51c856
xor eax, eax
push 0
mov al, byte [ecx + 7]
inc eax
shl eax, 4
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0051d910
add esp, 0x10
ret
xor eax, eax
push 0
mov al, byte [ecx + 7]
lea eax, [eax*4 + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0051d910
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [esi + 7]
test cl, cl
je 0x51ccfe
mov eax, 1
push 0
shl eax, cl
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call fcn.0051d910
add esp, 0x10
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
shl edx, 4
push 0
push edx
push eax
push edi
call fcn.0051d910
push 0
push 0x20
push esi
push edi
call fcn.0051d910
add esp, 0x20
pop edi
pop esi
ret
Function at 0x519e40
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 6]
test al, al
je 0x519e8d
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x519eff
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x519e7b
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x519e7b
push eax
push ebx
call fcn.00519af0
add esp, 8
xor eax, eax
inc ebp
mov al, byte [edi + 7]
add esi, 0x10
cmp ebp, eax
jl 0x519e63
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x519ea4
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00519af0
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x519ebb
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.00519af0
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x519eff
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x519ef2
cmp dword [esi + 0x10], 4
jl 0x519eee
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x519eee
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00519af0
add esp, 8
mov byte [esi + 5], 1
xor ecx, ecx
inc ebx
mov cl, byte [edi + 7]
add ebp, 4
cmp ebx, ecx
jl 0x519ec7
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x51c490
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
push esi
shr eax, 5
inc eax
push edi
cmp ebp, eax
mov edx, ebp
mov esi, ebp
jb 0x51c4c6
xor ecx, ecx
mov edi, edx
mov cl, byte [ebx + esi - 1]
sub esi, eax
shl edi, 5
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x51c4aa
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x51c4f8
cmp dword [eax + 0xc], ebp
jne 0x51c4f2
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x51c508
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x51c4dc
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.0051c510
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52a502
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push edi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x52a540
test eax, eax
je 0x52a53c
cmp eax, 2
je 0x52a538
cmp eax, 3
jne 0x52a549
push 0xf
jmp 0x52a542
push 2
jmp 0x52a542
push 1
jmp 0x52a542
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x52b715
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
push ebx
cmp byte [0x651fb4], al
push esi
push edi
jne 0x52b8fb
push 8
mov esi, 0x651f94
xor ebx, ebx
pop ecx
cmp byte [ebp + 8], bl
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x651fcc], ebx
jne 0x52b7d1
call fcn.0052b977
test al, al
je 0x52b7d1
mov dword [0x651fbc], 0x52bcf0
mov dword [0x651fc0], 0x52bd06
call dword [0x651fbc]
xor ecx, ecx
mov cl, ah
movzx esi, cl
cmp esi, 1
jne 0x52b8e8
xor edi, edi
xor esi, esi
push esi
push edi
push ebx
call fcn.0052bffc
add esp, 0xc
cmp eax, 5
je 0x52b798
cmp eax, 4
jne 0x52b7a3
push esi
push edi
push ebx
call fcn.0052c1e2
add esp, 0xc
inc esi
cmp esi, 8
jl 0x52b783
inc edi
cmp edi, 0xc
jl 0x52b781
inc ebx
cmp ebx, 0x10
jl 0x52b77f
cmp dword [0x651fcc], 1
jge 0x52b8dd
push 4
pop esi
call fcn.0052b900
mov eax, esi
jmp 0x52b8fb
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, 0x5e431c
lea eax, [ebp - 0x800]
push edi
push eax
mov dword [0x651fcc], ebx
call fcn.00529cd8
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
lea eax, [ebp - 0x800]
push eax
call esi
cmp eax, ebx
mov dword [0x651fb8], eax
jne 0x52b89f
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x60b360
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.00529d12
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00529d12
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x651fb8], eax
jne 0x52b89f
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.00529d12
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00529d12
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x651fb8], eax
jne 0x52b89f
xor esi, esi
inc esi
jmp 0x52b7c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
push str.SendASPI32Command
mov dword [0x651fbc], eax
push dword [0x651fb8]
call esi
xor ebx, ebx
mov dword [0x651fc0], eax
cmp dword [0x651fbc], ebx
je 0x52b8d6
cmp eax, ebx
jne 0x52b769
push 5
jmp 0x52b7c4
mov byte [0x651fb4], 1
xor eax, eax
jmp 0x52b8fb
push esi
call fcn.0052bfeb
pop ecx
call fcn.0052b900
mov eax, esi
shl eax, 8
or al, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52b977
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp byte [0x651fc4], 0
mov dword [ebp - 4], edi
je 0x52b992
xor al, al
jmp 0x52ba3d
push ebx
push esi
push 0x79c
mov esi, 0x618
push str.C:Dev_fmodsrc375winwin_src_fsound_cdda.c
push esi
push edi
call fcn.0052a082
add esp, 0x10
mov dword [0x651fc8], eax
mov dword [0x651f90], edi
mov dword [0x651fd4], edi
xor eax, eax
mov ecx, dword [0x651fc8]
add eax, 0x3c
or dword [eax + ecx - 0x28], 0xffffffff
cmp eax, esi
jl 0x52b9c0
push 2
pop ebx
push 0x78
pop edi
mov al, bl
add al, 0x41
movsx eax, al
push eax
lea eax, [ebp - 8]
push str._c:_
push eax
call fcn.0057eab8
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x52ba1f
mov eax, dword [0x651fc8]
add eax, edi
push eax
push ebx
call fcn.0052bbba
mov eax, dword [0x651fc8]
pop ecx
pop ecx
cmp byte [edi + eax + 0x10], 0
je 0x52ba1f
inc dword [ebp - 4]
add edi, 0x3c
inc ebx
cmp edi, esi
jl 0x52b9d8
call fcn.0052bb50
mov dword [0x651f90], eax
mov al, byte [ebp - 4]
pop esi
mov byte [0x651fc4], 1
pop ebx
pop edi
leave
ret
Function at 0x53a260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x653c40], ebx
push esi
push edi
jne 0x53a398
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x653c40], eax
mov eax, dword [0x61f454]
test byte [eax + 9], 0x30
je 0x53a2a3
push str.dsound3d.dll
call edi
mov dword [0x653c44], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x653c40]
call esi
cmp eax, ebx
mov dword [0x653c64], eax
jne 0x53a2d1
push str.DirectSoundCreate
push dword [0x653c40]
call esi
mov dword [0x653c5c], eax
push str.DirectSoundEnumerateA
push dword [0x653c40]
call esi
cmp dword [0x653c64], ebx
mov dword [0x653c60], eax
setne al
push eax
push dword [0x653c40]
call fcn.005477c1
cmp dword [0x653c64], ebx
pop ecx
pop ecx
je 0x53a36e
lea eax, [ebp - 0x400]
push 0x104
push eax
mov dword [0x62421c], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x53a398
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.00529cd8
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.00529d12
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.0052a790
add esp, 0x1c
cmp eax, ebx
je 0x53a398
push eax
call fcn.0052a936
pop ecx
mov dword [0x62421c], 9
jmp 0x53a398
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x53a398
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x53a391
mov dword [0x62421c], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53d706
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push closesocket
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53d847
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x53d77a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x53d847
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.005803a0
mov eax, dword [0x655114]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x53d80c
cmp dword [ebp - 0x128], 1
jne 0x53d80c
push edi
push edi
lea eax, [ebp - 0x340]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.00529cc4
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00529d94
add esp, 0x10
test eax, eax
je 0x53d81a
inc dword [ebp - 8]
cmp ebx, 1
jne 0x53d78b
jmp 0x53d839
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.00580060
mov eax, dword [0x61f454]
add esp, 0xc
test byte [eax + 8], 1
je 0x53d847
mov eax, dword [0x655114]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x53e342
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x53e3d9
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x53e38e
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x624758]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x53e370
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x53e3b5
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x624758]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x53e398
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x546849
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x66fc84], 0
jne 0x54686e
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
mov dword [0x66fc84], 1
mov al, 1
add esp, 0x190
ret

Function at 0x54688f
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 0
je 0x5468a2
dec eax
jne 0x5468a5
push 2
pop ecx
jmp 0x5468a5
xor ecx, ecx
inc ecx
push 0
push ecx
push 2
call sub.WSOCK32.dll_socket
ret

Function at 0x5468ba
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x546925
cmp byte [esi], bl
je 0x546925
cmp dword [ebp + 0x10], ebx
je 0x546925
xor edi, edi
push 0x10
lea eax, [ebp - 0x28]
inc edi
push ebx
push eax
mov dword [ebp + 0xc], edi
call fcn.005803a0
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.005803a0
lea eax, [ebp - 0x58]
push 0x2e
push eax
push esi
call fcn.00546a44
add esp, 0x24
test eax, eax
je 0x54691c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005469fc
pop ecx
test eax, eax
pop ecx
jne 0x54692d
push dword [ebp + 8]
call fcn.005468b0
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x24]
push 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00580060
add esp, 0xc
mov word [ebp - 0x18], 2
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [0x620e54]
cdq
mov ecx, 0x3e8
mov esi, dword [ebp + 8]
idiv ecx
mov dword [ebp - 0x15c], edi
mov edi, 0x8004667e
mov dword [ebp - 0x158], esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
mov dword [ebp - 4], edx
call sub.WSOCK32.dll_ioctlsocket
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x5469b7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [ebp + 8], eax
je 0x5469b7
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
jmp 0x546928
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15c]
push ebx
push eax
push ebx
push ebx
call sub.WSOCK32.dll_select
cmp eax, ebx
mov dword [ebp + 8], eax
jg 0x5469e7
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x546928
jmp 0x546925
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push edi
push esi
call sub.WSOCK32.dll_ioctlsocket
xor eax, eax
jmp 0x546928

Function at 0x5469fc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push dword [ebp + 8]
call fcn.00581121
add esp, 0x18
cmp eax, 4
jge 0x546a2b
xor eax, eax
leave
ret
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x548b91
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x548bf9
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x548bf9
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.00548c2b
add esp, 0x10
mov dword [esi], eax
jmp 0x548bc3
cmp dword [ebp - 4], edi
je 0x548c07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x548c14
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x548c0b
cmp dword [esi + 4], edi
je 0x548c24
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x548c2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x548d75
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x548d92
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x548d69
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00548d98
add esp, 0xc
test eax, eax
jne 0x548d69
mov ebx, 0x29c
push ebx
call fcn.005985a0
mov esi, eax
pop ecx
test esi, esi
je 0x548d69
push ebx
push 0
push esi
call fcn.005803a0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x548d23
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.00580060
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x548d58
lea eax, [ebp - 0x114]
push eax
jmp 0x548d5b
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005804d0
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x548d92
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push dword [edi]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00548c2b
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret