joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40511c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
xor ebx, ebx
push 0x109
push ebx
push eax
mov dword [ebp - 0x114], ebx
call fcn.00481190
add esp, 0xc
test esi, esi
je 0x40528e
cmp byte [esi], bl
je 0x40528e
push 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00485910
lea ecx, [ebp - 0x110]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40517f
sub ecx, edx
cmp ecx, 4
jle 0x4051be
cmp byte [ebp + ecx - 0x114], 0x2e
jne 0x4051be
mov al, byte [ebp + ecx - 0x113]
or al, 0x20
cmp al, 0x65
jne 0x4051be
mov al, byte [ebp + ecx - 0x112]
or al, 0x20
cmp al, 0x78
jne 0x4051be
mov al, byte [ebp + ecx - 0x111]
or al, 0x20
cmp al, 0x65
je 0x4051dc
lea ecx, [ebp - 0x110]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4051c5
mov eax, dword [str..exe]
mov dword [ecx], eax
mov al, byte [0x4a2e30]
mov byte [ecx + 4], al
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004052a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x405252
mov edi, dword [ebp - 0x114]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0xf060
push 0x112
push edi
call ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405234
push esi
push esi
push 0x10
push edi
call ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405289
push 0
push 0
push 2
push edi
call ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405289
cmp esi, 2
jne 0x405289
lea eax, [ebp - 0x110]
push eax
call fcn.00405321
pop ecx
test eax, eax
je 0x405289
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405289
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov eax, esi
pop edi
jmp 0x405291
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret

Function at 0x4052a1
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
call fcn.00405321
mov dword [ebp - 0xc], eax
add eax, 0x14
pop ecx
cmp eax, 0x14
ja 0x4052ce
xor eax, eax
inc eax
jmp 0x40531d
push esi
lea eax, [ebp - 4]
push eax
push 0x404e53
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x4052fe
xor esi, esi
jmp 0x4052fa
cmp esi, 0x19
jge 0x4052fe
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
inc esi
test ecx, ecx
je 0x4052e9
mov eax, dword [ebp + 0xc]
pop esi
mov dword [eax], ecx
test ecx, ecx
jne 0x40531b
and dword [ebp - 4], ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 2
pop eax
jmp 0x40531d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405321
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x94]
push 0x90
push 0
push eax
mov dword [ebp - 0x98], 0x94
call fcn.00481190
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4053b5
push esi
push edi
call fcn.0040550d
mov esi, eax
pop ecx
test esi, esi
je 0x405386
cmp esi, 0xfffffff2
je 0x405386
cmp esi, 0xfffffff1
jne 0x4053b0
cmp dword [ebp - 0x94], 5
jb 0x4053b0
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
push edi
call fcn.004070a9
pop ecx
pop ecx
cmp eax, 1
jne 0x4053b0
mov esi, dword [ebp - 0x9c]
mov eax, esi
pop esi
jmp 0x4053bc
push edi
call fcn.004053cb
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x406052
Capabilities:
Delete file

Disassembly:
push 0x270
mov eax, 0x49ff69
call fcn.0047f300
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
mov ebx, 0x10e
xor edi, edi
push ebx
push edi
push eax
call fcn.00481190
add esp, 0xc
mov dword [ebp - 0x264], edi
lea ecx, [ebp - 0x27c]
call fcn.0040206a
lea eax, [ebp - 0x264]
mov dword [ebp - 4], edi
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.00406670
add esp, 0x10
cmp dword [ebp - 0x264], 1
jne 0x4060c4
cmp dword [ebp - 0x27c], edi
je 0x4060c4
lea ecx, [ebp - 0x27c]
call fcn.00402132
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4060e4
mov edi, 0x4010
jmp 0x40611b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40611b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40610e
mov edi, 0x400f
jmp 0x40611b
mov edi, 0x4010
cmp eax, 2
je 0x40611b
add edi, 0x11
lea ecx, [ebp - 0x27c]
call fcn.004020e3
mov eax, edi
call fcn.0047f2bb
ret
Function at 0x40612e
Capabilities:
Check os version
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0xf003f
mov dword [ebp - 0x114], edi
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4062b9
xor ecx, ecx
lea eax, [ebp - 0x110]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
jne 0x40620c
mov edi, dword [ebp - 0x110]
sub edi, 1
js 0x406206
lea eax, [ebp - 0x120]
mov dword [ebp - 0x118], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x406206
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.0040612e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4061ac
mov edi, dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4062b9
cmp dword [0x4d65d0], esi
jne 0x40629b
mov esi, 0x94
lea eax, [ebp - 0x98]
push esi
push 0
push eax
call fcn.00481190
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor esi, esi
inc esi
test eax, eax
je 0x40628e
cmp dword [ebp - 0x94], 5
ja 0x40626c
jne 0x40628e
cmp dword [ebp - 0x90], esi
jb 0x40628e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40628e
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d65d4], eax
jmp 0x406293
mov eax, dword [0x4d65d4]
mov dword [0x4d65d0], esi
jmp 0x4062a0
mov eax, dword [0x4d65d4]
test eax, eax
je 0x4062af
push 0
push dword [ebp + 0x10]
push edi
push ebx
call eax
jmp 0x4062b7
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x4062cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x406377
push esi
push edi
push 0x105
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00481190
mov edi, ebx
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x406309
sub edi, ecx
mov eax, esi
test edi, edi
jle 0x406375
cmp byte [ebx + eax], 0x2f
jne 0x406322
mov byte [ebx + eax], 0x5c
inc eax
cmp eax, edi
jl 0x406318
test edi, edi
jle 0x406375
lea eax, [ebx + esi]
push 0x5c
push eax
call fcn.00482bc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40636f
sub esi, ebx
lea eax, [ebp - 0x10c]
push esi
push ebx
push eax
call fcn.00480c10
add esp, 0xc
test esi, esi
jle 0x40636c
cmp byte [ebp + esi - 0x10d], 0x3a
je 0x40636c
lea eax, [ebp - 0x10c]
push eax
call fcn.004937f2
pop ecx
inc esi
jmp 0x406371
mov esi, edi
cmp esi, edi
jl 0x40632b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret

Function at 0x4063a7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
mov eax, dword [ebp + 0xc]
push esi
or eax, 0xf003f
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406403
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0xfffffffe
mov eax, esi
jmp 0x406406
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406423
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x406475
cmp byte [esi], 0
je 0x406475
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x20006
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406470
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40648e
push 0xfffffffffffffffe
pop eax
jmp 0x406490
or eax, 0xffffffff
jmp 0x406490
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040612e
add esp, 0xc
test eax, eax
je 0x40648e
push 0xfffffffffffffffd
jmp 0x40646d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4064b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
mov dword [edi], esi
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40654e
push dword [edi]
push esi
push dword [ebp + 0x1c]
call fcn.00481190
add esp, 0xc
cmp dword [ebp + 0x14], esi
je 0x406536
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x20]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406527
push 0xfffffffffffffffe
pop eax
jmp 0x406551
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
jmp 0x40654a
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x1020001
mov dword [edi], esi
xor eax, eax
jmp 0x406551
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406670
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x406682
and dword [eax], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40679e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40679e
mov edi, dword [ebp + 0x10]
cmp edi, 1
jl 0x40679e
push str._ProgramW6432_
push esi
call fcn.00406ca4
pop ecx
pop ecx
test eax, eax
jne 0x4066c9
push str._CommonProgramW6432_
push esi
call fcn.00406ca4
pop ecx
pop ecx
test eax, eax
je 0x4066d0
mov dword [ebp - 4], 1
push 0x25
push esi
call fcn.00482bc0
pop ecx
pop ecx
test eax, eax
je 0x406718
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40670f
cmp eax, edi
jg 0x406713
push 0x25
push ebx
call fcn.00482bc0
pop ecx
pop ecx
test eax, eax
je 0x40673b
push edi
push ebx
call fcn.00405c32
pop ecx
pop ecx
test eax, eax
jns 0x40673b
or esi, 0xffffffff
jmp 0x40678e
cmp eax, edi
jle 0x40670a
xor esi, esi
inc esi
jmp 0x40678e
lea eax, [edi - 1]
push eax
push esi
push ebx
call fcn.00485910
add esp, 0xc
mov byte [ebx + edi - 1], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40672e
sub esi, ecx
cmp esi, edi
jge 0x406713
xor esi, esi
jmp 0x40677b
lea ebx, [ecx + 0xa]
mov al, byte [ebx]
test al, al
je 0x40674c
cmp al, 0x5c
jne 0x40677b
mov edx, str._system32
mov dword [ebp - 4], 1
mov edi, ecx
sub edi, edx
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
test al, al
jne 0x40675c
add ecx, 9
mov eax, ebx
mov ebx, ecx
jmp 0x406773
mov byte [ecx], dl
inc ecx
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x40676f
mov byte [ecx], dl
push str._sysnative
push ebx
call fcn.00406c9b
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40673f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40679a
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
jmp 0x4067a1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406af6
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x9c
lea eax, [ebp - 0xa0]
push edi
xor esi, esi
push esi
push eax
call fcn.00481190
add esp, 0xc
mov dword [ebp - 0xa0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa0]
push eax
call edi
test eax, eax
jne 0x406b53
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call edi
test eax, eax
je 0x406b8a
cmp dword [ebp - 0x9c], 6
jae 0x406b6e
cmp dword [ebp - 0x9c], 5
jne 0x406b88
cmp dword [ebp - 0x98], 2
jne 0x406b88
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0xc4], 9
jne 0x406b88
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x4070a9
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x118
mov eax, 0x4a0002
call fcn.0047f300
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x407260
cmp byte [edi], 0
je 0x407260
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40725c
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x407101
cmp eax, 0x80010119
jne 0x407256
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
push eax
push 0x4ca79c
push 1
push esi
push 0x4ca86c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407256
push str.ROOTCIMV2
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x118], esi
call fcn.00406e80
mov eax, dword [eax]
mov dword [ebp - 4], esi
test eax, eax
je 0x40714c
mov edx, dword [eax]
jmp 0x40714e
mov edx, esi
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x120]
push esi
push esi
push esi
push esi
push esi
push esi
push edx
push eax
call dword [ecx + 0xc]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
test ecx, ecx
je 0x40718d
call fcn.00406edd
mov eax, dword [ebp - 0x124]
test eax, eax
js 0x40724a
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40723e
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], esi
push eax
push edi
push dword [ebp - 0x118]
call fcn.00406f33
mov esi, eax
add esp, 0xc
cmp esi, 1
je 0x407232
push 0x2e
push edi
call fcn.004812f0
pop ecx
pop ecx
test eax, eax
je 0x4071f8
push 4
push str..exe
push eax
call fcn.0048f383
add esp, 0xc
test eax, eax
je 0x40722d
push edi
push str._s.exe
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0040204e
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call fcn.00406f33
add esp, 0x1c
mov esi, eax
cmp esi, 1
jne 0x40723e
test ebx, ebx
je 0x40723e
mov eax, dword [ebp - 0x11c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x407262
xor eax, eax
call fcn.0047f2bb
ret
Function at 0x407816
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ecx
push eax
push 0x407268
push ecx
push ecx
mov dword [ebp - 0xc], 1
call fcn.0048f2f0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40788c
jmp 0x40787f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xc], 0
jne 0x407877
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407893
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ecx
push eax
push 0x4074cd
push ecx
push ecx
mov dword [ebp - 0xc], 1
call fcn.0048f2f0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40790b
jmp 0x4078fe
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xc], 0
jne 0x4078f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408564
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWARERAdmin_v3.0ServerParametersRadmin_Security
mov edi, reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40859d
push 0x4a34c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
je 0x4085ab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, str.SOFTWARERAdmin_v3.0ServerParameters
cmp dword [0x4d6a08], esi
je 0x4085d6
push 4
push 0x4d6a10
push 3
push str.NTAuthEnabled
push ebx
push edi
mov dword [0x4d6a08], esi
call fcn.00406386
add esp, 0x18
cmp dword [0x4d6a0c], esi
je 0x4085fc
push 4
push 0x4d3510
push 3
push str.Port
push ebx
push edi
mov dword [0x4d6a0c], esi
call fcn.00406386
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408605
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408669
cmp dword [ebp + 0xc], 0
jle 0x408669
cmp dword [ebp + 0x10], 0
je 0x408669
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x408669
cmp dword [ebp + 0x18], 0
je 0x408669
mov esi, dword [ebp + 0x1c]
test esi, esi
jle 0x408669
xor ecx, ecx
mov dword [ebp + 8], ecx
test esi, esi
jle 0x408664
mov eax, ecx
mov ecx, dword [ebp + 0x10]
cdq
idiv ebx
mov eax, dword [ebp + 8]
sub ecx, edx
cdq
idiv dword [ebp + 0xc]
mov al, byte [ecx + ebx - 1]
mov ecx, dword [ebp + 8]
xor al, byte [edx + edi]
mov edx, dword [ebp + 0x18]
mov byte [ecx + edx], al
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, esi
jl 0x40863b
xor eax, eax
inc eax
jmp 0x40866b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4086ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [0x4d6a28], esi
jne 0x4086d2
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x4d6a28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
push 0x409138
push esi
push esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], 1
call fcn.0048f2f0
mov esi, eax
call fcn.004088c9
push 0x10
call fcn.004856fc
mov ecx, dword [ebp + 8]
push eax
push dword [0x4d6a2c]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
call fcn.00401592
add esp, 0x24
mov dword [0x4d6a2c], eax
call fcn.0040abcd
pop edi
pop esi
pop ebx
jmp 0x408772
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0
jne 0x40876a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4088d8
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x4089a3
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x197]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x196]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x195]
push eax
lea eax, [ebp - 0x1a8]
push eax
push str._d_c_d_c_d_c_d
push esi
call fcn.00406dc4
add esp, 0x24
cmp eax, 7
jl 0x408961
cmp byte [ebp - 0x195], 0x2e
jne 0x408961
cmp byte [ebp - 0x196], 0x2e
jne 0x408961
cmp byte [ebp - 0x197], 0x2e
jne 0x408961
push esi
call fcn.0048a51c
pop ecx
jmp 0x4089a3
push edi
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40899b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x40899b
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x40899c
push esi
call fcn.0048a51c
pop ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f259
mov esp, ebp
pop ebp
ret