joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x401089
jmp 0x401030
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x401030
add eax, 4
jle 0x4010be
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x40108f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x5b9e60
Capabilities:
Delete file

Disassembly:
mov cl, byte [0x7ce046]
mov dl, byte [0x7ce045]
mov al, cl
push esi
and al, dl
mov esi, dword [0x7ce034]
xor al, 0x86
mov byte [0x7ce045], al
mov eax, dword [0x7ce030]
mov edx, eax
and eax, 8
shr edx, 5
and esi, edx
xor edx, edx
mov dl, cl
mov dword [0x7ce034], esi
imul eax, edx
mov edx, dword [0x7ce03c]
or edx, eax
mov eax, dword [0x7d1240]
push eax
mov dword [0x7ce03c], edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x7d1534]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [0x7d1534]
push 0x23
push 0xa
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov dword [0x7ce064], esi
mov eax, esi
pop esi
ret

Function at 0x64f9c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x64fa49
jmp 0x64f9f0
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x64f9f0
add eax, 4
jle 0x64fa7e
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x64fa4f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x770415
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x62b817d0
adc ebp, dword [ecx + 0x7775a4c7]
pop edx
lahf
invalid
xchg ebp, esp
mov dl, 0x93
or al, 0x94
pop dword [ebp + 0x5535b5d3]
mov dword es:[0x7fea1d7], eax
mov bl, 0xc7
xor eax, 0xd7a32655
mov eax, dword [0xc7b307fe]
xchg edi, eax
jb 0x7703e9
or byte [ebx + 0x62549781], al
xor al, byte [edx - 0x706c2920]
pushfd
push ss
xor dword [eax + 0x68], esi
sub al, 0x64
jne 0x77041f
sal al, 1
mov dword [0x83fbb560], eax
sub dword [edi - 0x5cd9e27a], eax
jo 0x77044b
sbb eax, 0xfb70a326
and eax, dword [ebx - 0x2f]
pop edx
arpl word es:[esi + ebp*8 + 0x7e7e9d64], si
out dx, eax
setle bl
jmp 0xcfdc9a2d
Function at 0x4526b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4526c6
add esp, 0xfffffff0
call fcn.00403e8c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d680
mov eax, dword [0x45b7d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x452a58
mov eax, dword [0x45b7e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x452a64
mov eax, ebx
call fcn.00452a70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e120
push eax
push 0
push 0
mov eax, dword [0x45b934]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421208]
call fcn.00422728
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421208]
call fcn.00422728
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421208]
call fcn.00422728
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452ea0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d70
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d70
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452d70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452803
call fcn.00403ee4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452b54
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452ce0
mov dl, 1
mov eax, dword [0x415854]
call fcn.00403b50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404994
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452ccf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445078
test al, al
je 0x452cc2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452d10
lea eax, [ebp - 0x254]
call fcn.004097c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452cc2
xor eax, eax
push ebp
push 0x452cbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452d48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452ca4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c04
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452ca4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452cc2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452bc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041952c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452d06
lea eax, [ebp - 0x260]
call fcn.00404994
ret

Function at 0x453678
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460c94]
cmp byte [eax + 0xad], 0
jne 0x4536e9
cmp dword [0x460cb0], 0
jne 0x4536aa
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453634
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460cb0], eax
cmp dword [0x460cac], 0
jne 0x4536c5
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x460cac], eax
cmp dword [0x460cb4], 0
jne 0x4536e9
push esp
push 0
push 0
push 0x4535d8
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x460cb4], eax
pop edx
ret
Function at 0x4538bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4538d3
add esp, 0xfffffff0
call fcn.00403e8c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d680
mov eax, dword [0x45b920]
cmp word [eax + 2], 0
jne 0x4538fb
mov eax, dword [0x45b920]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004554bc
mov eax, dword [0x45b9c4]
cmp word [eax + 2], 0
jne 0x453915
mov eax, dword [0x45b9c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004556c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415430]
call fcn.00403b50
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4219e4]
call fcn.0042782c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x453acc
mov eax, dword [0x45b840]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427c00
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455d9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45b840]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cf70
test eax, eax
je 0x453a1c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409180
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cfa4
test eax, eax
je 0x453a30
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c04
mov byte [ebx + 0xd4], 0
push ebx
push 0x454fe4
call fcn.0041e7fc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45b73c]
cmp byte [eax], 0
jne 0x453a81
mov eax, ebx
call fcn.00453c10
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00455f74
mov eax, ebx
call fcn.00456ad8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453ac1
call fcn.00403ee4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453e90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x453f2f
cmp dword [ebx + 0x94], 0
jne 0x453f29
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453e18
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453f29
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453eef
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453f29
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004177d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453efe
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454148
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x460c94]
cmp dword [eax + 0x30], 0
je 0x4542a5
test bl, bl
jne 0x4541f6
cmp dword [esi + 0x9c], 0
jne 0x4541eb
mov eax, esi
call fcn.00456954
push eax
push 0x454074
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4541bc
mov eax, dword [0x460c94]
call fcn.00456f44
test al, al
je 0x4541bc
mov eax, dword [0x460cb8]
call fcn.00405b40
mov edi, eax
cmp edi, 0
jl 0x4541bc
push 0
mov eax, dword [0x460cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4541a6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4541eb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004177d4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4541cb
inc dword [esi + 0x9c]
jmp 0x4542a5
cmp dword [esi + 0x9c], 0
jle 0x4542a5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4542a5
cmp dword [esi + 0x44], 0
je 0x454251
mov eax, dword [0x460c94]
call fcn.00456f44
test al, al
je 0x454251
mov eax, dword [0x460cb8]
call fcn.00405b40
mov edi, eax
cmp edi, 0
jl 0x454251
push 5
mov eax, dword [0x460cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45423b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x454280
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004177d4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x454260
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x460cb8
mov ecx, 1
mov edx, dword [0x454054]
call fcn.00405cf4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x454d38
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x454da2
mov eax, ebx
call fcn.00456f44
test al, al
jne 0x454da2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a84
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x454d8f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x454daf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049e8
jmp 0x454daf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049e8
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x456158
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4561c6
mov eax, esi
call fcn.0043ff38
test al, al
je 0x4561c6
mov eax, dword [ebx + 0x84]
call fcn.0043fc2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4561c6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4561ba
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fc2c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437de8
jmp 0x4561c6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00455f94
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00405f8d
mov edi, eax
pop ecx
lea ecx, [edi - 1]
cmp ecx, 0x100
ja 0x4011b7
push 0x5c
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x401043
mov word [esi + edi*2], ax
inc edi
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x260], eax
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4010fa
test byte [ebp - 0x258], 0x10
je 0x4010db
lea eax, [ebp - 0x22c]
push 0x41ba3c
push eax
call fcn.00405fa8
pop ecx
pop ecx
test eax, eax
je 0x4010d5
lea eax, [ebp - 0x22c]
push 0x41ba40
push eax
call fcn.00405fa8
pop ecx
pop ecx
test eax, eax
je 0x4010d5
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00405eb4
add esp, 0xc
xor edx, edx
inc edx
xor ecx, ecx
push ebx
push esi
call section..text
pop ecx
pop ecx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401075
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x2a
pop ecx
lea eax, [esi + edi*2]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401196
test byte [ebp - 0x258], 0x10
jne 0x401177
lea eax, [ebp - 0x22c]
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00405eb4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401163
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x401171
test eax, eax
jne 0x401171
push 4
push eax
push esi
call ebx
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x25c]
jne 0x401122
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x260]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4011b7
test ebx, ebx
je 0x4011b7
push 4
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
Function at 0x401229
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
test edi, edi
je 0x401271
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x401274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00414e20
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.00404700
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], esi
mov dword [ebp - 0x8a10], esi
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push esi
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x4013d5
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00404477
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.00404700
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00404477
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x40131b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
xor eax, eax
inc eax
jmp 0x4013d7
Function at 0x4013eb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x884], ecx
lea edi, [ebp - 0x6c]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
and dword [ebp - 0x874], 0
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push str.IsWow64Process
movsb byte es:[edi], byte [esi]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push str.kernel32
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401458
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [ebp - 0x874]
lea eax, [ebp - 0x87c]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x6c]
and edi, 0x100
or edi, 0x20019
push edi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40155b
mov esi, 0x800
mov dword [ebp - 0x878], 7
push esi
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00404700
add esp, 0xc
mov dword [ebp - 0x870], esi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x878]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call ebx
test esi, esi
jne 0x40155b
mov eax, dword [ebp - 0x870]
lea esi, [ebp - 0x86c]
shr eax, 1
mov dword [ebp - 0x888], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x880], 0
je 0x40155b
push dword [ebp - 0x884]
push esi
call fcn.00404477
pop ecx
pop ecx
test eax, eax
jne 0x401597
push esi
call fcn.00405f8d
mov ecx, dword [ebp - 0x880]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x880], ecx
call fcn.00405f8d
pop ecx
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x880]
add esi, 2
cmp eax, dword [ebp - 0x888]
jb 0x401518
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x40159e
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
je 0x40159c
call ebx
xor eax, eax
inc eax
jmp 0x4015d6
call ebx
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4015d4
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
jne 0x401595
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret