joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4068b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4068f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4068f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4068f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4068e0
cmp esi, eax
jb 0x4068fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x8010
call fcn.00444e30
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x800c], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407eee
xor al, al
mov ecx, dword [esp + 0x800c]
xor ecx, esp
call fcn.00442851
add esp, 0x8010
ret
mov edx, dword [esp]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x38], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x407ed7
mov eax, dword [esp + 4]
test eax, eax
jbe 0x407ed7
push esi
xor esi, esi
push edi
test eax, eax
jbe 0x407f9c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x20]
push esi
push eax
mov dword [esp + 0x30], 0x3fff
call edi
test eax, eax
jne 0x407f95
mov ecx, str.50215
lea eax, [esp + 0x14]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f8b
test dx, dx
je 0x407f87
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f8b
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f65
xor eax, eax
jmp 0x407f90
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x407fb5
inc esi
cmp esi, dword [esp + 0xc]
jb 0x407f33
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x800c]
xor ecx, esp
call fcn.00442851
add esp, 0x8010
ret
mov ecx, dword [esp + 0x8014]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00442851
add esp, 0x8010
ret
Function at 0x409920
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45bd7b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
cmp ebx, ebp
je 0x409a96
xor eax, eax
mov word [ebx], ax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x238], ebp
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push str.SOFTWAREMicrosoftMicrosoft_SQL_ServerInstance_NamesSQL
push 0x80000002
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x409a87
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, 0x2c
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
mov word [esp + 0x26], ax
mov word [esp + 0x24], cx
xor edi, edi
mov esi, 0x800
jmp 0x4099d2
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x38]
push eax
xor edx, edx
lea ecx, [esp + 0x40]
push ecx
mov word [esp + 0x44], dx
mov edx, dword [esp + 0x30]
push edi
push edx
mov dword [esp + 0x48], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebp, eax
test ebp, ebp
jne 0x409a50
push esi
lea eax, [esp + 0x30]
push eax
push 0x800
push ebx
call fcn.0044317d
lea eax, [esp + 0x3c]
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a20
sub eax, edx
sar eax, 1
sub esi, eax
cmp esi, 1
jle 0x409a50
push esi
lea ecx, [esp + 0x28]
push ecx
push 0x800
push ebx
call fcn.0044317d
dec esi
add esp, 0x10
inc edi
test esi, esi
jg 0x4099d0
cmp ebp, 0x103
sete bl
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409a7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov al, bl
jmp 0x409a98
mov dword [esp + 0x238], 0xffffffff
mov dword [esp + 0x20], ebp
xor al, al
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00442851
add esp, 0x228
ret
Function at 0x409cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45bd48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0xc]
push eax
push 0x20019
push esi
push ecx
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x409d7e
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x409d7e
cmp dword [esp + 0x10], 4
jne 0x409d7e
mov dword [esp + 0x24], 0xffffffff
cmp edi, esi
je 0x409d7a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov al, 1
jmp 0x409d97
mov dword [esp + 0x24], 0xffffffff
cmp edi, esi
je 0x409d95
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
xor al, al
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x40a1c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
push ebx
push esi
push edi
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0x40a280
push 0
push 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [esp + 0x10], eax
push 0x5ff
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x40a257
push eax
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40a207
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call ebx
push 1
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x40a234
jmp 0x40a207
test eax, eax
jne 0x40a207
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
xor eax, eax
cmp dword [esp + 0x14], eax
pop edi
pop esi
sete al
pop ebx
add esp, 0x38
ret
Function at 0x40af60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45dde0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.00406730
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406730
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x40afc9
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00406b50
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push eax
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x40b0fb
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x40b0fb
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x40b020
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00406b50
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x40b0fb
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x40b0fb
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [edx + eax*2], cx
lea ecx, [esp + 0x28]
call fcn.0042ef2c
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x14]
call fcn.0042ef2c
mov byte [esp + 0x44], 3
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0042f1dc
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0042f1dc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0040b110
add esp, 8
mov bl, al
mov byte [esp + 0x44], 2
lea ecx, [esp + 0x14]
call fcn.0042f0e3
mov byte [esp + 0x44], 1
lea ecx, [esp + 0x28]
call fcn.0042f0e3
mov byte [esp + 0x44], 0
lea ecx, [esp + 0xc]
call fcn.00406ed0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x3c
ret
push 0x80070057
call fcn.00406f30
int3
Function at 0x40b720
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b73b
and eax, 0xfffffffe
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret

Function at 0x40b740
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45c7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0xc]
call fcn.00406730
mov dword [esp + 0x34], 0
mov eax, dword [esp + 8]
cmp dword [eax - 4], 1
jle 0x40b795
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00406b50
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x40b895
mov ecx, dword [esp + 8]
cmp eax, dword [ecx - 8]
jg 0x40b895
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
xor edx, edx
push 1
mov word [ecx + eax*2], dx
push 0x46b8e0
lea ecx, [esp + 0x10]
call fcn.00406510
lea edx, [esp + 8]
push edx
call fcn.0040bb80
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
call fcn.0042f665
test eax, eax
je 0x40b83f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x40b83f
call fcn.0042f665
test eax, eax
je 0x40b836
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40b838
xor eax, eax
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
mov eax, 0x10
push ecx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 8]
call fcn.00406ed0
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x30
ret
push 0x80070057
call fcn.00406f30
int3
Function at 0x40bce0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45f2b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40bd2e
push 0x104
mov ecx, esi
call fcn.00406c20
mov edi, dword [esi]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40bd64
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x40be22
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40be22
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push 9
mov word [ecx + eax*2], dx
push str.Firewall_
mov ecx, esi
call fcn.00406510
push ebp
lea eax, [esp + 0x18]
push str.Copy
push eax
call fcn.00406220
add esp, 0xc
mov dword [esp + 0x20], 0
push str._to
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x20], 1
push esi
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x20], 2
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00411500
mov byte [esp + 0x20], 1
lea ecx, [esp + 0xc]
call fcn.00406ed0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00406ed0
push esi
push ebp
call fcn.0040af60
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x18
ret
push 0x80070057
call fcn.00406f30
int3
Function at 0x40e5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45db40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 4
lea ecx, [esp + 0xc]
call fcn.00406fc0
mov byte [esp + 0x28], 5
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0xc]
call fcn.0040f200
test eax, eax
jne 0x40e655
mov byte [esp + 0x28], 4
mov ecx, esi
call fcn.00406ed0
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x28], 2
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x3c]
call fcn.00406ed0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x44]
call fcn.00406ed0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.00406ed0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 0x20
mov eax, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00406730
mov byte [esp + 0x30], 6
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.00406730
mov byte [esp + 0x34], 7
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00406730
mov byte [esp + 0x38], 8
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00406730
mov byte [esp + 0x3c], 9
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00406730
mov byte [esp + 0x40], 0xa
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00406730
mov byte [esp + 0x44], 0xb
mov ecx, dword [esp + 0x4c]
push ecx
mov byte [esp + 0x48], 5
call fcn.0040e760
mov esi, eax
mov byte [esp + 0x28], 4
lea ecx, [esp + 0xc]
call fcn.00406ed0
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x34]
call fcn.00406ed0
mov byte [esp + 0x28], 2
lea ecx, [esp + 0x38]
call fcn.00406ed0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x3c]
call fcn.00406ed0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x44]
call fcn.00406ed0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 0x20
Function at 0x40eca0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x45bc88
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x228], 4
lea eax, [esp + 0xc]
push eax
push 0x468718
push 1
xor edi, edi
push edi
push 0x468728
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ede1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x230]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x234]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x23c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x40ed59
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x468738
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40edd5
mov ecx, dword [esp + 0x238]
push ecx
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004438af
mov ecx, dword [esp + 0x24c]
add esp, 0xc
cmp dword [ecx - 0xc], edi
je 0x40edad
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x244]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x40edc9
mov edi, 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x228], 3
lea ecx, [esp + 0x230]
call fcn.00406ed0
mov byte [esp + 0x228], 2
lea ecx, [esp + 0x234]
call fcn.00406ed0
mov byte [esp + 0x228], 1
lea ecx, [esp + 0x238]
call fcn.00406ed0
mov byte [esp + 0x228], 0
lea ecx, [esp + 0x23c]
call fcn.00406ed0
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 0x240]
call fcn.00406ed0
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00442851
add esp, 0x220
ret 0x18
Function at 0x40f200
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40f2b4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40f2b4
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f270
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00406cd0
push 1
push 0x46c1d4
mov ecx, esi
call fcn.00406510
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00442851
add esp, 0x214
ret
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.00442851
add esp, 0x214
ret
Function at 0x4102d0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x45d8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 8], 0
push ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00406e00
mov dword [esp + 0x220], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00442851
add esp, 0x220
ret

Function at 0x410960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f069
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x10], 0
call fcn.00416a90
mov edi, eax
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00410440
mov byte [esp + 0x30], 2
push str._INFORMATION_
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00406150
mov byte [esp + 0x3c], 3
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004060a0
mov byte [esp + 0x48], 4
push str.chmA_Install.chm
push eax
push esi
call fcn.00406150
add esp, 0x2c
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov byte [esp + 0x28], 2
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x410f00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45d6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x424], eax
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44c]
lea ebp, [ebx + 4]
mov ecx, ebp
mov dword [esp + 0x20], ebx
mov dword [ebx], eax
call fcn.00406fc0
mov dword [esp + 0x444], 0
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.00444db0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x410f93
push 3
push 0x46c328
jmp 0x410fb5
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410fa0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00406cd0
push 0xc
push str.klaes_setup_
mov ecx, ebp
call fcn.00406510
push 0
call fcn.00443d1d
mov dword [esp + 0x20], edx
add esp, 4
lea edx, [esp + 0x18]
push edx
mov esi, str._Y__m__d___H__M
lea edi, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00411f90
mov byte [esp + 0x444], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.00406510
mov byte [esp + 0x444], 0
mov ecx, edi
call fcn.00406ed0
push 4
push str..log
mov ecx, ebp
call fcn.00406510
mov dword [esp + 0x444], 0xffffffff
mov eax, ebx
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00442851
add esp, 0x438
ret 4