joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f4d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404fb8
push dword [ebp - 0x14]
call fcn.0040689b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404fad
cmp dword [ebp - 4], 0x669
jne 0x404fad
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x40b970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4278a8]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x34], eax
call fcn.0040bf53
mov dword [esi + 0x38], eax
call fcn.0040effb
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x3c], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x34]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40b899
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040b2df
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40bd27
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x420850
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bd5a
xor eax, eax
jmp 0x40bdb3
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
jne 0x40bd7c
mov byte [ebp - 0x38], bl
lea eax, [ebp - 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bd82
push esi
sub eax, edx
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40bdca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
and dword [ebp + 0x74], 0
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
pop edi
jne 0x40be5c
cmp dword [ebp - 0x20], 6
je 0x40be57
cmp dword [ebp - 0x20], 5
jne 0x40be5c
cmp dword [ebp - 0x1c], 1
jae 0x40be57
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be14
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40be4b
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be28
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40be4b
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push 0x4208dc
push eax
call fcn.004136e1
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40be5c
cmp dword [ebp + 0x74], 2
jb 0x40be5c
xor eax, eax
inc eax
jmp 0x40be5e
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40be63
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
pop edi
jne 0x40beaa
cmp dword [ebp - 0x18], 6
jne 0x40be9c
xor eax, eax
inc eax
jmp 0x40beac
cmp dword [ebp - 0x18], 5
jne 0x40beaa
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40beac
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40befd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
mov dword [ebp - 0x48], str.Java_Update_Scheduler
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x40bf4d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40c22b
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x420e78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c2c3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x420ea0
push dword [ebp - 4]
call esi
push 0x420eb0
push dword [ebp - 4]
call esi
push 0x420eb8
push dword [ebp - 4]
call esi
push 0x420ec0
push dword [ebp - 4]
call esi
push 0x420ed4
push dword [ebp - 4]
call esi
push 0x420ee4
push dword [ebp - 4]
call esi
push 0x420ef0
push dword [ebp - 4]
call esi
push 0x420f00
push dword [ebp - 4]
call esi
push 0x420f14
push dword [ebp - 4]
call esi
push 0x420f28
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40c2c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push str.OpenProcessToken
push edi
mov dword [ebp - 8], eax
call esi
push str.GetTokenInformation
push edi
mov dword [ebp - 0x18], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x10], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x14], ebx
call dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00412fd0
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x40c3b3
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x40c3b3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp eax, dword [esi]
jb 0x40c396
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call fcn.004127cd
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [ebp - 0x20]
cmp edi, ebx
je 0x40c3e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c3e9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x9c
call esi
test eax, eax
jne 0x40c428
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
test eax, eax
je 0x40c444
cmp dword [ebp - 0x14], 2
jne 0x40c441
cmp dword [ebp - 0x20], 6
jae 0x40c441
cmp dword [ebp - 0x20], 4
jb 0x40c441
call fcn.0040c2c5
jmp 0x40c444
xor eax, eax
inc eax
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40c78b
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.004139a0
lea eax, [ebp - 8]
push eax
call fcn.00413820
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
mov byte [ebp - 0x20c], bl
je 0x40c7d7
push eax
call fcn.00413715
cmp eax, ebx
pop ecx
je 0x40c7d7
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.0041335e
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x10c]
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x10c]
jne 0x40c809
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c811
push 0x42153c
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c898
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c857
push ebx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40c87c
push ebx
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c89d
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x4216c0
call fcn.00412678
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x40c91f
cmp dword [ebp - 0xb0], 5
jb 0x40c91f
mov dword [ebp - 4], esi
push 0x42154c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40c916
push 0x421558
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c916
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040c928
mov eax, dword [ebp - 0x20]
call fcn.004126b3
ret
Function at 0x40ca88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x4215c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cae9
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push str.ITCONFIG
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x40cae9
movzx esi, byte [ebp - 0x208]
mov eax, esi
pop esi
leave
ret

Function at 0x40caff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor esi, esi
mov dword [ebp - 4], 0x200
call fcn.0040caee
test eax, eax
jne 0x40cba3
call fcn.0040bdca
test eax, eax
je 0x40cba3
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push 0x4215fc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cba6
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x421624
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x40cba6
mov dword [ebp - 8], esi
call fcn.0040c89d
test eax, eax
je 0x40cb98
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c938
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x40cb9e
mov eax, dword [ebp - 0x20c]
cmp eax, 0x64
jne 0x40cba6
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x40cbab
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x42163c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cbe2
push 0x421664
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40cbe4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cc77
call fcn.0040c89d
test eax, eax
je 0x40cc4a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c9dc
add esp, 0x10
jmp 0x40cc53
mov eax, dword [ebp - 8]
mov dword [ebp - 0x210], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x40d444
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 1
push eax
call fcn.0040cc7a
test eax, eax
pop ecx
pop ecx
je 0x40d53c
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
push 0x420670
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d53c
push esi
lea eax, [ebp - 4]
push eax
push 0x420698
push dword [ebp - 8]
call fcn.0040cdb7
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x40d4da
lea eax, [ebp - 4]
push eax
push 0x4206a4
push dword [ebp - 0xc]
call fcn.0040cdb7
add esp, 0xc
test eax, eax
je 0x40d4da
push dword [ebp - 4]
push 0x4206b0
push dword [ebp - 8]
call fcn.0040bcc3
add esp, 0xc
test eax, eax
je 0x40d4da
push 0x4206bc
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 4]
push eax
push 0x4206c8
push dword [ebp - 8]
call fcn.0040cdb7
add esp, 0xc
test eax, eax
jne 0x40d52b
lea eax, [ebp - 4]
push eax
push 0x4206d8
push dword [ebp - 0xc]
call fcn.0040cdb7
add esp, 0xc
test eax, eax
je 0x40d52b
push dword [ebp - 4]
push 0x4206e8
push dword [ebp - 8]
call fcn.0040bcc3
add esp, 0xc
test eax, eax
je 0x40d52b
push 0x4206f8
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop esi
leave
ret
Function at 0x40d6e1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
push ebx
push edi
mov ebx, 0x20019
push ebx
xor edi, edi
push 0x4208fc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call fcn.00402e0e
test eax, eax
jne 0x40d8f3
push ebx
push 0x420908
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00402e0e
test eax, eax
jne 0x40d8f3
push ebx
push 0x420914
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402e0e
test eax, eax
jne 0x40d8f3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x420930
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 4]
call fcn.0040eeb6
test eax, eax
je 0x40d798
lea ecx, [ebp - 8]
call fcn.00402df7
lea ecx, [ebp - 4]
call fcn.00402df7
lea ecx, [ebp - 0xc]
call fcn.00402df7
lea ecx, [ebp - 0x10]
call fcn.00402df7
mov eax, edi
jmp 0x40d915
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e0e
test eax, eax
jne 0x40d7dd
lea eax, [ebp + 0x10]
push eax
push 0x420940
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0040eeb6
test eax, eax
jne 0x40d7dd
push dword [ebp + 0xc]
call fcn.0040beb1
test eax, eax
pop ecx
je 0x40d7dd
cmp dword [ebp + 8], edi
je 0x40d8eb
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x418]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov byte [ebp - 0x818], 0
jmp 0x40d89c
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp + 0x10], esi
call fcn.0041d67e
test eax, eax
pop ecx
pop ecx
jle 0x40d891
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e0e
test eax, eax
jne 0x40d88e
lea eax, [ebp + 0x10]
push eax
push str.JavaHome
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 8]
call fcn.0040eeb6
test eax, eax
jne 0x40d88e
cmp dword [ebp + 0x10], eax
jbe 0x40d88e
lea eax, [ebp - 0xc18]
push eax
call fcn.0040beb1
test eax, eax
pop ecx
je 0x40d88e
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x818]
push 0x420958
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc18]
push eax
push 0x42095c
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
inc dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 0x818]
je 0x40d7fe
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d8b3
sub eax, edx
mov dword [ebp - 0x14], eax
je 0x40d8f3
lea eax, [ebp - 0x818]
push eax
push 0x420960
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d8df
sub eax, ecx
mov dword [ebp + 0x10], eax
xor edi, edi
inc edi
jmp 0x40d771
lea ecx, [ebp - 8]
call fcn.00402df7
lea ecx, [ebp - 4]
call fcn.00402df7
lea ecx, [ebp - 0xc]
call fcn.00402df7
lea ecx, [ebp - 0x10]
call fcn.00402df7
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40d919
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x114
push esi
push edi
mov esi, 0x20019
push esi
xor edi, edi
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.00402e0e
test eax, eax
je 0x40d95a
xor esi, esi
jmp 0x40da37
push esi
push 0x420970
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.00402e0e
test eax, eax
jne 0x40d953
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e0e
test eax, eax
jne 0x40d953
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x80
mov byte [ebp - 0xa0], al
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x70]
call ebx
test eax, eax
jne 0x40da33
inc dword [ebp + 0x60]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041d67e
test eax, eax
pop ecx
pop ecx
jle 0x40da01
push 9
mov edi, str.1.6.0_07
lea esi, [ebp - 0x20]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d9ff
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d9d8
sub eax, edx
cmp eax, 3
jbe 0x40d9ff
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0xa0], cl
inc eax
test cl, cl
jne 0x40d9e8
mov dword [ebp + 0x64], 1
xor edi, edi
push 0x80
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x70]
call ebx
test eax, eax
je 0x40d9a8
cmp dword [ebp + 0x64], edi
je 0x40da33
lea eax, [ebp - 0xa0]
push eax
push 0x4209a4
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp + 0x64]
pop ebx
lea ecx, [ebp + 0x70]
call fcn.00402df7
lea ecx, [ebp + 0x6c]
call fcn.00402df7
lea ecx, [ebp + 0x68]
call fcn.00402df7
pop edi
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40db7d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [0x426060]
push 0xf003f
xor ebx, ebx
push 0x420be4
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00402e0e
test eax, eax
je 0x40dbc2
mov esi, 0x80004005
jmp 0x40dcb1
push ebx
push ebx
mov esi, 0x2001f
push esi
push ebx
push ebx
push 0x420bf0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040ee68
test eax, eax
jne 0x40dbb8
push ebx
push ebx
push esi
push ebx
push ebx
push 0x420bfc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040ee68
test eax, eax
jne 0x40dbb8
push ebx
push ebx
push esi
push ebx
push ebx
push 0x420c08
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040ee68
test eax, eax
jne 0x40dbb8
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x422290
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov dword [ebp - 8], 0x80004005
jne 0x40dc41
push 0x420c10
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40dcae
mov dword [ebp - 8], ebx
jmp 0x40dcae
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x40dca0
mov edi, dword [ebp - 4]
cmp edi, ebx
jne 0x40dc63
xor eax, eax
jmp 0x40dc88
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00412ff0
mov eax, esp
push dword [ebp - 0x1c]
push esi
push edi
push eax
call fcn.00406790
push 0xffffffffffffffff
push ebx
push str.TransferJobID
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ef14
test eax, eax
jne 0x40dca0
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x40dcae
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00402df7
lea ecx, [ebp - 0x10]
call fcn.00402df7
lea ecx, [ebp - 0x14]
call fcn.00402df7
lea ecx, [ebp - 0x18]
call fcn.00402df7
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret