joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401915
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
mov ebx, 0x800
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x41a3cc], 0
jne 0x4019bf
push str.DEPLOY_TRACE_NATIVE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x4019bf
push esi
call fcn.004018dd
mov esi, eax
test esi, esi
je 0x4019be
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x40e344
push esi
push str._s_s_s__ld.trace
push ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00402fde
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [ebp - 0x804]
push 0x40e35c
push eax
call fcn.004018b4
mov ecx, dword [0x41a3cc]
xor edx, edx
inc edx
mov dword [0x41a3d0], eax
add esp, 0x2c
test eax, eax
cmovne ecx, edx
mov dword [0x41a3cc], ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040bfab
leave
ret
Function at 0x401e9c
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x1d5c
call fcn.0040bfc0
mov eax, dword [0x41a1d4]
xor eax, esp
mov dword [esp + 0x1d58], eax
mov eax, dword [esp + 0x1d64]
push ebx
push esi
mov esi, dword [esp + 0x1d68]
mov ebx, 0x1000
push edi
push ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0xd68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, 0x800
lea eax, [esp + 0x570]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x564]
push edi
push eax
push 0x40e478
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401f2a
cmp eax, edi
jae 0x401f2a
lea eax, [esp + 0x564]
push eax
lea eax, [esp + 0xd68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401f3c
push ebx
lea eax, [esp + 0xd68]
push eax
push esi
call fcn.004060f0
add esp, 0xc
lea eax, [esp + 0xd64]
push 0x40e488
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4020d2
push ebp
mov ebx, 0x104
push ebx
push eax
lea eax, [esp + 0x46c]
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x26c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x260]
push 0x40e49c
push eax
call fcn.004030c7
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
lea eax, [esp + 0x260]
push eax
call edi
push ebx
mov ebp, eax
lea eax, [esp + 0x364]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x360]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x360]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
pop ecx
pop ecx
test eax, eax
je 0x402010
mov byte [eax], 0
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x15c]
push 0x40e4c0
push eax
call fcn.004030c7
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call edi
mov ebx, eax
cmp ebp, 0xffffffff
jne 0x40206a
cmp ebx, ebp
je 0x4020d1
lea eax, [esp + 0x158]
mov edi, 0x41a3e8
push eax
push esi
push 0x40e50c
push edi
call fcn.004030c7
add esp, 0x10
push ebx
jmp 0x4020b9
mov edi, 0x41a3e8
cmp ebx, 0xffffffff
je 0x4020a1
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x260]
push eax
push esi
push 0x40e4c8
push edi
call fcn.004030c7
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x14
push ebp
call esi
push ebx
call esi
jmp 0x4020bf
lea eax, [esp + 0x25c]
push eax
push esi
push 0x40e4ec
push edi
call fcn.004030c7
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edi
call fcn.00402cc9
pop ebp
mov ecx, dword [esp + 0x1d64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfab
add esp, 0x1d5c
ret
Function at 0x4020ea
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a1d4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x220]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x220]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00401daa
add esp, 0x18
test eax, eax
jne 0x402149
push edi
push str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.004019f3
pop ecx
pop ecx
xor eax, eax
jmp 0x402205
push ebp
lea eax, [esp + 0x14]
mov edi, 0x41a6f8
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
push edi
call fcn.00402fc4
add esp, 0x18
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402cc9
lea eax, [esp + 0x14]
mov ebp, 0x208
push eax
push str._Djava.class.path__sclasses_
push ebp
mov edi, 0x41ab08
push edi
call fcn.00402fc4
add esp, 0x10
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402cc9
push ebx
lea eax, [esp + 0x11c]
push eax
push 0x40e584
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4021f4
cmp eax, ebx
jae 0x4021f4
lea eax, [esp + 0x118]
mov edi, 0x41ad10
push eax
push 0x40e5f8
push 0x40e610
push ebp
push edi
call fcn.00402fc4
add esp, 0x14
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402cc9
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00401e9c
pop ecx
pop ecx
xor eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfab
add esp, 0x210
ret

Function at 0x40272f
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
push 0x40e6a4
call edi
lea esi, [eax + 0x105]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40279c
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jne 0x4027a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x402791
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402776
mov esi, str.JavaLow
push ebx
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
ret
cmp esi, 0x104
jbe 0x402773
push 0x40e6b0
call edi
inc eax
add eax, esi
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 0xc
xor ebx, ebx
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402773
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x40279b
Function at 0x405609
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41af24], 0
je 0x40562c
mov al, byte [0x41af25]
jmp 0x40567f
push ebx
push 0x90
xor ebx, ebx
lea eax, [ebp - 0x94]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40566f
cmp dword [ebp - 0x94], 6
jb 0x40566f
mov bl, 1
mov byte [0x41af25], bl
mov al, bl
mov byte [0x41af24], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bfab
leave
ret

Function at 0x405994
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4059a3
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x4059ac
xor al, al
pop esi
ret
push str._Dsun.plugin2.jvm.args
push 0x16
push 0
mov ecx, esi
call fcn.0040442d
test eax, eax
jne 0x4059d8
push str.Invalid_argument_1_n
call fcn.004019f3
pop ecx
call fcn.004019d3
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4059e2
mov eax, dword [esi]
push dword [esp + 0xc]
push eax
call fcn.004065d6
pop ecx
pop ecx
test al, al
jne 0x4059ff
push str.Invalid_argument_2_n
call fcn.004019f3
pop ecx
jmp 0x4059a8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405a09
mov eax, dword [esi]
push eax
call fcn.00405ed2
pop ecx
test al, al
je 0x405a35
cmp dword [esi + 0x14], 0x10
jb 0x405a1c
mov esi, dword [esi]
push esi
call fcn.00405e71
push eax
call fcn.0040568b
pop ecx
pop ecx
test al, al
jne 0x405a35
push str.Invalid_argument_3_n
jmp 0x4059c5
mov al, 1
pop esi
ret
Function at 0x405d25
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x40db5e
call fcn.0040c0ab
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404d08
mov esi, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x405da3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405d57
mov eax, dword [esi]
push eax
push str._Dsun.java2d.noddraw
call fcn.00406de1
pop ecx
pop ecx
cmp eax, 1
je 0x405daa
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405d73
mov eax, dword [esi]
push eax
push str._Dsun.java2d.d3d
call fcn.00406de1
pop ecx
pop ecx
test eax, eax
je 0x405daa
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405d8e
mov eax, dword [esi]
push eax
push str._Dsun.java2d.opengl
call fcn.00406de1
pop ecx
pop ecx
cmp eax, 1
je 0x405daa
add esi, 0x18
cmp esi, dword [ebp - 0x2c]
jne 0x405d4d
jmp 0x405db0
mov dword [0x419d48], ebx
cmp dword [0x419d48], ebx
je 0x405e4c
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
push str.J2D_D3D
call edi
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x405dfe
cmp eax, 0x10
jae 0x405dfe
lea eax, [ebp - 0x20]
push 0x40f810
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and dword [0x419d48], eax
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call edi
test eax, eax
je 0x405e32
cmp eax, 0x10
jae 0x405e32
lea eax, [ebp - 0x20]
push 0x40f828
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and eax, dword [0x419d48]
pop ecx
mov dword [0x419d48], eax
jmp 0x405e37
mov eax, dword [0x419d48]
test eax, eax
je 0x405e4c
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.00406e25
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x30]
call fcn.00404333
mov eax, ebx
call fcn.0040c069
ret
Function at 0x40689e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push edi
mov ebx, 0x208
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x108]
push edi
push eax
push 0x40f4cc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40692c
cmp eax, edi
jae 0x40692c
lea eax, [ebp - 0x108]
push eax
push str.javaplugin.user.profile
push str._D_s_s
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.00402fc4
add esp, 0x14
lea eax, [ebp - 0x310]
mov ecx, esi
push eax
call fcn.0040730c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfab
leave
ret

Function at 0x40693b
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40dc16
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4069d9
cmp eax, ebx
jae 0x4069d9
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405f51
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x4069cc
push esi
lea ecx, [edi + 0x18]
call fcn.00403c9a
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x4069c0
lea ecx, [ebp - 0x18]
call fcn.00404333
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040bfab
add ebp, 0x108
leave
ret
Function at 0x406cab
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x41a1d4]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x820]
lea eax, [esp + 0x18]
mov esi, 0x800
xor ebp, ebp
push esi
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [esp + 0x830]
lea eax, [esp + 0x24]
push 0x40f6e0
push str.SOFTWAREJavaSoftJava_Plug_in
push 0x40f70c
push esi
push eax
mov dword [esp + 0x34], ebx
call fcn.004073d2
add esp, 0x20
lea eax, [esp + 0x10]
push eax
movzx eax, byte [esp + 0x82c]
shl eax, 8
add eax, 0x20019
push eax
push ebp
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406d8a
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push 2
push 0x40f714
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406d8a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d5e
sub ecx, edx
lea eax, [ecx + 5]
cmp eax, ebx
ja 0x406d8a
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d6f
mov eax, dword [str._bin]
mov dword [edi], eax
mov al, byte [0x40f724]
mov byte [edi + 4], al
mov al, 1
jmp 0x406d8c
xor al, al
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bfab
add esp, 0x80c
ret

Function at 0x407bca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40dcbb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x407cbd
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409a3d
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x407c49
call fcn.00409c2c
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x407c93
call fcn.00409eee
jmp 0x407c93
xor eax, eax
test esi, esi
setns al
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.0040bfab
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040a195
pop ecx
pop ecx
push ebx
push esi
call fcn.0040cfc0
int3
Function at 0x407cd2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40dcf2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x407dc5
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409a3d
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x407d51
call fcn.00409c2c
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x407d9b
call fcn.00409eee
jmp 0x407d9b
xor eax, eax
test esi, esi
setns al
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.0040bfab
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040a195
pop ecx
pop ecx
push ebx
push esi
call fcn.0040cfc0
int3

Function at 0x408565
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4085e5
cmp eax, edi
ja 0x4085e5
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x410068
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4085e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040bfab
leave
ret

Function at 0x408607
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x408614
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_CreateProcessA]
pop ebp
ret
Function at 0x408686
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 4]
inc edi
push eax
push 0x2000000
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40871e
cmp dword [ebp + 8], ebx
je 0x40871e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x40871e
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x408720
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408a9b
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x408abf
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x40979e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40dd85
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41a1d4]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410440
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
add esp, 0xc
test eax, eax
jne 0x40989d
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x41be68], 0
pop ecx
je 0x409810
xor eax, eax
inc eax
jmp 0x40989f
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x40989d
test eax, eax
je 0x40989d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004099f2
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], ebx
call fcn.004099f2
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00409aa0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x409865
call fcn.00409eee
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x409875
mov ecx, esi
call fcn.00409c2c
mov ebx, eax
push 0x41046c
push ebx
push 0x41be68
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x409898
mov ecx, esi
call fcn.00409eee
lea eax, [edi + 1]
jmp 0x40989f
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 + 0x104]
xor ecx, ebp
call fcn.0040bfab
add ebp, 0x108
leave
ret
Function at 0x409d3c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x41a1d4]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00409c89
mov esi, eax
test esi, esi
jne 0x409e1b
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x409df3
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00409d3c
mov esi, eax
test esi, esi
jne 0x409e1b
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x409db8
jmp 0x409df5
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x409e0a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00409b13
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x409e2c
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bfab
add esp, 0x120
ret 4