joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov esp, dword [ebp - 0x14]
cmp esp, dword [ebp + 0x10]
jge 0x40654c
mov eax, dword [ebp - 0xc]
sub eax, 0xffffffff
and eax, 0x800000ff
jns 0x4064ac
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0xc], eax
mov esp, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
add esp, edx
and esp, 0x800000ff
jns 0x4064ce
dec esp
or esp, 0xffffff00
inc esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dl, byte [eax]
mov byte [ebp - 4], dl
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [eax], dl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov cl, byte [ebp - 4]
mov byte [edx], cl
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [eax]
add ecx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [ecx]
add edx, eax
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov cl, byte [edx]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [edx]
and eax, 0xff
xor ecx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
mov byte [eax], cl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x409800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
or esi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov edx, dword [0x40c4fc]
add edx, 0x18
cmp dword [edx], 0xffffffff
je 0x409928
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x409920
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x409851
jmp 0x409928
mov cl, byte [edx]
sub cl, 0x3c
jne 0x40985f
jmp 0x40991e
sub cl, 3
jne 0x409879
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x409919
inc cl
jne 0x40988d
movzx ecx, word [edx + 1]
add esi, ecx
add edx, 3
jmp 0x409919
inc cl
jne 0x4098a1
movzx ecx, word [edx + 1]
add esi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x4098b4
movzx ecx, byte [edx]
shr ecx, 6
add esi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x4098bf
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esi
cmp eax, dword [ebp + 0x10]
jl 0x40990f
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x4098d2
cmp byte [ebp - 0x25], 0
jne 0x40990d
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
xor edx, edx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, edx
jle 0x4098fa
inc edx
mov eax, dword [ebp - 0xc]
mov cl, byte [edx + eax]
xor cl, 0xaa
mov eax, dword [ebp + 0xc]
mov byte [edx + eax], cl
jmp 0x4098de
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
jmp 0x40992a
jmp 0x40991e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x25], 0
jmp 0x409851
jmp 0x409928
add edx, 0x10
jmp 0x409824
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44449d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [0x412070]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x4444df
lea ecx, [ebp - 4]
call fcn.0043f84a
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [0x412144]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x444500
lea ecx, [ebp - 8]
call fcn.00439485
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x444524
cmp dword [ebp - 4], ebx
je 0x4445d3
push dword [ebp - 4]
mov esi, dword [fcn.00412084]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x4445cc
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [0x412140]
mov edi, eax
test edi, edi
jne 0x444551
cmp dword [ebp - 4], ebx
mov esi, dword [fcn.00412084]
je 0x4445c8
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x4445c8
cmp word [edi], 0x5a4d
jne 0x444581
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [0x4121d8]
test eax, eax
jne 0x4445ae
cmp dword [esi], 0x4550
jne 0x4445ae
push esi
push edi
call fcn.00444457
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [fcn.00412084]
je 0x444594
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [fcn.0041213c]
cmp dword [ebp - 8], 0
je 0x4445a6
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [fcn.00412084]
je 0x4445c1
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [fcn.0041213c]
cmp dword [ebp - 8], 0
je 0x4445d3
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x4445a9
Function at 0x401240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43c618
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401279
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401279
push 0xc00
call eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00420e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4012b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x43c650
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420e80
mov esp, ebp
pop ebp
ret

Function at 0x4031e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x403153
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403171
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4031cf
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4031b6
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4031bf
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4031c9
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4031ab
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x403135
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40321c
dec eax
je 0x403213
sub eax, 3
je 0x40320a
mov dword [ebp - 4], 0x40
jmp 0x403239
mov dword [ebp - 4], 4
jmp 0x40321f
mov dword [ebp - 4], 0x20
jmp 0x40321f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40326b
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4031eb
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402a7c
and byte [esi], ch
mov ebx, dword [ecx]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x403277
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
Function at 0x404376
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402a41
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
mov byte [ebp - 0x6eb], 0xfa
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.00402a7c
dec ebx
pop eax
out 0xd0, al
lea eax, [ebp - 0x6f4]
push eax
call fcn.00402a8c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402a41
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0

Function at 0x405e4d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov esi, ecx
call fcn.00420e90
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00420e90
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017de
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405ed7
cmp dword [0x4539a4], ebx
je 0x405ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x453994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4538c8
call fcn.0040a5c4
xor eax, eax
jmp 0x405f58
mov esi, ebx
cmp dword [0x4539ac], ebx
jne 0x405ef1
push ebx
push ebx
push ebx
push ebx
push 0x43d294
call fcn.00412b6e
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x405f1c
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x405f0b
mov eax, ebx
jmp 0x405f0e
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x405f46
mov ecx, dword [0x4539a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4539a8], ecx
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40667d
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43cbc8
call fcn.00412b6e
mov dword [esi + 0x20], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4066b7
cmp dword [eax + 0x20], ebx
jne 0x4066c7
cmp edi, 2
jge 0x4066c7
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4066ab
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
pop esi
pop ebx
ret

Function at 0x407594
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x4075b7
cmp eax, 0xd
je 0x4075b7
mov eax, dword [ebp + 0xc]
jmp 0x4075bf
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x4538c8
call fcn.00417ad2
add esp, 0x10
pop ebp
ret

Function at 0x408635
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x439d62
call fcn.00421730
lea esi, [ecx + 0x124]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004017de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408754
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040186a
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013b4
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.004017de
push eax
push ebx
push 0x4400ac
lea ecx, [ebp - 0x10]
call fcn.00408dae
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040184e
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040186a
lea ecx, [ebp - 0x38]
call fcn.00414276
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040728d
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.004146fe
test eax, eax
jne 0x4086f9
mov ecx, esi
call fcn.00401451
jmp 0x408736
push 0x4400b4
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414a65
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.0040184e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0041429d
call fcn.004216fe
ret
Function at 0x408771
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x439d95
call fcn.00421730
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013b4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.004017de
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040184e
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040186a
lea ecx, [ebp - 0x2c]
call fcn.00415479
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x40881e
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415716
test eax, eax
je 0x40881e
lea ecx, [ebp - 0x2c]
call fcn.004158be
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004159d7
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040132a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040184e
lea ecx, [ebp - 0x2c]
call fcn.004156ca
jmp 0x408820
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041562a
mov eax, ebx
call fcn.004216fe
ret 4
Function at 0x408dc5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e43
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00422360
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov esi, dword [ebp + 8]
call fcn.00401451
xor ecx, ecx
lea eax, [ebp - 0x1044]
push eax
push ecx
push dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1044], ecx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x408f6a
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.00401945
push 9
xor eax, eax
mov byte [ebp - 4], 1
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.004227d6
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1048]
push eax
call fcn.00403dd6
xor esi, esi
mov dword [ebp - 0x103c], esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1048]
mov dword [ebp - 0x1040], esi
push dword [ebp - 0x1044]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x408f34
push esi
push dword [ebp - 0x1040]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x408f34
cmp dword [ebp - 0x103c], eax
je 0x408ec5
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], esi
push eax
push dword [ebp - 0x1040]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x408f34
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push esi
push eax
call fcn.00420e90
add esp, 0xc
mov dword [ebp - 0x104c], 0x800
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x103c]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x408f34
lea eax, [ebp - 0x1038]
mov ecx, ebx
push eax
call fcn.00401ec3
cmp dword [ebp - 0x103c], 0
je 0x408f48
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1040], 0
je 0x408f5c
push dword [ebp - 0x1040]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.0040184e
cmp dword [ebp - 0x1044], 0
je 0x408f7e
push dword [ebp - 0x1044]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420e80
mov esp, ebp
pop ebp
ret
Function at 0x408f9a
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x439331
call fcn.00421730
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040b8b7
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
push 0x7d
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop ebx
mov eax, dword [ebp + 0x14]
add ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [eax]
call fcn.004017de
push esi
push ebx
push eax
mov eax, dword [ebp + 0x10]
push 0x43c650
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.0040186a
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x408fc9
mov eax, dword [ebp + 8]
call fcn.004216fe
ret 0x10
Function at 0x40a336
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x24
mov eax, 0x43a071
call fcn.00421763
mov esi, ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0xec], eax
jne 0x40a458
cmp dword [esi + 0xe4], eax
jne 0x40a458
cmp dword [esi + 0x158], eax
jne 0x40a3a5
cmp dword [esi + 0x154], eax
je 0x40a3a0
push 0x90
lea eax, [ebp - 0x30]
push eax
call fcn.0040900f
and dword [ebp - 4], ebx
inc ebx
push 0
push 0x10024
push dword [eax]
mov dword [ebp - 0x2c], ebx
call fcn.00407594
add esp, 0xc
cmp eax, 6
jne 0x40a3a5
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x40a3a9
mov byte [ebp - 0x21], 1
test bl, 1
je 0x40a3b9
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040184e
cmp byte [ebp - 0x21], 0
jne 0x40a458
lea edi, [esi + 0x124]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40a3e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401451
lea eax, [ebp - 0x28]
mov dword [esi + 0xe0], ebx
push eax
push 0x28
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40a438
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test esi, esi
je 0x40a438
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x28]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test esi, esi
je 0x40a458
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push dword [ebp - 0x28]
call edi
call fcn.00421712
ret

Function at 0x40a55c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call fcn.00420e90
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40a5b2
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 2
cmove esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00420e80
mov esp, ebp
pop ebp
ret
Function at 0x40aa8d
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43923e
call fcn.00421730
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.00401945
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ab09
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40aae0
cmp ecx, 2
je 0x40aae0
push ebx
jmp 0x40aae4
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ab2e
mov ebx, 0x453994
push 0x43ed0c
mov ecx, ebx
call fcn.00401ec3
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00403dd6
mov ecx, 0x4538c8
call fcn.0040a5c4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040184e
mov eax, esi
call fcn.004216fe
ret

Function at 0x40ab41
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aba3
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40aba3
inc edi
jmp 0x40abc8
mov esi, 0x453994
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401ec3
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403dd6
mov ecx, 0x4538c8
call fcn.0040a5c4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eb7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40ebc2
call fcn.0041869c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ebc2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ebde
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ae7b
mov ebx, eax
test edi, edi
je 0x40ebdc
test esi, esi
je 0x40ebdc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4