joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bf10
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ebp
mov word [eax], cx
push edi
mov byte [esp + 0x13], 0
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000bf30
sub esi, ecx
sar esi, 1
lea ebx, [esi*2 + 1]
push ebx
call fcn.1000ae30
mov edi, eax
test edi, edi
je 0x1000bfcb
push 0
push 0
push ebx
push edi
lea eax, [esi + 1]
push eax
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000bf70
sub esi, ecx
sar esi, 1
lea ebp, [esi*2 + 1]
push ebp
call fcn.1000ae30
mov ebx, eax
test ebx, ebx
je 0x1000bfc5
push 0
push 0
push ebp
push ebx
lea eax, [esi + 1]
push eax
push dword [esp + 0x34]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x28]
inc eax
push eax
mov dword [esp + 0x20], eax
call fcn.1000ae30
mov ebp, eax
test ebp, ebp
jne 0x1000bfd6
push ebx
call fcn.1000afc0
push edi
call fcn.1000afc0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x14
mov esi, dword [esp + 0x18]
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000bfe0
sub esi, ecx
sar esi, 1
lea eax, [esi*2 + 1]
push eax
call fcn.1000ae30
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1000c021
push ebx
call fcn.1000afc0
push edi
call fcn.1000afc0
push ebp
call fcn.1000afc0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x14
push 0
push 0
lea ecx, [esi*2 + 1]
push ecx
push eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x2c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x13]
push esi
push dword [esp + 0x2c]
push ebp
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov dword [esp + 0x24], eax
call fcn.1000afc0
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c066
push dword [esp + 0x1c]
sub ecx, edx
push dword [esp + 0x28]
lea eax, [ecx + 1]
push eax
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
call fcn.1000afc0
push ebx
call fcn.1000afc0
push edi
call fcn.1000afc0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x10019b20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x158
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x160]
push 0x41
push ecx
push 0x41
push eax
call fcn.10008d40
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019b60
sub ecx, edx
cmp byte [esp + ecx + 0x13], 0x2e
jne 0x10019b7a
dec ecx
cmp ecx, 0x41
jae 0x10019bea
mov byte [esp + ecx + 0x14], al
push pe_nt_image_headers32
lea eax, [esp + 0x5c]
push eax
push pe_nt_image_headers32
push esi
call fcn.10008d40
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
push 0x10001d98
push 0x10
push eax
push 0x10001d7a
push 0
lea eax, [esp + 0x28]
push eax
call esi
lea eax, [esp + 0x58]
push eax
push 0x10
lea eax, [esp + 0xc]
push eax
push 0x10001d7a
push 0
lea eax, [esp + 0x28]
push eax
call esi
mov ecx, dword [esp + 0x158]
xor eax, eax
cmp byte [esp + 4], al
pop esi
setne al
xor ecx, esp
call fcn.1002b4da
add esp, 0x158
ret 8
call fcn.1002bf13
int3
Function at 0x10020690
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.1002c9a0
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1028]
mov eax, 4
push edi
mov edi, dword [esp + 0x1030]
mov ebp, dword [esi + 0x20c]
add esi, 0x210
mov dword [esp + 0x18], ebp
mov ecx, dword [esi + 0x14]
cmp edi, 0xd698
je 0x100206df
mov eax, 2
cmp ecx, eax
push 0
cmovg ecx, eax
mov eax, dword [esi + 0x14]
push 0
sub eax, ecx
mov dword [esp + 0x18], ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100208b3
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100208ba
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x100208ba
push dword [esi + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea eax, [esi + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edi
call fcn.100292b0
test eax, eax
jne 0x100208ba
mov eax, dword [esp + 0x10]
movzx eax, word [esi + eax*2 + 0x22]
cmp eax, 0xa
je 0x1002076e
cmp eax, 0xd
je 0x1002076e
xor ebx, ebx
jmp 0x10020773
mov ebx, 1
push 0x1000
push dword [esi + 0x14]
call fcn.1002d1d4
add esp, 8
shl eax, 0xc
mov dword [esp + 0x20], edx
mov dword [esi + 0x2080], eax
push 0
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100208b3
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x2080]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100208ba
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x2080]
cmp dword [esp + 0x14], eax
jne 0x100208ba
push dword [esi + 0x10]
xor eax, eax
mov ecx, 0x1000
cmp edi, 0xd698
cmove eax, ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edi
call fcn.100292b0
test eax, eax
jne 0x100208ba
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2084], ecx
test ebx, ebx
jne 0x100208bd
mov dword [esi + 0x202c], ebx
lea ebx, [ebp + 0x44]
push eax
push dword [ebx]
add ebp, 0x3a
push ebp
push esi
call fcn.10020450
test eax, eax
js 0x100208bd
push 0
push edi
push esi
call fcn.10020c10
test eax, eax
js 0x100208bd
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push edi
call fcn.100291e0
test eax, eax
js 0x100208bd
mov eax, dword [esp + 0x10]
mov ebx, 1
add dword [esi + 0x14], eax
push 0x1000
push dword [esi + 0x14]
call fcn.1002d1d4
add esp, 8
shl eax, 0xc
mov dword [esi + 0x2080], eax
mov dword [esp + 0x20], edx
push 0
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x100207a6
mov eax, 0xfffffc02
jmp 0x100208bd
or eax, 0xffffffff
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b4da
add esp, 0x1018
ret 8
Function at 0x100208e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 1
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10020935
push 0
lea eax, [esp + 0x20]
mov dword [esi + 0x2080], ebp
push eax
push 0x1000
lea ebx, [esi + 0x2ce4]
mov dword [esi + 0x2ca4], 0
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10020944
mov dword [esi + 0x2ca4], eax
or ebx, 0xffffffff
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x1c]
cmp edi, 0x1000
jae 0x1002095a
mov dword [esi + 0x2ca4], 1
test edi, edi
jne 0x1002096f
pop edi
pop esi
mov ebx, 0xfffff9bd
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
cmp dword [esp + 0x20], 0xd698
jne 0x100209b9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push ebx
call fcn.10022400
mov ebx, eax
test ebx, ebx
jne 0x10020938
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x100209b9
push 1
push eax
mov eax, ebx
sub eax, edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10020935
mov edi, ebx
mov dword [esi + 0x2080], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x1000
test ebp, ebp
jne 0x100209d1
mov dword [esi + 0x2ccc], ebp
mov dword [esi + 0x2cd0], ebp
mov ecx, dword [esi + 0x2cd0]
test ecx, ecx
je 0x100209e1
add edi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x2ccc]
lea edx, [esi + 0x2ccc]
mov dword [esi + 0x2cb4], eax
mov dword [esi + 0x2cb8], ecx
test ecx, ecx
je 0x10020a0d
movdqu xmm0, xmmword [esi + 0x2cd4]
movdqu xmmword [esi + 0x2cbc], xmm0
push dword [esi + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, esi
sub eax, ecx
add eax, 0x2ce4
push eax
push edx
push dword [esp + 0x38]
call fcn.100292b0
sub edi, dword [esp + 0x1c]
mov ebx, eax
mov dword [esi + 0x2cd0], edi
je 0x10020a5b
mov ecx, esi
sub ecx, edi
push edi
lea eax, [ecx + 0x3ce4]
push eax
lea eax, [ecx + 0x2ce4]
push eax
call fcn.1002b720
add esp, 0xc
test ebx, ebx
jne 0x10020935
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2028], eax
cmp eax, 0x1000
jae 0x10020a7c
mov dword [esi + 0x20a8], eax
jmp 0x10020a86
mov dword [esi + 0x20a8], 0xffffffff
cmp dword [esi + 0x2024], 0
jne 0x10020938
push 0x2000
call fcn.1000ae30
mov dword [esi + 0x2024], eax
test eax, eax
jne 0x10020ab8
pop edi
pop esi
mov ebx, 0xfffffc0d
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
pop edi
mov dword [esi + 0x2030], 0x1000
mov eax, ebx
mov dword [esi + 0x20a8], 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x10020c10
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x202c]
lea ebp, [edi + 0x202c]
shl eax, 3
push eax
mov dword [esp + 0x10], eax
call fcn.1000ae30
mov ebx, eax
test ebx, ebx
jne 0x10020c43
pop edi
pop ebp
mov eax, 0xfffffc0d
pop ebx
pop ecx
ret 0xc
push esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push dword [edi + 0x2024]
push dword [esp + 0x2c]
call fcn.100291e0
mov esi, eax
test esi, esi
js 0x10020d04
cmp dword [esp + 0x1c], 0x4b0
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x10020c9c
cmp dword [esp + 0x20], 0
je 0x10020c9c
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0x10002a28
push dword [edi]
call eax
test eax, eax
je 0x10020cff
cmp dword [esp + 0x18], 2
jne 0x10020cff
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x18]
push ebx
push dword [edi]
call eax
test eax, eax
je 0x10020cff
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jne 0x10020cff
mov eax, dword [ebp]
push 1
push 0
push 0
push dword [edi]
mov dword [edi + 0x2084], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10020cec
push ebx
mov dword [edi + 0x2080], eax
call fcn.1000afc0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
or esi, 0xffffffff
call fcn.1000afc0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc
mov esi, 0xfffffc02
push ebx
call fcn.1000afc0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x100299d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x104
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x100], eax
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x118]
push 0xff
push eax
push 0x1004
push dword [esp + 0x11c]
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10029a2b
lea eax, [esp + 8]
push eax
call fcn.1002ca7d
add esp, 4
mov dword [ebp], eax
push 0xff
lea eax, [esp + 0xc]
mov dword [esi], 0
push eax
push 0xb
push dword [esp + 0x11c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10029a5d
lea eax, [esp + 8]
push eax
call fcn.1002ca7d
add esp, 4
mov dword [esi], eax
mov ecx, dword [esp + 0x108]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.1002b4da
add esp, 0x104
ret 0xc

Function at 0x1002a510
Capabilities:
Create directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x224]
je 0x1002a55c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
cmp dword [esp + 0x214], 0x104
jl 0x1002a594
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1002a5a1
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1002a5c6
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1002a5c6
cmp dword [esp + 4], 0xffffffff
je 0x1002a5c6
push edx
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 8

