joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002994b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x21d8]
mov eax, 0x2258
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x21d4], eax
push ebx
mov ebx, dword [ebp + 0x21e0]
push esi
push 0x250
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.10039d40
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebx
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x10029ab8
mov ecx, 0x10069290
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100299e5
test dx, dx
je 0x100299e1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100299e5
add eax, 4
add ecx, 4
test dx, dx
jne 0x100299bf
xor eax, eax
jmp 0x100299ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10029a80
mov ecx, 0x10069294
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10029a20
test dx, dx
je 0x10029a1c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10029a20
add eax, 4
add ecx, 4
test dx, dx
jne 0x100299fa
xor eax, eax
jmp 0x10029a25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10029a80
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp + 0x11d4]
push 0x1006929c
push eax
call esi
mov eax, dword [ebp - 0x7c]
add esp, 0x10
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0x11d4]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test byte [ebp - 0x7c], 0x10
lea eax, [ebp + 0x11d4]
push eax
jne 0x10029a7a
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x10029a80
push eax
lea eax, [ebp + 0x11d4]
push eax
call fcn.10017d20
pop ecx
jmp 0x10029a7f
call fcn.1002994b
pop ecx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x100299b7
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_FindClose]
push ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x10029ab4
push eax
push ebx
call fcn.10017d20
pop ecx
pop ecx
mov eax, esi
jmp 0x10029abb
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x21d4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x21d8
leave
ret
Function at 0x1002a11d
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xff4], eax
mov eax, dword [ebp + 0x1004]
push ebx
push esi
mov esi, dword [ebp + 0x1000]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x1005d148]
fld qword [0x1005d140]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003aca0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1008]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1003aca0
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x1005d138]
fadd qword [0x1005d130]
call fcn.1003aca0
neg eax
cmp dword [ebp + 0x100c], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x1010]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1002
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0xc]
push 0x1006962c
push eax
call fcn.1003b150
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x1002a268
push dword [ebp - 0x78]
jmp 0x1002a26d
push 0x10069638
push 0x20
push eax
call fcn.1003b150
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xff4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0xff8
leave
ret 0x14
Function at 0x1002b093
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xff4], eax
mov eax, dword [ebp + 0x1004]
push ebx
push esi
mov esi, dword [ebp + 0x1000]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x1005d148]
fld qword [0x1005d140]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003aca0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1008]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1003aca0
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x1005d138]
fadd qword [0x1005d130]
call fcn.1003aca0
neg eax
cmp dword [ebp + 0x100c], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, 0x800
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
push ecx
push 0x1002
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0xc]
push str.Japan
push eax
call fcn.1003b150
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x1002b1d1
push 0x10069830
jmp 0x1002b1d4
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.1003b150
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xff4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0xff8
leave
ret 0x10
Function at 0x1002cf9a
Capabilities:
Get memory capacity

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.10039d40
add esp, 0xc
push esi
mov dword [esi], 0x40
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
mov eax, esi
pop esi
ret

Function at 0x1002d15b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x100825dc], 0
je 0x1002d186
mov eax, dword [0x100825d8]
jmp 0x1002d1ca
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10039d40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x1002d1bd
cmp dword [ebp - 0x7c], 6
jb 0x1002d1bd
mov eax, ecx
jmp 0x1002d1bf
xor eax, eax
mov dword [0x100825d8], eax
mov dword [0x100825dc], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x98
leave
ret

Function at 0x1002d5a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1002d5b4
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateProcessW]
pop ebp
ret
Function at 0x1002d6af
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2794]
mov eax, 0x2814
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x2790], eax
push ebx
push esi
mov esi, dword [ebp + 0x279c]
push edi
xor eax, eax
mov edi, 0xffe
xor ebx, ebx
push edi
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.10039d40
push esi
push 0x1006afe8
push 0x1006afdc
mov esi, 0x800
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.1003b150
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002d815
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1f90]
push eax
push ebx
push ebx
push 0x1006b040
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], ebx
jne 0x1002d815
xor eax, eax
push edi
mov word [ebp + 0xf90], ax
lea eax, [ebp + 0xf92]
push ebx
push eax
call fcn.10039d40
push 0x1006b054
lea eax, [ebp + 0x1f90]
push eax
push 0x1006b070
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1003b150
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea eax, [ebp + 0xf90]
push eax
call edi
test eax, eax
je 0x1002d815
push 0x1006b07c
lea eax, [ebp + 0x1f90]
push eax
push 0x1006b0a4
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1003b150
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
mov dword [ebp - 0x74], eax
push 0x1006b0b0
lea eax, [ebp + 0x1f90]
push eax
push 0x1006b0d8
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1003b150
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
cmp dword [ebp - 0x74], ebx
jne 0x1002d80e
cmp eax, ebx
je 0x1002d815
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp + 0x2790]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x2794
leave
ret
Function at 0x1002d8ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call fcn.10039d40
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call fcn.1003b150
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x1002d94f
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x1002d9be
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x1006b2b4
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x1002d97d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002d9c0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002d9b2
test dx, dx
je 0x1002d9ae
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002d9b2
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002d98c
xor eax, eax
jmp 0x1002d9b7
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0xf8c
leave
ret

Function at 0x1002dbc7
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x1002dbe8
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x1006b3cc
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1002dbe8
inc esi
mov eax, esi
pop esi
ret
Function at 0x1002debf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7bc]
sub esp, 0x83c
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x7b8], eax
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
push 0x1006ae70
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call fcn.1003b150
test eax, eax
je 0x1002df5d
lea ecx, [ebp - 0x74]
call fcn.10016b3c
lea ecx, [ebp - 0x58]
call fcn.10016b3c
lea ecx, [ebp - 0x68]
call fcn.10016b3c
lea ecx, [ebp - 0x80]
call fcn.10016b3c
xor eax, eax
mov ecx, dword [ebp + 0x7b8]
pop edi
xor ecx, ebp
pop esi
call fcn.10039bc2
add ebp, 0x7bc
leave
ret
push esi
push 0x1006ae84
push dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
call fcn.1003b150
test eax, eax
jne 0x1002df24
push esi
push 0x1006ae98
push dword [ebp - 0x68]
lea ecx, [ebp - 0x58]
call fcn.1003b150
test eax, eax
je 0x1002dfab
lea ecx, [ebp - 0x74]
call fcn.10016b3c
lea ecx, [ebp - 0x58]
call fcn.10016b3c
lea ecx, [ebp - 0x68]
call fcn.10016b3c
lea ecx, [ebp - 0x80]
call fcn.10016b3c
mov eax, edi
jmp 0x1002df46
push ebx
mov esi, 0x400
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.10039d40
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push esi
lea eax, [ebp - 0x48]
push eax
push edi
jmp 0x1002e01e
inc dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x7c4]
lea eax, [ebp - 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002dfff
cmp dx, di
je 0x1002dffb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002dfff
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1002dfd9
xor eax, eax
jmp 0x1002e004
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea eax, [ebp - 0x48]
je 0x1002e029
push esi
push edi
push eax
call fcn.10039d40
add esp, 0xc
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
test eax, eax
je 0x1002dfcd
jmp 0x1002e060
push 0x20019
push eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x74]
call fcn.1003b150
test eax, eax
jne 0x1002e060
lea eax, [ebp - 0x4c]
push eax
push 0x1006aeb4
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x4c], edi
call fcn.1003b150
test eax, eax
jne 0x1002e060
cmp dword [ebp - 0x4c], 1
sete al
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x5c]
pop ebx
jmp 0x1002df87
Function at 0x1002e4c4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xfc0]
mov eax, 0x1040
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xfbc], eax
push ebx
push esi
push edi
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.10039d40
and dword [ebp - 0x80], 0
add esp, 0xc
push 0x800
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x1002e62e
call fcn.1003b150
test eax, eax
lea eax, [ebp - 0x44]
push eax
je 0x1002e5d9
lea ecx, [ebp - 0x78]
call fcn.10001309
push str._system32javaws.exe
lea ecx, [ebp - 0x7c]
call fcn.10001309
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x78]
call fcn.10001524
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x1002e55b
call fcn.10001441
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push 0x1006a3d8
call esi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov ebx, eax
call esi
push eax
call edi
mov esi, dword [ebp - 0x78]
mov edi, eax
test ebx, ebx
je 0x1002e623
test edi, edi
je 0x1002e623
lea eax, [ebp - 0x80]
push eax
call ebx
test eax, eax
je 0x1002e623
test esi, esi
je 0x1002e5ae
mov eax, dword [esi]
jmp 0x1002e5b0
xor eax, eax
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.1003b150
pop ecx
pop ecx
push dword [ebp - 0x80]
test eax, eax
jne 0x1002e5d5
call edi
test esi, esi
je 0x1002e5d0
mov ecx, esi
call fcn.10001441
xor eax, eax
inc eax
jmp 0x1002e630
call edi
jmp 0x1002e623
lea ecx, [ebp - 0x7c]
call fcn.10001309
push str._sysWow64javaws.exe
lea ecx, [ebp - 0x78]
call fcn.10001309
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10001524
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1002e606
call fcn.10001441
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x1002e611
mov eax, dword [esi]
jmp 0x1002e613
xor eax, eax
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.1003b150
pop ecx
pop ecx
test eax, eax
je 0x1002e5c5
test esi, esi
je 0x1002e62e
mov ecx, esi
call fcn.10001441
xor eax, eax
mov ecx, dword [ebp + 0xfbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0xfc0
leave
ret
Function at 0x1002eb17
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x10059221
call fcn.10039bd1
push 0x1006b464
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1003b936
add esp, 0xc
test eax, eax
jne 0x1002ebf2
push dword [ebp - 0x18]
call fcn.1003b150
cmp dword [0x100825c4], 0
pop ecx
je 0x1002eb72
xor eax, eax
inc eax
jmp 0x1002ebf4
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x1002ebf2
test eax, eax
je 0x1002ebf2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001309
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001524
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002ebc3
call fcn.10001441
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1002ebce
mov eax, dword [esi]
jmp 0x1002ebd0
xor eax, eax
push 0x1006b510
push eax
push 0x100825c4
call fcn.1003b150
add esp, 0xc
test eax, eax
je 0x1002ec17
test esi, esi
je 0x1002ebf2
mov ecx, esi
call fcn.10001441
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x20c
leave
ret
test esi, esi
je 0x1002eb6a
mov ecx, esi
call fcn.10001441
jmp 0x1002eb6a

Function at 0x1002eec6
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10059249
call fcn.10039c04
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.1003b150
test eax, eax
je 0x1002eef1
call fcn.1002eeb7
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x1005fda0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x1002ef4c
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.1003544c
pop ecx
pop ecx
push edi
push esi
call fcn.1003b150
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10004b09
push eax
push esi
push 0x1006a44c
call fcn.1003544c
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x1002ef45
ret
cmp ebx, edi
je 0x1002ef57
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1002f008
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1002efb4
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x1002ef10
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1002f008
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1002f008
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x1002ef10
mov eax, esi
call fcn.10039c70
ret
Function at 0x1002f34c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2f9c]
mov eax, 0x301c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x2f98], eax
mov eax, dword [ebp + 0x2fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
mov edi, 0xffe
xor esi, esi
push edi
mov word [ebp + 0x1f98], ax
lea eax, [ebp + 0x1f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.10039d40
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
push 0x1006b888
mov ebx, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002f4b4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push esi
jmp 0x1002f4a3
lea eax, [ebp + 0x1f98]
push eax
push 0x1006b8e0
push 0x1006b87c
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.1003b150
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002f48b
push edi
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.10039d40
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0x1006b938
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002f48b
cmp dword [ebp - 0x6c], esi
jbe 0x1002f48b
mov eax, dword [ebp + 0x2fa8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push esi
push 0x1006b950
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1002f3eb
mov eax, dword [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1002f4ba
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x2f98]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.10039bc2
add ebp, 0x2f9c
leave
ret