joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10149830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x10149850
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x10149882
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x1014987f
inc esi
cmp esi, edx
jb 0x10149870
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x101499ac
cmp ecx, 3
jbe 0x101498c2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x10149900
cmp cl, 0xff
je 0x10149900
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x10149864
dec ecx
shl eax, cl
and eax, 7
je 0x1014989a
movzx ecx, byte [eax + 0x101fbb30]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x101fbb28], 0
mov cl, byte [edx + 4]
je 0x101498ea
test cl, cl
je 0x101498ea
cmp cl, 0xff
jne 0x1014989a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x10149864
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x1014992e
lea edx, [edi + ebx]
add edx, esi
jmp 0x10149934
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x10149972
movzx edi, byte [eax + 0x101fbb30]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x1014995e
cmp cl, 0xff
jne 0x10149972
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x10149921
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x10149864
pop edi
pop esi
cmp ecx, 3
jbe 0x101499c1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1014dbed
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x90
mov eax, 0x1018c1a3
call fcn.101892bd
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x98], eax
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x1018f440
mov dword [ebp - 4], esi
call fcn.10002790
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.1015ba74
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov edi, esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1014dcb5
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1014dcb7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x98]
push eax
mov dword [ecx], eax
call fcn.1014bbb9
mov edi, eax
pop ecx
test edi, edi
je 0x1014dcb7
mov eax, dword [ebp - 0x98]
push dword [eax]
push esi
push edi
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x9c]
push esi
push eax
mov eax, dword [ebp - 0x98]
push dword [eax]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.10001e10
lea ecx, [ebp + 8]
call fcn.10001e10
mov eax, esi
call fcn.10189278
ret
Function at 0x1014dccf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc4
mov eax, 0x1018c1eb
call fcn.101892bd
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc8], esi
mov edi, 0x1018f440
lea ecx, [ebp - 0x28]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.10002790
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.1015ba74
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1014de12
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1014dd59
push edi
mov ecx, esi
call fcn.10002790
jmp 0x1014de2f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xcc], eax
inc eax
push eax
mov dword [ebp - 0xc8], eax
call fcn.1014bbb9
mov edi, eax
pop ecx
test edi, edi
jne 0x1014dd83
push 0x1018f440
jmp 0x1014dd4d
push dword [ebp - 0xc8]
push 0
push edi
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0
push eax
push dword [ebp - 0xcc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xc4]
push edi
call fcn.1015c45f
push edi
call fcn.1014bbc2
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1015bcb3
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.1014f9a5
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.10002840
cmp dword [ebp - 0x30], 0
jbe 0x1014de08
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.100079a0
lea ecx, [ebp - 0x40]
call fcn.10001e10
xor ebx, ebx
mov byte [ebp - 0xc8], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0xc8]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.1014dea9
lea ecx, [ebp - 0x28]
call fcn.10001e10
lea ecx, [ebp + 0xc]
call fcn.10001e10
mov eax, esi
call fcn.10189278
ret

Function at 0x1014de47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 0x80
push 2
push esi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1014de76
xor eax, eax
jmp 0x1014dea4
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1014dea0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x1014dea2
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101501c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x10150272
push ebx
push esi
push edi
xor ebx, ebx
push str.b69749abbfffc7f6494ec5c0eb4c7d2c
mov dword [ebp - 4], ebx
call fcn.10178a20
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
call fcn.1014bbb9
push edi
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.10163430
add esp, 0x14
mov edx, ebx
test edi, edi
je 0x10150222
mov ecx, ebx
mov al, byte [ecx + str.b69749abbfffc7f6494ec5c0eb4c7d2c]
xor byte [edx + esi], al
inc ecx
xor eax, eax
cmp ecx, dword [ebp - 8]
cmovge ecx, eax
inc edx
cmp edx, edi
jb 0x1015020b
cmp edi, 1
jle 0x10150244
cmp byte [esi], 0x37
jne 0x10150244
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x10150237
cmp al, 0x5a
jne 0x10150244
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.10145c50
mov ebx, eax
push esi
call fcn.1014bbc2
pop ecx
test ebx, ebx
je 0x10150262
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10150262
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x1015026f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1015049a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101640e0
push 0x1018fac8
lea eax, [ebp - 0x20c]
push str.C:log_s.log
push eax
call fcn.100073c0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.1014bb85
leave
ret
Function at 0x101504f8
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.1014bbd0
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.101640e0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.10179346
push 0x800
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.101640e0
push 0x1018fac8
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.1014d8e6
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.101640e0
add esp, 0x40
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.10178900
pop ecx
test eax, eax
je 0x10150757
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.101642ed
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x10150757
lea eax, [ebp - 0x20c]
push eax
call fcn.10178900
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.10179346
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.1014d8e6
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1024]
push 0x3ff
push 0x400
push eax
call fcn.10150181
push esi
call fcn.1016847f
mov dword [ebp - 0x2034], eax
lea eax, [ebp - 0x2034]
push eax
mov dword [ebp - 0x2030], edx
call fcn.10179634
add esp, 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test edi, edi
je 0x10150757
lea ecx, [ebp - 0x1024]
push ecx
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2024]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.101503b6
xor eax, eax
add esp, 0x28
mov word [ebp - 0x826], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x101fbcf8
push eax
cmovne esi, ebx
call fcn.10170cc0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10150757
test esi, esi
jne 0x101506fd
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xfeff
push ebx
push eax
call fcn.10172908
add esp, 0x10
lea eax, [ebp - 0x2024]
push eax
call fcn.10178900
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2024]
push ebx
push eax
call fcn.10172908
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xd
push ebx
push eax
call fcn.10172908
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xa
push ebx
push eax
call fcn.10172908
push edi
call fcn.101709ee
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014bb85
leave
ret
Function at 0x10150766
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.1014bbd0
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
call fcn.1016847f
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.10179634
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.101503b6
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
xor ecx, ecx
pop edi
inc ecx
test eax, eax
push 0x101fbcf8
push ebx
cmovne edi, ecx
call fcn.10170cc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10150882
test edi, edi
jne 0x10150825
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.10172908
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call fcn.10178900
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.10172908
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.10172908
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.10172908
push esi
call fcn.101709ee
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014bb85
leave
ret

Function at 0x10150f75
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.10178900
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1014bbb9
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.10178aeb
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x10150fef
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x10150fe6
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10150fdc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10150fed
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x10150fb9
jmp 0x10150fef
xor edi, edi
push esi
call fcn.1014bbc2
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10150ffd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x1a
push eax
push 0
call fcn.101516ec
lea eax, [ebp - 0x20c]
push eax
call fcn.10178900
add esp, 0x14
test eax, eax
je 0x101510a8
push ebx
mov ebx, 0x1018fa34
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10179103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10179103
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10179103
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x1015108c
lea eax, [ebp - 0x20c]
push eax
call fcn.10150f75
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.10178900
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10001270
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1014bb85
leave
ret

Function at 0x10151157
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x10219f74]
test bl, bl
jne 0x101511ee
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x101511e8
lea eax, [ebp - 0x20c]
push eax
call fcn.10178cb6
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.101648f3
pop ecx
pop ecx
test eax, eax
jne 0x101511e0
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.101648f3
pop ecx
pop ecx
test eax, eax
je 0x101511e8
mov byte [0x10219f74], bl
jmp 0x101511ee
mov bl, byte [0x10219f74]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1014bb85
leave
ret
Function at 0x101511fd
Capabilities:
Check if file exists

Disassembly:
push 0xc50
mov eax, 0x1018c638
call fcn.101892bd
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0xc5c], edi
call fcn.101640e0
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.101640e0
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.101640e0
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.101640e0
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101640e0
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.101640e0
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.101516ec
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10178aeb
lea eax, [ebp - 0x218]
push eax
call fcn.10178900
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.101642ed
add esp, 0x24
test eax, eax
je 0x10151412
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10178aeb
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.10179103
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.10178aeb
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.10179103
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.10178aeb
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.10179103
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x10151412
cmp dword [ebp - 0xc5c], 0
je 0x10151412
test ecx, ecx
je 0x10151412
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x1019068c
push eax
call fcn.100073c0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101513f0
lea eax, [ebp - 0x420]
push eax
call fcn.10150f75
pop ecx
lea eax, [ebp - 0x420]
push eax
call fcn.10178900
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.10001270
jmp 0x10151421
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.10150ffd
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov byte [ebp - 0xc5c], al
push dword [ebp - 0xc5c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xc58]
push eax
call fcn.1014dea9
lea ecx, [ebp - 0xc58]
call fcn.10001e10
mov eax, edi
call fcn.10189278
ret
Function at 0x10151c39
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.101640e0
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x10151c9c
cmp dword [ebp - 0x118], 2
jg 0x10151c9c
xor eax, eax
inc eax
jmp 0x10151c9e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014bb85
leave
ret

Function at 0x10151e55
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x102159fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x69c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push ebx
push eax
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x284]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x101fc070
call fcn.10178900
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1017074c
push edi
lea eax, [ebp - 0x694]
push ebx
push eax
call fcn.101640e0
push edi
lea eax, [ebp - 0x48c]
push ebx
push eax
call fcn.101640e0
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], ebx
push ebx
push eax
mov dword [ebp - 0x69c], ebx
mov dword [ebp - 0x6a0], ebx
call fcn.101640e0
add esp, 0x34
lea eax, [ebp - 0x48c]
mov ecx, 0x104
push ecx
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x698]
push eax
push ecx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10151f4f
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.10008540
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.100073f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014bb85
leave
ret 4
Function at 0x10158d40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x1018d394
call fcn.10189289
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.1015c468
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.1015c49c
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x10158d80
mov edi, 0xf003f
push edi
push esi
push 0x101fd268
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10158de0
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10158dbb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10158de0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.1015c47b
call fcn.10189263
ret 0xc
Function at 0x10159205
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x1018d42f
call fcn.101892bd
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.101640e0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x101592c3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10002790
and dword [ebp - 4], 0
push 0x1018fa34
call fcn.10178900
pop ecx
push eax
push 0x1018fa34
lea ecx, [ebp - 0x230]
call fcn.10004210
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.10158ec9
mov edi, eax
lea ecx, [ebp - 0x230]
test edi, edi
je 0x101592b4
call fcn.10001e10
mov eax, edi
jmp 0x1015933c
or dword [ebp - 4], 0xffffffff
call fcn.10001e10
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x1015933a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.10002790
mov esi, 0x1018fa34
mov dword [ebp - 4], 1
push esi
call fcn.10178900
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.10004210
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.10158ec9
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.10001e10
test esi, esi
je 0x1015933a
mov eax, esi
jmp 0x1015933c
xor eax, eax
call fcn.10189278
ret 4