joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408afe
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408afe
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408afe
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408afe
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408afe
mov dword [0x41203c], eax
call fcn.00408afe
test eax, eax
jge 0x402550
push 8
call fcn.00408afe
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408afe
pop ecx
push 1
call fcn.00408afe
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408afe
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408afe
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408afe
jmp 0x402495

Function at 0x408afe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x408b0d
pop dword [ebp - 0x14]
mov eax, 0x379d7849
sub eax, 0x375ced3c
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x37164
push 0
mov eax, 0xbd31b587
add eax, 0x430f2b51
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xd9b69a49
add ecx, 0x2649a542
mov ebx, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x14]
mov edi, 0xc0e13704
sub dword [ebp - 4], edx
mov esi, dword [edx]
sub dword [ebp - 0x10], ebx
add esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x10], eax
add ebx, 4
add edx, 0xbd366b98
sub edx, 0xbd366b94
loop 0x408b60
add eax, 0xf0ff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x100077d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x100077f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x10007868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x1000782a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x1000785d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x1000785b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x10007821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x100077ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10003ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebp
mov ebp, dword [esp + 0x234]
lea eax, [esp + 0x10]
push str.JAVA_REGDEPLOY_DEBUG
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x10003e8f
push ebx
push esi
push edi
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x1005393c], 0
jne 0x10003e3f
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x10003e8c
test eax, eax
je 0x10003e8c
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.100032a0
push str.JavaDeployReg.log
lea ecx, [esp + 0x18]
call fcn.100032a0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0x14]
or edi, 0xffffffff
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x10003d92
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10003d92
mov eax, dword [esi]
test eax, eax
je 0x10003d70
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10003d87
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10003d9e
mov eax, dword [esi]
jmp 0x10003da0
xor eax, eax
push 0x1003f624
push eax
push 0x1005393c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10003e02
test esi, esi
je 0x10003e8c
lock xadd dword [esi + 8], edi
dec edi
jne 0x10003e8c
mov eax, dword [esi]
test eax, eax
je 0x10003ddb
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10003df2
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
jmp 0x10003e8c
test esi, esi
je 0x10003e3f
lock xadd dword [esi + 8], edi
dec edi
jne 0x10003e3f
mov eax, dword [esi]
test eax, eax
je 0x10003e1d
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10003e34
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
test ebp, ebp
je 0x10003e8c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
movzx eax, word [esp + 0x2e]
push ebp
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
push str.__04u__02u__02u__02u:_02u:_02u._03u___s__n
push dword [0x1005393c]
call fcn.10005870
add esp, 0x28
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
pop ebp
xor ecx, esp
call fcn.1003b4ee
add esp, 0x22c
ret
Function at 0x10003eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
lea eax, [esp + 4]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10003f4e
cmp eax, 0x104
ja 0x10003f4e
push 0x208
lea eax, [esp + 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [esp + 0x20c]
push eax
call fcn.10033b30
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x414
ret

Function at 0x10003f70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
xor eax, eax
mov dword [esp + 0x14], 0x44
xorps xmm0, xmm0
mov word [esp + 0x56], ax
mov word [esp + 0x44], ax
lea eax, [esp]
push eax
push 0x2000000
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x4e], xmm0
movlpd qword [esp + 0x56], xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x48], 1
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000403d
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1000403d
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8000008
push 0
push 0
push 0
push dword [esp + 0x80]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000403d
push dword [esp + 0x64]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
add esp, 0x58
ret
xor eax, eax
add esp, 0x58
ret
Function at 0x10004620
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1003ce70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100530a0]
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 esi, dword [ebp + 0x214]
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
js 0x10004765
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.100032a0
mov eax, dword [eax]
test eax, eax
je 0x1000469f
mov eax, dword [eax]
jmp 0x100046a1
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10004705
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
mov dword [ebp - 0x1c], eax
jne 0x10004705
test esi, esi
je 0x10004705
mov eax, dword [esi]
test eax, eax
je 0x100046e3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100046fa
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x1000473b
xor eax, eax
test edi, edi
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.1003b4ee
lea esp, [ebp + 0x20c]
pop ebp
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10005d80
add esp, 8
push 0
push edi
call fcn.10033b30
int3
Function at 0x10007420
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1024
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1020], eax
mov eax, dword [esp + 0x1030]
mov ecx, dword [esp + 0x1028]
push ebx
mov bl, byte [esp + 0x1038]
test eax, eax
je 0x100075cd
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.10003580
add esp, 0xc
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x18], 0
cmp bl, 1
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x14]
push 0x2001f
push dword [0x10053084]
sete al
add eax, 0x80000001
push eax
call fcn.10003a10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10007574
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x100074d3
mov eax, dword [eax]
jmp 0x100074d5
xor eax, eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push 0
push 0x2001f
push 0
push 0
push eax
push esi
call fcn.10006260
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x10007562
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
push ebp
push ebp
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x30]
push str.javaws.exe
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebp, ecx
test edi, edi
je 0x10007541
push edi
call ebx
xor edi, edi
test ebp, ebp
pop ebp
je 0x10007562
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10007552
mov eax, dword [eax]
jmp 0x10007554
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.10003b40
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000756b
push esi
call ebx
xor esi, esi
test edi, edi
je 0x10007578
push edi
call ebx
jmp 0x10007578
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1000757f
push esi
call ebx
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100075cb
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x100075cb
test esi, esi
je 0x100075cb
mov eax, dword [esi]
test eax, eax
je 0x100075a9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100075c0
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x1024]
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x1024
ret 0x10
Function at 0x100075f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
call fcn.100306d0
test eax, eax
jne 0x10007677
mov dword [esp + 4], eax
call fcn.10005170
test eax, eax
je 0x1000766f
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007677
lea eax, [esp + 8]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.EnableLUA
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 4], 1
sete al
test eax, eax
jne 0x10007677
xor al, al
add esp, 0x10
ret 8
mov al, 1
add esp, 0x10
ret 8

Function at 0x100077b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
lea eax, [esp + 8]
or esi, 0xffffffff
push eax
push 0x20019
push 0
push dword [0x10053088]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000784e
lea eax, [esp + 4]
mov dword [esp + 4], 8
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [0x1005308c]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007841
mov eax, dword [esp + 4]
cmp eax, 8
jae 0x1000782f
add eax, eax
cmp eax, 0x10
jae 0x10007862
xor ecx, ecx
mov word [esp + eax + 0x10], cx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x10007844
or esi, 0xffffffff
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20
ret 8
call fcn.10033b30
int3
Function at 0x100079a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cef0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007a80
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007a62
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_COMMON_APPDATA__NULL__0__szPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.10033b30
int3

Function at 0x10007ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf20
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007bc0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007ba2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_APPDATA__NULL__0__szLocalPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.10033b30
int3
Function at 0x10007d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf80
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10007e40
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
mov eax, dword [ecx + 0x28c]
call eax
jmp 0x10007e22
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b4ee
mov esp, ebp
pop ebp
ret 8
push esi
push str.Error:_08x_in_::SHGetFolderPath_NULL__CSIDL_LOCAL_APPDATA__NULL__0__szLocalPath_
call fcn.10005d80
add esp, 8
push 0
push esi
call fcn.10033b30
int3

Function at 0x10008a80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10053980], 0
je 0x10008aa4
mov eax, dword [0x10053984]
jmp 0x10008aef
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x10008ade
cmp dword [esp + 4], 6
jne 0x10008b0b
cmp dword [esp + 8], 2
jae 0x10008b0d
xor eax, eax
mov dword [0x10053984], eax
mov dword [0x10053980], 1
mov ecx, dword [esp + 0x114]
test eax, eax
setne al
xor ecx, esp
call fcn.1003b4ee
add esp, 0x118
ret 8
jbe 0x10008ade
mov eax, 1
jmp 0x10008ae0
Function at 0x1000aec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x420]
push edi
push 0x60
push 0
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call fcn.10033b30
mov edi, eax
test edi, edi
jne 0x1000af2c
push 2
push eax
push esi
call fcn.10033b30
mov edi, eax
test edi, edi
jne 0x1000af2c
call fcn.1000a5c0
mov esi, eax
jmp 0x1000afd3
push ebp
push ebx
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000af45
call fcn.1000a5c0
jmp 0x1000afc6
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1000af5a
call fcn.1000a5c0
jmp 0x1000afc6
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000af72
mov esi, 0x8007000e
jmp 0x1000afc8
push eax
lea ecx, [esp + 0x1c]
call fcn.1000a3f0
cmp dword [esp + 0x18], 0
jne 0x1000af8a
mov esi, 0x8007000e
jmp 0x1000afc8
push esi
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000afa8
call fcn.1000a5c0
jmp 0x1000afc6
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x430]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1000ad30
mov esi, eax
test edi, edi
je 0x1000afd3
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x1000afe6
lea ecx, [esp + 0x18]
call fcn.1000a760
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x410
ret 0x10
Function at 0x1000b670
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x1000b682
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b690
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x1000c8b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1000c90a
lea eax, [esp + 4]
push eax
push esi
call fcn.100036a0
add esp, 8
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x20c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret 8

Function at 0x1000ca90
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000cb23
push eax
push dword [esp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000cab8
mov eax, dword [eax]
jmp 0x1000caba
xor eax, eax
push ebx
push esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
test eax, eax
sete bl
test esi, esi
je 0x1000cb18
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000cb18
test esi, esi
je 0x1000cb18
mov eax, dword [esi]
test eax, eax
je 0x1000caf6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cb0d
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10033b30
add esp, 8
pop esi
test bl, bl
pop ebx
je 0x1000cb23
mov al, 1
ret 0x10
xor al, al
ret 0x10