joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438f90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c7a5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
call fcn.00439060
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.00439060
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0041b0a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0041b0a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0041b0a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0043c520
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0043c520
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0043c520
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.0043c520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4390e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c7e9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
call fcn.0043fa30
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00439060
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0041b0a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040f3c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00438ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4401f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cec9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040f3c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0041b0a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0041b0a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0041b0a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00440320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x445ae0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d767
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0xffffffff
mov dword [edx + 0x2c], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00410050
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00410050
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00410050
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.0043b550
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00445a20
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.0041aaa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x44a1a0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dacb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x483528]
test eax, eax
jne 0x44a25d
push 0x4010
push 0x160
lea ecx, [ebp - 0x170]
push ecx
mov edx, dword [ebp + 0xc]
or edx, 0x80
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.00411a10
mov dword [ebp - 0x42c], eax
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x434], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x434]
call fcn.00437500
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0041b0a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x16c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x430]
jmp 0x44a297
push 0x4010
push 0x2b4
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044a450
mov dword [ebp - 0x428], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x420]
mov dword [edx], eax
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045dacb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44a2c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x44a2e7
mov dword [ebp - 0x168], 1
jmp 0x44a2f1
mov dword [ebp - 0x168], 0x100
mov ecx, dword [ebp - 0x168]
or ecx, 0x4010
push ecx
push 0x160
lea edx, [ebp - 0x164]
push edx
push 0x90
push 0x46f6d8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dacb
mov esp, ebp
pop ebp
ret 4

Function at 0x44a7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ab38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x480090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.00445520
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.00410050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0041a5f0
lea ecx, [ebp - 0x1c]
call fcn.0040f920
lea eax, [ebp - 0x1c]
push eax
call fcn.00418b20
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004101c0
mov ecx, dword [ebp - 0x10]
call fcn.00442080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45aa90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0045db40
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x45ab6c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call fcn.0045b970
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0045cbe2
add esp, 4
mov dword [ebp - 0x214], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x214]
mov dword [edx], eax
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dacb
mov esp, ebp
pop ebp
ret 8
Function at 0x45b970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45b9a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45b9a2
xor al, al
jmp 0x45b9bf
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.0045dbd0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x466529
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x480090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00462c4c
mov dword [ebp - 0x14], eax
cmp dword [0x4842d4], edi
jne 0x46661a
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4665a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4666fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4666fa
push 0x475c5c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4666fa
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4842d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4842d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4842dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4842e4], eax
test eax, eax
je 0x466617
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4842e0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46663f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x466632
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x466654
push 4
pop eax
jmp 0x4666fc
cmp dword [ebp - 0x14], edi
je 0x466654
push dword [0x4842d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x466639
mov eax, dword [0x4842e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4666b2
cmp dword [0x4842e4], esi
je 0x4666b2
push eax
call ebx
push dword [0x4842e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4666b2
test eax, eax
je 0x4666b2
call ecx
test eax, eax
je 0x4666a7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4666a7
test byte [ebp - 8], 1
jne 0x4666b2
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4666e2
mov eax, dword [0x4842d8]
cmp eax, esi
je 0x4666df
push eax
call ebx
test eax, eax
je 0x4666df
call eax
mov edi, eax
test edi, edi
je 0x4666df
mov eax, dword [0x4842dc]
cmp eax, esi
je 0x4666df
push eax
call ebx
test eax, eax
je 0x4666df
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4842d4]
call ebx
test eax, eax
je 0x4666fa
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4666fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dacb
leave
ret
Function at 0x404052
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402f7f
xor ebx, ebx
cmp dword [0x40ea1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404127
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404092
xor eax, eax
jmp 0x4041eb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40408b
push eax
call fcn.00402f1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea1c], eax
call esi
push eax
call fcn.00402f1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea20], eax
call esi
push eax
call fcn.00402f1c
mov dword [0x40ea24], eax
lea eax, [ebp - 8]
push eax
call fcn.00402345
test eax, eax
pop ecx
pop ecx
je 0x4040f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404127
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402f1c
cmp eax, ebx
pop ecx
mov dword [0x40ea2c], eax
je 0x404127
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f1c
pop ecx
mov dword [0x40ea28], eax
mov eax, dword [0x40ea28]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4041a0
cmp dword [0x40ea2c], esi
je 0x4041a0
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
je 0x40416d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ea2c]
call fcn.00402f88
pop ecx
call eax
test eax, eax
je 0x40416d
test byte [ebp - 0x18], 1
jne 0x4041a0
lea eax, [ebp - 0xc]
push eax
call fcn.0040237c
test eax, eax
pop ecx
je 0x404188
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404197
or dword [ebp + 0x10], 0x200000
jmp 0x4041d1
or dword [ebp + 0x10], 0x40000
jmp 0x4041d1
mov eax, dword [0x40ea20]
cmp eax, esi
je 0x4041d1
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4041d1
mov eax, dword [0x40ea24]
cmp eax, esi
je 0x4041d1
push dword [ebp - 4]
push eax
call fcn.00402f88
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40ea1c]
call fcn.00402f88
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405ebb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e098]
jne 0x405ec5
repz ret
jmp fcn.004074f5
Function at 0x401048
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax - 1]
cmp ecx, 0x100
mov dword [ebp - 8], eax
ja 0x4011c9
cmp byte [eax + edi - 1], 0x5c
je 0x40107f
mov byte [eax + edi], 0x5c
inc eax
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [eax + edi]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40111c
test byte [ebp - 0x148], 0x10
je 0x4010ff
push 0x404114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
push 0x404118
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010ff
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401048
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4010a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x148]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4011a9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x148], 0x10
jne 0x40118c
mov eax, 0x104
sub eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call ebx
test eax, eax
jne 0x401175
cmp dword [ebp + 8], eax
jne 0x401175
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
je 0x40118c
cmp eax, ecx
jne 0x40118c
cmp dword [ebp + 0xc], ecx
je 0x40118c
push 4
push ecx
push edi
call dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40113b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov byte [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011c9
cmp dword [ebp + 0x14], eax
je 0x4011c9
cmp dword [ebp + 0xc], eax
je 0x4011c9
push 4
push eax
push edi
call dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011ce
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push str.MoveFileExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ebx, eax
call esi
test eax, eax
jne 0x401212
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
jne 0x401212
test ebx, ebx
je 0x401212
push 4
push eax
push edi
call ebx
pop esi
pop ebx
ret
Function at 0x401257
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x453c
call fcn.00403210
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13b]
push ebx
push eax
mov byte [ebp - 0x13c], bl
call fcn.00403240
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 8], ebx
je 0x40138c
mov dword [ebp - 4], ebx
jbe 0x40138c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x453c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x3fff
push dword [ebp + 8]
mov byte [ebp - 0x453c], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40137d
push dword [ebp + 0xc]
lea eax, [ebp - 0x453c]
push eax
call fcn.00402f90
test eax, eax
pop ecx
pop ecx
jne 0x401391
push 0x3ff
lea eax, [ebp - 0x53b]
push ebx
push eax
mov dword [ebp - 0x1c], 1
mov byte [ebp - 0x53c], bl
call fcn.00403240
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x453c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40137d
push dword [ebp + 0xc]
lea eax, [ebp - 0x53c]
push eax
call fcn.00402f90
test eax, eax
pop ecx
pop ecx
jne 0x401391
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x4012da
xor eax, eax
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x40138e
Function at 0x401396
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
and dword [ebp - 8], 0
push ebx
push esi
push edi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4013d0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
mov ebx, 0x100
and eax, ebx
mov edi, 0x20019
or eax, edi
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call esi
test eax, eax
jne 0x40147b
push 0x3ff
push eax
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x413]
push eax
mov dword [ebp - 0x14], 7
call fcn.00403240
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x40147b
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push dword [ebp - 0xc]
call fcn.00401215
test eax, eax
pop ecx
pop ecx
je 0x40147b
xor eax, eax
inc eax
jmp 0x4014fd
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, ebx
or eax, edi
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x4014bf
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401257
test eax, eax
pop ecx
pop ecx
push dword [ebp - 4]
je 0x4014b9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401473
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, ebx
or eax, edi
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4014fb
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401257
test eax, eax
pop ecx
pop ecx
push dword [ebp - 4]
jne 0x4014b1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret