joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100da43
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0100d9d8
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0100ddf9
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100da92
cmp dword [ebp - 0x1c], 5
jb 0x100daaa
jmp 0x100daa6
cmp dword [ebp - 0x10], 1
jne 0x100daaa
cmp dword [ebp - 0x1c], 4
ja 0x100daa6
jne 0x100daaa
cmp dword [ebp - 0x18], 0
jbe 0x100daaa
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001d04
call fcn.0100d8ac
test eax, eax
jge 0x100dacb
mov byte [0x1049784], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100d61a
add ebp, 0x78
leave
ret
Function at 0x1013318
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0100f6af
xor ebx, ebx
cmp dword [0x104a3d8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10133ed
push 0x1002450
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1013358
xor eax, eax
jmp 0x10134b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002444
push edi
call esi
cmp eax, ebx
je 0x1013351
push eax
call fcn.0100f64c
mov dword [esp], 0x1002434
push edi
mov dword [0x104a3d8], eax
call esi
push eax
call fcn.0100f64c
mov dword [esp], 0x1002420
push edi
mov dword [0x104a3dc], eax
call esi
push eax
call fcn.0100f64c
mov dword [0x104a3e0], eax
lea eax, [ebp - 8]
push eax
call fcn.0100e906
test eax, eax
pop ecx
pop ecx
je 0x10133bb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01010500
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10133ed
push 0x1002404
push edi
call esi
push eax
call fcn.0100f64c
cmp eax, ebx
pop ecx
mov dword [0x104a3e8], eax
je 0x10133ed
push 0x10023ec
push edi
call esi
push eax
call fcn.0100f64c
pop ecx
mov dword [0x104a3e4], eax
mov eax, dword [0x104a3e4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1013466
cmp dword [0x104a3e8], esi
je 0x1013466
push eax
call fcn.0100f6b8
pop ecx
call eax
cmp eax, ebx
je 0x1013433
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x104a3e8]
call fcn.0100f6b8
pop ecx
call eax
test eax, eax
je 0x1013433
test byte [ebp - 0x18], 1
jne 0x1013466
lea eax, [ebp - 0xc]
push eax
call fcn.0100e93d
test eax, eax
pop ecx
je 0x101344e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01010500
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x101345d
or dword [ebp + 0x10], 0x200000
jmp 0x1013497
or dword [ebp + 0x10], 0x40000
jmp 0x1013497
mov eax, dword [0x104a3dc]
cmp eax, esi
je 0x1013497
push eax
call fcn.0100f6b8
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1013497
mov eax, dword [0x104a3e0]
cmp eax, esi
je 0x1013497
push dword [ebp - 4]
push eax
call fcn.0100f6b8
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x104a3d8]
call fcn.0100f6b8
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1019f92
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret 4
Function at 0x101a485
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101a49c
mov eax, 0x80070057
jmp 0x101a5b6
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x1009088
push 1
push esi
push 0x1009098
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
push esi
mov ebx, eax
push ebx
push 0x199
mov edi, 0x1002e5c
push edi
call fcn.0101c3d2
cmp ebx, esi
jl 0x101a587
cmp dword [ebp - 4], esi
jne 0x101a4ee
push esi
mov ebx, 0x80004005
push ebx
push 0x19e
push edi
call fcn.0101c3d2
cmp ebx, esi
jl 0x101a587
push 0x1002e68
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x101a51a
push esi
mov ebx, 0x8007000e
push ebx
push 0x1a7
push edi
call fcn.0101c3d2
cmp ebx, esi
jl 0x101a587
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
push esi
mov ebx, eax
push ebx
push 0x1b6
push edi
call fcn.0101c3d2
cmp ebx, esi
jl 0x101a587
mov eax, dword [ebp + 8]
cmp dword [eax], esi
jne 0x101a55f
push esi
mov ebx, 0x80004005
push ebx
push 0x1bb
push edi
call fcn.0101c3d2
cmp ebx, esi
jl 0x101a587
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [eax]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push esi
mov ebx, eax
push ebx
push 0x1cb
push edi
call fcn.0101c3d2
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebx, esi
jge 0x101a5a5
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, esi
je 0x101a5a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], esi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x101a5b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x101a928
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x101a939
mov eax, 0x80070057
jmp 0x101a95c
push esi
push 1
push eax
push eax
push dword [ebp + 8]
xor esi, esi
push 0x1002ea8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x101a959
mov esi, 0x80004005
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x101a960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101a972
mov eax, 0x80070057
jmp 0x101a9a8
push edi
push 1
push esi
push esi
push dword [ebp + 8]
xor edi, edi
push 0x1002eb0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x101a9a5
push esi
mov eax, 0x80004005
push eax
push 0x725
push 0x1002e5c
mov edi, eax
call fcn.0101c3d2
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x101a9ad
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x101a9bd
mov eax, 0x80070057
jmp 0x101a9f8
push edi
push 1
xor edi, edi
push edi
push dword [ebp + 8]
push 0x1002ebc
push 0x1002ea8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x101a9f5
push 0
mov eax, 0x80004005
push eax
push 0x73b
push 0x1002e5c
mov edi, eax
call fcn.0101c3d2
mov eax, edi
pop edi
pop ebp
ret 4

Function at 0x101acac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x101ada5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x101ada5
push 3
xor edx, edx
pop ecx
lea eax, [esi + 2]
div ecx
mov ecx, dword [ebp + 0x10]
shl eax, 2
test ecx, ecx
jne 0x101ace0
mov ecx, eax
jmp 0x101ad99
mov edx, dword [ebp + 0x14]
cmp eax, dword [edx]
jbe 0x101acf1
mov eax, 0x800700ea
jmp 0x101adaa
test esi, esi
jle 0x101ad99
push ebx
push edi
xor eax, eax
lea edi, [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov al, byte [edi]
inc edi
cmp esi, 1
mov dword [ebp + 8], edi
jbe 0x101ad29
mov dl, byte [edi]
inc edi
cmp esi, 2
mov byte [ebp + 0xd], dl
mov dword [ebp + 8], edi
jbe 0x101ad29
mov bl, byte [edi]
inc dword [ebp + 8]
mov byte [ebp + 0xe], bl
jmp 0x101ad2c
mov bl, byte [ebp + 0xe]
movzx eax, al
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x1002e10]
mov byte [ecx], dl
movzx edx, byte [ebp + 0xd]
shl eax, 4
mov edi, edx
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + 0x1002e10]
inc ecx
mov byte [ecx], al
inc ecx
cmp esi, 1
jbe 0x101ad72
movzx eax, bl
shr eax, 6
shl edx, 2
or eax, edx
and eax, 0x3f
mov al, byte [eax + 0x1002e10]
jmp 0x101ad74
mov al, 0x3d
mov byte [ecx], al
inc ecx
cmp esi, 2
jbe 0x101ad87
and ebx, 0x3f
mov al, byte [ebx + 0x1002e10]
jmp 0x101ad89
mov al, 0x3d
mov byte [ecx], al
sub esi, 3
inc ecx
test esi, esi
jg 0x101acfb
pop edi
pop ebx
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x101adaa
mov eax, 0x80070057
pop esi
pop ebp
ret 0x10
Function at 0x101af68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], eax
je 0x101b04f
cmp dword [ebp + 0x10], eax
je 0x101b04f
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
push 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0xffff
mov esi, 0x80070000
mov ebx, 0x1002e5c
je 0x101afdb
jle 0x101afc4
and eax, edi
or eax, esi
push 0
push eax
push 0xcc1
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], 0
jl 0x101b038
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x101b016
jle 0x101b005
and eax, edi
or eax, esi
push 0
push eax
push 0xccc
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], 0
jl 0x101b038
cmp dword [ebp - 0x10], 4
je 0x101b038
push 0
mov eax, 0x80004005
push eax
push 0xcd4
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x101b04a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x101b054
mov eax, 0x80070057
leave
ret 0x10

Function at 0x101b1ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
push edi
mov dword [ebp - 0x210], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x101b210
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b1fb
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x36
push 0x1002e5c
call fcn.0101c3d2
test ebx, ebx
jl 0x101b27c
push dword [ebp - 0x210]
lea eax, [ebp - 0x108]
push eax
push 0x1002ee8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100a18a
add esp, 0x14
push 0
mov ebx, eax
push ebx
push 0x3c
mov edi, 0x1002e5c
push edi
call fcn.0101c3d2
test ebx, ebx
jl 0x101b27c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
jne 0x101b27c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b26f
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x46
push edi
call fcn.0101c3d2
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 8
Function at 0x101be63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x101be7d
mov eax, 0x80070057
jmp 0x101bff9
push esi
mov dword [eax], ebx
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0101b157
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push 0x1003088
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, 0x1002e5c
je 0x101bee8
jle 0x101bed1
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x75b
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100307c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101bf1f
jle 0x101bf10
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x764
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
cmp dword [ebp - 0x10], 1
je 0x101bf3f
push ebx
mov esi, 0x80004005
push esi
push 0x76c
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
push dword [ebp - 0xc]
call fcn.0100d5aa
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x101bf65
push ebx
mov esi, 0x8007000e
push esi
push 0x775
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100307c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101bf9e
jle 0x101bf93
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x77f
jmp 0x101bfba
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push eax
mov byte [ecx + eax - 1], bl
call fcn.0101a24b
push ebx
mov esi, eax
push esi
push 0x785
push edi
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
je 0x101bfd1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp esi, ebx
jge 0x101bfe7
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, ebx
je 0x101bfe7
push eax
call fcn.0100dd74
pop ecx
mov dword [edi], ebx
cmp dword [ebp - 8], ebx
je 0x101bff5
push dword [ebp - 8]
call fcn.0100dd74
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101c1b2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
push 0x100312c
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
call fcn.0101b429
test eax, eax
jge 0x101c208
cmp dword [ebp - 0xa8], ebx
je 0x101c237
push dword [ebp - 0xa8]
call fcn.0100e10e
push dword [ebp - 0xa8]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
call fcn.0100dd74
pop ecx
pop ecx
jmp 0x101c306
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0101a713
push ebx
mov esi, eax
push esi
push 0x202
mov edi, 0x1002e5c
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101c305
push 0x98
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.0100ddf9
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101c2ab
movzx eax, byte [ebp - 6]
jmp 0x101c2c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009d20
push ebx
mov esi, eax
push esi
push 0x213
push edi
call fcn.0101c3d2
mov eax, ebx
cmp esi, ebx
jl 0x101c305
cmp dword [ebp - 0xac], 5
jne 0x101c2ef
cmp dword [ebp - 0xa4], 1
je 0x101c2eb
cmp dword [ebp - 0xa4], ebx
jne 0x101c300
cmp eax, 1
jne 0x101c300
xor esi, esi
jmp 0x101c305
cmp dword [ebp - 0xac], 6
jne 0x101c300
cmp dword [ebp - 0xa4], ebx
jmp 0x101c2e9
mov esi, 0x80004004
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 4
Function at 0x102093a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x102095c
mov eax, 0x80070057
jmp 0x10209c4
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0100ddf9
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10209a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10209a5
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10209c4
push 0x1003884
lea eax, [ebp - 0x108]
push eax
push 0x1002ee8
push dword [ebp + 0xc]
push esi
call fcn.0100a18a
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100d61a
leave
ret 8

Function at 0x1021c11
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24ec
call fcn.01017dcc
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x24e4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x24ec], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x24e8], eax
mov byte [ebx], 0
push 0x104
lea eax, [ebp - 0x414]
mov byte [esi], 0
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1021c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009d20
push 0
push eax
push 0x26
push 0x1008a84
mov dword [ebp - 0x24e0], eax
call fcn.0101c3d2
cmp dword [ebp - 0x24e0], 0
jl 0x1021d95
push 0x1008a6c
lea eax, [ebp - 0x414]
push eax
push 0x1008a60
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0101cf61
add esp, 0x14
test eax, eax
mov dword [ebp - 0x24e0], eax
jl 0x1021d95
lea eax, [ebp - 0x20c]
push eax
call fcn.0101a894
dec eax
neg eax
sbb al, al
inc al
mov byte [edi], al
je 0x1021d95
lea eax, [ebp - 0x20c]
push eax
push 0x1064
lea eax, [ebp - 0x24dc]
push eax
mov edi, 0x1008a48
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
seta al
mov byte [esi], al
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24e4]
push 0
push 0x1008a34
push edi
call esi
test eax, eax
seta al
test al, al
mov byte [ebx], al
jne 0x1021d5c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24e4]
push 0
push 0x1008a14
push edi
call esi
test eax, eax
seta al
mov byte [ebx], al
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
mov edi, 0x1008a04
push dword [ebp - 0x24ec]
push 0
push 0x10089e8
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x24e8]
push 0
push 0x10089dc
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 0x24
Function at 0x1021dd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 4
pop esi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push 0x1008aa0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x1021e22
push eax
call fcn.01009d20
mov ebx, eax
cmp ebx, edi
jl 0x1021e5b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x1008a9c
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x1021e4c
push eax
call fcn.01009d20
mov ebx, eax
cmp ebx, edi
jl 0x1021e5b
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x1021e5b
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x1021e6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x10246a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0100ddf9
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0100ddf9
add esp, 0x18
inc esi
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x102472d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1024718
and eax, 0xffff
or eax, 0x80070000
push ebx
mov edi, eax
push edi
push 0x5f
push 0x1008cb0
call fcn.0101c3d2
cmp edi, ebx
pop edi
jl 0x1024760
push 0x1008ce4
lea eax, [ebp - 0x108]
push eax
push 0x1002ee8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100a18a
add esp, 0x14
cmp eax, ebx
jl 0x1024760
lea eax, [ebp - 0x20c]
push eax
call fcn.0102436b
jmp 0x1024762
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret

Function at 0x1025a12
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1025a4f
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1025a2c
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1025a6b
dec esi
je 0x1025a64
dec esi
jne 0x1025a70
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc