joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022180c
Capabilities:
Encode data using base64

Disassembly:
add dword [esp], 0xeff90761
call fcn.1019edd1

Function at 0x1023a943
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.100aeb20
mov ecx, dword [0x1011a58c]
bt esi, edi
cmovo si, sp
add esp, 4
jmp loc.100095fc
push edx
mov dword [esp + 4], 0x8067b211
lea esp, [esp + 4]
call fcn.10063354
rol byte [ebx + 0x1c], cl
xchg byte [ebx - 0xaf4b7e3], al
js 0x1023a991
shl dword [ebx], 0x3d
out dx, eax
cdq
sbb dword [ebx], 0xd7a3375a
pushfd
in eax, 0xef
stosb byte es:[edi], al
and ah, byte [eax + 0x14]
mov dl, 0x1e
int 0xd
dec ebx
imul esp, dword [edi], 0xe9053040
push esi
daa
adc al, 0xda
inc ecx
jmp 0xbc99d0de
dec ebx
mov byte [ebp - 0x1129], 0
jmp 0x10199cea

Function at 0x1023d140
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
mov dword [esi - 4], eax
mov edx, ecx
movzx eax, cx
mov eax, dword [eax + ebp - 0x1488]
sbb ebp, 8
xor eax, ebx
dec eax
dec ecx
not eax
mov dword [esp], ecx
ror eax, 1
lea eax, [eax + edx - 0x1e572444]
xadd dword [esp + 4], ecx
call fcn.10092b16

Function at 0x1023e0d4
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push 0xcb9ac8ab
pushfd
add dword [esp + 4], 0x91188899
test word [esp + 4], 0xa319
not dword [esp + 4]
not dword [esp + 4]
call fcn.100708ce

Function at 0x10250884
Capabilities:
Parse pe header

Disassembly:
mov dword [ebp - 0x45e8], eax
mov dword [ebp - 0x45e4], ecx
jmp loc.1006191c
mov byte [esp + 8], 0x36
push dword [esp + 0x10]
popfd
lea esp, [esp + 0x18]
call fcn.10063354
mov dword [ebp - 0x4fb0], eax
mov ah, al
mov dword [ebp - 0x4fac], ecx
xchg al, al
mov dword [ebp - 0x4a08], 0x6a1dab96
lahf
not ah
cbw
mov dword [ebp - 0x4a04], 0x6892f46f
mov eax, dword [ebp - 0x4a08]
mov ecx, dword [ebp - 0x4a04]
jmp 0x101c7a58
Function at 0x40366b
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4023b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x3e9
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x403702
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4036d3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push edi
push 0x402390
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x403708
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040dd40
mov esp, ebp
pop ebp
ret
Function at 0x403718
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x220], 0x40
push 0x218
push eax
lea eax, [ebp - 0x21c]
mov ebx, edx
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
mov edx, 0x10e
push ebx
call fcn.00403470
mov esi, eax
test esi, esi
jne 0x4038ce
push 0x4023bc
mov edx, 0x10e
lea ecx, [ebp - 0x220]
call fcn.00403470
mov esi, eax
test esi, esi
jne 0x4038ce
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403798
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 2
push esi
push 0x4023cc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4038ce
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push 0x4023ec
push eax
push 0x4023fc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4038ce
push 4
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 1
push eax
push 4
xor edi, edi
push edi
push 0x402410
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4038c2
push 0x218
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 0x40
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x43c]
push ebx
mov ebx, 0x10e
mov edx, ebx
call fcn.00403470
mov esi, eax
test esi, esi
jne 0x4038c2
push 0x402420
mov edx, ebx
lea ecx, [ebp - 0x43c]
call fcn.00403470
mov esi, eax
test esi, esi
jne 0x4038c2
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40388e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x43c]
push eax
push 2
push edi
push 0x402430
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret

Function at 0x403fcb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], esi
push edi
mov edi, esi
cmp dword [ebp + 0xc], esi
jbe 0x40404b
test ebx, ebx
je 0x403fff
lea eax, [ebp - 4]
push eax
push 0x402854
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40402d
mov ebx, esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404025
cmp dword [eax + edi*4], esi
je 0x404025
push 1
push 0x402390
push 1
push esi
push dword [eax + edi*4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40402d
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x403fe3
jmp 0x40403c
jg 0x404033
mov esi, eax
jmp 0x40403c
movzx esi, ax
or esi, 0x80070000
cmp dword [ebp - 4], 0
je 0x40404b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4058db
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00403cc2
test eax, eax
jne 0x405908
mov esi, 0x8007000e
jmp 0x4059fa
cmp dword [ebx + 0x1c], 7
jge 0x405918
mov esi, 0x8007139f
jmp 0x4059fa
test edi, edi
je 0x4059f5
cmp dword [ebp + 8], esi
je 0x4059f5
mov eax, dword [ebx + 0x24]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x405952
test cx, cx
je 0x40594e
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x405952
add edi, 4
add eax, 4
test cx, cx
jne 0x40592c
mov eax, esi
jmp 0x405957
sbb eax, eax
or eax, 1
test eax, eax
je 0x405965
mov esi, 0x80070005
jmp 0x4059fa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push 0x402660
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059e4
lea eax, [ebp - 8]
mov edi, 0x2001f
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059e4
lea eax, [ebp - 4]
push eax
push edi
push esi
mov edi, 0x40266c
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4059c9
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4059e4
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push 0x402694
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4059fa
jg 0x4059ea
mov esi, eax
jmp 0x4059fa
movzx esi, ax
or esi, 0x80070000
jmp 0x4059fa
mov esi, 0x80070057
cmp dword [ebp - 4], 0
je 0x405a09
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x405a18
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x405a27
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.00403cde
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406719
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
call fcn.004034e0
test eax, eax
jne 0x406734
mov esi, 0x8007000e
jmp 0x406774
cmp dword [ebx + 0x1c], 4
jge 0x406741
mov esi, 0x8007139f
jmp 0x406774
test edi, edi
jne 0x40674c
mov esi, 0x80070057
jmp 0x406774
mov edx, dword [ebx + 0x4c]
mov ecx, edi
call fcn.004079cf
test eax, eax
jne 0x406761
mov esi, 0x80070005
jmp 0x406774
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
call fcn.00403cde
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x407cc5
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
jmp 0x407d4e
cmp dword [esi + 8], 0
jne 0x407d4b
cmp dword [esi], 0
je 0x407d4b
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [esi]
lea eax, [ebp - 0x108]
add esp, 0xc
mov ecx, 0x104
push ecx
push eax
push ecx
mov ecx, ebx
call fcn.00407b0f
test eax, eax
je 0x407d48
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x407d48
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407d4b
xor edi, edi
inc edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x407ce5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret
Function at 0x407d65
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [esp + 0x150]
push edi
xor esi, esi
mov ebx, ecx
push esi
push eax
call fcn.004034e0
add esp, 0xc
test ebx, ebx
je 0x407f39
cmp byte [ebx], 0
je 0x407f39
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407f39
push ebx
mov edx, edi
lea ecx, [esp + 0x154]
call fcn.00406f9f
mov esi, eax
test esi, esi
js 0x407f39
lea ecx, [esp + 0x150]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407de2
sub ecx, edx
sub edi, ecx
lea ecx, [esp + 0x150]
push 0x402948
mov edx, edi
call fcn.004071d2
mov esi, eax
test esi, esi
js 0x407f39
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407f39
movzx esi, si
or esi, 0x80070000
jmp 0x407f39
push 0x40294c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x407ee4
push 0x402950
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x407ee4
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x402954
lea eax, [esp + 0x15c]
push 0x103
push eax
call fcn.00407222
mov esi, eax
add esp, 0x14
test esi, esi
js 0x407f2d
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x150]
je 0x407ec6
push 0x90
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x150]
call fcn.00407d65
mov esi, eax
test esi, esi
js 0x407f2d
jmp 0x407ee4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x407f50
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x407f50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407f39
movzx esi, si
or esi, 0x80070000
cmp edi, 0xffffffff
je 0x407f39
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd40
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407f2d
jmp 0x407f24
Function at 0x408065
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x20000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4080f5
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x40295c
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x4080d7
lea edx, [ebp - 4]
mov dword [ebp - 4], esi
mov ecx, edi
call fcn.00408ec6
mov esi, eax
test esi, esi
js 0x4080cc
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4080ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4080ec
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40810a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40810a
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4084d6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov ecx, 0x40f454
mov ebx, edx
inc edi
mov esi, 0x80004005
call fcn.00403cc2
cmp edi, 0x1f4
jg 0x408546
push edi
push 0x402970
push dword [ebp - 0x13c]
push 0x402974
push 0x104
push ebx
call fcn.00407222
add esp, 0x18
mov esi, eax
inc edi
test esi, esi
js 0x4085f7
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408508
test esi, esi
js 0x4085f7
and dword [ebp - 0x134], 0
lea eax, [ebp - 0x138]
and dword [ebp - 0x138], 0
lea edx, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x148]
call fcn.004082e9
mov esi, eax
test esi, esi
js 0x4085f7
lea eax, [ebp - 0x148]
push eax
push ebx
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
test eax, eax
jne 0x4085c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4085c2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4085cd
mov ecx, ebx
call fcn.00408112
mov esi, eax
cmp dword [ebp - 0x134], 0
je 0x4085e2
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x138], 0
je 0x4085f7
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 0x40f454
call fcn.00403cde
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004034e0
mov esp, ebp
pop ebp
ret 4
Function at 0x408773
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x630], ecx
or esi, 0xffffffff
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x4088d1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.ole32.dll_CoRevertToSelf]
cmp esi, 0xffffffff
je 0x4088d1
test esi, esi
je 0x4088d1
mov ecx, edi
call fcn.004077d6
mov dword [ebp - 0x634], eax
cmp eax, edi
je 0x4088d1
mov edi, 0x104
lea eax, [ebp - 0x414]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x630]
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40881d
call fcn.00407404
mov edi, eax
jmp 0x4088d6
push dword [ebp - 0x634]
lea eax, [ebp - 0x414]
push eax
push 0x402988
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00403c18
mov edi, eax
add esp, 0x14
test edi, edi
js 0x4088d6
lea ecx, [ebp - 0x20c]
call fcn.00408d6a
mov edi, eax
test edi, edi
js 0x4088d6
lea ecx, [ebp - 0x20c]
call fcn.00408dd2
push 0
push 0x10c
lea eax, [ebp - 0x62c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
cmp eax, 3
je 0x4088d1
cmp eax, 8
je 0x4088d1
cmp eax, 0x57
je 0x4088d1
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x408811
lea ecx, [ebp - 0x20c]
call fcn.00407fb1
mov edi, eax
test edi, edi
js 0x4088d6
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
jmp 0x4088d6
mov edi, 0x80004005
cmp esi, 0xffffffff
je 0x4088e6
test esi, esi
je 0x4088e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 4
Function at 0x408a1e
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
lea eax, [esp + 0x260]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x408a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408bdb
movzx esi, si
or esi, 0x80070000
jmp 0x408bdb
push ecx
lea eax, [esp + 0x264]
mov edx, ebx
push eax
push 0
lea ecx, [esp + 0x164]
call fcn.004072c5
mov esi, eax
test esi, esi
js 0x408bdb
push 0x4029b0
mov edx, ebx
lea ecx, [esp + 0x15c]
call fcn.004071d2
mov esi, eax
test esi, esi
js 0x408bdb
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408a55
push 0x40294c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408ba0
push 0x402950
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408ba0
lea eax, [esp + 0x158]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x158]
push 0
lea eax, [esp + 0x14]
mov edx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.00406fd3
mov esi, eax
test esi, esi
js 0x408bd4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
lea eax, [esp + 0x1c]
push eax
push 0x4029b8
call fcn.00406fd3
mov esi, eax
test esi, esi
js 0x408bd4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00406f9f
mov esi, eax
test esi, esi
js 0x408bd4
test byte [esp + 0x18], 0x10
je 0x408ba0
push 0x90
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x158]
call fcn.00407d65
mov esi, eax
test esi, esi
js 0x408bd4
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x408bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408bd4
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x36c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004034e0
mov esp, ebp
pop ebp
ret
Function at 0x40a455
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0xf003f
xor esi, esi
push edi
push esi
push 0x402660
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x40a4c9
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x78]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push 0x402bfc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40a50d
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40a51b
test edi, edi
je 0x40a535
jg 0x40a52c
mov esi, edi
jmp 0x40a535
test edi, edi
jne 0x40a515
test ebx, ebx
jg 0x40a527
mov esi, ebx
jmp 0x40a535
movzx esi, bx
jmp 0x40a52f
movzx esi, di
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004034e0
mov esp, ebp
pop ebp
ret 0x20

Function at 0x40a9dc
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x40e438
call fcn.0040e2fc
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x40aa52
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x40aa52
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x40aa52
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x40aa52
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x40aa5b
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.0040e341
ret