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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404d98
xor eax, eax
push ebp
push 0x462aad
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x462991
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
setne byte [ebp - 9]
jmp 0x462995
mov byte [ebp - 9], 0
test esi, esi
jne 0x4629ba
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, 0x462ac8
call fcn.00404bf4
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dl, 1
call fcn.0046181c
jmp 0x462a8f
test edi, edi
jne 0x4629d4
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404da8
push eax
push esi
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x462a6e
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0x64
call sub.kernel32.dll_Sleep_1
test bl, bl
je 0x462a6e
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x462a6e
call fcn.0040c214
fstp qword [ebp - 0x18]
wait
jmp 0x462a68
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp eax, 0x1388
jbe 0x462a30
push 0x1388
call sub.kernel32.dll_Sleep_1
jmp 0x462a36
push eax
call sub.kernel32.dll_Sleep_1
call fcn.0040c214
fstp qword [ebp - 0x20]
wait
fld qword [ebp - 0x20]
fsub qword [ebp - 0x18]
fild dword [ebp - 8]
fdiv dword [0x462aec]
fcompp
fnstsw ax
sahf
jb 0x462a6e
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x462a6e
cmp ebx, dword [ebp - 0x28]
ja 0x462a6e
cmp dword [ebp - 0x38], 4
jne 0x462a17
cmp byte [ebp - 9], 0
je 0x462a88
test edi, edi
je 0x462a7e
push edi
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
je 0x462a88
push esi
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x38], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ab4
lea eax, [ebp - 0x40]
call fcn.004048cc
lea eax, [ebp - 4]
call fcn.004048cc
ret

Function at 0x462c20
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffbc
mov ebx, eax
mov dword [esp], 0x40
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040b0b0
add esp, 0x44
pop ebx
ret
Function at 0x462c48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d98
mov eax, dword [ebp - 8]
call fcn.00404d98
xor eax, eax
push ebp
push 0x462dda
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x462cb4
inc ebx
xor esi, esi
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404ba8
inc eax
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x462c97
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call fcn.00402a0c
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x43043c]
call fcn.0043053c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x462dab
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x462d27
inc ebx
xor esi, esi
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404da8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add dword [ebp - 0x14], eax
inc esi
dec ebx
jne 0x462cf7
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00430618
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00430680
test al, al
jne 0x462d52
call fcn.00404330
jmp 0x462db2
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.00404da8
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x462d8d
mov ecx, 0x462df0
mov dl, 1
mov eax, dword [0x4093a0]
call fcn.0040df68
call fcn.00404284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462db2
mov eax, dword [ebp - 0x18]
call fcn.00402a2c
mov eax, dword [ebp - 0x10]
call fcn.00403af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462de1
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004048f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x462e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d98
mov eax, dword [ebp - 8]
call fcn.00404d98
xor eax, eax
push ebp
push 0x462fe6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x43043c]
call fcn.00430580
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x462fbc
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00430618
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00430680
test al, al
jne 0x462e7d
call fcn.00404330
jmp 0x462fc3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00430e18
test al, al
jne 0x462e96
call fcn.00404330
jmp 0x462fc3
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404da8
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462ed8
mov ecx, 0x462ffc
mov dl, 1
mov eax, dword [0x4093a0]
call fcn.0040df68
call fcn.00404284
cmp dword [ebp - 0x10], 7
je 0x462ef4
mov ecx, 0x46301c
mov dl, 1
mov eax, dword [0x4093a0]
call fcn.0040df68
call fcn.00404284
mov eax, dword [ebp - 0x14]
call fcn.00402a0c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.004033dc
xor edx, edx
push ebp
push 0x462f97
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x14], 1
jbe 0x462f81
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462f53
mov ecx, 0x463034
mov dl, 1
mov eax, dword [0x4093a0]
call fcn.0040df68
call fcn.00404284
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov ebx, dword [ebp - 0x18]
jmp 0x462f7c
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404ac4
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebx
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x462f5f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f9e
mov eax, dword [ebp - 0x18]
call fcn.00402a2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462fed
lea eax, [ebp - 0x1c]
call fcn.004048cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x467e1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x467e8f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.0040b0b0
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call fcn.0040ec50
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00404920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e96
lea eax, [ebp - 0x10c]
call fcn.004048cc
ret

Function at 0x467e9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x467f0f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.0040b0b0
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call fcn.0040ec50
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00404920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f16
lea eax, [ebp - 0x10c]
call fcn.004048cc
ret

Function at 0x467f1c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d98
mov eax, dword [ebp - 8]
call fcn.00404d98
xor eax, eax
push ebp
push 0x467fdf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004033dc
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
mov dword [ebp - 0x20], 0x101
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404da8
push eax
push 0
push 0x4000000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404da8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x467fc4
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467fe6
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x4695c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x469662
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x469678
call fcn.00404964
mov ebx, 2
lea eax, [ebp - 4]
call fcn.00404e00
mov edx, ebx
add dl, 0x41
mov byte [eax], dl
mov eax, dword [ebp - 4]
call fcn.00404da8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x469641
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045fb08
mov edx, 0x469684
mov eax, dword [ebp - 8]
call fcn.0040a0e0
test eax, eax
je 0x469637
mov edx, 0x469694
mov eax, dword [ebp - 8]
call fcn.0040a0e0
test eax, eax
jne 0x469641
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045fbac
inc ebx
cmp ebx, 0x1a
jne 0x4695e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469669
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x469f1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d98
mov eax, dword [ebp - 8]
call fcn.00404d98
xor eax, eax
push ebp
push 0x46a0ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x469f88
inc ebx
xor esi, esi
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404ba8
inc eax
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x469f6b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call fcn.00402a0c
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x43043c]
call fcn.0043053c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x46a07f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x469ffb
inc ebx
xor esi, esi
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404da8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add dword [ebp - 0x14], eax
inc esi
dec ebx
jne 0x469fcb
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00430618
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00430680
test al, al
jne 0x46a035
mov ecx, 0x46a0c4
mov dl, 1
mov eax, dword [0x4093a0]
call fcn.0040df68
call fcn.00404284
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.00404da8
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46a061
call fcn.00404330
jmp 0x46a086
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a086
mov eax, dword [ebp - 0x18]
call fcn.00402a2c
mov eax, dword [ebp - 0x10]
call fcn.00403af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a0b5
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004048f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x46ba04
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46bba8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x18]
call fcn.004048cc
lea eax, [ebp - 0x1c]
call fcn.004048cc
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
push 0
call sub.iphlpapi.dll_GetIpForwardTable
not eax
cmp eax, 0x6f
je 0x46bb8d
mov eax, dword [ebp - 0x20]
call fcn.00409f94
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46bb68
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x46bb52
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jns 0x46baa1
call fcn.00403a38
test ebx, ebx
jl 0x46bb52
inc ebx
xor esi, esi
cmp esi, 0
jbe 0x46bab6
call fcn.00403a38
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, dword [ebp - 8]
push esi
push edi
lea esi, [edx + eax*8 + 4]
lea edi, [ebp - 0x5c]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x50]
call fcn.0046b710
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0040a0e0
test eax, eax
jne 0x46bb4a
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x5c]
call fcn.0046b710
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x58]
call fcn.0046b710
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x46bbc0
call fcn.0040b5a0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x46bbc0
call fcn.0040b5a0
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x5c]
push eax
call sub.iphlpapi.dll_DeleteIpForwardEntry
jmp 0x46bb52
inc esi
dec ebx
jne 0x46baac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb6f
mov eax, dword [ebp - 8]
call fcn.00402a2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bbaf
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004048f0
ret
Function at 0x474390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474599
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
test ebx, ebx
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
xor edx, edx
push ebp
push 0x474569
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x47455f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040b0c4
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], ebx
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
push 0x4745a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.004076d8
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
push 0x4745ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
mov edx, eax
and edx, 0xffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], edx
and eax, 0xffff0000
shr eax, 0x10
and eax, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
lea ecx, [ebp - 0x108]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, 4
call fcn.0040a47c
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
mov ecx, 0xff
call fcn.00404b84
lea edx, [ebp - 0x104]
mov eax, dword [ebp - 4]
add eax, 0x5d
mov cl, 4
call fcn.004032cc
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, 4
call fcn.0040a47c
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
mov ecx, 0xff
call fcn.00404b84
lea edx, [ebp - 0x104]
mov eax, dword [ebp - 4]
add eax, 0x62
mov cl, 4
call fcn.004032cc
mov eax, dword [ebp - 4]
lea edx, [eax + 0x5d]
lea eax, [ebp - 0x118]
call fcn.004032c0
mov eax, dword [ebp - 4]
lea edx, [eax + 0x62]
lea eax, [ebp - 0x118]
mov cl, 8
call fcn.00403290
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
add eax, 0x54
mov cl, 8
call fcn.004032cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47457b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4745a0
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004048f0
ret
Function at 0x476eb4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep_1
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x3a98
call sub.kernel32.dll_Sleep_1
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x408958
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
inc ebx
add eax, ebx
call fcn.0040898b
mov eax, ebx
add ebx, 0xc449a99d
xor dword [ecx], edi
add ebx, 0xd30129d9
mov ebx, ebx
inc ecx
sub ebx, 0x62005c8e
add ebx, ebx
cmp ecx, edx
jne fcn.00408958
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret