joyce8/EMBER2024-capa huggingface dataset:
Function at 0x707f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x716a7d
call fcn.00701350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x708046
push 1
call fcn.0070227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x70803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.007013e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x707fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.007021cb
mov ebx, eax
test ebx, ebx
jl 0x708024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00702436
mov ebx, eax
test ebx, ebx
jl 0x708024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x708024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x707ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x70f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x708024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x70f353
cmp dword [ebp - 0x14], 0
je 0x708033
push dword [ebp - 0x14]
call fcn.007013c0
pop ecx
push dword [ebp - 0x18]
call fcn.007013c0
pop ecx
mov eax, ebx
call fcn.00701390
ret 4
mov ebx, 0x80070057
jmp 0x70803c

Function at 0x7085f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x71b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x708684
cmp eax, 0xffffffff
je 0x708684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x708684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.007085b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00708692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x70f2da
cmp esi, dword [ebp - 0xc]
jne 0x70f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007020d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x70866d
Function at 0x7088ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x716be9
call fcn.007020e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.007013e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x708999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x7089a4
push esi
push edi
call fcn.00701451
add esp, 0x14
mov eax, edi
call fcn.00702126
ret 4
Function at 0x710d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x710dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x710db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x710dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x710da2
xor eax, eax
pop edi
pop esi
pop ebx
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
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.10031690
mov edi, eax
test edi, edi
jne 0x1000af2c
push 2
push eax
push esi
call fcn.10031690
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.10031690
add esp, 8
pop esi
test bl, bl
pop ebx
je 0x1000cb23
mov al, 1
ret 0x10
xor al, al
ret 0x10