joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4223da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4225a0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x437e20]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4225a0
test cl, 0x48
je 0x422440
mov al, byte [eax + 5]
cmp al, 0xa
je 0x422440
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422492
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42247a
call fcn.0041df3a
mov dword [eax], 9
call fcn.0041df43
mov dword [eax], esi
jmp 0x42248a
cmp eax, 0x6d
je 0x4225a0
push eax
call fcn.0041decc
pop ecx
or eax, 0xffffffff
jmp 0x4225a2
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42259b
test edx, edx
je 0x4224b5
cmp byte [ebx], 0xa
jne 0x4224b5
or al, 4
jmp 0x4224b7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x422595
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x422585
cmp al, 0xd
je 0x4224eb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x422577
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x422505
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x422500
add dword [ebp + 0x10], 2
jmp 0x422559
mov dword [ebp + 0x10], eax
jmp 0x422573
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42252d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422573
cmp dword [ebp - 0xc], 0
je 0x422573
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42254e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x422559
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422576
cmp ebx, dword [ebp + 0xc]
jne 0x42255e
cmp byte [ebp - 1], 0xa
jne 0x42255e
mov byte [ebx], 0xa
jmp 0x422576
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422228
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x422577
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4224cf
jmp 0x422595
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x422595
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4225a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423929
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x423949
xor eax, eax
jmp 0x423ab2
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x437e20]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x423979
push 2
push edi
push dword [ebp + 8]
call fcn.00422228
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x423a4b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x423a86
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4239d4
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x4239c5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x4239a8
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423a14
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x423a1d
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x423999
jmp 0x423a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x423aaf
cmp dword [ebp + 8], edi
je 0x423a86
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x423a78
call fcn.0041df3a
mov dword [eax], 9
call fcn.0041df43
mov dword [eax], esi
jmp 0x423a81
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423a6d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x423a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x423a1f
push dword [ebp + 8]
call fcn.0041decc
pop ecx
or eax, 0xffffffff
jmp 0x423ab2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x423a9b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x423942
call fcn.0041df3a
mov dword [eax], 0x1c
call fcn.0041df43
mov dword [eax], edi
jmp 0x423a81
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424f41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x424fbf
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.0041e441
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x424fc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push str.Win32__d:__s_r_n
push eax
call fcn.0041c928
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x42506d
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401203
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401218
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40122a
xor eax, eax
jmp 0x40125c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40124e
cmp esi, eax
jae 0x401226
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401240
cmp esi, eax
jae 0x401226
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401414
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 0x401463
cmp dword [ebp - 4], ebx
jbe 0x401460
cmp dword [ebp - 4], 2
jbe 0x40146a
cmp dword [ebp - 4], 7
jne 0x401460
mov ecx, dword [edi]
cmp ecx, 2
jb 0x401460
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x401460
cmp byte [ecx - 2], bl
je 0x401463
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40145e
Function at 0x401d04
Capabilities:
Create process on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
or dword [ebp - 4], 0xffffffff
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00412120
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00412120
add esp, 0x18
cmp dword [0x426ba4], esi
mov dword [ebp - 0x58], 0x44
je 0x401d70
push 0x426ba8
push str.Country
push esi
call fcn.0040aeb1
push 0x426950
push str.PostStatusUrl
push esi
call fcn.0040aeb1
push 0x426a50
push str.Method
push esi
call fcn.0040aeb1
add esp, 0x24
jmp 0x401d7f
push esi
push str.PostStatusUrl
push esi
call fcn.0040aeb1
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x401dbc
push dword [ebp - 0x14]
call fcn.00401472
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4022a2
Capabilities:
Delete file
Download url
Get geographical location
Receive data

