joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401297
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
jne 0x40131c
mov edi, dword [ebp + 0xc]
mov ecx, 0x96
xor al, al
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x78]
add edx, dword [ebp + 8]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4012d9
add esp, 4
jmp 0x4012e3
pop ecx
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jne 0x4012c7
cmp eax, dword [edx + 0x18]
jne 0x4012ea
jmp 0x40131c
mov esi, dword [edx + 0x24]
add esi, dword [ebp + 8]
push edx
mov ebx, 2
xor edx, edx
mul ebx
pop edx
add eax, esi
xor ecx, ecx
mov cx, word [eax]
mov edi, dword [edx + 0x1c]
xor edx, edx
mov ebx, 4
mov eax, ecx
mul ebx
add eax, dword [ebp + 8]
add eax, edi
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x40131e
xor eax, eax
pop dword fs:[0]
add esp, 4
leave
ret 8
Function at 0x401686
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
push 1
push 0x2000
push dword [ebp - 8]
push ebx
call dword [ebp + 0xc]
add ebx, 0x10000
test eax, eax
mov dword [ebp - 0xc], eax
je 0x4016ad
push 4
push 0x1000
push edi
mov ebx, eax
push ebx
call dword [ebp + 0xc]
test edi, edi
jbe 0x4016f5
mov edx, dword [ebp + 8]
sub edx, eax
mov ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + ecx]
mov byte [ecx], dl
inc ecx
dec dword [ebp - 8]
jne 0x4016e7
lea ecx, [ebp - 0x1c]
push ecx
push 2
push edi
push eax
call dword [ebp + 0x10]
movzx eax, word [esi + 0x14]
and dword [ebp - 8], 0
cmp word [esi + 6], 0
lea edi, [eax + esi + 0x18]
jbe 0x401775
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
cmp ecx, eax
mov dword [ebp - 4], eax
ja 0x401723
mov dword [ebp - 4], ecx
push 4
push 0x1000
push eax
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
call dword [ebp + 0xc]
xor ecx, ecx
cmp dword [edi + 8], ecx
mov dword [ebp - 0x14], eax
jbe 0x401748
mov byte [ecx + eax], 0
inc ecx
cmp ecx, dword [edi + 8]
jb 0x40173e
xor ecx, ecx
cmp dword [ebp - 4], ecx
jbe 0x401766
mov eax, dword [edi + 0x14]
mov edx, dword [ebp + 8]
add eax, ecx
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x14]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x40174f
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x401713
and dword [ebp + 0xc], 0
cmp word [esi + 6], 0
jbe 0x4017a3
add edi, 8
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi + 4]
push 1
push dword [edi]
add eax, ebx
push eax
call dword [ebp + 0x10]
movzx eax, word [esi + 6]
inc dword [ebp + 0xc]
add edi, 0x28
cmp dword [ebp + 0xc], eax
jl 0x401783
and dword [ebp - 0x14], 0
mov eax, ebx
sub eax, dword [esi + 0x34]
lea ecx, [esi + 0xa0]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
add eax, ebx
add edx, eax
cmp eax, edx
mov dword [ebp + 8], edx
jae 0x401841
Function at 0x404ddc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x404dfb
mov eax, dword [0x408b18]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x404e08
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x404e35
je 0x404e47
sub ecx, 0x100
je 0x404e55
sub ecx, 0x100
je 0x404e5c
sub ecx, 0x100
je 0x404e4e
jmp 0x404e63
sub ecx, 0x600
je 0x404e5c
sub ecx, 0x100
je 0x404e47
jmp 0x404e63
mov edi, 1
jmp 0x404e68
mov edi, 2
jmp 0x404e68
mov edi, 4
jmp 0x404e68
mov edi, 5
jmp 0x404e68
mov edi, 3
test byte [ebp + 0xd], 1
je 0x404e8f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x409004]
test al, 0x80
je 0x404e88
mov ebx, 0x80
jmp 0x404ea1
mov ebx, 1
jmp 0x404ea1
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x404ea1
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x404eb3
je 0x404ebc
dec eax
je 0x404ec5
jmp 0x404ece
mov dword [ebp - 4], 0x80000000
jmp 0x404edd
mov dword [ebp - 4], 0x40000000
jmp 0x404edd
mov dword [ebp - 4], 0xc0000000
jmp 0x404edd
push 1
call fcn.00404bf4
pop ecx
mov ebx, eax
jmp 0x404fc9
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x404ef9
sub eax, 0x10
je 0x404f00
sub eax, 0x10
je 0x404f09
sub eax, 0x10
je 0x404f12
jmp 0x404f12
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x404f19
mov dword [ebp - 8], 1
jmp 0x404f19
mov dword [ebp - 8], 2
jmp 0x404f19
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x404f82
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x404f77
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x404f77
add ebx, 0xffffffb2
push ebx
call fcn.00404bf4
pop ecx
mov ebx, eax
jmp 0x404fc9
mov edi, esi
push edi
call fcn.00404d4c
pop ecx
test eax, eax
je 0x404f96
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x404fa2
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00404950
add esp, 8
mov ebx, eax
inc eax
jne 0x404fc9
push 4
call fcn.00404bf4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40691c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x406b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40945c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x406be8
cmp byte [0x40809d], 0
je 0x406ba2
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004019e4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406b8b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004019e4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406b8b
lea ebx, [ebp - 0x54]
jmp 0x406b8c
inc ebx
call fcn.00406ae8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x406c09
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x409460
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00401950
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x409463
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x406c09
cmp dword [0x40945c], 0xffffffff
je 0x406c09
mov eax, dword [0x40945c]
test eax, eax
je 0x406c09
cmp byte [eax], 0
je 0x406c09
push esi
push eax
call fcn.00406c98
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x449559
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ddf80]
jne 0x449563
repz ret
jmp fcn.0044bbfe

Function at 0x453288
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ddf80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044eb02
and dword [ebp - 0x14], 0
cmp dword [0x5dfcf4], 0
mov dword [ebp - 0x18], eax
jne 0x45333b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4533e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4533e3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5dfcf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5dfcf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5dfcfc], eax
call edi
push eax
call esi
mov dword [0x5dfd04], eax
test eax, eax
je 0x45333b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5dfd00], eax
mov eax, dword [0x5dfd00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x453394
cmp dword [0x5dfd04], ecx
je 0x453394
push eax
call esi
push dword [0x5dfd04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x453394
test ebx, ebx
je 0x453394
call edi
test eax, eax
je 0x45338b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45338b
test byte [ebp - 8], 1
jne 0x453394
or dword [ebp + 0x10], 0x200000
jmp 0x4533c7
mov eax, dword [0x5dfcf8]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4533c7
mov eax, dword [0x5dfcfc]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5dfcf4]
call esi
test eax, eax
je 0x4533e3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4533e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449559
leave
ret
Function at 0x6d6935b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xfa0]
mov eax, 0x1020
call fcn.6d6a89f0
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0xf9c], eax
mov eax, dword [ebp + 0xfa8]
push esi
mov esi, dword [ebp + 0xfac]
push edi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor edi, edi
push edi
push 0x6d6d32a4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d693792
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x79c]
push eax
mov dword [ebp - 0x70], edi
mov ebx, 0x800
push edi
jmp 0x6d693774
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x7c], ebx
cmp dword [ebp - 0x6c], edi
jbe 0x6d69375f
cmp byte [ebp + eax + 0x79c], 0x2e
jne 0x6d693644
inc ecx
cmp ecx, 1
jg 0x6d693653
inc eax
cmp eax, dword [ebp - 0x6c]
jb 0x6d693634
cmp ecx, 1
jle 0x6d69375f
push 0x6d6d32d0
lea eax, [ebp + 0x79c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d69375f
lea eax, [ebp + 0x79c]
push eax
call fcn.6d697031
pop ecx
test al, al
je 0x6d69375f
lea eax, [ebp + 0x79c]
push eax
push 0x6d6d32d8
lea eax, [ebp - 0x64]
push 0x6d6d3304
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x64]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d69375f
mov eax, dword [esi]
imul eax, eax, 0xc
add eax, dword [ebp - 0x68]
push eax
call fcn.6d692ac3
mov ecx, dword [ebp - 0x68]
lea eax, [ebp + 0x79c]
push eax
mov eax, dword [esi]
imul eax, eax, 0xc
push ebx
push dword [eax + ecx]
call fcn.6d6b3ceb
mov ecx, dword [ebp - 0x68]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
imul eax, eax, 0xc
push dword [eax + ecx + 4]
lea eax, [ebp - 0x80]
push eax
push edi
push 0x6d6d330c
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d693745
lea eax, [ebp + 0x79c]
push eax
call fcn.6d6b3ceb
mov ecx, dword [esi]
mov edx, dword [ebp - 0x68]
imul ecx, ecx, 0xc
mov byte [ecx + edx + 8], al
lea eax, [ebp + 0x79c]
push eax
call fcn.6d6b3ceb
mov edx, dword [ebp - 0x68]
pop ecx
pop ecx
mov ecx, dword [esi]
imul ecx, ecx, 0xc
mov byte [ecx + edx + 9], al
jmp 0x6d693754
mov eax, dword [esi]
imul eax, eax, 0xc
add eax, dword [ebp - 0x68]
push eax
call fcn.6d692a84
pop ecx
push dword [ebp - 0x78]
inc dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x70]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x79c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x6d693624
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0xf9c]
pop edi
xor ecx, ebp
pop esi
call fcn.6d6a886c
add ebp, 0xfa0
leave
ret
Function at 0x6d6943ca
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d694418
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d694429
push 0xd
pop eax
jmp 0x6d694453
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d69442c
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 0x6d694b91
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d6b3ceb
mov ebx, eax
cmp ebx, esi
je 0x6d694c04
lea ecx, [ebp - 0x74]
call fcn.6d694310
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d6a886c
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d694c1c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d694b91
cmp eax, esi
jne 0x6d694c4e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x6d694c0c
lea ecx, [ebp - 0x74]
call fcn.6d694310
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d6942e2
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d694310
mov eax, esi
jmp 0x6d694bea
Function at 0x6d6976ae
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x79c]
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
push 0x6d6d38e0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d6977a2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], esi
push esi
jmp 0x6d69778d
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x74], esi
jbe 0x6d69777b
cmp byte [ebp + eax - 0x70], 0x2e
jne 0x6d697729
inc ecx
cmp ecx, 1
jg 0x6d697734
inc eax
cmp eax, dword [ebp - 0x74]
jb 0x6d69771c
cmp ecx, 1
jle 0x6d69777b
push str.1.3.1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d69777b
lea eax, [ebp - 0x70]
push eax
call fcn.6d697031
pop ecx
test al, al
je 0x6d69777b
push dword [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jle 0x6d69777b
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x7a0]
push dword [ebp - 0x80]
call fcn.6d6b3ceb
add esp, 0xc
inc dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x800
call edi
test eax, eax
je 0x6d697713
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.6d6a886c
add ebp, 0x794
leave
ret
Function at 0x6d697d86
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fc4]
mov eax, 0x2044
call fcn.6d6a89f0
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x1fc0], eax
cmp dword [0x6d6e6388], 0
je 0x6d697f0f
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x78]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x6d6d3b74
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 0x800
call esi
test eax, eax
jne 0x6d697f0c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xfc0]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xfc0]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea eax, [ebp - 0x40]
push 0x6d6d3bdc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp - 0x74], 0
jne 0x6d697f03
lea eax, [ebp - 0x80]
push eax
push ebx
push 0
lea eax, [ebp - 0x40]
push eax
push edi
call esi
test eax, eax
jne 0x6d697f03
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x7c0]
push eax
xor edi, edi
push edi
push edi
push 0x6d6d3be4
push dword [ebp - 0x80]
mov esi, 0x800
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d697f03
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp + 0x17c0]
push str._slib_bundles
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x17c0]
push eax
call fcn.6d6b3ceb
add esp, 0x14
test eax, eax
jne 0x6d697efa
push str._requested.list
lea eax, [ebp + 0x17c0]
push esi
push eax
mov dword [ebp - 0x74], edi
call fcn.6d6b3ceb
push 0x6d6d3c10
lea eax, [ebp + 0x17c0]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.6d6b3ceb
add esp, 0x18
test eax, eax
jne 0x6d697efa
mov ecx, dword [0x6d6e6388]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6d697eda
push dword [ebp - 0x74]
sub eax, esi
push eax
push 1
push ecx
call fcn.6d6aac85
push dword [ebp - 0x74]
call fcn.6d6aaaba
add esp, 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1fc0]
xor ecx, ebp
call fcn.6d6a886c
add ebp, 0x1fc4
leave
ret
Function at 0x6d6987b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x788], eax
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push str.SoftwareJavaSoftJava_Deployment_Toolkit
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d69882e
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push str.Allow_Unsigned_Installers
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x6d69882e
xor eax, eax
inc eax
jmp 0x6d69883f
push str.TOOLKIT_ALLOW_UNSIGNED
call fcn.6d6ab30b
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp + 0x788]
xor ecx, ebp
call fcn.6d6a886c
add ebp, 0x78c
leave
ret

Function at 0x6d6999a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb8
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x6d6e7218]
push pe_nt_image_headers32
push eax
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x6d699ad1
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x6d699ad1
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x6d699ad1
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x6d699acf
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x20], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x6d699a6d
lea eax, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.6d69985a
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x6d699a5a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x14], eax
je 0x6d699ac2
push dword [ebp - 0x14]
call fcn.6d6b3ceb
pop ecx
jmp 0x6d699ac2
mov ecx, 0x1234
cmp cx, ax
jne 0x6d699ac2
or dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x14], eax
call fcn.6d69985a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x3c], eax
cmp eax, ecx
je 0x6d699aa5
push eax
call fcn.6d6b3ceb
pop ecx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x401
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x6d699ac2
and dword [ebp - 0x18], 0
add esi, dword [ebp - 0x20]
cmp dword [ebp - 0x18], 0
jne 0x6d699a08
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop esi
call fcn.6d6a886c
add ebp, 0x74
leave
ret 4
Function at 0x6d69ef1a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x6d6e05c8]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x7b0]
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathA]
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x60], bl
lea edi, [ebp - 0x5f]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 3
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.6d6b3ceb
lea eax, [ebp - 0x60]
push eax
call fcn.6d6b3ceb
add esp, 0x14
cmp eax, 0x64
jae 0x6d69efb2
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x80], vtable.ATL::CSimpleDialog_110__1_.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.6d699c62
cmp dword [ebp - 0x6c], ebx
je 0x6d69efab
push dword [ebp - 0x6c]
call fcn.6d6b3ceb
mov eax, 0x80004005
jmp 0x6d69efcc
push str.1000
lea eax, [ebp - 0x5c]
push eax
push str._sJREInstall_s.exe
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0x7a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d6a886c
add ebp, 0x7a8
leave
ret