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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x521937
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406f90
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
xor ebx, ebx
mov ecx, ebx
mov eax, esi
shr eax, cl
test eax, esi
jbe 0x52190d
lea edi, [ebx + 0x41]
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040710c
lea eax, [ebp - 0x10]
mov edx, 0x521954
call fcn.004073b4
mov eax, dword [ebp - 0x10]
call fcn.0040701c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, dword [ebp - 4]
jne 0x52190d
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.0040710c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004073b4
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, 0x1a
jne 0x5218be
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52193e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f88
ret
Function at 0x52359c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f78
xor eax, eax
push ebp
push 0x523645
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040731c
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 4]
call fcn.0040701c
mov esi, eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040731c
push ebx
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x523620
mov eax, dword [ebp - 8]
call fcn.0040701c
mov edx, eax
mov eax, edi
call fcn.0040714c
jmp 0x52362a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00406f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52364c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x5237c0
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x560298]
cmp dword [eax], 2
je 0x5237dd
mov byte [ebp - 1], 1
jmp 0x5239ab
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x55ce18
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x5239ab
xor eax, eax
push ebp
push 0x5239a4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x52383f
push 0x5239b8
push 0x5239e4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040c068
mov ebx, eax
test ebx, ebx
je 0x523866
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x52398d
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x52398d
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x5238b7
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
je 0x523898
call fcn.00405aa8
jmp 0x5239ab
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x5238b7
call fcn.00405aa8
jmp 0x5239ab
xor eax, eax
push ebp
push 0x523986
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x5238fa
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x5238fa
call fcn.00405aa8
call fcn.00405aa8
jmp 0x5239ab
mov eax, dword [ebp - 0x14]
call fcn.00404258
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x52392c
call fcn.00405aa8
call fcn.00405aa8
jmp 0x5239ab
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x523967
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x523963
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x523963
mov byte [ebp - 1], 1
jmp 0x523967
inc ebx
dec esi
jne 0x523939
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52398d
mov eax, dword [ebp - 0x18]
call fcn.00404274
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5239ab
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52407c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x524169
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x5240c7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5240c7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406368
test eax, eax
je 0x5240d0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x524109
mov eax, dword [ebp - 4]
test eax, eax
je 0x5240f1
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5240f1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406368
cmp word [eax], 0x5c
jne 0x524109
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004077b0
mov eax, dword [ebp - 8]
test eax, eax
je 0x524126
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x524126
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406368
mov esi, eax
test esi, esi
je 0x524131
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push ebx
call sub.advapi32.dll_RegSetValueW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret

Function at 0x524584
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x52461b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi], eax
push 0x20019
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00524178
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x524600
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524622
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x52462c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x524656
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x5247c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00406f90
push 0x20019
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00524178
test eax, eax
jne 0x524799
xor edx, edx
push ebp
push 0x524792
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x524764
movzx eax, word [0x5247dc]
cmp byte [ebp + 0x10], 0
je 0x5246e3
movzx eax, word [0x5247e0]
mov edx, dword [ebp - 0x14]
cmp edx, 0xf
ja 0x5246ee
bt eax, edx
jb 0x5246fb
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00524070
mov edx, dword [ebp - 0x18]
shr edx, 1
inc edx
mov eax, dword [ebp + 0xc]
call fcn.0040731c
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x524736
mov edx, dword [ebp - 0x18]
shr edx, 1
mov eax, dword [ebp + 0xc]
call fcn.0040731c
jmp 0x524740
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00406f90
test ebx, ebx
je 0x52477b
cmp byte [ebp + 8], 0
je 0x524757
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052406c
jmp 0x52477b
mov byte [ebp - 9], 0
mov dword [ebp - 0x18], 1
jmp 0x52477b
cmp byte [ebp + 8], 0
je 0x524777
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052406c
jmp 0x52477b
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5247ad
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [ebp + 8], 0
je 0x5247a9
mov eax, dword [ebp - 4]
call fcn.00524074
jmp 0x5247ad
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5247cf
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x5247e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x524931
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [edi], eax
push 0x20019
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00524178
test eax, eax
jne 0x524904
xor eax, eax
push ebp
push 0x5248fd
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
push 0
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5248d1
mov eax, dword [esi]
cmp eax, 0xf
ja 0x52487d
bt word [ebp + 0x1c], ax
jae 0x524886
mov eax, dword [edi]
cmp eax, dword [ebp + 0x18]
jbe 0x52489b
test bl, bl
je 0x524897
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00524070
jmp 0x52489b
mov byte [ebp - 0xd], 0
push edi
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x5248e6
test bl, bl
je 0x5248cb
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052406c
jmp 0x5248e6
mov byte [ebp - 0xd], 0
jmp 0x5248e6
test bl, bl
je 0x5248e2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052406c
jmp 0x5248e6
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524916
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
test bl, bl
je 0x524912
mov eax, dword [ebp - 4]
call fcn.00524074
jmp 0x524916
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524938
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x524bdc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x524cb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052423c
test al, al
jne 0x524c23
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052407c
push 0x20006
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00524178
test eax, eax
jne 0x524c95
xor eax, eax
push ebp
push 0x524c8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x524c77
mov eax, dword [ebp - 4]
call fcn.00524078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524c9d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00524078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524cbf
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret

Function at 0x524de8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524e5f
push dword fs:[eax]
mov dword fs:[eax], esp
inc ecx
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040731c
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040701c
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0040714c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524e66
lea eax, [ebp - 4]
call fcn.00406f80
ret

Function at 0x524e70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524ee7
push dword fs:[eax]
mov dword fs:[eax], esp
inc ecx
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040731c
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040701c
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0040714c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524eee
lea eax, [ebp - 4]
call fcn.00406f80
ret
Function at 0x525204
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x52529e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 2
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00524178
test eax, eax
jne 0x52527b
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
test bl, bl
jne 0x525283
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052406c
jmp 0x525283
mov eax, dword [ebp - 4]
call fcn.00524078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5252a5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x52f3ec
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x52f56e
cmp dword [ebp - 8], 0
je 0x52f43d
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.004ce6ac
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce69c
jmp 0x52f43f
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x52f469
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.004ce6ac
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce69c
jmp 0x52f46b
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x52f498
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.004ce6ac
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce69c
jmp 0x52f49d
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x52f4c9
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x52f4ce
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x52f50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f51a
cmp dword [ebp - 8], 0
je 0x52f536
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce684
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x52f552
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce684
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x52f56e
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004ce684
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 0xffffffff
je 0x52f5b9
add dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x52f900
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x52f9e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040617c
test ebx, ebx
je 0x52f9c1
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x52f957
mov eax, ebx
call fcn.004068ec
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x52f9cd
mov eax, esi
mov edx, ebx
call fcn.004061d0
jmp 0x52f9cd
mov eax, ebx
call fcn.004068ec
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x52f9cd
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x52fa00
call fcn.00412f68
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.004071e4
jmp 0x52f9cd
mov eax, esi
mov edx, 0x52fa24
call fcn.004061d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f9ea
lea eax, [ebp - 4]
call fcn.00406f80
ret
Function at 0x534018
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x20
pop ebx
ret
Function at 0x547f1c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x548095
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x547f70
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x547f70
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406368
test eax, eax
je 0x547f79
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x547f89
lea eax, [ebp - 4]
mov edx, 0x5480b4
call fcn.00406fe4
mov eax, dword [ebp - 8]
test eax, eax
je 0x547fa6
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x547fa6
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406368
test eax, eax
je 0x547faf
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x547fba
lea eax, [ebp - 8]
call fcn.0051e9a4
xor eax, eax
push ebp
push 0x548068
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x54803a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x5480f4
call fcn.00412f68
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x548118
mov eax, 0x80000001
call fcn.00524cc8
cmp byte [ebp + 8], 0
jne 0x54805e
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x5480f4
call fcn.00412f68
mov eax, dword [ebp - 0x18]
push eax
mov edx, 0x548118
mov ecx, dword [ebp - 4]
mov eax, 0x80000002
call fcn.00524cc8
jmp 0x54805e
mov edx, 0x548118
mov ecx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.00525204
mov edx, 0x548118
mov ecx, dword [ebp - 4]
mov eax, 0x80000002
call fcn.00525204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x548072
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54809c
lea eax, [ebp - 0x18]
call fcn.00406f80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f88
ret