Disassembly:
mov eax, 0x41ceb6
call fcn.00412998
mov eax, 0x3504
call fcn.00412040
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x41e625
mov byte [0x426850], bl
push 0x426950
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x400
mov esi, 0x426748
push esi
push str.InstallerXmlURL
call fcn.0040bbac
add esp, 0xc
test eax, eax
jne 0x402306
push str.http:__javadl_esd.sun.com_update_1.6.0_1.6.0_23_b05.xml
push 0x41e88c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x2800
lea eax, [ebp - 0x3510]
push eax
push ebx
push esi
call fcn.00401aca
add esp, 0x10
test eax, eax
je 0x402371
lea eax, [ebp - 0x3510]
push edi
push eax
call fcn.00401908
cmp dword [0x426ba4], ebx
pop ecx
pop ecx
jne 0x40233f
cmp dword [0x425050], ebx
je 0x402377
lea eax, [ebp + 0xc]
push eax
mov esi, 0x426ba8
push esi
push str.Country
push ebx
mov dword [ebp + 0xc], 0x14
call fcn.0040b7e0
add esp, 0x10
test eax, eax
jne 0x402377
push esi
push 0x426850
call fcn.0040aa79
pop ecx
pop ecx
jmp 0x402377
mov dword [0x425050], ebx
call fcn.0040a087
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4024a6
xor eax, eax
mov esi, 0xff
mov byte [ebp - 0x910], bl
mov ecx, esi
lea edi, [ebp - 0x90f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x510], bl
mov ecx, esi
lea edi, [ebp - 0x50f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
mov byte [ebp - 0x110], bl
pop ecx
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
call fcn.0040a7dd
push dword [ebp + 0xc]
mov edi, str.OpenOffice_banner
push edi
push 0x426bd0
lea eax, [ebp - 0x910]
push str._s__s__s.jpg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str.1.6.0_23
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x510]
push str._sSunJavajre_s_s.jpg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
push ebx
push ebx
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x910]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov dword [ebp + 0xc], ebx
push 0xfa8
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.00401e0a
xor eax, eax
mov byte [ebp - 0xd10], bl
mov ecx, esi
lea edi, [ebp - 0xd0f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
stosb byte es:[edi], al
lea eax, [ebp - 0xd10]
push eax
push 0xfa8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0xd10]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.0040aa4a
test eax, eax
pop ecx
pop ecx
jne 0x40249d
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406966
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41d0e3
call fcn.00412998
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x425064]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4069f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x4069d9
push esi
call fcn.00401000
test al, al
pop ecx
je 0x4069d9
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00412040
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4069e2
push esi
lea ecx, [ebp - 0x14]
call fcn.004024b5
push dword [ebp - 0x18]
push esi
push dword [ebp + 8]
push eax
call fcn.00401134
cmp eax, ebx
jne 0x406a16
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x406a0c
lea ecx, [ebp - 0x424]
call fcn.00407b1f
mov esi, 0x8007000e
jmp 0x406b08
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x406a33
call fcn.004035b0
mov esi, eax
jmp 0x406aef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x406a57
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x406a61
call fcn.004035b0
jmp 0x406ae4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, edi
mov dword [ebp + 0x10], esi
mov byte [ebp - 4], 2
jbe 0x406a8f
push eax
lea ecx, [ebp - 0x424]
call fcn.00406b29
jmp 0x406aa2
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x406aa2
cmp dword [ebp - 0x424], ebx
mov dword [ebp - 4], 1
jne 0x406ab8
mov esi, 0x8007000e
jmp 0x406ae6
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x424]
call fcn.00412190
mov eax, dword [ebp - 0x424]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.00406b4a
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x406b08
lea ecx, [ebp - 0x424]
call fcn.00407b1f
lea ecx, [ebp - 0x14]
call fcn.00401dca
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407600
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004013df
cmp eax, esi
jne 0x407678
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x407641
lea eax, [ebp - 0x110]
push eax
call fcn.00407600
cmp eax, esi
jne 0x407677
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x407631
call fcn.004013c8
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004013c8
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x407a2b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x407a36
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x408ec2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00408cb2
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x408f92
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x408f18
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x408f76
push eax
call ebx
mov edi, eax
test edi, edi
je 0x408f76
push ebp
push edi
call fcn.00401687
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x408f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x408f80
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x408f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x408f92
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40a6c3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x426dcc], 0
je 0x40a6dc
mov eax, dword [0x426dc8]
leave
ret
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00412120
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x84], 2
jne 0x40a722
cmp dword [ebp - 0x90], 6
jne 0x40a722
mov eax, ecx
jmp 0x40a724
xor eax, eax
mov dword [0x426dc8], eax
mov dword [0x426dcc], ecx
leave
ret
Function at 0x40aeb1
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x40af05
cmp ebx, edi
lea eax, [ebp - 4]
jne 0x40aeed
push eax
push 0x2001f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40aef7
push 1
push eax
call fcn.0040ae59
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40af4c
mov dword [ebp - 8], 1
jmp 0x40af08
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40af3e
cmp ebx, edi
jne 0x40af1f
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40af37
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x40af4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b291
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 4
pop eax
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b2d3
xor eax, eax
jmp 0x40b319
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, str.OfferedSPCnt
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40b300
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40b30c
cmp eax, 2
je 0x40b30c
mov dword [ebp - 8], 0xfffffffe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop edi
leave
ret

Function at 0x40b31c
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.0041378e
lea eax, [ebp - 8]
push eax
call fcn.0041392a
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x41e625
push eax
call fcn.00412ae0
xor edi, edi
add esp, 0x10
cmp esi, edi
je 0x40b376
push esi
call fcn.0041381f
cmp eax, edi
pop ecx
je 0x40b376
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.004137c7
add esp, 0xc
mov ebx, 0x104
push ebx
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 0x40b3a8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40b3b0
push 0x41ffd8
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x10c]
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b42b
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret