joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bfce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x100bfcf9
mov esi, ebx
mov ebx, eax
jmp 0x100bfcfb
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jle 0x100bfd11
push eax
push edi
call fcn.10090910
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x100bfd3a
push ebp
jmp 0x100bfd20
mov ecx, dword [ebx]
mov ebp, dword [ecx + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x100bfd20
pop ebp
cmp eax, dword [esi + 4]
jge 0x100bfd52
nop
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x100bfd40
mov esi, dword [esi + 4]
test esi, esi
mov dword [edi + 4], esi
jle 0x100bfd78
mov eax, dword [edi]
lea eax, [eax + esi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x100bfd78
mov edx, dword [edi + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [edi + 4], edx
jg 0x100bfd62
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100da6b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov eax, ecx
mov edi, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov esi, eax
and ecx, 1
sar esi, 1
lea eax, [esi + ebx]
add esi, ecx
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push esi
push ebx
mov ebx, dword [esp + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.100da480
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
push esi
push edx
push eax
mov ecx, edi
call fcn.100da480
add esp, 0x28
test edi, edi
jle 0x100da71f
mov ecx, dword [esp + 0x2c]
mov eax, ebp
sub ecx, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x100da716
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100ddf34
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x101312dd
call fcn.10059c28
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [ebp - 0x10], esi
call fcn.10005030
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10004fe0
push 1
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x24]
push 0x10145f88
lea ebx, [esi + 4]
push eax
mov dword [esi], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec___class_CryptoPP::CBC_Decryption_.1.0
mov dword [ebx], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec___class_CryptoPP::CBC_Decryption_.0
mov dword [esi + 8], edi
call fcn.1007bb10
add esp, 0x10
push eax
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1007b7a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1007b420
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100e4f01
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x100e4f0c
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x100e4fcf
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
inc edx
dec edi
jne 0x100e4f2c
pop edi
test eax, eax
je 0x100e4fe9
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10161f08]
inc edx
dec eax
jne 0x100e4fd3
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x100e4ff0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [esp + 8]
push esi
mov esi, 0xff
xor eax, edx
and eax, esi
mov eax, dword [eax*4 + 0x10161f08]
shr edx, 8
xor eax, edx
mov dword [ecx], eax
and eax, esi
add eax, dword [ecx + 4]
imul eax, eax, 0x8088405
lea edx, [eax + 1]
mov eax, dword [ecx + 8]
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10161f08]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x100e54a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x100e54d8
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100e54d3
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x100e5500
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x100e54e9
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.10059da0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x100e6440
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10194180]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x100e6474
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100e6474
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x100e650b
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x100e648b
cmp al, 0x5c
jne 0x100e648d
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x100e6483
cmp edi, esi
je 0x100e64c0
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10059da0
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.100e6440
add esp, 0x14
test ebx, ebx
mov byte [ebp - 0x108], 0
pop edi
je 0x100e64db
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1005a140
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1005a150
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100e650b
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
leave
ret

Function at 0x100e7b22
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100e7bca
cmp dword [esi + 4], 0xffffffff
jne 0x100e7bca
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.10059d10
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
pop ecx
je 0x100e7b71
cmp al, 0x2f
je 0x100e7b71
push 0x101366a0
push edi
call fcn.1005a150
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x100e7b93
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100e7b93
mov eax, 0x2000000
jmp 0x100e7bcf
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100e52d2
add esp, 0x10
test eax, eax
jne 0x100e7bb1
mov eax, dword [ebp + 0x10]
jmp 0x100e7bcf
push eax
call fcn.100e7605
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x100e7bcf
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x100e9350
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101321a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.10120b20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov ebx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], edi
jge 0x100e93ae
push 0x104
lea ecx, [esp + 0x10]
call fcn.10007330
mov esi, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push esi
call ebx
mov edi, eax
cmp edi, 0x104
jbe 0x100e9430
cmp dword [esi - 8], 0x104
jl 0x100e9426
mov dword [esi - 0xc], 0x104
mov byte [esi + 0x104], 0
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x100e93fe
push edi
lea ecx, [esp + 0x10]
call fcn.10007330
mov esi, dword [esp + 0xc]
push edi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100e941d
test esi, esi
jne 0x100e940f
xor eax, eax
jmp 0x100e9421
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e9414
sub eax, edx
test eax, eax
jl 0x100e9426
cmp eax, dword [esi - 8]
jle 0x100e9456
push 0x80070057
call fcn.10006ca0
cmp edi, 0xffffffff
mov eax, edi
jne 0x100e944d
test esi, esi
jne 0x100e943f
xor eax, eax
jmp 0x100e9451
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e9444
sub eax, edx
test eax, eax
jl 0x100e9426
cmp eax, dword [esi - 8]
jg 0x100e9426
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
add esi, 0xfffffff0
push esi
call fcn.10007380
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100e9491
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100ea668
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x10194180]
push esi
push edi
xor eax, ebp
mov esi, 0x9c
push esi
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.1005a0e0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x100ea6b9
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
je 0x100ea6c2
mov eax, dword [ebp - 0x18]
dec eax
je 0x100ea72b
dec eax
je 0x100ea6c6
xor eax, eax
jmp 0x100ea72e
push 4
pop eax
cmp dword [ebp - 0x24], eax
ja 0x100ea6d2
push 2
jmp 0x100ea6fa
cmp dword [ebp - 0x24], 5
jne 0x100ea6fd
cmp dword [ebp - 0x20], 0
jne 0x100ea6e2
push 3
jmp 0x100ea6fa
cmp dword [ebp - 0x20], 1
je 0x100ea72e
cmp dword [ebp - 0x20], 2
jne 0x100ea6f8
test edi, edi
je 0x100ea6f8
cmp byte [ebp + 0x72], 1
je 0x100ea72e
push 5
pop eax
jmp 0x100ea72e
push 6
pop eax
cmp dword [ebp - 0x24], eax
jne 0x100ea6f8
cmp dword [ebp - 0x20], 0
jbe 0x100ea71d
test edi, edi
je 0x100ea719
cmp byte [ebp + 0x72], 1
jne 0x100ea719
push 8
jmp 0x100ea6fa
push 9
jmp 0x100ea6fa
test edi, edi
je 0x100ea727
cmp byte [ebp + 0x72], 1
je 0x100ea72e
push 7
jmp 0x100ea6fa
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.100571c6
add ebp, 0x78
leave
ret

Function at 0x100ea8f8
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x1013242c
call fcn.10059c28
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.10120b20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100ea94a
push dword [ebp - 0x10]
call fcn.100567f4
mov esi, eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x100ea996
cmp esi, ebx
je 0x100ea9a1
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x14]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.1000d2e0
mov edi, dword [ebp - 0x14]
add esp, 0x20
cmp esi, ebx
je 0x100ea9a1
push esi
call fcn.100569b3
pop ecx
cmp dword [edi - 0xc], ebx
jne 0x100ea9b1
push dword [ebp + 8]
call fcn.100eb4ff
pop ecx
jmp 0x100ea9ba
mov ecx, dword [ebp + 8]
push edi
call fcn.10002340
lea ecx, [edi - 0x10]
call fcn.10001000
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100ea9d4
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10194180]
and dword [ebp - 0x80], 0
push esi
push edi
mov esi, dword [ebp + 0x90]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x7c], 0
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.10002340
mov ecx, dword [ebp + 0x84]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100571c6
add ebp, 0x88
leave
ret
Function at 0x100eaaa6
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x10132470
call fcn.10059c28
sub esp, 0x64
mov eax, dword [0x10194180]
push ebx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
call fcn.10120b20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x54]
push eax
push ebx
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0x54], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100eab09
push dword [ebp - 0x54]
call fcn.100567f4
mov esi, eax
pop ecx
lea eax, [ebp - 0x54]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x100eab55
cmp esi, ebx
je 0x100eab60
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x50]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.1000d2e0
mov edi, dword [ebp - 0x50]
add esp, 0x20
cmp esi, ebx
je 0x100eab60
push esi
call fcn.100569b3
pop ecx
cmp dword [edi - 0xc], ebx
jne 0x100eac17
lea eax, [ebp - 0x2c]
push str..PHYSICALDRIVE0
push eax
call fcn.100eaa45
pop ecx
pop ecx
push 0x101360cc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1001bdb0
test eax, eax
je 0x100eac01
lea eax, [ebp - 0x70]
push eax
call fcn.100eb6a3
mov dword [esp], str.win.ini
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.10002ce0
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100014c0
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x100eabca
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100eabd6
lea eax, [ebp - 0x28]
push ecx
push eax
push str.Flag
push str.WINSET
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.10002310
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.100014c0
jmp 0x100eac0a
push dword [ebp - 0x4c]
call fcn.100eb4ff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100014c0
jmp 0x100eac20
mov ecx, dword [ebp - 0x4c]
push edi
call fcn.10002340
lea ecx, [edi - 0x10]
call fcn.10001000
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
leave
ret
Function at 0x100eb225
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100eb276
cmp dword [ebp + 0x10], 1
je 0x100eb25f
cmp dword [ebp + 0x10], 2
jne 0x100eb26d
test edi, edi
mov eax, dword [ebp - 4]
je 0x100eb272
cmp byte [eax + edi - 1], 0
je 0x100eb272
push 0xd
pop eax
jmp 0x100eb276
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100eb27c
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc
Function at 0x100eb4ff
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x101325a2
call fcn.10059c28
sub esp, 0x184
mov eax, dword [0x10194180]
and dword [ebp - 0x190], 0
push ebx
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
push 0x101360cc
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x18c], eax
call fcn.10002340
and dword [ebp - 4], 0
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x15c], 0
lea edi, [ebp - 0x15b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x15c]
push str.win.ini
push eax
call fcn.1005a150
pop ecx
pop ecx
lea eax, [ebp - 0x15c]
push eax
push 0x21
lea eax, [ebp - 0x58]
push eax
mov esi, str.ERROR
push esi
mov ebx, str.Flag
push ebx
mov edi, str.WINSET
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x188]
call fcn.1000ec60
push esi
lea ecx, [ebp - 0x188]
call fcn.1001bdb0
test eax, eax
je 0x100eb5cd
cmp dword [ebp - 0x174], 0x20
je 0x100eb663
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
movzx eax, byte [ebp - 0x15d]
push eax
movzx eax, byte [ebp - 0x15e]
push eax
movzx eax, byte [ebp - 0x15f]
push eax
movzx eax, byte [ebp - 0x160]
push eax
movzx eax, byte [ebp - 0x161]
push eax
movzx eax, byte [ebp - 0x162]
push eax
movzx eax, byte [ebp - 0x163]
push eax
movzx eax, byte [ebp - 0x164]
push eax
movzx eax, word [ebp - 0x166]
push eax
movzx eax, word [ebp - 0x168]
push eax
push dword [ebp - 0x16c]
lea eax, [ebp - 0x34]
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.100578f4
add esp, 0x34
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x188]
call fcn.1000ec60
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x188]
push eax
call fcn.10002310
push 0
push 1
lea ecx, [ebp - 0x188]
call fcn.100014c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
leave
ret

Function at 0x100eb872
Capabilities:
Check os version

Disassembly:
mov eax, 0x101325b4
call fcn.10059c28
sub esp, 0x24
mov eax, dword [0x10194180]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor eax, ebp
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], 0xf
call fcn.100014a0
mov dword [ebp - 4], edi
xor ebx, ebx
call fcn.100eb4a1
test eax, eax
je 0x100eb8bc
lea eax, [ebp - 0x2c]
push eax
call fcn.100eb70b
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x100eb8cf
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x100eb8a9
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10002310
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.100014c0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
leave
ret
Function at 0x100ece60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ece90
push 0x6d
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ecead
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100eceb6
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ecf05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x13
ja case.0x100eceeb.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x100ecf13]
jmp dword [edx*4 + 0x100ecf0b]
xor al, al
jmp 0x100ecf07
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x100ecf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ecf63
push 0x83
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ecf80
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100ecf89
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ecfc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
je 0x100ecfad
jmp 0x100ecfb1
xor al, al
jmp 0x100ecfc2
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret