joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa777b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xae6578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa777f0
cmp byte [ebx], 0xa
jne 0xa777f0
or byte [eax + edi + 0x28], 4
jmp 0xa777f5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa778f3
mov al, byte [edx]
cmp al, 0x1a
je 0xa778d5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa77824
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa77849
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa77853
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0xa77806
jmp 0xa778f3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa778d0
cmp dword [ebp - 0xc], 0
je 0xa778d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xae6578]
test byte [eax + edi + 0x28], 0x48
je 0xa778aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa77895
mov byte [esi], dl
jmp 0xa778a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xae6578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa778f3
cmp byte [ebp - 1], 0xa
jne 0xa778b9
cmp esi, ebx
jne 0xa778b9
mov byte [esi], 0xa
jmp 0xa778f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a6de27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa778f3
mov byte [esi], 0xd
jmp 0xa778f2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xae6578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa778ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa778f3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa778fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xae6578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa7793f
cmp word [esi], dx
jne 0xa7793f
or byte [edi + eax + 0x28], 4
jmp 0xa77944
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0xa77a7d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0xa77a5d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa77986
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa779bc
cmp eax, edx
jae 0xa779c8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0xa7795e
jmp 0xa77a7d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa77a59
cmp dword [ebp - 0x14], 0
je 0xa77a59
mov eax, dword [ebx*4 + 0xae6578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa77a31
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa77a77
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xae6578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xae6578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xae6578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa77a7a
pop ebx
cmp word [ebp - 4], bx
jne 0xa77a42
cmp esi, dword [ebp + 0xc]
jne 0xa77a42
mov word [esi], bx
jmp 0xa77a7a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a6de27
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa77a7d
push 0xd
jmp 0xa77a76
mov ecx, dword [ebx*4 + 0xae6578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa77a74
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa77a7d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa7829e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a7810f
Function at 0xa7931a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a79296
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa79492
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa79492
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa79441
jg 0xa79373
test eax, eax
je 0xa79437
push 1
push 0x1000
call fcn.00a630de
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa79399
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa7942e
push 0x8000
push ebx
call fcn.00a6179d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa793c5
jg 0xa793c0
cmp ecx, 0x1000
jb 0xa793c5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a78b96
add esp, 0x10
cmp eax, 0xffffffff
je 0xa7940a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa793c0
jl 0xa793f1
test ecx, ecx
jne 0xa793b2
push dword [ebp - 0xc]
push ebx
call fcn.00a6179d
push esi
call fcn.00a63e05
add esp, 0xc
xor edi, edi
jmp 0xa794a3
cmp byte [edi + 0x24], 0
je 0xa79421
cmp dword [edi + 0x20], 5
jne 0xa79421
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa7942c
mov edi, dword [edi + 0x18]
jmp 0xa7942e
xor edi, edi
push esi
call fcn.00a63e05
pop ecx
jmp 0xa794a3
test ecx, ecx
jg 0xa79403
jl 0xa79441
test eax, eax
jae 0xa79403
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a6de27
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa79464
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa79403
jmp 0xa7949b
push ebx
call fcn.00a72649
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa79403
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa794a3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa794a0
mov edi, dword [edi + 0x18]
jmp 0xa794a3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a6de27
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa7f29f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10003b0a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10003b19
pop dword [ebp - 0x20]
mov eax, 0x9d2a2d8a
add eax, 0x72d60d8f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xdb7f13ec
sub dword [ebp - 0x30], 0x8d2ccea1
mov dword [ebp - 0x2c], 0x539f8759
add dword [ebp - 0x2c], 0xde93c4ec
mov dword [ebp - 0x28], 0x54af426
sub dword [ebp - 0x28], 0xb8feaff8
mov dword [ebp - 0x24], 0x40aa2c42
add dword [ebp - 0x24], 0xbf55d3be
lea eax, [ebp - 0x30]
push eax
mov eax, 0xe6b8a499
add eax, 0x29482be7
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2e5aa4f7
sub dword [ebp - 0x30], 0xb9e83ba1
mov dword [ebp - 0x2c], 0x1dec5a23
sub dword [ebp - 0x2c], 0xdc7ff8ae
mov dword [ebp - 0x28], 0xe074cc87
add dword [ebp - 0x28], 0x82fa9fe5
mov dword [ebp - 0x24], 0x2a1c895
sub dword [ebp - 0x24], 0x2a1c895
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x6f4b2a19
sub eax, 0x5f4a59a1
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x39591
push 0
call eax
mov ecx, 0x4c65
xor esi, esi
add esi, eax
mov edi, 0x6decd41a
sub edi, 0x5deb201a
add edi, dword [ebp - 0x20]
mov ebx, 0x3567a73c
sub ebx, 0xb40c27f1
sub dword [ebp - 0xc], eax
mov edx, dword [edi]
xor dword [ebp - 0x14], esi
add edx, ebx
xor dword [ebp - 4], ebx
mov dword [esi], edx
add dword [ebp - 0x18], ecx
add esi, 4
add edi, 0xd33f11ef
sub edi, 0xd33f11eb
loop 0x10003c37
add eax, 0xc8822826
sub eax, 0xc88103bf
mov ebx, eax
add eax, 0x55efabdf
add eax, 0xaa105426
mov ecx, 0x3cb90c45
add ecx, 0xd346f3bb
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x10009670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x100096c8
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x100096c8
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10003b0a
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009c50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x4030fd
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42e2b9
call fcn.0041812a
xor edi, edi
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401a49
mov esi, 0x4312d8
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00402c93
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00402d33
push esi
lea ecx, [ebp - 0x18]
call fcn.00402c93
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004023ed
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x403170
mov ecx, dword [ebp + 8]
call fcn.004012f3
jmp 0x403202
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x403163
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004023ed
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x403163
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], edi
je 0x403163
call fcn.004070de
push eax
lea ecx, [ebp + 0x10]
call fcn.004011e0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00401307
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004011b6
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.0040177f
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401038
cmp dword [ebp - 0x10], edi
je 0x40320f
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x40321c
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, dword [ebp + 8]
call fcn.00418202
ret 0xc
Function at 0x40439e
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42e535
call fcn.0041812a
mov esi, ecx
call fcn.004070de
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00402c93
lea ecx, [esi + 4]
push edi
call fcn.00401307
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [esi + 4]
call fcn.004011b6
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401a49
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401a49
push 0x43f3a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43f2f8
mov byte [ebp - 4], 2
call fcn.004048a2
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004013f1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401038
mov ecx, esi
call fcn.004042e4
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4044e4
cmp dword [esi + 0xc], ebx
jne 0x4044ac
push edi
mov ecx, 0x43f2f8
call fcn.00404ae7
test eax, eax
jne 0x4044ac
mov ecx, edi
call fcn.0040120f
jmp 0x4044e4
call fcn.004070de
push eax
lea ecx, [ebp - 0x14]
call fcn.004011e0
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.0040143e
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402d33
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
call fcn.00418202
ret

Function at 0x4048a2
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42dfa5
call fcn.0041812a
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012f3
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401307
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x4307c8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011b6
inc edi
cmp esi, edi
jbe 0x4048ca
mov eax, ebx
call fcn.00418202
ret 0x10
Function at 0x404ae7
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42e679
call fcn.0041812a
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.0040177f
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401307
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401038
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011b6
lea ecx, [ebp - 0x28]
call fcn.00411401
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x404b9f
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00411499
test eax, eax
je 0x404b9f
lea ecx, [ebp - 0x28]
call fcn.00411101
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041170a
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004013f1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401038
lea ecx, [ebp - 0x28]
call fcn.0041101b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041142a
xor eax, eax
inc eax
jmp 0x404bad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041142a
xor eax, eax
call fcn.00418202
ret 4
Function at 0x4052cc
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42e70f
call fcn.0041812a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x4053c9
mov eax, dword [esi + 0xd8]
cmp eax, dword [0x434598]
jne 0x4053a0
call fcn.004070de
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405335
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x4053c9
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00402c93
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00405057
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xd4]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], vtable.CFileException.0
test eax, eax
jne 0x40538f
call fcn.00401038
lea ecx, [edi - 0x10]
jmp 0x40532b
call fcn.00401038
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00401038
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4053c9
add esi, 0xd4
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.0040120f
call fcn.00418202
ret
Function at 0x4053cf
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42e742
call fcn.0041812a
lea esi, [ecx + 0xd0]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401307
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4054ea
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011b6
push esi
lea ecx, [ebp - 0x10]
call fcn.0040177f
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push ebx
push 0x4320ec
lea ecx, [ebp - 0x10]
call fcn.004046cf
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.00401038
push edi
mov ecx, esi
call fcn.004011b6
lea ecx, [ebp - 0x20]
call fcn.00411b5e
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.00405057
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00411f45
test eax, eax
jne 0x40548b
mov ecx, esi
call fcn.0040120f
jmp 0x4054cd
push 0x4320c8
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 dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411894
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.00401038
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00411c39
call fcn.00418202
ret

Function at 0x4054f0
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x42e13f
call fcn.0041812a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor ebx, ebx
xor esi, esi
call fcn.00401a49
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40556e
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x405545
cmp eax, 2
je 0x405545
push edi
jmp 0x405549
lea ecx, [edi + edi]
push ecx
push dword [ebp + 0x14]
push eax
push ebx
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]
cmp esi, ebx
jne 0x405593
mov edi, 0x43f39c
push str.Failed_to_register_value:
mov ecx, edi
call fcn.004019ae
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00402c93
mov ecx, 0x43f2f8
call fcn.004052cc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, esi
call fcn.00418202
ret
Function at 0x405be5
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42e7c2
call fcn.0041812a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xc0], ebx
jne 0x405cf8
cmp dword [esi + 0x100], ebx
jne 0x405c47
cmp dword [esi + 0xfc], ebx
je 0x405c42
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.0040588d
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.0040523e
add esp, 0xc
cmp eax, 6
jne 0x405c47
mov byte [ebp - 0xd], bl
jmp 0x405c4b
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405c5c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp byte [ebp - 0xd], bl
jne 0x405cf8
lea edi, [esi + 0xd0]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405c80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0040120f
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
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 0x405cd8
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
cmp esi, ebx
je 0x405cd8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x405cf8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.00418202
ret