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

Disassembly:
push 0x24
mov eax, 0x40de5d
call fcn.0040c3bb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404e62
mov esi, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x405f16
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405eca
mov eax, dword [esi]
push eax
push str._Dsun.java2d.noddraw
call fcn.00406fc1
pop ecx
pop ecx
cmp eax, 1
je 0x405f1d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ee6
mov eax, dword [esi]
push eax
push str._Dsun.java2d.d3d
call fcn.00406fc1
pop ecx
pop ecx
test eax, eax
je 0x405f1d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405f01
mov eax, dword [esi]
push eax
push str._Dsun.java2d.opengl
call fcn.00406fc1
pop ecx
pop ecx
cmp eax, 1
je 0x405f1d
add esi, 0x18
cmp esi, dword [ebp - 0x2c]
jne 0x405ec0
jmp 0x405f23
mov dword [0x41ad28], ebx
cmp dword [0x41ad28], ebx
je 0x405fbf
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 0x405f71
cmp eax, 0x10
jae 0x405f71
lea eax, [ebp - 0x20]
push 0x410818
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and dword [0x41ad28], eax
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call edi
test eax, eax
je 0x405fa5
cmp eax, 0x10
jae 0x405fa5
lea eax, [ebp - 0x20]
push 0x410830
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and eax, dword [0x41ad28]
pop ecx
mov dword [0x41ad28], eax
jmp 0x405faa
mov eax, dword [0x41ad28]
test eax, eax
je 0x405fbf
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.00407005
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x30]
call fcn.004043eb
mov eax, ebx
call fcn.0040c379
ret
Function at 0x406a7f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x41b1b4]
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 0x4104d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406b0d
cmp eax, edi
jae 0x406b0d
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.00402f91
add esp, 0x14
lea eax, [ebp - 0x310]
mov ecx, esi
push eax
call fcn.00407548
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2bc
leave
ret

Function at 0x406b1c
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40df15
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41b1b4]
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 0x406bba
cmp eax, ebx
jae 0x406bba
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060c4
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406bad
push esi
lea ecx, [edi + 0x18]
call fcn.00403f53
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406ba1
lea ecx, [ebp - 0x18]
call fcn.004043eb
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.0040c2bc
add ebp, 0x108
leave
ret
Function at 0x406e8c
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x41b1b4]
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 0x4106e8
push str.SOFTWAREJavaSoftJava_Plug_in
push 0x410714
push esi
push eax
mov dword [esp + 0x34], ebx
call fcn.0040765d
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 0x406f6b
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push 2
push 0x41071c
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 0x406f6b
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f3f
sub ecx, edx
lea eax, [ecx + 5]
cmp eax, ebx
ja 0x406f6b
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406f50
mov eax, dword [str._bin]
mov dword [edi], eax
mov al, byte [0x41072c]
mov byte [edi + 4], al
mov al, 1
jmp 0x406f6d
xor al, al
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2bc
add esp, 0x80c
ret

Function at 0x407e37
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40dfba
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41b1b4]
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 0x407f2a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409d06
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x407eb6
call fcn.00409ef5
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 0x407f00
call fcn.0040a1b7
jmp 0x407f00
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.0040c2bc
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040a45e
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d2d0
int3
Function at 0x407f3f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40dff1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41b1b4]
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 0x408032
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409d06
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x407fbe
call fcn.00409ef5
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 0x408008
call fcn.0040a1b7
jmp 0x408008
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.0040c2bc
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040a45e
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d2d0
int3

Function at 0x4087e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41b1b4]
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 0x408867
cmp eax, edi
ja 0x408867
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 0x410f6c
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 0x408869
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c2bc
leave
ret

Function at 0x408889
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x408896
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 0x408908
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 0x4089a0
cmp dword [ebp + 8], ebx
je 0x4089a0
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 0x4089a0
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 0x4089a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408d47
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x408d6b
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 0x409a4a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40e084
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41b1b4]
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 0x4112ec
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 0x409b66
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x41ce48], 0
pop ecx
je 0x409abc
xor eax, eax
inc eax
jmp 0x409b68
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x409b66
test eax, eax
je 0x409b66
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409cbb
xor ebx, ebx
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
mov dword [ebp - 4], ebx
call fcn.00409cbb
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00409d69
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x409b19
call fcn.0040a1b7
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x409b29
mov ecx, esi
call fcn.00409ef5
mov ebx, eax
push 0x411318
push ebx
push 0x41ce48
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 0x409b61
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x409b61
mov ecx, esi
call fcn.0040a1de
push 0xc
push esi
call fcn.0040c32b
pop ecx
pop ecx
lea eax, [edi + 1]
jmp 0x409b68
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.0040c2bc
add ebp, 0x108
leave
ret
Function at 0x40a005
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x41b1b4]
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.00409f52
mov esi, eax
test esi, esi
jne 0x40a0e4
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 0x40a0bc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040a005
mov esi, eax
test esi, esi
jne 0x40a0e4
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 0x40a081
jmp 0x40a0be
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x40a0d3
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.00409ddc
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40a0f5
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.0040c2bc
add esp, 0x120
ret 4
Function at 0x40a2da
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x41b1b4]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.0040303c
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.0040a259
push 0x412a80
lea eax, [esp + 0x40]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a380
sub ecx, edx
cmp ecx, 6
jbe 0x40a3a8
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x40a3a8
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a3af
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x412a77
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.00402fab
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call sub.VCRUNTIME140.dll_memcpy
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a429
mov ax, word [0x412aac]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2bc
add esp, 0x824
ret

Function at 0x40a803
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0040ab0d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push dword [0x41b1ac]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a842
xor eax, eax
jmp 0x40a867
push edi
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a85c
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40a86b
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.0040c2d0
mov eax, dword [0x41b1b4]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1028]
mov ebp, 0x800
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x82c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 0x1c
test eax, eax
je 0x40a906
push eax
push dword [esp + 0x1030]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test eax, eax
je 0x40aa7e
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2bc
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x41b1a8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a8eb
lea eax, [esp + 0x102c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa62
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x4143c8
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a981
xor esi, esi
inc esi
jmp 0x40aa62
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a979
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a979
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
js 0x40aa7e
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a979
push dword [esp + 0x10]
call ebp
call fcn.004093c1
test eax, eax
jne 0x40aa7e
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x41b1a8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a8eb
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40aa6f
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x40a8ed
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.0040a803
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40a8ed
Function at 0x40aa86
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
xor esi, esi
inc edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x40aabe
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test eax, eax
jne 0x40aadd
mov eax, edi
jmp 0x40ab09
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [0x41b1ac]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40aae1
xor eax, eax
jmp 0x40ab09
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
cmove esi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40ac53
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1814
call fcn.0040c2d0
mov eax, dword [0x41b1b4]
xor eax, esp
mov dword [esp + 0x1810], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1824]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x800
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x830]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4142ac
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40adc6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40adc6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push 0x4142d8
push 0x414304
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.0040765d
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x82c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ad9e
push 0x800
push eax
lea eax, [esp + 0x1028]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x41430c
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40ad9e
cmp dword [esp + 0x10], eax
jbe 0x40ad9e
mov eax, dword [esp + 0x182c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push 0x414318
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40aced
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40adc9
sub esi, ecx
xor eax, eax
mov ecx, dword [esp + 0x1820]
cmp eax, esi
pop edi
pop esi
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0040c2bc
add esp, 0x1814
ret