joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421227
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d1e40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42126a
cmp word [esi], dx
jne 0x42126a
or byte [edi + eax + 0x28], 4
jmp 0x42126f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4213c2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4213a2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4212b1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4212e7
cmp eax, edx
jae 0x4212f3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x421289
jmp 0x4213c2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42139e
cmp dword [ebp - 0x14], 0
je 0x42139e
mov eax, dword [ebx*4 + 0x4d1e40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x421376
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42133f
mov word [esi], cx
jmp 0x421372
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d1e40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d1e40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d1e40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4213c2
pop ebx
cmp word [ebp - 4], bx
jne 0x421387
cmp esi, dword [ebp + 0xc]
jne 0x421387
mov word [esi], bx
jmp 0x4213bf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419300
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4213c2
push 0xd
jmp 0x4213bb
mov ecx, dword [ebx*4 + 0x4d1e40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4213b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4213c2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x413200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.EYZtqSKO
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x413222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413218
mov eax, 1
add ebx, ebx
jne 0x41323b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413230
jne 0x41324c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413230
xor ecx, ecx
sub eax, 3
jb 0x413260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4132d2
mov ebp, eax
add ebx, ebx
jne 0x41326b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41329c
inc ecx
add ebx, ebx
jne 0x413288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41327d
jne 0x413299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41327d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4132bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4132ad
jmp 0x41321e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4132bc
add edi, ecx
jmp 0x41321e
pop esi
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x41331b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x130b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1311c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4132d9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13124]
or eax, eax
je 0x413315
mov dword [ebx], eax
add ebx, 4
jmp 0x4132f6
call dword [esi + 0x13120]
mov ebp, dword [esi + 0x13128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41334f
sub esp, 0xffffff80
jmp section.WZqkObwJ
Function at 0x405b2e
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405b3d
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x405b46
xor al, al
pop esi
ret
push str._Dsun.plugin2.jvm.args
push 0x16
push 0
mov ecx, esi
call fcn.0040433b
test eax, eax
jne 0x405b72
push str.Invalid_argument_1_n
call fcn.00401a09
pop ecx
call fcn.004019e9
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 0x405b7c
mov eax, dword [esi]
push dword [esp + 0xc]
push eax
call fcn.00406802
pop ecx
pop ecx
test al, al
jne 0x405b99
push str.Invalid_argument_2_n
call fcn.00401a09
pop ecx
jmp 0x405b42
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ba3
mov eax, dword [esi]
push eax
call fcn.0040606c
pop ecx
test al, al
je 0x405bcf
cmp dword [esi + 0x14], 0x10
jb 0x405bb6
mov esi, dword [esi]
push esi
call fcn.0040600b
push eax
call fcn.00406802
pop ecx
pop ecx
test al, al
jne 0x405bcf
push str.Invalid_argument_3_n
jmp 0x405b5f
mov al, 1
pop esi
ret
Function at 0x405ebf
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x40d655
call fcn.0040bb8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404e7d
mov esi, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x405f3d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ef1
mov eax, dword [esi]
push eax
push str._Dsun.java2d.noddraw
call fcn.00406fbb
pop ecx
pop ecx
cmp eax, 1
je 0x405f44
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405f0d
mov eax, dword [esi]
push eax
push str._Dsun.java2d.d3d
call fcn.00406fbb
pop ecx
pop ecx
test eax, eax
je 0x405f44
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405f28
mov eax, dword [esi]
push eax
push str._Dsun.java2d.opengl
call fcn.00406fbb
pop ecx
pop ecx
cmp eax, 1
je 0x405f44
add esi, 0x18
cmp esi, dword [ebp - 0x2c]
jne 0x405ee7
jmp 0x405f4a
mov dword [0x419ce0], ebx
cmp dword [0x419ce0], ebx
je 0x405fe6
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 0x405f98
cmp eax, 0x10
jae 0x405f98
lea eax, [ebp - 0x20]
push 0x40f7a0
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and dword [0x419ce0], eax
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call edi
test eax, eax
je 0x405fcc
cmp eax, 0x10
jae 0x405fcc
lea eax, [ebp - 0x20]
push 0x40f7b8
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and eax, dword [0x419ce0]
pop ecx
mov dword [0x419ce0], eax
jmp 0x405fd1
mov eax, dword [0x419ce0]
test eax, eax
je 0x405fe6
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.00406fff
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x30]
call fcn.0040422a
mov eax, ebx
call fcn.0040bb49
ret
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x406811
pop dword [ebp - 8]
mov eax, 0x406811
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2e206471
sub dword [ebp - 0x18], 0xdfce1f26
mov dword [ebp - 0x14], 0xfd666ba5
sub dword [ebp - 0x14], 0xcb331f60
mov dword [ebp - 0x10], 0xc047491a
add dword [ebp - 0x10], 0x8c04fb14
mov dword [ebp - 0xc], 0xc9fabb19
add dword [ebp - 0xc], 0x360544e7
lea eax, [ebp - 0x18]
push eax
mov eax, 0x6510e56f
add eax, 0x9b2ffb8d
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xf20276a
add dword [ebp - 0x18], 0x655241ec
mov dword [ebp - 0x14], 0x7793a46e
add dword [ebp - 0x14], 0xc9d8bd07
mov dword [ebp - 0x10], 0x3c07275e
sub dword [ebp - 0x10], 0xd897baf2
mov dword [ebp - 0xc], 0xf37f5381
sub dword [ebp - 0xc], 0xf37f5381
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37822
push 0
call eax
mov ecx, 0x4739
xor edx, edx
add edx, eax
mov esi, 0x41f000
add esi, dword [ebp - 8]
mov ebx, 0x1a44cf13
add ebx, 0xac6e240c
mov dword [ebp - 4], 0x2244ff9c
mov edi, dword [esi]
add dword [ebp - 4], esi
xor edi, ebx
mov dword [ebp - 4], 0x7a6b6d5
mov dword [edx], edi
add edx, 0x5c350e08
add edx, 0xa3caf1fc
add esi, 0xd2ff03fb
sub esi, 0xd2ff03f7
loop 0x40691f
add eax, 0x10fb7
mov ebx, eax
add eax, 0xd5e53651
sub eax, 0xd5e5364c
mov ecx, 0xfa05fb84
add ecx, 0x63a047c
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
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 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
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.0040baa8
add ebp, 0x108
leave
ret
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.00406802
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.00406802
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.00406802
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.00406802
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.00406802
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.00406802
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.00406802
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