Function at 0x1002a6d0
Capabilities:
Delete file

Disassembly:
jmp 0x1002a6d0
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
je 0x1002a712
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1002a760
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1002a760
cmp dword [esp + 4], 0xffffffff
je 0x1002a760
push eax
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
Function at 0x1002a940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1002a98a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1002a070
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.1002a210
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1002a9dc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1002a9dc
cmp dword [esp + 4], 0xffffffff
je 0x1002a9dc
push edx
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 8

Function at 0x1002aa00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
je 0x1002aa42
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1002aa90
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1002aa90
cmp dword [esp + 4], 0xffffffff
je 0x1002aa90
push eax
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4

Function at 0x1002aab0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
je 0x1002ab08
push ecx
push eax
push dword [esp + 0x22c]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 0x10
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.1002a070
mov eax, dword [esp + 0x218]
add eax, eax
shr eax, 1
push eax
push dword [esp + 0xc]
push dword [esp + 0x230]
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 4]
call fcn.1002a210
lea ecx, [esp + 4]
mov esi, eax
call fcn.1002a210
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1002ab71
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1002ab71
cmp dword [esp + 4], 0xffffffff
je 0x1002ab71
push eax
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 0x10
Function at 0x1002ab90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1002abda
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1002a070
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.1002a210
mov esi, eax
test esi, esi
jle 0x1002ac0c
dec esi
lea ecx, [esp + 4]
call fcn.1002a210
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1002ac3a
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1002ac3a
cmp dword [esp + 4], 0xffffffff
je 0x1002ac3a
push eax
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x21c
ret 8
Function at 0x1002ae00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x1002ae66
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1002afff
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.1002a280
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x1002afd1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002afb6
cmp eax, 2
jbe 0x1002af38
cmp eax, 7
jne 0x1002afb6
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1002a070
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1002af25
lea ecx, [esp + 0x20]
call fcn.1002a0f0
jmp 0x1002afd1
cmp dword [esp + 0x24], 0
je 0x1002afa6
push ecx
lea ecx, [esp + 0x24]
call fcn.1002a1b0
jmp 0x1002afa0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1002a070
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1002af90
lea ecx, [esp + 0x20]
call fcn.1002a0f0
jmp 0x1002afd1
cmp dword [esp + 0x24], 0
je 0x1002afa6
lea ecx, [esp + 0x20]
call fcn.1002a210
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.1002a0f0
jmp 0x1002afd1
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1002afff
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1002afff
cmp dword [esp + 0x238], 0xffffffff
je 0x1002afff
push ecx
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b4da
add esp, 0x440
ret 0x18
Function at 0x1002b020
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
je 0x1002b062
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
cmp dword [esp + 0x214], 0x104
jl 0x1002b09b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1002b0a7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1002b0cc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1002b0cc
cmp dword [esp + 4], 0xffffffff
je 0x1002b0cc
push edx
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4

Function at 0x1002b0f0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100433b4], 0
mov eax, dword [esp + 0x21c]
je 0x1002b132
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1002a280
cmp dword [esp + 0x214], 0x104
jl 0x1002b16b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1002b177
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1002b19c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1002b19c
cmp dword [esp + 4], 0xffffffff
je 0x1002b19c
push edx
call fcn.1002dbf2
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002b4da
add esp, 0x218
ret 4