joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405270
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x224
test eax, eax
jl 0x405312
cmp eax, 0x1a
jge 0x405312
add eax, 0x41
push eax
lea eax, [esp + 4]
push str._c:_
push eax
call fcn.0041231a
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x405312
cmp eax, 1
je 0x405312
mov edx, dword [esp + 0x230]
push 0x105
lea ecx, [esp + 0x14]
mov dword [edx], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x105
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405312
mov ecx, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push eax
call fcn.0041ef0f
mov eax, 1
add esp, 0x224
ret 0xc
xor eax, eax
add esp, 0x224
ret 0xc
Function at 0x405320
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x250
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
jl 0x40554b
cmp eax, 0x1a
jge 0x40554b
add eax, 0x41
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.0041231a
add esp, 0xc
lea ecx, [esp + 0x154]
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
push 0x105
push ecx
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x60]
push 0x105
lea eax, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x48], 0x104
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40554b
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x268]
call fcn.0041ef0f
mov edx, dword [esp + 0x268]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [edx], eax
call fcn.00405140
test eax, eax
je 0x4054d7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4054d7
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40553a
push str.GetDiskFreeSpaceExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405458
lea edx, [esp + 0x38]
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
push edx
push ecx
call eax
test eax, eax
jle 0x4054bf
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40554b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mul dword [esp + 0x10]
mov edi, edx
mov esi, eax
push edi
push esi
push 0
push ecx
call fcn.00412570
mov ecx, dword [esp + 0x26c]
push edi
push esi
push 0
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
push edx
call fcn.00412570
mov ecx, dword [esp + 0x270]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40554b
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
mov edi, edx
mov edx, dword [esp + 0xc]
mov esi, eax
push edi
push esi
push 0
push edx
call fcn.00412570
mov ecx, dword [esp + 0x26c]
push edi
push esi
push 0
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
push eax
mov dword [ecx + 4], edx
call fcn.00412570
mov ecx, dword [esp + 0x270]
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret 0x14
Function at 0x406fd0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test edx, edx
mov dword [esp], edx
jne 0x406fe9
xor al, al
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
xor ebx, ebx
mov eax, edx
mov ecx, ebx
sar eax, cl
test eax, eax
je 0x40707c
test al, 1
je 0x407072
mov al, bl
lea ecx, [esp + 0x18]
add al, 0x41
push ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x24]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x38], esi
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
push 0x2ee0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edx
push ebp
push ecx
lea edx, [esp + 0x30]
push 0xc
push edx
push eax
call fcn.00408aa0
mov edx, dword [esp + 0x28]
add esp, 0x18
inc ebx
cmp ebx, 0x1a
jl 0x406ff3
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret
Function at 0x407660
Capabilities:
Delete file

Disassembly:
mov eax, 0x120c
call fcn.00411c60
push ebx
mov ebx, dword [esp + 0x1218]
push ebp
mov ebp, dword [esp + 0x1218]
push esi
push edi
push 0x2ee0
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push 0x208
push ecx
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
je 0x4077e5
cmp dword [esp + 0x10], 0x208
jne 0x4077e5
lea edx, [esp + 0x14]
push 0x42e508
push edx
call fcn.00412307
mov edi, eax
add esp, 8
test edi, edi
je 0x4077e5
mov eax, dword [esp + 0x214]
xor esi, esi
test eax, eax
jbe 0x407782
mov ecx, eax
push 0x2ee0
sub ecx, esi
lea edx, [esp + 0x14]
cmp ecx, 0x1000
push ebx
push edx
jbe 0x407740
lea eax, [esp + 0x228]
push 0x1000
push eax
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
push edi
je 0x4077d2
push 0x1000
lea ecx, [esp + 0x224]
push 1
push ecx
call fcn.00411dcd
add esp, 0x10
cmp eax, 0x1000
jne 0x407790
add esi, eax
mov eax, dword [esp + 0x214]
cmp esi, eax
jae 0x407782
jmp 0x4076dd
sub eax, esi
push eax
lea eax, [esp + 0x22c]
push eax
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
push edi
je 0x4077b1
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0x220]
sub ecx, esi
push ecx
push 1
push edx
call fcn.00411dcd
mov ecx, dword [esp + 0x224]
add esp, 0x10
sub ecx, esi
cmp eax, ecx
jne 0x4077d1
push edi
call fcn.00412259
add esp, 4
jmp 0x40767c
push edi
call fcn.00412259
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret
call fcn.00412259
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret
push edi
call fcn.00412259
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret

Function at 0x407960
Capabilities:
Create directory

Disassembly:
sub esp, 0x214
lea eax, [esp]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x220]
push 0x2ee0
push esi
push eax
push 0x208
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
je 0x4079e2
cmp dword [esp + 8], 0x208
jne 0x4079e2
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
push 0x2ee0
add eax, 0x2711
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 8
push ecx
push edi
call fcn.00408aa0
add esp, 0x18
mov al, 1
pop edi
pop esi
add esp, 0x214
ret
pop edi
xor al, al
pop esi
add esp, 0x214
ret

Function at 0x4079f0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20c
lea ecx, [esp]
lea edx, [esp + 4]
push 0x2ee0
push eax
mov eax, dword [esp + 0x218]
push ecx
push 0x208
push edx
push eax
call fcn.00408b30
add esp, 0x18
test al, al
je 0x407a4e
cmp dword [esp], 0x208
jne 0x407a4e
push 1
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
add esp, 0x20c
ret
xor al, al
add esp, 0x20c
ret
Function at 0x407a60
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x228]
push 0x2ee0
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x28]
push 0x208
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
je 0x407af5
cmp dword [esp + 0x10], 0x208
jne 0x407af5
mov al, byte [esp + 0x220]
test al, al
je 0x407ac4
lea edx, [esp + 0x1c]
push edx
call ebx
jmp 0x407acb
lea eax, [esp + 0x1c]
push eax
call ebp
neg eax
push 0x2ee0
lea ecx, [esp + 0x14]
push esi
push ecx
sbb eax, eax
lea edx, [esp + 0x20]
push 8
add eax, 0x2711
push edx
push edi
mov dword [esp + 0x2c], eax
call fcn.00408aa0
add esp, 0x18
jmp 0x407a84
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x214
ret

Function at 0x407b10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x407b2e
xor eax, eax
add esp, 0x10c
ret
mov edx, dword [esp + 0x110]
lea ecx, [esp + 4]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x407b5a
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
add esp, 0x10c
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp]
jne 0x407b81
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
add esp, 0x10c
ret
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 8]
push eax
push ecx
push edx
call fcn.004129f0
add esp, 0xc
mov eax, 1
add esp, 0x10c
ret
Function at 0x407bc0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425e35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x42f390]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
mov ebp, 1
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
mov dword [esp + 0x150], ebp
mov dword [esp + 0x24], edi
call ebx
cmp eax, edi
je 0x407c4a
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x407c2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x144]
push 0x432ae0
mov ecx, esi
call fcn.0041ee40
mov dword [esp + 0x28], ebp
jmp 0x407d7a
push edi
push edi
mov ecx, dword [esp + 0x18]
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
jne 0x407d58
mov edx, dword [esp + 0x18]
inc edx
push edx
call fcn.0041eb13
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
jle 0x407d4f
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
push esi
inc eax
push edi
push edx
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x4c], eax
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push esi
push ecx
call ebx
test eax, eax
jne 0x407d2e
lea edx, [esp + 0x20]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.DisplayName
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407d2e
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
call fcn.0041f162
push 0x42e1ec
lea ecx, [esp + 0x18]
call fcn.0041f162
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407d3d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x407c9e
mov ebp, 1
push esi
call fcn.0041eb3c
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0041eb47
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0
call fcn.0041edd2
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x4081b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x638
mov edx, dword [esp + 0x63c]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x644]
push 0x2ee0
push ebp
push eax
push 0x52c
push ecx
push edx
call fcn.00408b30
add esp, 0x18
test al, al
jne 0x4081ef
pop ebp
add esp, 0x638
ret
lea eax, [esp + 0x10]
push eax
call fcn.00407de0
add esp, 4
test eax, eax
jne 0x40820a
xor al, al
pop ebp
add esp, 0x638
ret
lea ecx, [esp + 4]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x408229
xor al, al
pop ebp
add esp, 0x638
ret
push ebx
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, 0x14b
xor eax, eax
lea edi, [esp + 0x1c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 0x100
push eax
push ebx
push ecx
call esi
cmp eax, 0x103
je 0x408302
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4082a0
lea edx, [esp + 0x548]
push 0x100
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x544], eax
jmp 0x4082b6
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x544], 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x64c]
push 0x2ee0
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x28]
push 0x52c
push eax
push ecx
call fcn.00408aa0
add esp, 0x18
call edi
cmp eax, 0xf5555555
je 0x408302
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
inc ebx
push 0x100
push edx
push ebx
push eax
call esi
cmp eax, 0x103
jne 0x408264
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x638
ret

Function at 0x4083f0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x538
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x544]
push edi
mov edi, dword [esp + 0x544]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
jne 0x408431
pop edi
pop esi
add esp, 0x538
ret
lea edx, [esp + 0x14]
push edx
call fcn.00407de0
add esp, 4
test eax, eax
jne 0x40844d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408468
pop edi
xor al, al
pop esi
add esp, 0x538
ret
push 0x2ee0
lea eax, [esp + 0x14]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x14]
push 8
mov dword [esp + 0x18], edx
push ecx
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 1
call fcn.00408aa0
add esp, 0x18
test al, al
pop edi
pop esi
setne al
add esp, 0x538
ret
Function at 0x4084b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x538
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x544]
push edi
mov edi, dword [esp + 0x544]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
jne 0x4084f1
pop edi
pop esi
add esp, 0x538
ret
lea edx, [esp + 0x14]
push edx
call fcn.00407de0
add esp, 4
test eax, eax
jne 0x40850d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40852d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x338]
push eax
lea edx, [esp + 0x238]
push ecx
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x244]
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40856e
pop edi
xor al, al
pop esi
add esp, 0x538
ret
mov edx, dword [esp + 0xc]
push 0x2ee0
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0x52c
push ecx
push edi
mov dword [esp + 0x550], edx
call fcn.00408aa0
add esp, 0x18
test al, al
jne 0x4085a4
pop edi
pop esi
add esp, 0x538
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x538
ret

Function at 0x4085c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x53c
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x548]
push edi
mov edi, dword [esp + 0x548]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
jne 0x408601
pop edi
pop esi
add esp, 0x53c
ret
lea edx, [esp + 0x18]
push edx
call fcn.00407de0
add esp, 4
test eax, eax
jne 0x40861d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40863d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
mov eax, dword [esp + 0x53c]
mov edx, dword [esp + 0x238]
lea ecx, [esp + 0x33c]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x248]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408679
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
push 0x2ee0
lea eax, [esp + 0x10]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x1c]
push 8
mov dword [esp + 0x20], edx
push ecx
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 1
call fcn.00408aa0
add esp, 0x18
test al, al
jne 0x4086b3
pop edi
pop esi
add esp, 0x53c
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x53c
ret
Function at 0x4086d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x53c
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x548]
push edi
mov edi, dword [esp + 0x548]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408b30
add esp, 0x18
test al, al
jne 0x408711
pop edi
pop esi
add esp, 0x53c
ret
lea edx, [esp + 0x18]
push edx
call fcn.00407de0
add esp, 4
test eax, eax
jne 0x40872d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40874d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
mov ecx, dword [esp + 8]
lea eax, [esp + 0x23c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40876f
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
push 0x2ee0
lea eax, [esp + 0x10]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x1c]
push 8
mov dword [esp + 0x20], edx
push ecx
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 1
call fcn.00408aa0
add esp, 0x18
test al, al
jne 0x4087a9
pop edi
pop esi
add esp, 0x53c
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x53c
ret

Function at 0x4087f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
push 1
push 0
push 0
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
je 0x408810
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret

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

Disassembly:
sub esp, 0x24
mov eax, dword [0x433018]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
xor eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], edx
push eax
push ebx
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x48], eax
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x64], eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x408932
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret
cmp eax, 0xffffffff
jne 0x4089a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4089a0
mov eax, dword [esp + 0x4c]
push 0
push eax
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp edi, 0xffffffff
je 0x4089a0
test edi, edi
je 0x408995
lea edx, [esp + 0x48]
lea eax, [esp + 0x20]
push edx
push 0
push ebx
push eax
push ebp
mov dword [esp + 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x24
ret
push 0xf5555555
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret
Function at 0x4089b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x433018]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
push ebp
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
push edx
push ebx
lea eax, [esp + 0x20]
push 1
push eax
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x408a26
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret
cmp eax, 0xffffffff
jne 0x408a94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x408a94
mov ecx, dword [esp + 0x4c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp edi, 0xffffffff
je 0x408a94
test edi, edi
je 0x408a89
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push 0
push ebx
push ecx
push ebp
mov dword [esp + 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x24
ret
push 0xf5555555
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret