joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4191b7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x41933e
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x41933e
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x419229
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x41933e
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00419ac3
push 1
push 0x49003c
push esi
mov edi, eax
call fcn.00419ac3
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x41933e
test edi, edi
je 0x41933e
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x4192c8
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x4192ce
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4192de
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x41933e
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b0ca
Capabilities:
Check os version

Disassembly:
mov eax, 0x474b41
call fcn.00444d58
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x41b246
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x41b246
cmp byte [ebp - 0xf2], 1
je 0x41b246
push 0x4901a4
push dword [ebp + 8]
call fcn.00445620
pop ecx
pop ecx
test eax, eax
push 1
je 0x41b2e0
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402caf
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x41b237
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push 0x2c
mov byte [ebp - 4], 3
call fcn.00419bfa
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x47b5a0
mov dword [ebp - 0x30], 0x47b598
call fcn.00402b2c
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x41b21e
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x41b21e
lea eax, [ebp - 0x15]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xf0]
call fcn.00402caf
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004277be
add esp, 0xc
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.004222eb
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00401f95
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00401f95
inc edi
add esi, 0x28
jmp 0x41b1a3
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00401f95
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407225
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x41b2d9
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x47b5a0
mov dword [ebp - 0x58], 0x47b598
call fcn.00402b2c
and dword [ebp - 4], 0
push 0x4901a4
push dword [ebp + 8]
call fcn.00445620
pop ecx
test eax, eax
pop ecx
jne 0x41b2d2
lea eax, [ebp + 0xb]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x50]
call fcn.00402caf
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.004222eb
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00401f95
test bl, bl
je 0x41b2d2
mov ecx, dword [ebp - 0x14]
call fcn.00425075
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00401f95
xor eax, eax
jmp 0x41b2e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00401f95
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41de97
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x4750b3
call fcn.00444d58
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040175f
and dword [ebp - 4], 0
mov eax, str..mst
mov ecx, eax
mov dword [ebp - 0x3c], 0x47b560
test ecx, ecx
mov dword [ebp - 0x1c], 0x47b558
jne 0x41df0b
mov eax, 0x498d9c
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408d40
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00414b3e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401bc2
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0040198d
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x41e007
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41dfe5
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040175f
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00414b3e
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401bc2
lea ecx, [ebp - 0x3c]
call fcn.0040198d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401bc2
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41df63
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41e007
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401bc2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42450b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x475d8e
call fcn.00444d58
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x47b560
mov esi, 0x47b558
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.004017e1
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.00424712
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040198d
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x424594
lea ecx, [ebp - 0x10]
call fcn.0040d722
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00401bc2
cmp byte [ebp + 0xf], 0
je 0x4246ca
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x4918c8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x424614
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.004017e1
mov dword [ebp - 0x18], 1
jmp 0x4246e6
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040175f
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040950c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401bc2
mov eax, 0x48fc4c
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x498d9c
jne 0x42465d
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00408d40
mov eax, 0x490d18
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x424686
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00408d40
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004254c8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00401bc2
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401bc2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040e922
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00401bc2
cmp dword [ebp - 0x10], 0
je 0x424701
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4292ee
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x476556
call fcn.00444d58
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00447204
mov eax, 0x47cc68
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x47b560
mov esi, 0x47b558
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.004017e1
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.004017e1
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x47b790
mov dword [ebx + 0xc], eax
call fcn.004294ac
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4293b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47657e
call fcn.00444d58
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00447204
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x47b558
push 0
push eax
mov ecx, edi
mov dword [edi], 0x47b560
mov dword [edi + 0x20], esi
call fcn.004017e1
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x47b560
mov dword [ecx + 0x20], esi
call fcn.004017e1
mov esi, dword [ebp + 8]
mov dword [ebx], 0x47b790
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.0040950c
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.0040950c
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42b688
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040104e
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x42b738
dec eax
je 0x42b72d
dec eax
jne 0x42b73f
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x42b71d
dec eax
je 0x42b714
dec eax
jne 0x42b720
mov dword [ebp - 0x18], 5
jmp 0x42b720
mov dword [ebp - 0x18], 3
jmp 0x42b720
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x42b73f
mov dword [ebp - 0x14], esi
jmp 0x42b73f
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x42b73f
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040104a
mov ecx, eax
call fcn.0042dcf4
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42bb17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x42bb51
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x42bb2f
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x431405
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4314bb
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.00440174
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x4314ab
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x431467
lea eax, [ebp - 0x118]
push 0x48f4cc
push eax
call fcn.004478a0
pop ecx
test eax, eax
pop ecx
jne 0x431483
mov eax, 0x486
push eax
mov dword [0x49b6ec], eax
call fcn.00440087
pop ecx
push dword [0x49b6ec]
call fcn.00446719
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00441763
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x431b9e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x614]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x431cf6
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x614]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x431c21
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x431cc3
push 0xd0
call fcn.00444d77
mov esi, eax
pop ecx
cmp esi, ebx
je 0x431cc3
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x614]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x1d0], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x431cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x431cef
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x1d0], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x1d0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x432103
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47721a
call fcn.00444d58
sub esp, 0x4a4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4af]
mov byte [ebp - 0x4b0], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b0]
lea ecx, [esi + 0x28]
push eax
push 0x498d98
push str.ClickOncePackage
push str.Startup
call fcn.004028b8
cmp byte [ebp - 0x4b0], bl
jne 0x432164
xor eax, eax
jmp 0x432264
push 1
lea eax, [ebp - 0xe]
pop edi
mov ecx, esi
push edi
push eax
call fcn.0042ddbd
push eax
lea ecx, [ebp - 0x38]
call fcn.0040175f
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.0040175f
push ebx
lea eax, [ebp - 0x88]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040e158
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0040e0a3
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040950c
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00401bc2
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00401bc2
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00401bc2
lea ecx, [ebp - 0x38]
call fcn.0040198d
push eax
call fcn.00440c87
test eax, eax
jne 0x432235
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040175f
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.0040950c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00401bc2
push edi
push ebx
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040198d
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x38]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401bc2
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x437de1
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x477b40
call fcn.00444d58
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x47b5a0
mov dword [esi + 0x20], 0x47b598
call fcn.00402b2c
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004024e5
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 2
call fcn.0040305e
push eax
push 0x104
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004025f7
lea ecx, [ebp + 8]
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x437e7a
Capabilities:
Set current directory

Disassembly:
mov eax, 0x477b54
call fcn.00444d58
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
je 0x437ea1
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4391cc
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x477cb0
call fcn.00444d58
sub esp, 0x38
push ebx
push esi
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov edi, ecx
push esi
call fcn.004393e4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push esi
mov ecx, edi
mov ebx, eax
call fcn.004393e4
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push esi
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.004393e4
push 0x4932c0
push str.SYSTEMCurrentControlSetControlSession_Manager
push esi
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00439480
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, edi
mov esi, eax
call fcn.004392f3
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x47b560
mov dword [ebp - 0x24], 0x47b558
call fcn.004017e1
and dword [ebp - 4], 0
cmp ebx, dword [edi + 0x2f0]
jle 0x439267
push str.RunOnce
jmp 0x4392aa
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x2f4]
jle 0x439279
push str.RunOnceEx
jmp 0x4392aa
cmp esi, dword [edi + 0x2f8]
jle 0x439288
push str.PendingFileRenameOperations
jmp 0x4392aa
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x2fc]
jle 0x43929a
push str.FileRenameOperations
jmp 0x4392aa
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x300]
jle 0x4392bb
push str.Wininit.ini_rename
lea eax, [ebp - 0x44]
push str.Reboot_required____s_key_added
push eax
call fcn.00414de0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x4392d4
push 0
push 1
pop ebx
lea eax, [ebp - 0x44]
push ebx
push eax
mov ecx, edi
call fcn.004395fa
jmp 0x4392d6
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401bc2
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret