joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x4239a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TGOqOPny
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x4239c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4239c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4239b8
mov eax, 1
add ebx, ebx
jne 0x4239db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4239d0
jne 0x4239ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4239d0
xor ecx, ecx
sub eax, 3
jb 0x423a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423a72
mov ebp, eax
add ebx, ebx
jne 0x423a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423a3c
inc ecx
add ebx, ebx
jne 0x423a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423a1d
jne 0x423a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423a4d
jmp 0x4239be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423a5c
add edi, ecx
jmp 0x4239be
pop esi
mov edi, esi
mov ecx, 0x138
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423a7a
cmp byte [edi], 6
jne 0x423a7a
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 al, bl
loop 0x423a7f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23030]
or eax, eax
je 0x423ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x423ac9
call dword [esi + 0x2302c]
mov ebp, dword [esi + 0x23034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423b22
sub esp, 0xffffff80
jmp 0x4038fc
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
call fcn.0040896e
add ebx, ebx
sub ebx, 0x4e69759e
xor dword [edx], edi
sub ebx, 0x5fcbe371
inc edx
sub ebx, ecx
and ebx, ecx
cmp edx, esi
jne fcn.00408936
mov ecx, 0x6fd20e68
sub ecx, ebx
ret
Function at 0x10001b46
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push 0x200
push ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
push 1
push edi
call dword [sym.imp.urlmon.dll_CreateUriFromMultiByteString]
test eax, eax
js 0x10001bca
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
or dword [ebp - 8], 0xffffffff
push esi
push edx
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x60]
mov ecx, esi
call dword [0x1000612c]
call esi
test eax, eax
js 0x10001bb6
cmp dword [ebp - 8], 2
je 0x10001ba5
cmp dword [ebp - 8], 0xb
jne 0x10001bb6
push 1
push ebx
push ebx
push edi
push 0x100011f8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1000612c]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100035c0
mov esp, ebp
pop ebp
ret
Function at 0x100025d8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 1
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x12c], edx
je 0x1000260e
cmp dword [ebp + 0x10], 2
je 0x1000260e
push 0x57
pop eax
jmp 0x1000265c
test eax, eax
je 0x10002640
push eax
push edi
lea eax, [ebp - 0x128]
push 0x124
push eax
call fcn.1000174e
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
jmp 0x1000264a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x12c]
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100035c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000266e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10001294
push ecx
mov edi, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x100027be
mov ecx, dword [ebp - 4]
xor edx, edx
push 1
push ebx
push 0x1000129c
call fcn.100025d8
mov esi, eax
test esi, esi
jne 0x100027b5
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push 3
push ebx
push 0x100012b0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
mov esi, eax
test esi, esi
jne 0x100027b5
mov ecx, dword [ebp - 4]
mov edx, 0x100012bc
push 1
push ebx
push 0x10001130
call fcn.100025d8
mov esi, eax
test esi, esi
jne 0x100027b5
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100012cc
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x100027b5
cmp dword [ebp + 8], ebx
mov ecx, dword [ebp - 0xc]
setne bl
xor edx, edx
inc ebx
push ebx
push edi
push 0x100012d8
call fcn.100025d8
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x100027b5
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push 0x100012e0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x100027b5
and dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
call fcn.10001885
test eax, eax
je 0x10002799
cmp dword [ebp - 0x10], 5
jb 0x10002799
push ebx
push edi
push 0x100012f4
jmp 0x100027a0
push ebx
push edi
push 0x10001320
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.100025d8
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002c73
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
push 0x2001f
push ebx
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002d00
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExA]
test eax, eax
jne 0x10002cec
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.10002c73
test eax, eax
je 0x10002caa
push dword [ebp - 0x10c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100035c0
mov esp, ebp
pop ebp
ret
Function at 0x10003040
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
xor edx, edx
mov ecx, 0x100013f0
jmp fcn.100027c9

Function at 0x10003060
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov ecx, 0x100013f0
jmp fcn.10002d11

Function at 0x100037d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1000380e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10003806
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10003810
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100037f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100038e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100038f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10003911
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401110
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413018]
jne 0x40111a
repz ret
jmp fcn.00401df8

Function at 0x40a74d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004041ed
and dword [ebp - 4], 0
cmp dword [0x415f90], 0
mov ebx, eax
jne 0x40a7fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8af
push eax
call fcn.0040417b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415f90], eax
call esi
push eax
call fcn.0040417b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415f94], eax
call esi
push eax
call fcn.0040417b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415f98], eax
call esi
push eax
call fcn.0040417b
pop ecx
mov dword [0x415fa0], eax
test eax, eax
je 0x40a7fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040417b
pop ecx
mov dword [0x415f9c], eax
mov eax, dword [0x415f9c]
cmp eax, ebx
je 0x40a856
cmp dword [0x415fa0], ebx
je 0x40a856
push eax
call fcn.004041f6
push dword [0x415fa0]
mov esi, eax
call fcn.004041f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a856
test edi, edi
je 0x40a856
call esi
test eax, eax
je 0x40a84d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a84d
test byte [ebp - 0xc], 1
jne 0x40a856
or dword [ebp + 0x10], 0x200000
jmp 0x40a88f
mov eax, dword [0x415f94]
cmp eax, ebx
je 0x40a88f
push eax
call fcn.004041f6
pop ecx
test eax, eax
je 0x40a88f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a88f
mov eax, dword [0x415f98]
cmp eax, ebx
je 0x40a88f
push eax
call fcn.004041f6
pop ecx
test eax, eax
je 0x40a88f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415f90]
call fcn.004041f6
pop ecx
test eax, eax
je 0x40a8af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ca00
Capabilities:
Copy file
Create directory
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a64
call fcn.0040a9d0
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1a64], 0
lea eax, [ebp - 0x1a60]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1a60]
push ecx
push str._sK7BackupDir
push 0x400
lea edx, [ebp - 0x1008]
push edx
call fcn.00401238
add esp, 0x10
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ca86
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ca86
jmp 0x40cc0c
mov edx, dword [ebp + 8]
push edx
push 0x4114e8
push 0x400
lea eax, [ebp - 0x1a60]
push eax
call fcn.00401238
add esp, 0x10
lea ecx, [ebp - 0x1258]
push ecx
lea edx, [ebp - 0x1a60]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1a64], eax
cmp dword [ebp - 0x1a64], 0xffffffff
jne 0x40cacb
jmp 0x40cc0c
push 0x4114f4
lea eax, [ebp - 0x122c]
push eax
call fcn.00401aae
add esp, 8
test eax, eax
je 0x40cafb
push 0x4114f8
lea ecx, [ebp - 0x122c]
push ecx
call fcn.00401aae
add esp, 8
test eax, eax
jne 0x40cb00
jmp 0x40cbd1
mov edx, dword [ebp - 0x1258]
and edx, 0x10
je 0x40cb10
jmp 0x40cbd1
push 0x411500
lea eax, [ebp - 0x122c]
push eax
call fcn.00401a5d
add esp, 4
lea ecx, [ebp + eax*2 - 0x1234]
push ecx
call fcn.004013ee
add esp, 8
test eax, eax
jne 0x40cbd1
lea edx, [ebp - 0x122c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x41150c
push 0x400
lea ecx, [ebp - 0x1a60]
push ecx
call fcn.00401238
add esp, 0x14
lea edx, [ebp - 0x122c]
push edx
lea eax, [ebp - 0x1008]
push eax
push 0x411518
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00401238
add esp, 0x14
cmp dword [0x41688c], 5
jbe 0x40cbbb
lea edx, [ebp - 0x122c]
push edx
call fcn.0040c9a0
add esp, 4
test eax, eax
je 0x40cbb9
push 0
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x1a60]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40cbd1
push 0
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1a60]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x1258]
push ecx
mov edx, dword [ebp - 0x1a64]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cacb
mov eax, dword [ebp - 0x1a64]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x125c], 1
xor ecx, ecx
jne 0x40ca2b
mov eax, dword [ebp - 0x125c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401110
mov esp, ebp
pop ebp
ret
Function at 0x40cc60
Capabilities:
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xee
mov eax, dword [0x41699c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40cc94
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jge 0x40ce31
mov dword [0x41699c], 0
jmp 0x40ccb9
mov edx, dword [0x41699c]
add edx, 1
mov dword [0x41699c], edx
mov eax, dword [0x41699c]
cmp eax, dword [ebp - 8]
jge 0x40ce2c
cmp dword [ebp - 4], 0
jne 0x40cd7a
mov ecx, dword [0x41699c]
shl ecx, 0xb
add ecx, 0x416ba8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40cd7a
mov edx, dword [0x41699c]
shl edx, 0xb
add edx, 0x416ba8
push edx
push 0x411418
mov eax, dword [0x426bc4]
push eax
call fcn.00401481
add esp, 0xc
push 0x80
mov ecx, dword [0x41699c]
shl ecx, 0xb
add ecx, 0x416ba8
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x100
lea edx, [ebp - 0x210]
push edx
mov eax, dword [0x41699c]
shl eax, 0xb
add eax, 0x416ba8
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [0x426bc0], 1
jmp 0x40ce27
cmp dword [ebp - 4], 1
jne 0x40ce27
mov eax, dword [0x41699c]
shl eax, 0xb
add eax, 0x416ba8
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40ce27
mov ecx, dword [0x41699c]
shl ecx, 0xb
add ecx, 0x416ba8
push ecx
push str.Removing_ZeroAccess_entry____s_n
mov edx, dword [0x426bc4]
push edx
call fcn.00401481
add esp, 0xc
push 0x80
mov eax, dword [0x41699c]
shl eax, 0xb
add eax, 0x416ba8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x100
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x41699c]
shl edx, 0xb
add edx, 0x416ba8
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 4
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [0x426bc0], 1
jmp 0x40ccaa
jmp 0x40cc8b
mov dword [ebp - 0xc], 2
xor edx, edx
jne 0x40cc82
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401110
mov esp, ebp
pop ebp
ret
Function at 0x40d530
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d579
jmp 0x40d61a
push 0x1000
call fcn.0040160d
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d594
jmp 0x40d61a
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d5b3
jmp 0x40d61a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x40d5c8
jmp 0x40d61a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
lea edx, [eax + edx - 0x10]
cmp ecx, edx
jb 0x40d5ed
jmp 0x40d61a
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x40d5fa
jmp 0x40d61a
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x5e]
cmp edx, 0x8100
je 0x40d60b
jmp 0x40d61a
mov dword [ebp - 8], 1
xor eax, eax
jne 0x40d552
cmp dword [ebp - 0xc], 0
je 0x40d62a
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40d643
mov edx, dword [ebp - 4]
push edx
call fcn.00401530
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40da40
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a5c
call fcn.0040a9d0
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a5c], 0
mov eax, dword [ebp + 8]
push eax
push str._s
push 0x400
lea ecx, [ebp - 0x1a58]
push ecx
call fcn.00401238
add esp, 0x10
lea edx, [ebp - 0xa58]
push edx
lea eax, [ebp - 0x1a58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a5c], 0xffffffff
jne 0x40daa6
jmp 0x40dc90
push 0x411530
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.00401aae
add esp, 8
test eax, eax
je 0x40dad6
push 0x411534
lea edx, [ebp - 0xa2c]
push edx
call fcn.00401aae
add esp, 8
test eax, eax
jne 0x40dadb
jmp 0x40dc5f
push str..sys
lea eax, [ebp - 0xa2c]
push eax
call fcn.00401a5d
add esp, 4
lea ecx, [ebp + eax*2 - 0xa34]
push ecx
call fcn.004013ee
add esp, 8
test eax, eax
jne 0x40dc5f
cmp dword [0x41688c], 5
jbe 0x40db28
lea edx, [ebp - 0xa2c]
push edx
call fcn.0040c9a0
add esp, 4
test eax, eax
jne 0x40db28
jmp 0x40dc5f
lea eax, [ebp - 0xa2c]
push eax
push str.Scanning____s_n
mov ecx, dword [0x426bc4]
push ecx
call fcn.00401515
add esp, 0xc
lea edx, [ebp - 0xa2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s_s.K7Bak
push 0x400
lea ecx, [ebp - 0x1258]
push ecx
call fcn.00401238
add esp, 0x14
lea edx, [ebp - 0xa2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x411580
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00401238
add esp, 0x14
lea edx, [ebp - 0x808]
push edx
call fcn.0040cf60
add esp, 4
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40dbcc
lea edx, [ebp - 0xa2c]
push edx
push str.Unable_to_rename_file____s_n
mov eax, dword [0x426bc4]
push eax
call fcn.00401515
add esp, 0xc
lea ecx, [ebp - 0xa2c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
push 0x400
lea eax, [ebp - 0x1a58]
push eax
call fcn.00401238
add esp, 0x14
push 0
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x1a58]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40dc38
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x1258]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea edx, [ebp - 0xa2c]
push edx
push str.Unable_to_copy_backup_file_file____s_n
mov eax, dword [0x426bc4]
push eax
call fcn.00401515
add esp, 0xc
lea ecx, [ebp - 0x1258]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0xa2c]
push edx
push str.Generic_cleanup_done____s_n
mov eax, dword [0x426bc4]
push eax
call fcn.00401515
add esp, 0xc
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0x1a5c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40daa6
mov eax, dword [ebp - 0x1a5c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
jne 0x40da61
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401110
mov esp, ebp
pop ebp
ret