joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a0e
Capabilities:
Persist via run registry key

Disassembly:
push 0x34
mov eax, 0x426ecb
call fcn.00423fbc
xor ebx, ebx
push ebx
push ebx
push 2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], bl
call fcn.0040a343
mov dword [ebp - 4], ebx
mov esi, 0x2001f
push esi
lea edi, [ebp - 0x2c]
call fcn.0040a5c6
test eax, eax
jne 0x405a5f
push ebx
mov ecx, 0x42b814
lea edx, [ebp - 0x18]
mov ebx, edi
call fcn.0040a69e
test eax, eax
jne 0x405a5d
cmp dword [ebp - 0x18], eax
jbe 0x405a5d
mov byte [ebp - 0xd], 1
xor ebx, ebx
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x40]
push eax
mov ecx, SysFreeString
call fcn.0040a3a7
mov byte [ebp - 4], 2
push esi
lea edi, [ebp - 0x40]
call fcn.0040a5c6
test eax, eax
je 0x405a97
push 0xf003f
call fcn.0040a614
push ebx
mov esi, 0x42b83c
mov ecx, esi
lea ebx, [ebp - 0x14]
lea edi, [ebp - 0x40]
call fcn.0040a754
test eax, eax
jne 0x405ab2
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xd], 0
je 0x405afd
cmp byte [ebp - 0xe], 0
je 0x405aec
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a3e3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406458
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040a3e3
mov al, bl
call fcn.00424094
ret
push 0x42b814
lea edi, [ebp - 0x2c]
call fcn.0040aa2c
xor bl, bl
jmp 0x405ac0
push 0x42b814
push 1
lea edi, [ebp - 0x2c]
call fcn.0040a9ad
push esi
push 0x42d25c
lea edi, [ebp - 0x40]
call fcn.0040a9e7
jmp 0x405abe
Function at 0x405b1c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x480
mov eax, 0x4274c2
call fcn.00424025
xor ebx, ebx
push ebx
push ebx
push 2
lea ecx, [ebp - 0x48c]
call fcn.0040a343
mov dword [ebp - 4], ebx
push 0x20019
lea edi, [ebp - 0x48c]
call fcn.0040a5c6
test eax, eax
jne 0x405b8d
push ebx
mov ecx, str.SkipMigratorRebootCheck
lea edx, [ebp - 0x438]
mov ebx, edi
call fcn.0040a69e
test eax, eax
jne 0x405b8b
cmp dword [ebp - 0x438], eax
jbe 0x405b8b
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.0040a3e3
mov al, bl
call fcn.004240a8
ret
xor ebx, ebx
push str.SystemCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x478]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, esi
call fcn.0040a3a7
mov byte [ebp - 4], 1
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push edi
lea eax, [ebp - 0x450]
push eax
mov ecx, esi
call fcn.0040a3a7
mov byte [ebp - 4], 2
push edi
lea eax, [ebp - 0x464]
push eax
mov ecx, SysFreeString
call fcn.0040a3a7
mov byte [ebp - 4], 3
mov esi, 0x20019
push esi
lea edi, [ebp - 0x464]
call fcn.0040a5c6
test eax, eax
jne 0x405c4c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x460]
mov dword [ebp - 0x434], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x405c4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a3e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a3e3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a3e3
mov bl, 1
jmp 0x405b74
push esi
lea edi, [ebp - 0x450]
call fcn.0040a5c6
test eax, eax
jne 0x405cd5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push dword [ebp - 0x44c]
mov dword [ebp - 0x43c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x405cd5
push 0x20006
call fcn.0040a5c6
test eax, eax
je 0x405c19
call fcn.00405a0e
mov byte [ebp - 0x429], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a3e3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0040a3e3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a3e3
mov bl, byte [ebp - 0x429]
jmp 0x405b74
mov dword [ebp - 0x430], ebx
mov byte [ebp - 4], 4
push esi
lea edi, [ebp - 0x478]
call fcn.0040a5c6
test eax, eax
jne 0x405d38
push ebx
mov ecx, str.PendingFileRenameOperations
lea ebx, [ebp - 0x430]
call fcn.0040a754
test eax, eax
jne 0x405d36
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.00406458
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a3e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a3e3
mov byte [ebp - 4], 0
jmp 0x405c3a
xor ebx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x430]
call fcn.00406458
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0040a3e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a3e3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x478]
call fcn.0040a3e3
jmp 0x405b74
Function at 0x40650e
Capabilities:
Hide graphical window

Disassembly:
push 8
mov eax, 0x4265c1
call fcn.00423fbc
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x408
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3ea
push dword [edi + 4]
call ebx
push eax
call esi
push dword [0x439254]
lea esi, [ebp - 0x14]
push 0x81
call fcn.00406319
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push eax
push 0
push 0xc
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 1
push 2
push dword [edi + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push 2
push dword [edi + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 8], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406458
call fcn.00424094
ret

Function at 0x406b5f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 8], 0
je 0x406b96
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3f1
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3ec
push dword [esi + 4]
call edi
push eax
call ebx
pop edi
pop ebx
push 0
push dword [ebp + 8]
push 0x402
push 0x3e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
pop ebp
ret 4
Function at 0x408db2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c5a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1144
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x1140], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x1158]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x93c]
push eax
call fcn.004095d6
xor ebx, ebx
mov dword [esp + 0x1160], ebx
cmp esi, ebx
je 0x408e73
push 1
lea ebx, [esp + 0x1c]
call fcn.00408a5b
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov byte [esp + 0x1160], 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x93c]
mov edi, eax
je 0x408e51
push eax
call fcn.004062b2
push edi
mov ecx, eax
lea edx, [esp + 0x940]
call fcn.004099ae
xor ebx, ebx
mov byte [esp + 0x1160], bl
cmp dword [esp + 0x14], ebx
je 0x408e69
lea ecx, [esp + 0x14]
call fcn.00407ca7
push ebx
mov ecx, esi
call fcn.004088b8
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x408f25
call fcn.0040f862
push eax
push 0x2d53
lea eax, [esp + 0x24]
push eax
call fcn.00409562
mov byte [esp + 0x1160], 2
call fcn.0040f862
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], 0x400
mov byte [esp + 0x134], bl
mov dword [esp + 0x138], ebx
mov word [esp + 0x13c], bx
mov byte [esp + 0x1160], 3
push eax
push dword [ebp + 0xc]
lea esi, [esp + 0x134]
call fcn.00409a30
mov byte [esp + 0x1160], 4
push 0x12010
push dword [esp + 0x20]
push dword [esp + 0x134]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x1160], 2
mov eax, esi
push eax
call fcn.0040133f
mov byte [esp + 0x1160], bl
lea eax, [esp + 0x1c]
push eax
call fcn.0040133f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [esp + 0x1160], 0xffffffff
lea eax, [esp + 0x93c]
push eax
call fcn.0040133f
mov ecx, dword [esp + 0x1158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1140]
xor ecx, esp
call fcn.004147c2
mov esp, ebp
pop ebp
ret 0x14

