joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63303c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x633236
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00632f18
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x59], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x58], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x633248
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x633134
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00406e94
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov ebx, eax
test ebx, ebx
jne 0x633120
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040c8b0
inc edi
lea eax, [ebp - 8]
call fcn.0040b9dc
push eax
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x63328c
call fcn.0040ca9c
mov eax, dword [ebp - 0x1c]
mov edx, 0x6332d0
pop ecx
call fcn.00632f88
test al, al
je 0x633120
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00633804
test ebx, ebx
je 0x6330b6
mov eax, esi
call fcn.00406eb0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x6332e4
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x633201
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00406e94
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov ebx, eax
test ebx, ebx
jne 0x6331ed
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040c8b0
inc edi
cmp dword [ebp - 4], 0
je 0x6331de
mov eax, dword [ebp - 4]
cmp word [eax], 0x2e
jne 0x6331de
lea eax, [ebp - 8]
call fcn.0040b9dc
mov ecx, eax
mov edx, 0x6332f4
mov eax, dword [ebp - 4]
call fcn.00632f88
test al, al
je 0x6331ed
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00633804
jmp 0x6331ed
cmp dword [ebp - 4], 0
je 0x6331ed
mov eax, dword [ebp - 4]
cmp word [eax], 0x2e
ja 0x6331f1
test ebx, ebx
je 0x633173
mov eax, esi
call fcn.00406eb0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x4c]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.00633958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63323d
lea eax, [ebp - 0x1c]
call fcn.0040b9dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba3c
pop eax
jmp eax
Function at 0x63401c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [esp + 8], al
shl edx, 3
and dl, 0xff
movzx eax, byte [esi + 5]
shr eax, 5
or dl, al
mov byte [esp + 9], dl
movzx eax, byte [esi + 5]
shl eax, 2
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor esi, ecx
and esi, 1
inc edx
cmp edx, 8
jne 0x6340c9
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x6340c4
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.0040c4e4
push 1
mov eax, edi
call fcn.0040bfb0
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.00626f60
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6bb9b4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push ecx
mov byte [esp], dl
mov ebx, eax
movzx eax, byte [esp]
cmp al, byte [ebx + 0x60]
je 0x6bba1e
movzx eax, byte [esp]
mov byte [ebx + 0x60], al
xor eax, eax
mov dword [ebx + 0x64], eax
test byte [esp], 1
je 0x6bb9dd
or dword [ebx + 0x64], 0x10000000
test byte [esp], 2
je 0x6bb9ea
or dword [ebx + 0x64], 0x20000000
test byte [esp], 4
je 0x6bb9f7
or dword [ebx + 0x64], 0x40000000
test byte [esp], 8
je 0x6bba04
or dword [ebx + 0x64], 0x80000000
test byte [esp], 0x10
je 0x6bba11
or dword [ebx + 0x64], 0x8000000
test byte [esp], 0x20
je 0x6bba1e
or dword [ebx + 0x64], 0x100
pop edx
pop ebx
ret
Function at 0x723094
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x7230b8
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x75c558]
xor eax, edx
inc esi
dec ecx
jne 0x72309f
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret

Function at 0x73374c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x7337a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00432a54
mov eax, dword [ebp - 4]
call fcn.0040c850
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x733783
test al, 0x10
jne 0x733787
xor ebx, ebx
jmp 0x733789
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7337a8
lea eax, [ebp - 4]
call fcn.0040b9dc
pop eax
jmp eax
Function at 0x401040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x417174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
mov dword [ebp - 0x258], eax
lea edi, [ebx + 2]
jmp 0x401070
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401081
sub eax, edx
sar eax, 1
je 0x4010a1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4010a1
mov dword [esi + eax*2], 0x5c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4010a6
sub ecx, edx
sar ecx, 1
push edi
push dword [ebp - 0x258]
lea eax, [esi + ecx*2]
push eax
call fcn.004064ed
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4010e4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x401104
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401111
inc edi
cmp edi, 0x3e7
jl 0x401070
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040658e
mov esp, ebp
pop ebp
ret

Function at 0x401130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40116e
test dword [ebp + 0xc], 0xfffffff9
jne 0x40116e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401155
pop ebp
jmp fcn.00401e90
test al, 0x10
je 0x40115d
xor eax, eax
pop ebp
ret
test al, 1
je 0x401159
test byte [ebp + 0xc], 2
je 0x401159
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret

Function at 0x401180
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401191
lea eax, [esi + 3]
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4011a4
pop esi
pop ebp
jmp fcn.00401e90
test byte [ebp + 0xc], 2
je 0x4011af
and eax, 0xfffffffe
jmp 0x4011b2
or eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4011c5
pop esi
pop ebp
jmp fcn.00401e90
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4011d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4011e6
pop ebp
jmp fcn.00401e90
xor eax, eax
pop ebp
ret
Function at 0x4012e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [edi + 2], 1
mov ecx, dword [edi + 4]
mov edx, 1
cmovne eax, edx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x401301
mov dword [edx], ecx
test eax, eax
jne 0x401362
push esi
push ecx
call fcn.0040645b
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x401321
pop esi
mov eax, 5
pop edi
pop ebp
ret
mov edi, dword [edi + 4]
push 0
lea ecx, [ebp + 0xc]
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401341
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401346
cmp dword [ebp + 0xc], edi
je 0x40135f
push dword [esi]
call fcn.00406423
add esp, 4
mov dword [esi], 0
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop esi
pop edi
pop ebp
ret

Function at 0x4013a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4013cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], esi
mov ecx, 3
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x417fac], 0
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x401461
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401412
sub ecx, edx
sar ecx, 1
je 0x401432
cmp word [edi + ecx*2 - 2], 0x5c
je 0x401432
mov dword [edi + ecx*2], 0x5c
mov edx, dword [ebp + 0xc]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401437
sub edx, esi
add edi, 0xfffffffe
jmp 0x401450
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401450
jmp 0x40154c
push 0x1a
push edi
call fcn.00401590
add esp, 8
test eax, eax
je 0x4014b8
push 0x5c
push edi
call fcn.0040614b
add esp, 8
test eax, eax
je 0x4014b8
xor ecx, ecx
push 0x5c
push edi
mov word [eax], cx
call fcn.0040614b
mov edx, eax
add esp, 8
test edx, edx
je 0x4014b8
mov ecx, dword [ebp + 0xc]
sub edx, ecx
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4014a0
pop edi
mov eax, 1
pop esi
pop ebp
ret
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014d0
sub ecx, edx
sar ecx, 1
je 0x4014f0
cmp word [edi + ecx*2 - 2], 0x5c
je 0x4014f0
mov dword [edi + ecx*2], 0x5c
lea ecx, [edi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4014f3
mov eax, dword [str.Profiles_]
mov edx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x4102d0]
mov dword [ecx + 4], eax
mov eax, dword [0x4102d4]
mov dword [ecx + 8], eax
mov eax, dword [0x4102d8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4102dc]
mov dword [ecx + 0x10], eax
mov esi, edx
jmp 0x401530
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401530
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401540
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x401c40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x401c6f
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x401c76
call fcn.00401e90
test eax, eax
je 0x401d12
cmp eax, 1
je 0x401c86
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
test al, 0x10
jne 0x401d12
test al, 1
je 0x401d12
push esi
call ebx
cmp eax, 0xffffffff
je 0x401c9d
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x401ca2
call fcn.00401e90
push esi
call ebx
cmp eax, 0xffffffff
jne 0x401cbb
call fcn.00401e90
cmp eax, 1
jne 0x401cc3
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
test al, 0x10
jne 0x401cc3
test al, 1
jne 0x401d30
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401ce8
mov edi, 1
jmp 0x401cef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
cmp eax, 0xffffffff
je 0x401d06
or eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x401d43
call fcn.00401e90
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401d3c
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x208
call fcn.004063e5
mov esi, eax
add esp, 8
test esi, esi
je 0x4025b1
push ebx
push edi
mov edi, dword [ebp + 8]
mov edx, esi
xor ebx, ebx
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402546
push 7
push str.http:__
push esi
call fcn.00406c34
add esp, 0xc
test eax, eax
je 0x402593
push 8
push str.https:__
push esi
call fcn.00406c34
add esp, 0xc
test eax, eax
je 0x402593
push 0x5c
push esi
call fcn.0040614b
add esp, 8
test eax, eax
je 0x402593
xor ecx, ecx
mov word [eax], cx
mov ebx, esi
push 5
push ebx
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call fcn.00406423
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4025c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00406ee0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 2
push 0x210
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 5
call fcn.004063e5
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4026e7
push ebx
call fcn.00401570
lea edx, [ebx + 0x208]
mov ecx, edx
add esp, 4
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x402630
push 0x5c
push edx
call fcn.0040614b
add esp, 8
test eax, eax
je 0x402662
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x208]
push eax
call fcn.00402000
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4026d8
cmp dword [ebp + 0x10], edi
je 0x4026ca
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4026c1
cmp dword [ebp + 8], 0x103
jne 0x4026c1
push 0
call fcn.004030e0
add esp, 4
push 0xc8
call esi
jmp 0x402698
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
push ebx
call fcn.00402000
push ebx
call fcn.00406423
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402790
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x417174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.004022c0
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
cmp word [ebp - 0x414], 0
mov esi, eax
je 0x40286b
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4027e0
mov eax, dword [str.__TrueType_]
cmp byte [0x417fac], 0
mov dword [ecx], eax
mov eax, dword [0x410864]
mov dword [ecx + 4], eax
mov eax, dword [0x410868]
mov dword [ecx + 8], eax
mov eax, dword [0x41086c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x410870]
mov dword [ecx + 0x10], eax
mov eax, dword [0x410874]
mov dword [ecx + 0x14], eax
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionFonts]
cmovne eax, dword [str.SoftwareMicrosoftWindows_NTCurrentVersionFonts]
lea ecx, [ebp - 0x418]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40286b
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x402897
push 0x417f80
push 0xbb8
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x417f80], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040658e
mov esp, ebp
pop ebp
ret
Function at 0x403fc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x417174]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x810], edx
test edi, edi
je 0x4040d0
mov ecx, edi
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ff0
sub ecx, esi
sar ecx, 1
je 0x4040d0
lea eax, [ebp - 0x808]
push eax
push 0x10008
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040d5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ebx, [ebx]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push dword [ebp - 0x808]
mov dword [ebp - 0x80c], 0x400
call ebx
mov esi, eax
cmp esi, 0x103
je 0x4040a2
test esi, esi
jne 0x4040b1
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.00403fc0
mov esi, eax
add esp, 8
test esi, esi
je 0x404030
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040658e
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040658e
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040658e
mov esp, ebp
pop ebp
ret
Function at 0x404170
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x417174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x417fdc]
mov dword [ebp - 0x218], esi
test esi, esi
je 0x40430b
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041a0
sub ecx, edx
sar ecx, 1
je 0x40430b
push ebx
push 2
push 0x104
call fcn.004063e5
push 2
push 0x104
mov ebx, eax
call fcn.004063e5
add esp, 0x10
cmp word [esi], 0
mov dword [ebp - 0x214], eax
je 0x4042fb
push edi
push 0x23
push esi
call fcn.0040609d
add esp, 8
test eax, eax
je 0x404204
push 0x104
push esi
push ebx
call fcn.00402020
add esp, 0xc
jmp 0x404260
mov ecx, dword [0x417144]
mov edx, ebx
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
lea ecx, [ecx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x404210
push ebx
call fcn.00401000
add esp, 4
mov edx, esi
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404230
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404240
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
push 0x5c
push ebx
call fcn.0040614b
mov edi, eax
add esp, 8
test edi, edi
je 0x4042c5
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00401d50
add esp, 4
test eax, eax
jne 0x4042c5
lea eax, [ebp - 0x210]
push eax
call fcn.00401570
push ebx
call fcn.00402000
add esp, 8
test al, al
je 0x4042c5
lea eax, [edi + 2]
push eax
call fcn.00404640
push dword [0x417144]
call fcn.00401fc0
push dword [0x417144]
call fcn.00402000
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4042d0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
mov dword [ebp - 0x218], esi
cmp word [esi], cx
jne 0x4041e4
mov eax, dword [ebp - 0x214]
pop edi
push eax
call fcn.00406423
push ebx
call fcn.00406423
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040658e
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 1
push 0x250
call fcn.004063e5
mov edi, eax
add esp, 8
test edi, edi
je 0x40481b
push ebx
push esi
push edi
push 0x410988
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x40471d
lea ecx, [ecx]
test byte [edi], 0x10
je 0x404700
lea esi, [edi + 0x2c]
push 0x410990
push esi
call fcn.00406279
add esp, 8
test eax, eax
je 0x4046fd
push 0x41095c
push esi
call fcn.00406279
add esp, 8
test eax, eax
je 0x4046fd
push esi
call fcn.00402000
add esp, 4
test al, al
je 0x4046fd
push 2
push 0x104
call fcn.004063e5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4046fa
push ebx
call fcn.00401570
push ebx
call fcn.00401d50
push ebx
mov esi, eax
call fcn.00406423
add esp, 0xc
test esi, esi
mov esi, dword [ebp + 8]
jne 0x4046f5
push esi
call fcn.00404640
add esp, 4
mov ebx, dword [ebp - 4]
jmp 0x404700
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404680
push dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
jmp 0x404723
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404752
test byte [edi], 0x10
jne 0x404743
lea ecx, [edi + 0x2c]
push ecx
call fcn.004011d0
add esp, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404732
push esi
call ebx
push 2
push 0x104
call fcn.004063e5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404803
push ebx
call fcn.00401570
push ebx
call fcn.00401d50
push ebx
mov esi, eax
call fcn.00406423
add esp, 0xc
test esi, esi
jne 0x404803
push edi
push 0x410988
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4047ee
test byte [edi], 0x10
je 0x4047da
lea esi, [edi + 0x2c]
push 0x410990
push esi
call fcn.00406279
add esp, 8
test eax, eax
je 0x4047cc
push 0x41095c
push esi
call fcn.00406279
add esp, 8
test eax, eax
jne 0x4047da
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4047a0
jmp 0x4047e1
mov dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x404803
call fcn.00404320
push edi
call fcn.00406423
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x41095c
call fcn.00402000
add esp, 4
push edi
call fcn.00406423
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret