joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005483
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xfffffffffffffffe
push 0x10028328
push 0x1000c6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1002b19c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x940], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x94c]
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov byte [ebp + 0x540], 0
push 0x3ff
push edi
lea eax, [ebp + 0x541]
push eax
call fcn.1000c3a0
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov esi, 0x400
cmp dword [ebp - 0x24], 3
jge 0x10005633
mov byte [ebp + 0x140], 0
push dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.1001ec81
push 0x1002447c
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.1001ec81
mov eax, dword [ebp - 0x24]
push dword [eax*4 + 0x1002b10c]
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.1001ec81
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1000560c
mov byte [ebp + 0x540], 0
push dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.1001ec81
push 0x10024480
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.1001ec81
lea eax, [ebp + 0x2c]
push eax
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.1001ec81
lea eax, [ebp + 0x540]
push eax
call fcn.100083c7
add esp, 0x28
test eax, eax
jne 0x100055f7
push 0x404
call fcn.1001ec81
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x100055d8
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1002b19c
call fcn.1000cdb0
add esp, 0xc
xor eax, eax
jmp 0x10005642
mov byte [ebx], 0
lea eax, [ebp + 0x540]
push eax
push esi
push ebx
call fcn.1001ec81
add esp, 0xc
mov dword [ebx + 0x400], edi
mov edi, ebx
mov dword [ebp - 0x20], edi
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x10005563
test edi, edi
je 0x1000562b
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ebx, dword [edi + 0x400]
push edi
call fcn.1001ec81
pop ecx
mov edi, ebx
mov dword [ebp - 0x20], edi
jmp 0x1000560c
inc dword [ebp - 0x24]
jmp 0x100054f9
mov dword [ebp - 4], 0xfffffffe
call fcn.10005668
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x940]
xor ecx, ebp
call fcn.1000c2c7
add ebp, 0x944
leave
ret
Function at 0x1000589b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x63]
push ebx
push eax
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], bl
call fcn.1000c3a0
add esp, 0xc
push 0x20019
push 0x10024384
push SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.1001ec81
lea ecx, [ebp - 0x74]
test eax, eax
je 0x10005913
call fcn.1000133f
lea ecx, [ebp - 0x80]
call fcn.1000133f
jmp 0x1000599e
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
call fcn.1001ec81
test eax, eax
je 0x1000592e
lea ecx, [ebp - 0x74]
jmp 0x10005901
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x400
push esi
lea eax, [ebp - 0x64]
push eax
push ebx
jmp 0x10005983
push 0xa
lea eax, [ebp - 0x64]
push str.JavaPlugin
push eax
call fcn.1001ec81
add esp, 0xc
test eax, eax
jne 0x1000596a
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002cb1
test eax, eax
je 0x1000596d
inc dword [ebp - 0x68]
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.1000c3a0
add esp, 0xc
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x10005943
lea ecx, [ebp - 0x74]
call fcn.1000133f
lea ecx, [ebp - 0x80]
call fcn.1000133f
pop edi
pop esi
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x3a0
leave
ret
Function at 0x10007107
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x390], eax
push esi
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10024484
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007207
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], esi
push esi
jmp 0x100071e9
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x74], esi
jbe 0x100071d7
cmp byte [ebp + eax - 0x70], 0x2e
jne 0x10007179
inc ecx
cmp ecx, 1
jg 0x10007184
inc eax
cmp eax, dword [ebp - 0x74]
jb 0x1000716c
cmp ecx, 1
jle 0x100071d7
push 0x100244b0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x100071d7
lea eax, [ebp - 0x70]
push eax
call fcn.100086c1
pop ecx
test eax, eax
je 0x100071d7
mov eax, dword [ebp - 0x74]
inc eax
push eax
call fcn.1001ec81
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x74]
push 0x100244b8
inc ecx
push ecx
push eax
mov dword [ebp - 0x80], eax
call fcn.1001ec81
add esp, 0x14
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x1002c65c
call fcn.10007e7d
inc dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x400
call edi
test eax, eax
je 0x10007163
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
pop esi
call fcn.1000c2c7
add ebp, 0x394
leave
ret

Function at 0x100085b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100085c6
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 0x100086c1
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1794]
mov eax, 0x1814
call fcn.1000c370
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x1790], eax
push ebx
push esi
mov esi, dword [ebp + 0x179c]
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
lea eax, [ebp - 0x6f]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x70], bl
call fcn.1000c3a0
push esi
push 0x1002502c
push 0x10025058
lea esi, [edi + 1]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.1001ec81
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000881f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x790]
push eax
push ebx
push ebx
push 0x10025060
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], ebx
jne 0x1000881f
push edi
lea eax, [ebp + 0xf91]
push ebx
push eax
mov byte [ebp + 0xf90], bl
call fcn.1000c3a0
push str.binjava.exe
lea eax, [ebp + 0x790]
push eax
push 0x1002507c
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1001ec81
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x20
lea eax, [ebp + 0xf90]
push eax
call edi
test eax, eax
je 0x1000881f
push str.binclientjvm.dll
lea eax, [ebp + 0x790]
push eax
push 0x10025098
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1001ec81
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
mov dword [ebp - 0x74], eax
push str.bin_serverjvm.dll
lea eax, [ebp + 0x790]
push eax
push 0x100250b4
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.1001ec81
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
cmp dword [ebp - 0x74], ebx
jne 0x10008818
cmp eax, ebx
je 0x1000881f
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp + 0x1790]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x1794
leave
ret
Function at 0x100088c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x788], eax
push ebx
mov ebx, dword [ebp + 0x798]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x794]
push 0x3ff
lea eax, [ebp + 0x389]
push 0
push eax
mov byte [ebp + 0x388], 0
call fcn.1000c3a0
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
mov edi, 0x400
lea eax, [ebp + 0x388]
push edi
push eax
call fcn.1001ec81
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x388]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000895c
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x1000899e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x100247fa
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x7c]
test eax, eax
je 0x10008986
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000899e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.1001ec81
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp + 0x788]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x78c
leave
ret

Function at 0x10008b93
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10008bb4
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10008bb4
inc esi
mov eax, esi
pop esi
ret
Function at 0x10008e86
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3c8]
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
push 0x10024f38
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x58], edi
call fcn.1001ec81
test eax, eax
je 0x10008f2d
lea ecx, [ebp - 0x70]
call fcn.1000133f
lea ecx, [ebp - 0x54]
call fcn.1000133f
lea ecx, [ebp - 0x7c]
call fcn.1000133f
lea ecx, [ebp - 0x64]
call fcn.1000133f
xor eax, eax
mov ecx, dword [ebp + 0x3bc]
pop edi
xor ecx, ebp
pop esi
call fcn.1000c2c7
add ebp, 0x3c0
leave
ret
push esi
push 0x10024f44
push dword [ebp - 0x64]
lea ecx, [ebp - 0x7c]
call fcn.1001ec81
test eax, eax
jne 0x10008ef4
push esi
push 0x10024f50
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x54]
call fcn.1001ec81
test eax, eax
je 0x10008f7b
lea ecx, [ebp - 0x70]
call fcn.1000133f
lea ecx, [ebp - 0x54]
call fcn.1000133f
lea ecx, [ebp - 0x7c]
call fcn.1000133f
lea ecx, [ebp - 0x64]
call fcn.1000133f
mov eax, edi
jmp 0x10008f16
push ebx
mov esi, 0x400
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.1000c3a0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push esi
lea eax, [ebp - 0x44]
push eax
push edi
jmp 0x10008fc8
push dword [ebp - 0x80]
inc dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.1001ec81
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x44]
je 0x10008fd3
push esi
push edi
push eax
call fcn.1000c3a0
add esp, 0xc
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x54]
call ebx
test eax, eax
je 0x10008f9d
jmp 0x1000900a
push 0x20019
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x70]
call fcn.1001ec81
test eax, eax
jne 0x1000900a
lea eax, [ebp - 0x48]
push eax
push str.UseNewJavaPlugin
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], edi
call fcn.1001ec81
test eax, eax
jne 0x1000900a
cmp dword [ebp - 0x48], 1
sete al
mov dword [ebp - 0x58], eax
mov edi, dword [ebp - 0x58]
pop ebx
jmp 0x10008f57
Function at 0x100095fd
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1002253e
call fcn.1000cca3
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10009657
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1000bb01
pop ecx
pop ecx
push ebx
push edi
call fcn.1001ec81
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007afa
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10009674
call fcn.100079eb
jmp 0x10009676
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call fcn.1001ec81
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100096c1
call fcn.10007c8c
jmp 0x100096c1
xor eax, eax
cmp edi, ebx
setge 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.1000c2c7
add ebp, 0x20c
leave
ret

Function at 0x100096eb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1002256e
call fcn.1000cca3
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10009745
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1000bb01
pop ecx
pop ecx
push ebx
push edi
call fcn.1001ec81
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007afa
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10009762
call fcn.100079eb
jmp 0x10009764
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call fcn.1001ec81
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100097af
call fcn.10007c8c
jmp 0x100097af
xor eax, eax
cmp edi, ebx
setge 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.1000c2c7
add ebp, 0x20c
leave
ret
Function at 0x10009e9e
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x100225ce
call fcn.1000cca3
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.1001ec81
test eax, eax
je 0x10009ec9
call fcn.10009e8f
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x10023938
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x10009f24
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.1000bb01
pop ecx
pop ecx
push edi
push esi
call fcn.1001ec81
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.1000a299
push eax
push esi
push 0x100249ec
call fcn.1000bb01
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10009f1d
ret
cmp ebx, edi
je 0x10009f2f
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10009fe0
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10009f8c
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10009ee8
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10009fe0
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10009fe0
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10009ee8
mov eax, esi
call fcn.1000cd0f
ret
Function at 0x1000a7a8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.1000c370
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xfa0]
xor ebx, ebx
mov esi, 0x7ff
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x795]
push ebx
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], 1
mov byte [ebp + 0x794], bl
call fcn.1000c3a0
push esi
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.1000c3a0
push edi
call fcn.1000ecb7
add esp, 0x1c
cmp eax, ebx
je 0x1000a838
push eax
push dword [ebp + 0xfa8]
push dword [ebp - 0x78]
call fcn.1001ec81
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x1000a99a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x70]
push eax
push 0x20019
push ebx
push dword [0x1002b174]
push SysReAllocString
call edi
test eax, eax
je 0x1000a860
xor eax, eax
jmp 0x1000a99a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xfa8]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x1000a891
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1000a99a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x10025608
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x800
call esi
test eax, eax
je 0x1000a8bb
xor ebx, ebx
inc ebx
jmp 0x1000a881
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push 0x20019
push ebx
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1000a8b6
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.deployment.modified.timestamp
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x800
call esi
test eax, eax
jne 0x1000a8b6
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x74], 0x800
call fcn.1001ec81
pop ecx
pop ecx
test eax, eax
js 0x1000a997
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x1000a8b6
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
call fcn.1001ec81
test eax, eax
jne 0x1000a997
lea eax, [ebp - 0x70]
push eax
push 0x20006
push ebx
push dword [0x1002b174]
push SysReAllocString
call edi
test eax, eax
jne 0x1000a859
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 1
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000a881
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.1001ec81
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0xf98
leave
ret
Function at 0x1000c2c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b19c]
jne 0x1000c2d1
repz ret
jmp fcn.10011efc

Function at 0x1001ec81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001ec90
pop dword [ebp - 0x10]
mov eax, 0xce18c869
sub eax, 0xbe16dbd9
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x41014
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x1613d74a
sub ecx, 0x16138239
xor ebx, ebx
add ebx, eax
mov edi, 0x10032800
add edi, dword [ebp - 0x10]
mov edx, 0x6518fb7e
sub edx, 0xe9455728
sub dword [ebp - 0xc], edi
mov esi, dword [edi]
xor dword [ebp - 4], 0x436cac0
sub esi, edx
xor dword [ebp - 8], 0x8c89ffcb
mov dword [ebx], esi
add dword [ebp - 4], 0x3651af4b
add ebx, 0xc0194105
add ebx, 0x3fe6beff
add edi, 0xd63feacd
add edi, 0x29c01537
loop 0x1001ece6
add eax, 0xcde7602c
sub eax, 0xcde61915
xor ebx, ebx
add ebx, eax
add eax, 0xea29c21
sub eax, 0xea29c1c
mov ecx, 0x145e1704
add ecx, 0xfba1e8fc
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401040
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x4010b0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401100
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x401100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call fcn.004010f0
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40117f
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp al, 0x5c
je 0x4011d8
cmp al, 0x22
je 0x4011e8
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40117f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x401130
test esi, 1
jne 0x401130
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x40119a
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401000
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x401147
and dword [ebp - 0x54], 1
jne 0x401140
xor esi, 1
jmp 0x401147