joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029a27
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.1003c230
mov eax, dword [0x10095dec]
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 [0x10072e40]
fld qword [0x10072e38]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003ca30
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.1003ca30
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 [0x10072e30]
fadd qword [0x10072e28]
call fcn.1003ca30
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 0x1007f1e0
push eax
call fcn.100374fc
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10029b72
push dword [ebp - 0x78]
jmp 0x10029b77
push 0x1007f1ec
push 0x20
push eax
call fcn.100374fc
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.1003c09c
add ebp, 0xff8
leave
ret 0x14
Function at 0x1002debd
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.1003c230
mov eax, dword [0x10095dec]
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 [0x10072e40]
fld qword [0x10072e38]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003ca30
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.1003ca30
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 [0x10072e30]
fadd qword [0x10072e28]
call fcn.1003ca30
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.100374fc
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x1002dffb
push 0x1007fd48
jmp 0x1002dffe
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.100374fc
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.1003c09c
add ebp, 0xff8
leave
ret 0x10
Function at 0x1002fbd5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f9c]
mov eax, 0x201c
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1f98], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x7c], eax
xor ebx, ebx
xor eax, eax
mov esi, 0xffe
mov dword [ebp - 0x74], ebx
push esi
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push ebx
push eax
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push ebx
push eax
call fcn.1003c260
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
lea eax, [ebp - 0x70]
push eax
push 0x20019
push ebx
push 0x10080358
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x1002fceb
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.BrowserJavaVersion
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fceb
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push 0x100803d8
push edi
call esi
test eax, eax
jne 0x1002fceb
lea eax, [ebp - 0x80]
push eax
push 1
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x1002fce2
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x100802ec
push dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002fcd9
xor eax, eax
mov word [ebp + 0xf98], ax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0xf98]
push eax
call fcn.100010b1
mov ecx, dword [ebp + 0x1f98]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x1f9c
leave
ret
Function at 0x1002fdf9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003c230
push 0xffffffffffffffff
push 0x100714a5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
call fcn.100374fc
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x1002fe5f
push ecx
mov dword [ebp - 0x10], esp
mov ecx, edi
mov dword [ebp - 0x10], esp
call fcn.100374fc
mov dword [ebp - 0x18], edi
jmp 0x1002fe62
mov dword [ebp - 0x18], esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.1002fbd5
pop ecx
lea eax, [ebp - 0x20]
push eax
push 0x20019
push esi
push 0x10080418
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ffdf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x800
call ebx
cmp eax, esi
jne 0x1002ffd6
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x14], esi
jbe 0x1002ffb0
cmp word [ebp + eax*2], 0x2e
jne 0x1002fede
inc ecx
cmp ecx, 1
jg 0x1002feed
inc eax
cmp eax, dword [ebp - 0x14]
jb 0x1002fed0
cmp ecx, 1
jle 0x1002ffb0
lea eax, [ebp]
push 0x1008034c
push eax
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
js 0x1002ffb0
lea eax, [ebp]
push eax
call fcn.10037a39
pop ecx
test al, al
je 0x1002ffb0
push 0x10
call fcn.100374fc
pop ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 2
cmp ecx, esi
je 0x1002ff3a
push esi
lea eax, [ebp]
push eax
call fcn.1002f88d
mov edi, eax
jmp 0x1002ff3c
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1002a959
test al, al
je 0x1002ffb0
lea ecx, [ebp - 0x10]
call fcn.1000110a
test eax, eax
je 0x1002ffa4
mov eax, dword [edi + 8]
cmp eax, esi
je 0x1002ff62
mov ecx, dword [eax]
jmp 0x1002ff64
xor ecx, ecx
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1002ff6f
mov eax, dword [eax]
jmp 0x1002ff71
xor eax, eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002ff97
cmp dx, si
je 0x1002ff93
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002ff97
add eax, 4
add ecx, 4
cmp dx, si
jne 0x1002ff71
xor eax, eax
jmp 0x1002ff9c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x1002ffa4
mov byte [edi + 0xc], 1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
push edi
push eax
call fcn.1002fdba
inc dword [ebp - 0x1c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x800
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x1002fec3
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x1002ffeb
call fcn.10001238
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x1004
leave
ret
Function at 0x100309b8
Capabilities:
Get memory capacity

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

Function at 0x10030b79
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x1009752c], 0
je 0x10030ba4
mov eax, dword [0x10097528]
jmp 0x10030be8
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.1003c260
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 0x10030bdb
cmp dword [ebp - 0x7c], 6
jb 0x10030bdb
mov eax, ecx
jmp 0x10030bdd
xor eax, eax
mov dword [0x10097528], eax
mov dword [0x1009752c], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x98
leave
ret

Function at 0x10030fc5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10030fd2
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 0x100312d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.1003c230
mov eax, dword [0x10095dec]
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.1003c260
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call fcn.100374fc
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 0x1003136d
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x100313dc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x100817cc
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x1003139b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100313de
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 0x100313d0
test dx, dx
je 0x100313cc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100313d0
add eax, 4
add ecx, 4
test dx, dx
jne 0x100313aa
xor eax, eax
jmp 0x100313d5
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.1003c09c
add ebp, 0xf8c
leave
ret
Function at 0x100315e5
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10031606
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x100818e4
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10031606
inc esi
mov eax, esi
pop esi
ret

Function at 0x100319af
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7bc]
sub esp, 0x83c
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x7b8], eax
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
push 0x10081388
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.100374fc
test eax, eax
je 0x10031a4d
lea ecx, [ebp - 0x74]
call fcn.100159e6
lea ecx, [ebp - 0x58]
call fcn.100159e6
lea ecx, [ebp - 0x68]
call fcn.100159e6
lea ecx, [ebp - 0x80]
call fcn.100159e6
xor eax, eax
mov ecx, dword [ebp + 0x7b8]
pop edi
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x7bc
leave
ret
push esi
push 0x1008139c
push dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
call fcn.100374fc
test eax, eax
jne 0x10031a14
push esi
push 0x100813b0
push dword [ebp - 0x68]
lea ecx, [ebp - 0x58]
call fcn.100374fc
test eax, eax
je 0x10031a9b
lea ecx, [ebp - 0x74]
call fcn.100159e6
lea ecx, [ebp - 0x58]
call fcn.100159e6
lea ecx, [ebp - 0x68]
call fcn.100159e6
lea ecx, [ebp - 0x80]
call fcn.100159e6
mov eax, edi
jmp 0x10031a36
push ebx
mov esi, 0x400
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.1003c260
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push esi
lea eax, [ebp - 0x48]
push eax
push edi
jmp 0x10031b0e
inc dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x7c4]
lea eax, [ebp - 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10031aef
cmp dx, di
je 0x10031aeb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10031aef
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10031ac9
xor eax, eax
jmp 0x10031af4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea eax, [ebp - 0x48]
je 0x10031b19
push esi
push edi
push eax
call fcn.1003c260
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 0x10031abd
jmp 0x10031b50
push 0x20019
push eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x74]
call fcn.100374fc
test eax, eax
jne 0x10031b50
lea eax, [ebp - 0x4c]
push eax
push 0x100813cc
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x4c], edi
call fcn.100374fc
test eax, eax
jne 0x10031b50
cmp dword [ebp - 0x4c], 1
sete al
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x5c]
pop ebx
jmp 0x10031a77
Function at 0x10031fb7
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xfc0]
mov eax, 0x1040
call fcn.1003c230
mov eax, dword [0x10095dec]
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.1003c260
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 0x10032121
call fcn.100374fc
test eax, eax
lea eax, [ebp - 0x44]
push eax
je 0x100320cc
lea ecx, [ebp - 0x78]
call fcn.100010b1
push str._system32javaws.exe
lea ecx, [ebp - 0x7c]
call fcn.100010b1
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x78]
call fcn.1000132e
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x1003204e
call fcn.10001238
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push 0x100808f0
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 0x10032116
test edi, edi
je 0x10032116
lea eax, [ebp - 0x80]
push eax
call ebx
test eax, eax
je 0x10032116
test esi, esi
je 0x100320a1
mov eax, dword [esi]
jmp 0x100320a3
xor eax, eax
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.100374fc
pop ecx
pop ecx
push dword [ebp - 0x80]
test eax, eax
jne 0x100320c8
call edi
test esi, esi
je 0x100320c3
mov ecx, esi
call fcn.10001238
xor eax, eax
inc eax
jmp 0x10032123
call edi
jmp 0x10032116
lea ecx, [ebp - 0x7c]
call fcn.100010b1
push str._sysWow64javaws.exe
lea ecx, [ebp - 0x78]
call fcn.100010b1
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000132e
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x100320f9
call fcn.10001238
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x10032104
mov eax, dword [esi]
jmp 0x10032106
xor eax, eax
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
je 0x100320b8
test esi, esi
je 0x10032121
mov ecx, esi
call fcn.10001238
xor eax, eax
mov ecx, dword [ebp + 0xfbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0xfc0
leave
ret
Function at 0x1003260a
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x1007152d
call fcn.1003c0ab
push 0x1008197c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1003dcfa
add esp, 0xc
test eax, eax
jne 0x100326e5
push dword [ebp - 0x18]
call fcn.100374fc
cmp dword [0x10097514], 0
pop ecx
je 0x10032665
xor eax, eax
inc eax
jmp 0x100326e7
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x100326e5
test eax, eax
je 0x100326e5
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.100010b1
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100326b6
call fcn.10001238
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100326c1
mov eax, dword [esi]
jmp 0x100326c3
xor eax, eax
push 0x10081a28
push eax
push 0x10097514
call fcn.100374fc
add esp, 0xc
test eax, eax
je 0x1003270a
test esi, esi
je 0x100326e5
mov ecx, esi
call fcn.10001238
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.1003c09c
add ebp, 0x20c
leave
ret
test esi, esi
je 0x1003265d
mov ecx, esi
call fcn.10001238
jmp 0x1003265d

Function at 0x100329b9
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10071555
call fcn.1003c0de
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.100374fc
test eax, eax
je 0x100329e4
call fcn.100329aa
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x10073fe4
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x10032a3f
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.100364f7
pop ecx
pop ecx
push edi
push esi
call fcn.100374fc
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10031721
push eax
push esi
push 0x10080964
call fcn.100364f7
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10032a38
ret
cmp ebx, edi
je 0x10032a4a
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10032afb
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 0x10032aa7
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10032a03
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10032afb
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 0x10032afb
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10032a03
mov eax, esi
call fcn.1003c183
ret
Function at 0x10032e48
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2f9c]
mov eax, 0x301c
call fcn.1003c230
mov eax, dword [0x10095dec]
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.1003c260
xor eax, eax
push edi
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.1003c260
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
push 0x10081df8
mov ebx, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10032fb0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push esi
jmp 0x10032f9f
lea eax, [ebp + 0x1f98]
push eax
push 0x10081e50
push 0x10081dec
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.100374fc
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 0x10032f87
push edi
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.1003c260
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0x10081ea8
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032f87
cmp dword [ebp - 0x6c], esi
jbe 0x10032f87
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 0x10081ec0
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 0x10032ee7
mov eax, dword [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10032fb6
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.1003c09c
add ebp, 0x2f9c
leave
ret