Function at 0x409dae
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x4257fa
call fcn.00423fbc
push dword [0x4394d8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x409e04
push 0x10
call fcn.0040d2e1
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x409df1
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 0
jmp 0x409df3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ebx, eax
push eax
mov eax, 0x4394d8
call fcn.00409c99
mov esi, dword [ebx + 4]
cmp esi, edi
mov al, byte [ebp + 8]
mov byte [ebp - 0x14], al
jge 0x409e20
push 0x80070057
push 0x2e73696d
call fcn.0040639b
cmp esi, dword [ebx + 4]
jl 0x409e42
lea eax, [esi + 1]
push eax
call fcn.0040a05e
cmp esi, dword [ebx + 4]
jl 0x409e42
push 0x80070057
push 0x2e736977
call fcn.0040639b
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x14]
mov dword [ebx + esi*8], eax
mov dword [ebx + esi*8 + 4], edi
call fcn.00424094
ret 4
Function at 0x40a69e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4265e4
call fcn.00423fbc
mov edi, ecx
mov esi, edx
and dword [esi], 0
cmp byte [0x43925c], 0
je 0x40a70e
test edi, edi
je 0x40a70e
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040ad65
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push eax
call fcn.0040afee
test eax, eax
je 0x40a702
cmp dword [eax], 2
jne 0x40a702
mov eax, dword [eax + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406458
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a6fe
mov dword [eax], 4
xor eax, eax
jmp 0x40a74c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406458
mov ecx, ebx
call fcn.0040aead
test al, al
je 0x40a71e
push 2
pop eax
jmp 0x40a74c
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov eax, ebx
neg eax
push 0
lea ecx, [ebx + 4]
sbb eax, eax
push edi
and eax, ecx
push dword [eax]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, ebx
call fcn.0040abc7
call fcn.00424094
ret 4

Function at 0x40a754
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
mov dword [ebp - 0x1058], eax
call fcn.00406458
push ebx
mov edx, esi
mov ecx, edi
call fcn.0040ae39
test al, al
je 0x40a7a3
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40a79c
mov dword [eax], 1
xor eax, eax
jmp 0x40a824
mov ecx, edi
call fcn.0040aead
test al, al
je 0x40a7b3
push 2
pop eax
jmp 0x40a824
and word [ebp - 0x1054], 0
push 0x1046
lea eax, [ebp - 0x1052]
push 0
push eax
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x1058]
mov eax, edi
neg eax
push 0
lea ecx, [edi + 4]
sbb eax, eax
push esi
and eax, ecx
push dword [eax]
mov dword [ebp - 0x105c], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, edi
call fcn.0040abc7
mov esi, eax
test esi, esi
jne 0x40a822
lea eax, [ebp - 0x1054]
push eax
mov ecx, ebx
call fcn.00407b20
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004147c2
leave
ret 4
Function at 0x40a833
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4272f7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1064
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [eax - 4], ebx
mov eax, dword [edi]
mov esi, ecx
mov byte [edi + 8], bl
mov word [eax], bx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1080], ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040ae39
test al, al
je 0x40a8d4
mov esi, dword [esp + 0x14]
call fcn.0040626b
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a8cd
lea ecx, [esp + 0x14]
call fcn.00407ca7
xor eax, eax
jmp 0x40a987
mov ecx, esi
call fcn.0040aead
test al, al
je 0x40a8fe
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a8f6
lea ecx, [esp + 0x14]
call fcn.00407ca7
push 2
pop eax
jmp 0x40a987
push 0x1046
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00414b10
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
mov eax, esi
add esi, 4
neg eax
push ebx
push dword [esp + 0x28]
sbb eax, eax
and eax, esi
push dword [eax]
mov dword [esp + 0x38], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x1c]
call fcn.0040abc7
mov esi, eax
cmp esi, ebx
jne 0x40a96e
lea eax, [esp + 0x24]
cmp eax, dword [edi]
je 0x40a96e
push eax
call fcn.004062b2
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov edx, edi
call fcn.004099ae
or dword [esp + 0x1080], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x40a985
lea ecx, [esp + 0x14]
call fcn.00407ca7
mov eax, esi
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1060]
xor ecx, esp
call fcn.004147c2
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa8a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4272be
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, edx
xor edi, edi
push edi
mov esi, ecx
mov dword [esp + 0x20], ebx
call fcn.0040804c
mov esi, dword [esi + 4]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push edi
push esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x40aba1
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
cmp dword [esp + 0x14], eax
jle 0x40ab23
mov edi, dword [esp + 0x14]
push 1
call fcn.00413767
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.00414b10
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x14], edi
jbe 0x40aba1
push 0x104
lea eax, [esp + 0x28]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40ab9a
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00407b20
mov dword [esp + 0x240], edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
call fcn.00407f4a
or dword [esp + 0x240], 0xffffffff
cmp dword [esp + 0x18], edi
je 0x40ab9a
lea ecx, [esp + 0x18]
call fcn.00407ca7
inc esi
cmp esi, dword [esp + 0x14]
jb 0x40ab43
mov al, bl
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004147c2
mov esp, ebp
pop ebp
ret

Function at 0x40abef
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74
mov eax, 0x425316
call fcn.00424025
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x7c]
push edx
push 0x20019
push ebx
push ecx
push eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40ac72
mov edi, dword [ebp - 0x7c]
push 0x62
lea eax, [ebp - 0x72]
push ebx
push eax
mov dword [ebp - 0x80], edi
mov word [ebp - 0x74], bx
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.CurVer
push edi
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ac72
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call fcn.00407b20
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], ebx
mov dword [esi], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x80], ebx
je 0x40ac8e
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406458
mov eax, esi
call fcn.004240a8
ret 4
Function at 0x40c53c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
push eax
push eax
mov ecx, ebx
or ecx, 0x8000
push ecx
push eax
mov byte [ebp - 0x211], al
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c5c8
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00407b20
push dword [esi]
lea edi, [ebp - 0x218]
call fcn.00407862
mov edi, dword [eax]
mov ecx, esi
call fcn.00406458
cmp ebx, 0x1c
mov dword [esi], edi
mov byte [ebp - 0x211], 1
je 0x40c5b9
cmp ebx, 0x23
je 0x40c5b9
cmp ebx, 0x26
jne 0x40c5c8
push edi
push str._smicrosoft_officeoffice12_
jmp 0x40c5bf
push edi
push str._smicrosoftofficegroove_
push esi
call fcn.00407b07
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x211]
xor ecx, ebp
pop edi
call fcn.004147c2
leave
ret

Function at 0x40cc33
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test esi, esi
je 0x40cc4d
mov ecx, eax
shr ecx, 4
and cl, 1
mov byte [esi], cl
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret 4
Function at 0x40d301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0xc
push ebx
push esi
push edi
mov edi, 0x9e3779b9
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, edi
mov dword [ebp - 0xc], esi
jb 0x40d40b
push 0xc
pop esi
xor edx, edx
div esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edx, edi
shl eax, 8
lea edi, [edx + eax]
movzx eax, byte [ecx + 0xb]
movzx edx, byte [ecx + 0xa]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add edx, esi
shl eax, 8
lea esi, [edx + eax]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movzx eax, byte [ecx]
shl edx, 8
add edx, eax
sub edx, esi
sub edx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
add edx, ebx
xor edx, eax
sub edi, edx
mov eax, edx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub edx, esi
sub edx, edi
mov eax, esi
shr eax, 0xc
xor edx, eax
sub edi, esi
sub edi, edx
mov eax, edx
shl eax, 0x10
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 5
xor esi, eax
sub edx, esi
mov eax, esi
shr eax, 3
sub edx, edi
xor edx, eax
sub edi, esi
mov ebx, edx
mov eax, ebx
shl eax, 0xa
sub edi, ebx
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xf
xor esi, eax
add ecx, 0xc
sub dword [ebp - 4], 0xc
dec dword [ebp - 8]
jne 0x40d332
add esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0xa
ja case.default.0x40d417
jmp dword [eax*4 + 0x40d4e5]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx eax, byte [ecx + 9]
shl eax, 0x10
add esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 4]
add edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, ebx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xc
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor esi, eax
mov eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
shr ecx, 3
xor ebx, ecx
sub edi, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 0xa
xor edi, ecx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d877
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [edi + 0xc]
call fcn.004104bb
mov esi, eax
test esi, esi
je 0x40d8f4
push esi
push edi
call fcn.0040d8f9
test al, al
je 0x40d8f4
mov eax, dword [esi + 0x3c]
and dword [ebp - 4], 0
add eax, esi
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
mov ecx, dword [edi + 0xc]
sub ecx, esi
test eax, eax
mov dword [ebp - 8], eax
jbe 0x40d8f0
lea eax, [edx + 0x10]
push ebx
mov esi, dword [eax]
mov ebx, dword [eax - 8]
cmp esi, ebx
mov edx, dword [eax - 4]
ja 0x40d8c9
mov esi, ebx
cmp ecx, edx
jb 0x40d8d3
add esi, edx
cmp ecx, esi
jbe 0x40d8e3
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
add eax, 0x28
cmp edx, dword [ebp - 8]
jb 0x40d8bb
jmp 0x40d8ef
mov eax, dword [ebp - 4]
inc eax
sub ecx, edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
pop ebx
mov al, 1
jmp 0x40d8f6
xor al, al
pop esi
leave
ret

Function at 0x40d9c2
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x42521f
call fcn.00424025
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x40d9e1
mov ebx, 0x42df54
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x40da70
call fcn.0041d1a0
mov edi, esp
push edi
push esi
push dword [ebp - 0x18]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42ca80
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40da7d
mov eax, dword [ebp - 0x1c]
cmp word [eax + 0xc], 0
je 0x40da4e
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu._hu
push eax
call fcn.00407b07
add esp, 0x18
jmp 0x40da7d
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x14]
push str._hu._02hu._hu
push eax
call fcn.00407b07
add esp, 0x14
jmp 0x40da7d
push str.0.0.0
lea ecx, [ebp - 0x14]
call fcn.00407b20
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406458
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.004240a8
ret 4