joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101641e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1005e30
call fcn.010166d8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x101645b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101645b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1016473
cmp eax, 0x20b
je 0x1016460
mov dword [ebp - 0x1c], ebx
jmp 0x1016487
cmp dword [ecx + 0x84], 0xe
jbe 0x101645b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1016481
cmp dword [ecx + 0x74], 0xe
jbe 0x101645b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1031620], 0xffffffff
or dword [0x1031624], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x102fe10]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102fe0c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1031628], eax
call fcn.01016680
cmp dword [0x102e100], ebx
jne 0x10164e2
push fcn.01016680
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01016669
push 0x102e020
push 0x102e01c
call sub.msvcrt.dll__initterm
mov eax, dword [0x102fe08]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102fe04]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x102e018
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1016578
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101654c
cmp al, 0x22
jne 0x101653e
cmp byte [esi], 0x22
jne 0x1016555
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101655f
cmp al, 0x20
jbe 0x1016551
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1016583
movzx eax, word [ebp - 0x50]
jmp 0x1016586
cmp byte [esi], 0x20
jbe 0x1016555
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1016578
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10165a3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10165d8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01016713
ret
Function at 0x1016c3a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102e0fc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
test ecx, ecx
je 0x1016c97
push 0x103
push ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
push 0x5c
lea eax, [ebp - 0x108]
push eax
call fcn.0101699c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1016c95
test al, 0x10
je 0x1016c95
xor eax, eax
inc eax
jmp 0x1016c97
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01016306
leave
ret 4
Function at 0x1018677
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x101875d
cmp dword [ebp + 0xc], ebx
je 0x101875d
push esi
lea eax, [ebp - 4]
push eax
push 3
push ebx
mov esi, 0x1006308
push esi
push 0x80000002
call fcn.0102b456
cmp eax, ebx
je 0x10186c9
lea eax, [ebp - 4]
push eax
push 3
push ebx
push esi
push 0x80000001
call fcn.0102b456
mov esi, eax
cmp esi, ebx
jne 0x101871d
push edi
push dword [ebp + 0xc]
push 0x10062fc
push dword [ebp - 4]
call fcn.0101790b
mov edi, eax
cmp edi, ebx
je 0x101870a
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call fcn.0102b543
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x101870f
mov esi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop edi
je 0x1018740
jle 0x101872b
and esi, 0xffff
or esi, 0x80070000
push esi
push dword [ebp + 8]
push 0x10062b8
push 2
call fcn.01027d6c
add esp, 0x10
jmp 0x1018758
push 0x1006294
push 5
call fcn.01027d32
or dword [0x102ff28], 1
mov esi, 0xd2af9
mov eax, esi
pop esi
jmp 0x1018762
mov eax, 0x80004003
pop ebx
leave
ret 8
Function at 0x1018d06
Capabilities:
Get common file path
Get file size
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x102e0fc]
push esi
push edi
xor esi, esi
push esi
push 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], esi
call fcn.01016ef9
test eax, eax
je 0x1018da9
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1018df4
push 0x1006620
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01018201
test eax, eax
jl 0x1018df4
push esi
push 0x8000080
push 3
push esi
push esi
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1018df4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x10c], eax
jne 0x1018da0
mov dword [ebp - 0x10c], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1018df4
lea eax, [ebp - 0x110]
push eax
push 1
push esi
push 0x10065ec
push 0x80000002
mov dword [ebp - 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1018df4
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push esi
push 0x10065d0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
call fcn.01016306
leave
ret
Function at 0x1019e23
Capabilities:
Create directory
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x102e0fc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push 0x20007
push ebx
push 0x10028f8
push 0x80000002
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x110], ebx
call fcn.0102b456
xor esi, esi
inc esi
test eax, eax
mov edi, 0x104
jne 0x1019ef9
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x1006ba0
push dword [ebp - 0x110]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1019eed
cmp dword [ebp - 0x118], 2
je 0x1019ec3
cmp dword [ebp - 0x118], esi
jne 0x1019eed
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1019ecc
sub eax, edx
mov dword [ebp - 0x124], eax
jne 0x1019eed
push 0x10028d0
push dword [ebp - 0x110]
call fcn.0102b3ea
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1019f59
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1019f2a
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1019f51
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x1019f51
push dword [ebp - 0x114]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x11c], ebx
jne 0x1019f7d
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1019fc8
push 0x1006b84
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01018201
lea esi, [ebp - 0x108]
mov eax, esi
push eax
call fcn.01016c3a
test eax, eax
jne 0x1019fc8
cmp byte [ebp - 0x108], bl
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x1019fbe
cmp byte [esi], 0x5c
jne 0x1019fb1
push ebx
lea eax, [ebp - 0x108]
push eax
mov byte [esi], bl
call edi
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], bl
jne 0x1019f9d
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
je 0x1019fd8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016306
leave
ret
Function at 0x1028166
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102e0fc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
push 0x23
push esi
mov dword [ebp - 0x214], esi
xor ebx, ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
cmp edi, esi
jl 0x10281f9
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x210], esi
call fcn.0102bc3c
test eax, eax
je 0x10281c2
inc ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x10281f5
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x10281f5
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jne 0x1028234
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102bcd1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x20c]
push 0x100c280
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.01016ca8
test eax, eax
je 0x1028248
xor edi, edi
jmp 0x102826b
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102a481
lea eax, [ebp - 0x20c]
push eax
call fcn.01016ca8
test eax, eax
je 0x1028267
xor edi, edi
cmp edi, esi
jne 0x10282a1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
shr esi, 1
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
cmp esi, eax
pop ecx
jbe 0x102829c
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
jmp 0x10282a1
mov edi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01016306
leave
ret 8
Function at 0x102890f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x1028924
xor eax, eax
inc eax
jmp 0x10289a6
call fcn.01016fd7
test eax, eax
je 0x10289a6
push edi
push ebx
push ebx
push ebx
push 5
call fcn.01018b10
test eax, eax
push 0x100c374
je 0x10289a9
call fcn.0102ad9f
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x102897b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 3
push eax
call edi
push 4
push dword [esi + 0x14]
mov dword [esi], eax
call edi
push 0x100c360
push dword [esi + 0x14]
mov dword [esi + 4], eax
call edi
push 5
push dword [esi + 0x14]
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10289a0
cmp dword [esi], ebx
je 0x1028995
cmp dword [esi + 4], ebx
je 0x1028995
cmp dword [esi + 8], ebx
je 0x1028995
cmp dword [esi + 0xc], ebx
jne 0x10289e1
cmp eax, ebx
je 0x10289a0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x14], ebx
xor eax, eax
pop edi
pop esi
pop ebx
ret
call fcn.0102ad9f
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x10289d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 8
push eax
call edi
push 0x100c360
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10289a0
cmp dword [esi + 0x10], ebx
je 0x1028995
cmp dword [esi + 8], ebx
je 0x1028995
xor eax, eax
inc eax
jmp 0x10289a5

Function at 0x102a481
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102a49f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x102a4e1
cmp dword [ebp + 8], 0
jne 0x102a4a9
xor eax, eax
jmp 0x102a4e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01028afc
neg eax
sbb eax, eax
and eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x102a5a1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102a5bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x102a5f9
xor eax, eax
cmp dword [ebp + 8], eax
je 0x102a5f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01028afc
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4
Function at 0x102a607
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102a62c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x102a6bd
cmp dword [ebp + 8], 0
jne 0x102a639
xor eax, eax
jmp 0x102a6bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01028afc
mov ebx, dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
lea edi, [ebx + ebx]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov dword [ebp + 8], esp
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x102a6ac
cmp esi, edi
jae 0x102a697
mov edi, esi
push edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.01028b22
cmp esi, eax
jae 0x102a6bb
mov esi, eax
jmp 0x102a6bb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x102a6bb
test ebx, ebx
jbe 0x102a6bb
and word [eax], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x102a90d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102a92c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x102a970
mov edi, dword [ebp + 8]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x102a95f
cmp edi, eax
jb 0x102a970
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01028b22
jmp 0x102a970
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x102a96e
test edi, edi
jbe 0x102a96e
and word [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102a97f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102a99a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x102a9db
cmp dword [ebp + 8], 0
jne 0x102a9a5
or eax, 0xffffffff
jmp 0x102a9db
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01028afc
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4
Function at 0x102a9e9
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102aa0c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x102aa54
cmp dword [ebp + 8], 0
jne 0x102aa16
xor eax, eax
jmp 0x102aa54
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01028afc
push dword [ebp + 0x14]
neg eax
push dword [ebp + 0x10]
sbb eax, eax
push dword [ebp + 0xc]
and eax, edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x102ab35
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102ab65
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x102aceb
cmp dword [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x102ab77
and dword [ebp - 8], 0
jmp 0x102aba5
push dword [ebp + 8]
call esi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
push ebx
call fcn.01028afc
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x102abb1
and dword [ebp - 4], 0
jmp 0x102abdf
push dword [ebp + 0xc]
call esi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0xc]
push ebx
call fcn.01028afc
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x102ac13
push dword [ebp + 0x10]
call esi
lea ebx, [eax + eax + 2]
lea eax, [ebx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x10]
push edi
call fcn.01028afc
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, edi
cmp dword [ebp + 0x1c], 0
jne 0x102ac1d
xor esi, esi
jmp 0x102ac4a
push dword [ebp + 0x1c]
call esi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0x1c]
push edi
call fcn.01028afc
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [ebp + 0x18]
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov eax, esp
push esi
lea esi, [edi + edi]
push esi
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
push dword [ebp - 8]
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x14]
call fcn.01028b22
test eax, eax
jne 0x102ace8
mov eax, edi
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0x10]
push ebx
call fcn.01028b22
test eax, eax
je 0x102ace8
xor eax, eax
cmp dword [ebp + 8], eax
je 0x102acce
cmp dword [ebp + 0xc], eax
je 0x102acce
push edi
push ebx
push dword [ebp + 0x14]
mov word [esi + ebx - 2], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [edi - 1]
jmp 0x102aceb
push edi
push ebx
push dword [ebp + 0x14]
mov word [esi + ebx - 2], ax
mov word [ebx + edi*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [edi - 2]
jmp 0x102aceb
mov eax, dword [ebp + 0x1c]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x102acfa
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102ad1b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x102ad90
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
jne 0x102ad36
cmp dword [ebp + 8], esi
je 0x102ad36
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x102ad90
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push esi
call edi
cmp eax, esi
mov dword [ebp - 8], eax
je 0x102ad8d
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x102ad8d
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp + 8]
jbe 0x102ad75
mov dword [ebp - 4], eax
jmp 0x102ad8d
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
call fcn.01028b22
cmp eax, esi
mov dword [ebp - 4], eax
je 0x102ad8d
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x102af73
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102af95
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x102b00c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 8], esi
je 0x102afcf
push dword [ebp + 8]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push ebx
call fcn.01028afc
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x102b001
push dword [ebp + 0xc]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0xc]
push ebx
call fcn.01028afc
neg eax
sbb eax, eax
and eax, ebx
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x102b01b
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0102a3d1
test al, al
je 0x102b03a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x102b0ae
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 8], esi
je 0x102b074
push dword [ebp + 8]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push ebx
call fcn.01028afc
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x102b0a6
push dword [ebp + 0xc]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0xc]
push ebx
call fcn.01028afc
neg eax
sbb eax, eax
and eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102b1b4
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
call fcn.0102a3d1
test al, al
je 0x102b1d7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x102b20b
mov eax, dword [ebp + 0x14]
add eax, 3
and eax, 0xfffffffc
call fcn.01016610
mov esi, esp
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x102b20b
push 0xffffffffffffffff
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.01028b22
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0x10