joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009d200
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1012df8f
call fcn.10123694
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10169ee4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100990c2
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100894ce
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003dd22
pop ecx
pop ecx
push eax
call fcn.1003dd22
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.MSVCR120.dll_memset
push edi
mov ecx, ebx
call fcn.1003dd22
add esp, 0x18
test al, al
je 0x1009d273
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
mov byte [ebp - 4], bl
call fcn.1008950a
mov eax, esi
call fcn.10123662
ret 8

Function at 0x1009d40f
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1012e000
call fcn.10123694
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.1007dcd0
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.100893a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.1003dd22
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1009d4aa
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1009d4aa
mov eax, dword [edi + 8]
cmp dword [ebp - 0x10], eax
je 0x1009d4ac
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1008950a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1007de05
mov al, bl
call fcn.10123662
ret 8
Function at 0x10107d92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x10107e15
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x10107ddf
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x10107ddf
cmp edi, ebx
jge 0x10107ddf
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x10107e0f
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x10107e0f
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
push 1
push dword [esi + 0x20]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
jmp 0x10107e27
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x10108001
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
mov eax, dword [ebp + 8]
je 0x10108029
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10108043
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1003dd22
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1012364c
mov esp, ebp
pop ebp
ret 4

Function at 0x101081ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10108220
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10108286
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1003dd22
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1003dd22
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1003dd22
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012364c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10108299
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x101082c5
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x101082f6
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x101082f4
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1003dd22
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x101082f6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1012364c
mov esp, ebp
pop ebp
ret 8
Function at 0x10114cb5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x254], edi
je 0x10114d11
cmp dword [eax + 0x264], edi
je 0x10114df3
cmp byte [0x107ac69c], 0
push eax
push dword [eax + 0x250]
je 0x10114cfe
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10114d04
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x264], eax
jmp 0x10114df3
mov eax, dword [eax + 0x25c]
test eax, eax
je 0x10114e84
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy]
mov eax, dword [esi]
pop ecx
pop ecx
cmp dword [eax + 0x260], edi
je 0x10114d5d
lea eax, [ebp - 0x234]
push eax
call fcn.1003dd22
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat]
add esp, 0xc
mov ecx, dword [esi]
mov eax, 0x80
push 0x10
pop edx
test byte [ecx + 0x268], 1
cmovne eax, edx
mov dword [ecx], eax
cmp byte [0x107ac69c], 0
je 0x10114d8d
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10114daf
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.1003dd22
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10114ddb
mov dword [eax + 0x250], edi
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [eax + 0x254], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10114df3
mov dword [esi + 4], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
je 0x10114e15
cmp byte [0x107ac69c], 0
jne 0x10114e15
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.1003dd22
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [eax + 0x26c], ecx
xor ecx, ecx
mov ebx, dword [esi]
inc ecx
mov edi, dword [ebx + 0x26c]
shr edi, 4
and edi, ecx
je 0x10114e4d
push esi
xor edi, edi
call fcn.1003dd22
cmp word [eax], 0x2e
je 0x10114e48
test byte [ebx + 0x268], 3
jne 0x10114e57
xor edi, edi
inc edi
jmp 0x10114e57
test byte [ebx + 0x268], 1
cmovne edi, ecx
cmp dword [ebx + 0x264], 0
je 0x10114e75
test edi, edi
jne 0x10114cce
test byte [ebx + 0x26c], 2
jne 0x10114cce
mov ecx, ebx
xor eax, eax
cmp dword [ecx + 0x264], eax
setne al
jmp 0x10114e86
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012364c
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x21c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareAlpsApointUSBMouseExceptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4010b5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov ebp, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
push eax
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x40], ebp
call ebx
test eax, eax
jne 0x40109b
cmp dword [esp + 0x18], ebp
jne 0x40108e
mov ecx, dword [esp + 0x1c]
mov dword [edi*4 + 0x410b00], ecx
add edi, 1
add esi, 1
cmp edi, 0x100
jb 0x401047
jmp 0x4010a6
mov dword [edi*4 + 0x410b00], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040282e
add esp, 0x220
ret

Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareAlpsApointUSBMouse
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40190f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [0x410f00], esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x34], 4
call ebx
lea ecx, [esp + 0x1c]
mov eax, str.BluetoothMouseEnable
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4018e6
test dx, dx
je 0x4018e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4018e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4018c0
xor eax, eax
jmp 0x4018eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4018f9
add esi, 1
cmp esi, 7
jb 0x401884
jmp 0x401903
mov ecx, dword [esp + 0x10]
mov dword [0x410f00], ecx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [esp + 0x220]
pop esi
xor ecx, esp
call fcn.0040282e
add esp, 0x220
ret
Function at 0x401cb0
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
call dword [0x411064]
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 8
push esi
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
lea edx, [esp + 0x10]
push edx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 5
push esi
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x401d24
test edi, edi
mov esi, dword [esp + 0x14]
je 0x401d1e
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d00
sub eax, edx
sar eax, 1
je 0x401d1e
mov ecx, dword [esp + 0xc]
cmp dword [ecx], ebx
jne 0x401d1e
mov ebx, 1
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
test edi, edi
je 0x401d32
mov edx, dword [esp + 0xc]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x402000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0x104
lea eax, [esp + 8]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.VXDIF.DLL
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x411054], eax
je 0x40209c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IOCTL_SetTouchPadDisable
push eax
call esi
mov dword [0x41106c], eax
mov eax, dword [0x411054]
push str.Alps_DisableTouchpad
push eax
call esi
mov ecx, dword [0x411054]
push str.Alps_MouseGetInitStatus
push ecx
mov dword [0x411068], eax
call esi
cmp dword [0x41106c], edi
mov dword [0x411070], eax
pop esi
je 0x40209c
cmp dword [0x411068], edi
je 0x40209c
test eax, eax
lea eax, [edi + 1]
jne 0x40209e
mov eax, edi
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.0040282e
add esp, 0x20c
ret
Function at 0x402300
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
call fcn.004026e0
mov esi, 0x104
lea ecx, [esp + 0x214]
movzx edx, word [eax]
test dx, dx
je 0x402340
mov word [ecx], dx
add ecx, 2
add eax, 2
sub esi, 1
jne 0x402328
jmp 0x402344
test esi, esi
jne 0x402347
sub ecx, 2
lea eax, [esp + 0xc]
mov word [ecx], 0
lea edx, [esp + 0x214]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
movzx ecx, word [edx + eax]
test cx, cx
je 0x402376
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x402360
jmp 0x40237a
test esi, esi
jne 0x40237d
sub eax, 2
lea esi, [esp + 0xc]
mov word [eax], 0
call fcn.00401980
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402406
lea eax, [esp + 0x214]
mov esi, str.C:Program_FilesApoint2K
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [ecx]
movzx ecx, word [esi + eax]
test cx, cx
je 0x4023c6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4023b0
jmp 0x4023ca
test edx, edx
jne 0x4023cd
sub eax, 2
mov word [eax], 0
lea eax, [esp + 0xc]
mov edx, str.C:Program_FilesApoint2KApoint.exe
mov ecx, eax
mov esi, 0x104
sub edx, ecx
movzx ecx, word [edx + eax]
test cx, cx
je 0x4023fa
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x4023e4
jmp 0x4023fe
test esi, esi
jne 0x402401
sub eax, 2
mov word [eax], 0
lea ebx, [esp + 0x214]
lea edi, [esp + 0xc]
call fcn.00402430
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040282e
add esp, 0x414
ret
Function at 0x402430
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x45c
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x458], eax
push ebp
push esi
xor ebp, ebp
push 0x3fe
lea eax, [esp + 0x66]
push ebp
push eax
mov word [esp + 0x6c], bp
call fcn.00404670
xor eax, eax
push 0x44
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00404670
add esp, 0x18
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x24], str.winsta0default
call fcn.00402540
mov esi, eax
cmp esi, ebp
je 0x402511
push ebp
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x402511
push ebp
push edi
push str.CreateProcessWithLowPriv___Get_Token_success__AppName_s__Cmd_s
lea edx, [esp + 0x6c]
call fcn.004025c0
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push edx
push 0x430
push ebp
push ebp
push ebp
push ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402505
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x402511
push eax
call esi
push ebp
push str.CreateProcessWithLowPriv___Ret_d
lea edx, [esp + 0x68]
call fcn.004025c0
mov ecx, dword [esp + 0x468]
add esp, 8
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040282e
add esp, 0x45c
ret

Function at 0x4025e0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SOFTWAREAlpsApoint
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402628
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40262c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
Function at 0x402640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREAlpsApoint
push 0x80000002
mov dword [esp + 0x1c], 4
call esi
test eax, eax
je 0x402690
push ebx
push edi
call fcn.004025e0
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREAlpsApoint
push 0x80000002
call esi
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop esi
je 0x4026bf
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add esp, 0xc
ret

Function at 0x4026e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00404670
mov eax, 0x411078
mov esi, 0x40da84
add esp, 0xc
mov edx, 0x104
sub esi, eax
movzx ecx, word [esi + eax]
test cx, cx
je 0x402737
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402721
jmp 0x40273b
test edx, edx
jne 0x40273e
sub eax, 2
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREAlpsApoint
push 0x80000002
mov word [eax], 0
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop esi
jne 0x4027e4
mov ecx, dword [esp]
lea edx, [esp + 4]
push edx
push 0x411078
lea eax, [esp + 0x10]
push eax
push 0
push str.HomeDirectory
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402796
mov edx, dword [esp]
push edx
jmp 0x4027de
push str._ProgramFiles_
push 0x411078
call fcn.00402df6
add esp, 8
test eax, eax
je 0x4027da
push 0x208
lea eax, [esp + 0x10]
push eax
push 0x411078
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040282e
add esp, 0x218
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, 0x411078
call fcn.0040282e
add esp, 0x218
ret

Function at 0x40282e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f004]
jne 0x402838
repz ret
jmp fcn.00403078
Function at 0x4043e7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f138]
je 0x404402
inc edi
cmp edi, 0x17
jb 0x4043f3
cmp edi, 0x17
jae 0x404582
push ebp
push 3
call fcn.00407c30
cmp eax, 1
pop ecx
je 0x40454e
push 3
call fcn.00407c30
test eax, eax
pop ecx
jne 0x404436
cmp dword [section..data], 1
je 0x40454e
cmp ebx, 0xfc
je 0x404581
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410458
push ebp
call fcn.00407bcb
add esp, 0xc
test eax, eax
je 0x40446c
push esi
push esi
push esi
push esi
push esi
call fcn.004046f4
add esp, 0x14
push 0x104
mov esi, 0x410471
push esi
push 0
mov byte [0x410575], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4044b0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407bcb
add esp, 0xc
test eax, eax
je 0x4044b0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004046f4
add esp, 0x14
push esi
call fcn.00407b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4044f5
push esi
call fcn.00407b40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41076c
push 0x40c7ec
sub ecx, eax
push ecx
push eax
call fcn.00407a86
add esp, 0x14
test eax, eax
je 0x4044f5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004046f4
add esp, 0x14
jmp 0x4044f7
xor esi, esi
push 0x40c7e8
push ebx
push ebp
call fcn.00407a15
add esp, 0xc
test eax, eax
je 0x404517
push esi
push esi
push esi
push esi
push esi
call fcn.004046f4
add esp, 0x14
push dword [edi*8 + 0x40f13c]
push ebx
push ebp
call fcn.00407a15
add esp, 0xc
test eax, eax
je 0x404539
push esi
push esi
push esi
push esi
push esi
call fcn.004046f4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407858
add esp, 0xc
jmp 0x404581
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x404581
cmp ebp, 0xffffffff
je 0x404581
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f13c]
push dword [esi]
call fcn.00407b40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret