joyce8/EMBER2024-capa huggingface dataset:
Function at 0x347e7560
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
ret 0x14

Function at 0x347e75d3
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x347e7731
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x347e7731
mov esi, dword [ebp]
test esi, esi
je 0x347e7731
push ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jne 0x347e7614
cmp esi, 2
jae 0x347e7614
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x347e7726
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x347e7661
cmp ebx, 1
jne 0x347e764e
cmp ecx, 2
je 0x347e766a
pop ebx
pop edi
mov dword [esp + 0x1c], 0x65d
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
ret 0x18
cmp ebx, 1
jne 0x347e7726
mov eax, dword [ebp]
cmp eax, esi
jae 0x347e767f
shr eax, 1
mov word [edi + eax*2], 0
mov ecx, dword [esp + 0x28]
jmp 0x347e768a
mov edx, esi
shr edx, 1
mov word [edi + edx*2 - 2], 0
cmp ecx, 2
jne 0x347e7726
push esi
call dword [sym.imp.msvcr80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x347e76af
pop ebx
pop edi
pop esi
mov eax, 0xe
pop ebp
ret 0x18
shr esi, 1
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x347e7708
cmp esi, eax
lea ecx, [eax + eax]
mov dword [ebp], ecx
jae 0x347e76ea
push ebx
mov word [edi], 0
mov dword [esp + 0x28], 0xea
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
push esi
push edi
push ebx
call dword [sym.imp.MSO.dll_Ordinal_6877]
push ebx
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
mov word [edi], 0
push ebx
mov dword [ebp], 0
mov dword [esp + 0x28], 0x57
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18

Function at 0x347e7742
Capabilities:
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
ret 0x10
Function at 0x347ea89f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x347765c8]
jne 0x347eb289
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x347ee7f0], eax
mov dword [0x347ee7ec], ecx
mov dword [0x347ee7e8], edx
mov dword [0x347ee7e4], ebx
mov dword [0x347ee7e0], esi
mov dword [0x347ee7dc], edi
mov word [0x347ee808], ss
mov word [0x347ee7fc], cs
mov word [0x347ee7d8], ds
mov word [0x347ee7d4], es
mov word [0x347ee7d0], fs
mov word [0x347ee7cc], gs
pushfd
pop dword [0x347ee800]
mov eax, dword [ebp]
mov dword [0x347ee7f4], eax
mov eax, dword [ebp + 4]
mov dword [0x347ee7f8], eax
lea eax, [ebp + 8]
mov dword [0x347ee804], eax
mov eax, dword [ebp - 0x320]
mov dword [0x347ee740], 0x10001
mov eax, dword [0x347ee7f8]
mov dword [0x347ee6f4], eax
mov dword [0x347ee6e8], 0xc0000409
mov dword [0x347ee6ec], 1
mov eax, dword [0x347765c8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x347ed254]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x347ee738], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3477694c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x347ee738], 0
jne 0x347eb379
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x347ea8ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x34776614
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x347ea904
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3477660c
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x347ea904
mov al, 1
jmp 0x347ea906
xor al, al
leave
ret 8
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100022de
pop dword [ebp - 0x48]
mov eax, 0x87be4a9f
add eax, 0x8841d83f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xfa59cda4
sub dword [ebp - 0x58], 0xac078859
mov dword [ebp - 0x54], 0xf1f80354
sub dword [ebp - 0x54], 0xbfc4b70f
mov dword [ebp - 0x50], 0xd38d653e
add dword [ebp - 0x50], 0x78bedef0
mov dword [ebp - 0x4c], 0x3800b434
add dword [ebp - 0x4c], 0xc7ff4bcc
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf48fc52d
sub dword [ebp - 0x58], 0x801d5bd7
mov dword [ebp - 0x54], 0x273f8c02
sub dword [ebp - 0x54], 0xe5d32a8d
mov dword [ebp - 0x50], 0x921d3451
add dword [ebp - 0x50], 0xd152381b
mov dword [ebp - 0x4c], 0x9490069c
sub dword [ebp - 0x4c], 0x9490069c
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x34d6e
push 0
call eax
mov ecx, 0x4169
mov edx, eax
mov ebx, 0x14e56368
sub ebx, 0x4e50168
add ebx, dword [ebp - 0x48]
mov edi, 0xf7d3a8a8
sub edi, 0xced9a05d
mov dword [ebp - 0x18], 0x249f90af
mov esi, dword [ebx]
xor dword [ebp - 0x24], edi
sub esi, edi
xor dword [ebp - 0x2c], 0xf14b69b6
mov dword [edx], esi
add dword [ebp - 0x14], 0xd1ff5b9d
add edx, 4
add ebx, 4
loop 0x100023f0
add eax, 0x5b80424a
add eax, 0xa480b62d
xor ebx, ebx
add ebx, eax
add eax, 0x14f0cf00
add eax, 0xeb0f3105
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x454a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.erv1
lea edi, [esi - 0x3b000]
push edi
jmp 0x454a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a10
mov eax, 1
add ebx, ebx
jne 0x454a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454a44
jne 0x454a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a63
dec eax
add ebx, ebx
jne 0x454a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454a28
add ebx, ebx
jne 0x454a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x454ab5
xor ecx, ecx
sub eax, 3
jb 0x454a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x454aea
sar eax, 1
mov ebp, eax
jmp 0x454a86
add ebx, ebx
jne 0x454a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
inc ecx
add ebx, ebx
jne 0x454a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
add ebx, ebx
jne 0x454aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454a96
jne 0x454ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x454ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x454ac6
jmp 0x454a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x454ad4
add edi, ecx
jmp 0x454a16
pop esi
mov edi, esi
mov ecx, 0xc54
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x454af2
cmp byte [edi], 0x11
jne 0x454af2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x454af7
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x454b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x634bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6354c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x454b24
mov ecx, edi
jns 0x454b53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63554]
or eax, eax
je 0x454b69
mov dword [ebx], eax
add ebx, 4
jmp 0x454b41
call dword [esi + 0x63550]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x454ba0
cmp al, 0xef
ja 0x454b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x454b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x454b82
mov ebp, dword [esi + 0x63558]
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 0x454bd4
sub esp, 0xffffff80
jmp 0x40997c
Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
push ecx
pop edx
call fcn.00408956
xor dword [edi], eax
push 0xafb18ab6
pop ecx
inc edi
cmp edi, ebx
jne fcn.00408932
and ecx, ecx
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1002aaee
pop dword [ebp - 0x40]
mov eax, 0x1002aaee
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe1bdd76e
sub dword [ebp - 0x50], 0x936b9223
mov dword [ebp - 0x4c], 0xb8209bcb
add dword [ebp - 0x4c], 0x7a12b07a
mov dword [ebp - 0x48], 0x3da03383
add dword [ebp - 0x48], 0xeac10ab
mov dword [ebp - 0x44], 0x14c44b3
add dword [ebp - 0x44], 0xfeb3bb4d
lea eax, [ebp - 0x50]
push eax
mov eax, 0x6dd7b685
add eax, 0xa22b09b3
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x9042ce6d
add dword [ebp - 0x50], 0xe42f9ae9
mov dword [ebp - 0x4c], 0x87f25c4d
sub dword [ebp - 0x4c], 0x4685fad8
mov dword [ebp - 0x48], 0xebd4a3d1
sub dword [ebp - 0x48], 0x88653765
mov dword [ebp - 0x44], 0x20138c4f
add dword [ebp - 0x44], 0xdfec73b1
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x33dcc
push 0
call eax
mov ecx, 0x4fb61a15
sub ecx, 0x4fb5dc81
mov edx, eax
mov ebx, 0xf1023232
add ebx, 0x1f0163ce
add ebx, dword [ebp - 0x40]
mov esi, 0x35f7e888
sub esi, 0x5fd04aeb
mov edi, dword [ebx]
xor dword [ebp - 0x20], 0x45697cd6
xor edi, esi
sub dword [ebp - 0xc], edi
mov dword [edx], edi
xor dword [ebp - 0x2c], ecx
add edx, 4
add ebx, 0x8e551ce7
add ebx, 0x71aae31d
loop 0x1002ac06
add eax, 0xc81fd03a
add eax, 0x37e118e9
mov ebx, eax
add eax, 0x5b493520
sub eax, 0x5b49351b
mov ecx, 0xf6ba44fb
sub ecx, 0xe6ba44fb
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10008cc2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10008cc2
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10008cc2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10008cc2
int3
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
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.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
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 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
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 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.10008cc2
int3

Function at 0x10002445
Capabilities:
Query environment variable

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

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10008cc2
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.10008cc2
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.10008cc2
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
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.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
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.10008cc2
mov esi, eax
test esi, esi
jne 0x10003705
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 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
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], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
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 fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10008cc2
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.10008cc2
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.10008cc2
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10008cc2
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
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.10008cc2
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 fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
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.10004926
add esp, 0x824
ret
Function at 0x10008cc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10008cd1
pop dword [ebp - 0x50]
mov eax, 0x10008cd1
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x6f511b2b
add dword [ebp - 0x60], 0xdf012a20
mov dword [ebp - 0x5c], 0x35e993f4
add dword [ebp - 0x5c], 0xfc49b851
mov dword [ebp - 0x58], 0xc9c49546
add dword [ebp - 0x58], 0x8287aee8
mov dword [ebp - 0x54], 0x78abc0d4
sub dword [ebp - 0x54], 0x78abc0d4
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x51f13f79
sub dword [ebp - 0x60], 0xdd7ed623
mov dword [ebp - 0x5c], 0x78a8d339
sub dword [ebp - 0x5c], 0x373c71c4
mov dword [ebp - 0x58], 0xb2ac05b4
add dword [ebp - 0x58], 0xb0c366b8
mov dword [ebp - 0x54], 0x7f976466
add dword [ebp - 0x54], 0x80689b9a
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4ee12d20
add eax, 0xc120b364
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3d1f7
push 0
call eax
mov ecx, 0x4762
mov esi, eax
mov edi, 0x10035800
add edi, dword [ebp - 0x50]
mov ebx, 0x116fd462
add ebx, 0x1e395a1a
xor dword [ebp - 0xc], 0xa6708e26
mov edx, dword [edi]
xor dword [ebp - 0x24], ebx
xor edx, ebx
xor dword [ebp - 0x1c], ebx
mov dword [esi], edx
add dword [ebp - 0x30], ebx
add esi, 4
add edi, 0x24fcf159
add edi, 0xdb030eab
loop 0x10008ddd
add eax, 0xb4d0e619
add eax, 0x4b302a42
mov ebx, eax
add eax, 0xdb53e083
sub eax, 0xdb53e07e
mov ecx, 0x83f4164a
add ecx, 0x8c0be9b6
add ecx, dword [ebp - 0x50]
call ebx
leave
ret