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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x43c054]
push ebx
mov ebx, dword [sym.imp.MSVBVM50.DLL___vbaLenBstr]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], esp
push eax
mov dword [ebp - 4], 0x402378
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], edi
call ebx
mov ecx, dword [0x43c054]
sub eax, 1
jo 0x4377c3
push eax
push ecx
call dword [sym.imp.MSVBVM50.DLL_rtcLeftCharBstr]
mov esi, dword [sym.imp.MSVBVM50.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x40b7b0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM50.DLL___vbaStrCopy]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], edi
call esi
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.00436e90
push eax
call dword [sym.imp.MSVBVM50.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStrList]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
call dword [sym.imp.MSVBVM50.DLL___vbaI4Str]
mov edx, dword [0x43c054]
push eax
push edx
call dword [sym.imp.MSVBVM50.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
push 0x411f24
call dword [sym.imp.MSVBVM50.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push edi
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0x4008
call dword [sym.imp.MSVBVM50.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
call ebx
xor edx, edx
lea ecx, [ebp - 0x24]
test eax, eax
setg dl
neg edx
mov dword [ebp - 0x40], edx
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
cmp word [ebp - 0x40], di
je 0x43777b
mov cx, di
lea eax, [ebp - 0x1c]
add cx, 1
push eax
push 0x411d2c
jo 0x4377c3
push ecx
call dword [sym.imp.MSVBVM50.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
call dword [sym.imp.MSVBVM50.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
push eax
push 0x40aaac
call fcn.004392d0
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStrList]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
push ecx
call ebx
test eax, eax
jle 0x43777b
add di, 1
jo 0x4377c3
jmp 0x437712
mov dword [ebp - 0x18], edi
push 0x4377ae
jmp 0x43779d
mov esi, dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x20]
jmp esi
call dword [sym.imp.MSVBVM50.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
Function at 0x437ac0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], esp
xor edi, edi
push eax
push 0x100
mov dword [ebp - 8], 0x402398
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.MSVBVM50.DLL___vbaFixstrConstruct]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.MSVBVM50.DLL___vbaLenBstr]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push edx
push eax
push ecx
call dword [sym.imp.MSVBVM50.DLL___vbaStrToAnsi]
push eax
call fcn.00409ed0
mov esi, eax
call dword [sym.imp.MSVBVM50.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push edx
push eax
call dword [sym.imp.MSVBVM50.DLL___vbaStrToUnicode]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.MSVBVM50.DLL___vbaLsetFixstr]
push eax
push ecx
push edi
call ebx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStrList]
add esp, 0xc
cmp esi, edi
je 0x437bc1
mov ecx, dword [ebp - 0x20]
push 1
push ecx
push 0x411fd0
push edi
call dword [sym.imp.MSVBVM50.DLL___vbaInStr]
mov edx, dword [ebp - 0x20]
sub eax, 1
jo 0x437c09
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM50.DLL___vbaStrCopy]
push eax
call dword [sym.imp.MSVBVM50.DLL_rtcLeftCharBstr]
mov esi, dword [sym.imp.MSVBVM50.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push edx
push eax
push edi
call ebx
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], edi
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
push 0x437bf5
jmp 0x437beb
lea ecx, [ebp - 0x20]
jmp dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
call dword [sym.imp.MSVBVM50.DLL___vbaErrorOverflow]
nop
Function at 0x412450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x412472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412468
mov eax, 1
add ebx, ebx
jne 0x41248b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412480
jne 0x41249c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412480
xor ecx, ecx
sub eax, 3
jb 0x4124b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412522
mov ebp, eax
add ebx, ebx
jne 0x4124bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4124c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4124ec
inc ecx
add ebx, ebx
jne 0x4124d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4124cd
jne 0x4124e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4124cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41250c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4124fd
jmp 0x41246e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41250c
add edi, ecx
jmp 0x41246e
pop esi
mov edi, esi
mov ecx, 0xc1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41252a
cmp byte [edi], 5
jne 0x41252a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41252f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x41259e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1208c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41255c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12090]
or eax, eax
je 0x412598
mov dword [ebx], eax
add ebx, 4
jmp 0x412579
call dword [esi + 0x12094]
popal
jmp 0x405445
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push 0x30
push 0
push 0x40329c
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4032a0], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40329c], eax
mov eax, 0x403140
mov dword [0x4032a4], eax
call fcn.00402760
call fcn.00402649
call fcn.004023c3
call fcn.00402280
mov edi, 0x40300e
mov ecx, 0x41
xor byte [edi], 0xba
inc edi
dec ecx
jne 0x401067
mov edx, 0x403010
lea ecx, [0x4032ac]
call fcn.00402008
mov dword [0x4032b0], 0xe8
push dword [0x4032ac]
call fcn.00402030
push eax
mov eax, dword [0x4032ac]
push eax
push dword [0x4032b0]
mov ebp, 0x403058
push ebp
call fcn.00401166
mov dword [0x4032b4], eax
mov edx, 0x403033
lea ecx, [0x4032b8]
call fcn.00402008
mov edx, 0x403027
lea ecx, [0x4032bc]
call fcn.00402008
mov dword [0x4032c0], 4
push 0x4032c4
push 0
push 5
push 4
push 4
call fcn.004025b8
mov ebp, dword [0x4032c4]
mov dword [ebp], 0
mov eax, 0x40303f
push eax
pop dword [ebp + 4]
mov eax, 0x40303a
push eax
pop dword [ebp + 8]
mov dword [ebp + 0xc], 3
push dword [0x4032c4]
push dword [0x4032c0]
mov eax, dword [0x4032bc]
push eax
mov eax, dword [0x4032b8]
push eax
push dword [0x4032b4]
call fcn.004023ea
push 0
call 0x40115b
push dword [0x40329c]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.004022a0
call fcn.00402349
ret
Function at 0x42bba8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x508ea0
cmp dword [edi], 0
jne 0x42bc24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x508e9c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x500ecc
mov ecx, 2
call fcn.004031d0
mov edx, 0x42bb80
lea eax, [esi + 5]
call fcn.0042bba0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042bba0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42bbf9
mov dword [0x508e9c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42ea24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42ea7c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x503034]
mov dl, 1
mov eax, dword [0x42e4a4]
call fcn.0041193c
call fcn.00404a74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e62c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42f9bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42f9c2
ret
Function at 0x46052c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004091a0
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0045aa50
test ebx, ebx
jne 0x46057f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004603c0
mov ebx, eax
test ebx, ebx
je 0x46066a
cmp esi, ebx
je 0x4605a8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4605bd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4605f5
add eax, 0xffffff5f
sub eax, 2
jb 0x46060d
dec eax
sub eax, 2
jb 0x460621
dec eax
sub eax, 2
jb 0x460617
jmp 0x46062b
add eax, 0xfffffdff
sub eax, 2
jb 0x46060d
dec eax
sub eax, 2
jb 0x460621
dec eax
sub eax, 2
jb 0x460617
jmp 0x46062b
mov byte [esp + 0x120], 0
jmp 0x460633
mov byte [esp + 0x120], 2
jmp 0x460633
mov byte [esp + 0x120], 1
jmp 0x460633
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00470dd8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045c288
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x46066c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4708dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4708fd
test edi, 0x40000
je 0x470917
test bl, bl
jne 0x470998
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x470998
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x47094a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x47095f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x47096e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x47097f
cmp byte [esp + 2], 0
je 0x470998
cmp byte [esp + 2], 0
je 0x470990
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x470998
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4aca90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004aca44
test al, al
jne 0x4acab1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acaff
xor eax, eax
push ebp
push 0x4acaef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acaf6
lea eax, [ebp - 0xc]
call fcn.004aca80
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acb08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004aca44
test al, al
jne 0x4acb2c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acb92
xor eax, eax
push ebp
push 0x4acb82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acb89
lea eax, [ebp - 0xc]
call fcn.004aca80
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4acba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004aca44
test al, al
jne 0x4acbc4
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acc1c
xor eax, eax
push ebp
push 0x4acc0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acc13
lea eax, [ebp - 0xc]
call fcn.004aca80
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c0274
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c0440
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c0413
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x4c02d1
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4c030f
mov eax, ebx
call fcn.004bef24
test al, al
jne 0x4c02ef
mov byte [ebp - 5], 0
call fcn.00404b68
jmp 0x4c041a
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.004bebe4
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004c06a0
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047e0c0
lea eax, [ebp - 0x268]
mov edx, 0x4c0460
call fcn.00406854
mov eax, dword [ebp - 0x268]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c03fc
xor eax, eax
push ebp
push 0x4c03f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004beaa0
test al, al
je 0x4c03ca
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
lea edx, [ebp - 0x270]
mov eax, ebx
ret
call fcn.0047e0c0
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00406854
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004bebe4
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004bfc90
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c0363
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c03fc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c041a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0447
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4cca78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x4cca91
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4ccac5
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.004cc948
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4ce254
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ce367
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x502c50]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x502438]
mov edx, 0x80000002
xor eax, eax
call fcn.0047fb50
test eax, eax
jne 0x4ce2e9
mov esi, edi
test esi, esi
je 0x4ce2ac
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4ce2de
mov eax, 0x4ce384
call fcn.004b2680
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4ce2f3
mov eax, 0x4ce3e8
call fcn.004b2680
test bl, bl
je 0x4ce34c
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4ce31a
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4ce34c
lea ecx, [ebp - 0x10]
mov edx, 0x4ce43c
mov al, 0x3a
call fcn.004ab628
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00480438
mov eax, dword [ebp - 0xc]
mov edx, dword [0x502e20]
mov edx, dword [edx + 0xc8]
call fcn.004cbf6c
test al, al
je 0x4ce2f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce36e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d147c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4d155d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d1542
test bl, 0x10
je 0x4d1542
lea ecx, [ebp - 4]
mov edx, 0x4d1578
mov eax, esi
call fcn.0047e234
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d159c
mov eax, 0x4d15b8
call fcn.0047e9e4
mov edx, 0x4d15e4
mov eax, dword [ebp - 8]
call fcn.0040c160
test eax, eax
jne 0x4d1542
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d1640
mov eax, esi
call fcn.0047e234
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1564
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret