joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e6c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401e76
repz ret
jmp fcn.00402193

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x408773
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x417160]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x1ac], eax
lea eax, [ebp - 0x6c]
push eax
mov ebx, 0x20019
push ebx
xor esi, esi
push esi
push str.SoftwareMicrosoftOffice9.0CommonLanguageResources
push 0x80000001
mov dword [ebp - 0x74], esi
call edi
test eax, eax
jne 0x4087ec
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0x403288
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], esi
je 0x4088c2
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push str.SoftwareMicrosoftOffice8.0
push 0x80000002
call edi
test eax, eax
jne 0x4088c2
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push str.SoftwareMicrosoftMS_Setup__ACME_Table_Files
push 0x80000002
call edi
test eax, eax
jne 0x4088c2
movzx eax, word [ebp + 0x1b8]
push eax
lea eax, [ebp + 0x1a0]
push 0x403280
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x70], esi
mov ebx, 0x104
push esi
jmp 0x4088a1
lea eax, [ebp - 0x68]
push str.Office_97
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x40888f
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x4088af
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], ebx
call edi
test eax, eax
je 0x408863
jmp 0x4088b9
movzx eax, word [ebp + 0x1b8]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1ac]
mov ax, word [ebp - 0x74]
pop edi
pop esi
pop ebx
call fcn.00414aad
add ebp, 0x1b0
leave
ret 4
Function at 0x408d08
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403980
push ebx
mov esi, ecx
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x408d2d
mov dword [esi + 8], 0x408be8
push 0x40396c
push ebx
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x408d43
mov dword [esi + 0xc], 0x408bde
push 0x403958
push ebx
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x408d59
mov dword [esi + 0x10], 0x408bde
push 0x403948
push ebx
call edi
test eax, eax
mov dword [esi + 0x14], eax
jne 0x408d6f
mov dword [esi + 0x14], 0x408bed
push 0x403930
push ebx
call edi
test eax, eax
mov dword [esi + 0x18], eax
jne 0x408d85
mov dword [esi + 0x18], 0x408bed
push 0x403918
push ebx
call edi
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x408d9b
mov dword [esi + 0x1c], 0x408be8
push 0x403904
push ebx
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x408db1
mov dword [esi + 0x20], fcn.00408cab
push 0x4038f0
push ebx
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x408dc7
mov dword [esi + 0x24], fcn.00408cab
push 0x4038e0
push ebx
call edi
test eax, eax
mov dword [esi + 0x28], eax
jne 0x408ddd
mov dword [esi + 0x28], fcn.00408cab
push 0x4038cc
push ebx
call edi
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x408df3
mov dword [esi + 0x2c], fcn.00408cab
push 0x4038bc
push ebx
call edi
test eax, eax
mov dword [esi + 0x30], eax
jne 0x408e09
mov dword [esi + 0x30], fcn.00408cab
push 0x4038a8
push ebx
call edi
test eax, eax
mov dword [esi + 0x34], eax
jne 0x408e1f
mov dword [esi + 0x34], fcn.00408cab
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x408e80
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, 0x417188
call fcn.00408fbd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [esp + 8]
push dword [esp + 0xc]
push 0
call fcn.00408ea5
xor eax, eax
ret 0x10
Function at 0x408fbd
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x403b40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x408ff7
push 0x403b24
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x408ff7
mov ebx, 0x105
push ebx
push esi
call eax
jmp 0x409004
mov ebx, 0x105
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp - 0x10], edi
mov dword [esi + 0x20c], eax
je 0x409018
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x20c]
cmp eax, edi
je 0x409037
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
je 0x409037
mov word [eax], 0x5c
inc dword [esi + 0x20c]
mov eax, dword [esi + 0x20c]
mov word [esi + eax*2], di
push ebx
lea eax, [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
lea ecx, [esi + 0x41c]
mov dword [ecx], eax
mov dword [esi + 0x420], eax
je 0x409078
cmp word [esi + eax*2 + 0x20e], 0x5c
je 0x409078
mov word [esi + eax*2 + 0x210], 0x5c
inc dword [ecx]
mov eax, dword [ecx]
push 0x104
push 0x403b1c
lea ebx, [esi + 0x424]
push ebx
mov word [esi + eax*2 + 0x210], di
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x630], eax
lea eax, [esi + 0x634]
push eax
mov dword [eax], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
mov ch, byte [esi + 0x638]
lea eax, [esi + 0x640]
movzx edx, word [eax]
mov dword [ebp - 4], edi
mov cl, byte [esi + 0x63c]
shl ecx, 0x10
or ecx, edx
mov dword [eax], ecx
cmp dword [0x4177cc], 2
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
jne 0x4090f4
push 0x403a10
jmp 0x4090f9
push 0x403ac8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x409165
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 0x74c]
push eax
mov word [eax], di
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x403aa4
push dword [ebp - 4]
mov ebx, 0x20a
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call edi
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 0x956]
and word [eax], 0
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x403a74
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call edi
xor edi, edi
cmp dword [ebp - 4], edi
je 0x409173
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov dword [esi + 0xb60], eax
push 0x403a6c
add esi, 0xb64
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5a7
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor eax, eax
mov esi, ecx
and dword [esi + 0xa668], 0xfffffffc
push eax
push eax
mov dword [esi + 0xa66c], eax
call edi
mov ebx, eax
test ebx, ebx
je 0x40a69b
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40a69b
push eax
push ebx
call edi
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], eax
jbe 0x40a659
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + eax*4]
push edi
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x40a63e
push 0x105
lea ebx, [esi + 0xaecc]
push ebx
push edi
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x40a63e
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a64c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jb 0x40a604
jmp 0x40a659
or dword [esi + 0xa668], 1
mov dword [esi + 0xa66c], edi
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push 0x59
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 0xa668]
test al, 1
je 0x40a68a
mov ecx, dword [esi + 0xa66c]
cmp ecx, dword [ebp - 0xc]
jne 0x40a68a
or eax, 2
mov dword [esi + 0xa668], eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0xa66c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a6a6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x417160]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
xor esi, esi
push esi
push 0x403b80
mov edi, ecx
push 0x80000002
mov dword [edi + 0xa66c], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7d2
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a7d2
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a791
lea eax, [ebp - 0x1c]
push eax
call fcn.004091df
mov dword [ebp - 0x34], eax
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x40a791
lea eax, [ebp - 0x38]
push eax
lea ebx, [edi + 0xaecc]
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push 0x403be4
push dword [ebp - 0x24]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x38], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a791
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a791
mov eax, dword [ebp - 0x34]
mov dword [edi + 0xa66c], eax
cmp dword [ebp - 0x24], esi
je 0x40a79f
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0xa66c], esi
jne 0x40a7d1
inc dword [ebp - 0x28]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40a70e
pop ebx
cmp dword [ebp - 0x20], esi
je 0x40a7e0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 0xa66c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00414aad
leave
ret
Function at 0x40a9d6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xa64c]
cmp eax, dword [ebx + 0x644]
push ebp
push esi
push edi
jae 0x40aad5
lea ebp, [ebx + 0xaecc]
mov eax, dword [ebx + 0xa64c]
cmp eax, dword [ebx + 0x640]
jae 0x40aa10
mov eax, dword [ebx + 0x9a3c]
lea esi, [ebx + 0x9830]
jmp 0x40aa1c
mov eax, dword [ebx + 0x9c4c]
lea esi, [ebx + 0x9a40]
mov ecx, eax
mov edi, ebp
rep movsw word es:[edi], word [esi]
cmp word [ebx + eax*2 + 0xaeca], 0x5c
je 0x40aa39
mov word [ebx + eax*2 + 0xaecc], 0x5c
inc eax
mov ecx, 0x104
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0xa64c]
imul ecx, ecx, 0x20a
lea ecx, [ecx + ebx + 0x648]
push ecx
lea eax, [ebx + eax*2 + 0xaecc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40aabd
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aabd
test al, 1
je 0x40aa92
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push 0x80
push 3
lea eax, [ebx + 0xa270]
push eax
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40aadc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebx + 0xa64c]
mov eax, dword [ebx + 0xa64c]
cmp eax, dword [ebx + 0x644]
jb 0x40a9f4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push 0x105
lea esi, [ebx + 0xb0d6]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebp
push esi
add ebx, 0xb2e0
push 0x40429c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40aad7
Function at 0x40ab1d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xa650]
cmp eax, dword [ebx + 0x4808]
push ebp
push esi
push edi
jae 0x40ac00
lea ebp, [ebx + 0xaecc]
mov eax, dword [ebx + 0x9a3c]
mov ecx, eax
lea esi, [ebx + 0x9830]
mov edi, ebp
rep movsw word es:[edi], word [esi]
cmp word [ebx + eax*2 + 0xaeca], 0x5c
je 0x40ab64
mov word [ebx + eax*2 + 0xaecc], 0x5c
inc eax
mov ecx, 0x104
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0xa650]
imul ecx, ecx, 0x20a
lea ecx, [ecx + ebx + 0x480c]
push ecx
lea eax, [ebx + eax*2 + 0xaecc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40abe8
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40abe8
test al, 1
je 0x40abbd
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push 0x80
push 3
lea eax, [ebx + 0xa270]
push eax
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40ac07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebx + 0xa650]
mov eax, dword [ebx + 0xa650]
cmp eax, dword [ebx + 0x4808]
jb 0x40ab3b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push 0x105
lea esi, [ebx + 0xb0d6]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebp
push esi
add ebx, 0xb2e0
push 0x40429c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40ac02

Function at 0x40ac5b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret 8
Function at 0x40ac6e
Capabilities:
Read .ini file

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
push edi
push dword [esp + 0x20]
call ebx
push dword [esp + 0x1c]
mov esi, eax
call ebx
mov edi, 0x800
lea esi, [esi + eax + 3]
mov dword [esp + 0x10], edi
jmp 0x40ac9b
mov edi, dword [esp + 0x10]
lea eax, [esi + 2]
cmp edi, eax
jbe 0x40acfc
lea eax, [edi + edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x40ad0c
and word [ebp + 2], 0
and word [ebp], 0
push 0x403f8c
sub edi, esi
lea eax, [edi - 1]
push eax
push ebp
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
add edi, 0xfffffffd
cmp eax, edi
jb 0x40ad10
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x10]
lea eax, [edi + edi]
cmp eax, 0x8000
mov dword [esp + 0x10], eax
jbe 0x40ac97
jmp 0x40ad14
push 0xe
jmp 0x40ad16
test ebp, ebp
jne 0x40ad2a
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40adae
push ebp
call ebx
lea ebp, [ebp + eax*2 + 2]
cmp word [ebp], 0
jne 0x40ad23
mov esi, dword [esp + 0x20]
push esi
call ebx
mov ebx, eax
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebp], 0x3d
mov eax, dword [esp + 0x10]
inc ebx
sub eax, ebx
push eax
push dword [esp + 0x20]
lea eax, [ebp + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x403f8c
push dword [esp + 0x18]
add ebx, eax
lea ebx, [ebp + ebx*2]
xor esi, esi
mov word [ebx], si
push 0x4042d0
mov word [ebx + 2], si
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x40adc8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
mov ebx, ecx
je 0x40ae46
cmp word [esi], 0
je 0x40ae46
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebx + 0xaecc]
mov ecx, eax
rep movsw word es:[edi], word [esi]
cmp word [ebx + eax*2 + 0xaeca], 0x5c
je 0x40ae0a
mov word [ebx + eax*2 + 0xaecc], 0x5c
inc eax
mov ecx, 0x104
sub ecx, eax
push ecx
push dword [ebp + 8]
lea eax, [ebx + eax*2 + 0xaecc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebx + 0xaecc]
push 0
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
jne 0x40ae5f
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x40ae9b
cmp dword [0x4177cc], 2
jne 0x40ae98
push 0x105
lea esi, [ebx + 0xaecc]
push esi
push 0x404378
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 4]
call dword [ebp + 0x10]
mov esi, eax
jmp 0x40aeea
push edi
jmp 0x40ae89
cmp eax, 2
jne 0x40aebd
push dword [ebp + 8]
add ebx, 0xb2e0
push 0x404318
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
inc esi
jmp 0x40aeea
lea eax, [ebx + 0xaecc]
push eax
lea eax, [ebx + 0xb0d6]
push eax
lea esi, [ebx + 0xb2e0]
push 0x4042e0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
mov ecx, ebx
call fcn.0040a35f
xor esi, esi
cmp dword [ebp - 4], edi
je 0x40aef8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10