joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1fd
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.00412e60
lea eax, [ebp - 8]
push eax
call fcn.00412ce0
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
mov byte [ebp - 0x20c], bl
je 0x40c249
push eax
call fcn.00412bd5
cmp eax, ebx
pop ecx
je 0x40c249
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.0041281e
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 0x40c27b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c283
push 0x420424
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 0x40c30a
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 0x40c2c9
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 0x40c2ee
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 0x40c30f
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x4205a8
call fcn.00411b38
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 0x40c391
cmp dword [ebp - 0xb0], 5
jb 0x40c391
mov dword [ebp - 4], esi
push 0x420434
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40c388
push 0x420440
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c388
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040c39a
mov eax, dword [ebp - 0x20]
call fcn.00411b73
ret
Function at 0x40c4fa
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 0x4204b0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c55b
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 0x40c55b
movzx esi, byte [ebp - 0x208]
mov eax, esi
pop esi
leave
ret

Function at 0x40c571
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.0040c560
test eax, eax
jne 0x40c615
call fcn.0040b9d4
test eax, eax
je 0x40c615
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push 0x4204e4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c618
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x42050c
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 0x40c618
mov dword [ebp - 8], esi
call fcn.0040c30f
test eax, eax
je 0x40c60a
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c3aa
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x40c610
mov eax, dword [ebp - 0x20c]
cmp eax, 0x64
jne 0x40c618
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x40c61d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x420524
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c654
push 0x42054c
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 0x40c656
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 0x40c6e9
call fcn.0040c30f
test eax, eax
je 0x40c6bc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c44e
add esp, 0x10
jmp 0x40c6c5
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 0x40ceb6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 1
push eax
call fcn.0040c6ec
test eax, eax
pop ecx
pop ecx
je 0x40cfae
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
push 0x41f618
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cfae
push esi
lea eax, [ebp - 4]
push eax
push 0x41f640
push dword [ebp - 8]
call fcn.0040c829
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x40cf4c
lea eax, [ebp - 4]
push eax
push 0x41f64c
push dword [ebp - 0xc]
call fcn.0040c829
add esp, 0xc
test eax, eax
je 0x40cf4c
push dword [ebp - 4]
push 0x41f658
push dword [ebp - 8]
call fcn.0040b8cd
add esp, 0xc
test eax, eax
je 0x40cf4c
push 0x41f664
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 4]
push eax
push 0x41f670
push dword [ebp - 8]
call fcn.0040c829
add esp, 0xc
test eax, eax
jne 0x40cf9d
lea eax, [ebp - 4]
push eax
push 0x41f680
push dword [ebp - 0xc]
call fcn.0040c829
add esp, 0xc
test eax, eax
je 0x40cf9d
push dword [ebp - 4]
push 0x41f690
push dword [ebp - 8]
call fcn.0040b8cd
add esp, 0xc
test eax, eax
je 0x40cf9d
push 0x41f6a0
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 0x40d153
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 0x41f8a4
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.00402e3d
test eax, eax
jne 0x40d365
push ebx
push 0x41f8b0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00402e3d
test eax, eax
jne 0x40d365
push ebx
push 0x41f8bc
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402e3d
test eax, eax
jne 0x40d365
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x41f8d8
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 4]
call fcn.0040e8a4
test eax, eax
je 0x40d20a
lea ecx, [ebp - 8]
call fcn.00402e26
lea ecx, [ebp - 4]
call fcn.00402e26
lea ecx, [ebp - 0xc]
call fcn.00402e26
lea ecx, [ebp - 0x10]
call fcn.00402e26
mov eax, edi
jmp 0x40d387
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e3d
test eax, eax
jne 0x40d24f
lea eax, [ebp + 0x10]
push eax
push 0x41f8e8
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0040e8a4
test eax, eax
jne 0x40d24f
push dword [ebp + 0xc]
call fcn.0040babb
test eax, eax
pop ecx
je 0x40d24f
cmp dword [ebp + 8], edi
je 0x40d35d
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 0x40d30e
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp + 0x10], esi
call fcn.0041cb3e
test eax, eax
pop ecx
pop ecx
jle 0x40d303
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e3d
test eax, eax
jne 0x40d300
lea eax, [ebp + 0x10]
push eax
push str.JavaHome
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 8]
call fcn.0040e8a4
test eax, eax
jne 0x40d300
cmp dword [ebp + 0x10], eax
jbe 0x40d300
lea eax, [ebp - 0xc18]
push eax
call fcn.0040babb
test eax, eax
pop ecx
je 0x40d300
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x818]
push 0x41f900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc18]
push eax
push 0x41f904
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 0x40d270
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d325
sub eax, edx
mov dword [ebp - 0x14], eax
je 0x40d365
lea eax, [ebp - 0x818]
push eax
push 0x41f908
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 0x40d351
sub eax, ecx
mov dword [ebp + 0x10], eax
xor edi, edi
inc edi
jmp 0x40d1e3
lea ecx, [ebp - 8]
call fcn.00402e26
lea ecx, [ebp - 4]
call fcn.00402e26
lea ecx, [ebp - 0xc]
call fcn.00402e26
lea ecx, [ebp - 0x10]
call fcn.00402e26
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40d38b
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.00402e3d
test eax, eax
je 0x40d3cc
xor esi, esi
jmp 0x40d4a9
push esi
push 0x41f918
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.00402e3d
test eax, eax
jne 0x40d3c5
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e3d
test eax, eax
jne 0x40d3c5
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 0x40d4a5
inc dword [ebp + 0x60]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041cb3e
test eax, eax
pop ecx
pop ecx
jle 0x40d473
push 9
mov edi, str.1.6.0_02
lea esi, [ebp - 0x20]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d471
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d44a
sub eax, edx
cmp eax, 3
jbe 0x40d471
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0xa0], cl
inc eax
test cl, cl
jne 0x40d45a
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 0x40d41a
cmp dword [ebp + 0x64], edi
je 0x40d4a5
lea eax, [ebp - 0xa0]
push eax
push 0x41f94c
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.00402e26
lea ecx, [ebp + 0x6c]
call fcn.00402e26
lea ecx, [ebp + 0x68]
call fcn.00402e26
pop edi
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40d5ef
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [0x425060]
push 0xf003f
xor ebx, ebx
push 0x41fb8c
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.00402e3d
test eax, eax
je 0x40d634
mov esi, 0x80004005
jmp 0x40d723
push ebx
push ebx
mov esi, 0x2001f
push esi
push ebx
push ebx
push 0x41fb98
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040e856
test eax, eax
jne 0x40d62a
push ebx
push ebx
push esi
push ebx
push ebx
push 0x41fba4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040e856
test eax, eax
jne 0x40d62a
push ebx
push ebx
push esi
push ebx
push ebx
push 0x41fbb0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040e856
test eax, eax
jne 0x40d62a
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x421070
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov dword [ebp - 8], 0x80004005
jne 0x40d6b3
push 0x41fbb8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40d720
mov dword [ebp - 8], ebx
jmp 0x40d720
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 0x40d712
mov edi, dword [ebp - 4]
cmp edi, ebx
jne 0x40d6d5
xor eax, eax
jmp 0x40d6fa
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.004124b0
mov eax, esp
push dword [ebp - 0x1c]
push esi
push edi
push eax
call fcn.004063ce
push 0xffffffffffffffff
push ebx
push str.TransferJobID
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e902
test eax, eax
jne 0x40d712
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x40d720
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00402e26
lea ecx, [ebp - 0x10]
call fcn.00402e26
lea ecx, [ebp - 0x14]
call fcn.00402e26
lea ecx, [ebp - 0x18]
call fcn.00402e26
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d992
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
push esi
push 0x20019
push 0x41fed0
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x68], 0x80
call fcn.00402e3d
test eax, eax
jne 0x40da5e
push 0x2001f
push 0x41fedc
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e3d
test eax, eax
jne 0x40da5e
cmp dword [ebp + 0x7c], esi
jne 0x40d9fa
push 0x41fee8
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40da5b
lea eax, [ebp + 0x68]
push eax
push 0x41fef8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e8a4
test eax, eax
jne 0x40da48
cmp dword [ebp + 0x68], esi
je 0x40da48
push dword [ebp + 0x7c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push 0x41ff08
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40da5b
push 0xffffffffffffffff
push esi
push 0x41ff18
push dword [ebp + 0x7c]
lea ecx, [ebp + 0x70]
call fcn.0040e902
xor esi, esi
inc esi
lea ecx, [ebp + 0x70]
call fcn.00402e26
lea ecx, [ebp + 0x6c]
call fcn.00402e26
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40e63a
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x188
push edi
xor edi, edi
call fcn.0040e54f
test eax, eax
je 0x40e740
push esi
push 0x41f966
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x41f968
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push str.__s_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
cmp dword [ebp + 0x78], 0
jne 0x40e6af
push str.__delete
lea eax, [ebp - 0x118]
push eax
call esi
xor edi, edi
inc edi
lea eax, [ebp + 0x6c]
push eax
push 0x2001f
push 0
push 0x41f988
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e71b
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6d7
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 0
push str.SunJavaUpdateReg
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
jne 0x40e712
push 0x41f9cc
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call fcn.0040bb6f
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x7c], 0
je 0x40e73c
push str.__noruntask
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb07
pop ecx
xor eax, eax
inc eax
pop esi
pop edi
add ebp, 0x70
leave
ret

Function at 0x40e8a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40e8f3
cmp dword [ebp - 4], ebx
jbe 0x40e8f0
cmp dword [ebp - 4], 2
jbe 0x40e8fa
cmp dword [ebp - 4], 7
jne 0x40e8f0
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40e8f0
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40e8f0
cmp byte [ecx - 2], bl
je 0x40e8f3
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40e8ee
Function at 0x40edce
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push edi
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.0040c6ec
test eax, eax
pop ecx
pop ecx
je 0x40efac
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
push 0x420738
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x42073c
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x420744
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], 0
mov dword [ebp + 0x70], pe_nt_image_headers32
call esi
push 0x420754
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x420758
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x42076c
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
xor edi, edi
push edi
push 0x420770
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x420780
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
call esi
test eax, eax
jne 0x40ef0b
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x420790
lea eax, [ebp - 0x1a4]
push 0x420794
push eax
call fcn.0040da76
add esp, 0x20
test eax, eax
je 0x40ef0b
push 0x420798
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x4207a8
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], edi
call esi
test eax, eax
jne 0x40ef9f
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x4207b8
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], edi
call esi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x4207cc
lea eax, [ebp - 0x1a4]
push 0x4207d0
push eax
call fcn.0040da76
add esp, 0x20
test eax, eax
je 0x40ef9f
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4207d4
push dword [ebp + 0x6c]
call esi
push 0x4207e8
push dword [ebp + 0x6c]
call esi
push 0x4207fc
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40efae
xor edi, edi
mov dword [0x42671c], edi
xor eax, eax
pop edi
add ebp, 0x74
leave
ret 4
Function at 0x40efbe
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040cc0e
test eax, eax
jne 0x40efcf
leave
ret
push ebx
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.0040c6ec
test eax, eax
pop ecx
pop ecx
je 0x40f07b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x42080c
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40f039
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x42081c
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x40f07b
cmp dword [0x42671c], ebx
jne 0x40f07b
cmp dword [ebp + 8], ebx
jne 0x40f06b
push 0x42671c
push ebx
push ebx
push fcn.0040edce
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40f07b
push ebx
mov dword [0x42671c], 1
call fcn.0040edce
xor eax, eax
inc eax
pop ebx
leave
ret

Function at 0x40f144
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x420958
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push str.Country
xor ebx, ebx
push ebx
call fcn.0040c7c1
add esp, 0x10
push 0x420964
lea eax, [ebp - 0x194]
push eax
mov dword [ebp + 0x70], pe_nt_image_headers32
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x194]
push eax
push str.PostStatusUrl
push ebx
call fcn.0040c7c1
add esp, 0x10
push 0x420978
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push str.InstalledJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040c7c1
add esp, 0x10
push 0x420990
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x94]
push eax
push str.NewJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040c7c1
push dword [ebp + 0x7c]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x4209a4
lea eax, [ebp - 0x194]
push 0x4209a8
push eax
call fcn.0040da76
add esp, 0x30
pop esi
pop ebx
add ebp, 0x74
leave
ret