joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a60
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push edi
mov edi, ecx
push 0x10e
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10009b0b
cmp eax, 0x10e
jae 0x10009b0b
push esi
mov esi, 0x10e
lea edx, [eax + edi]
mov ecx, 0
sub esi, eax
je 0x10009a9e
cmp esi, 0x7fffffff
jbe 0x10009aa3
mov ecx, 0x80070057
test ecx, ecx
js 0x10009afa
mov ecx, esi
test esi, esi
je 0x10009adc
mov edi, SysReAllocString
sub edi, esi
mov esi, 0x1000227c
sub esi, edx
jmp 0x10009ac0
lea eax, [edi + ecx]
test eax, eax
je 0x10009ad8
mov al, byte [esi + edx]
test al, al
je 0x10009ad8
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x10009ac0
jmp 0x10009adc
test ecx, ecx
jne 0x10009add
dec edx
neg ecx
mov byte [edx], 0
pop esi
sbb ecx, ecx
xor eax, eax
and ecx, 0x7ff8ff86
add ecx, 0x8007007a
test ecx, ecx
pop edi
setns al
ret
test esi, esi
je 0x10009b01
mov byte [edx], 0
xor eax, eax
test ecx, ecx
pop esi
setns al
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x10009b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x10009b5a
cmp dword [ebp - 4], 1
jbe 0x10009b5a
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009f10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10013064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10009f71
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011be0
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x224]
call fcn.10009a60
test eax, eax
je 0x10009f9e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10011be0
mov esp, ebp
pop ebp
ret

Function at 0x1000a2f0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10013064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100133e4], 0
mov dword [ebp - 0x118], 0
jne 0x1000a411
lea eax, [ebp - 0x118]
push eax
push ecx
lea ecx, [ebp - 0x114]
call fcn.10009b70
add esp, 8
test eax, eax
jne 0x1000a38b
push 1
call fcn.10009700
push 0x100133c4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100133f0
push 0
push 0
push 0
push 0
push 0x100013d8
push 0
mov dword [0x10013400], 1
push 0x1000a020
mov dword [0x100133e0], 1
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011be0
mov esp, ebp
pop ebp
ret
cmp dword [0x100133e8], 0
lea eax, [ebp - 0x114]
mov dword [0x10013058], eax
mov byte [ebp - 7], 0
jne 0x1000a3ad
mov dword [0x100133e8], 0xfff
cmp dword [0x100133e4], 0
jne 0x1000a3d0
mov ecx, 0x23fa
call fcn.10009810
cmp dword [0x10013070], 0xffffffff
jne 0x1000a3d0
push 1
call fcn.10009700
cmp dword [0x10013008], 0x10009500
jne 0x1000a407
cmp dword [ebp - 0x118], 0
je 0x1000a407
push 0x100022e4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x10013058]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x100022ec
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x10013058], 0x10002304
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000fcc2
mov esp, ebp
pop ebp
ret
Function at 0x10011580
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10013064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x1001166a
push ebx
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0xc], 0
jne 0x10011662
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 9
je 0x10011652
push edi
push 0x800
push 0
push 0x10003858
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10011651
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
test eax, eax
je 0x10011636
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x10011636
push 0xffffffffffffffff
push 0x10003854
push 0xffffffffffffffff
push 0x10003854
push 0x30000
push 0x400
mov ecx, eax
call dword [0x10014154]
call dword [ebp - 8]
test eax, eax
je 0x10011636
mov dword [esi], edi
jmp 0x10011651
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
cmp dword [esi], 0
jne 0x1001165e
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10011be0
mov esp, ebp
pop ebp
ret

Function at 0x10011fa0
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 0x10011fde
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10011fd6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10011fe0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10011fc6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100120c0
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 0x100120d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100120f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
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.004034e0
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 fcn.004034e0
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 0x4042d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0xc]
push 4
pop ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
call fcn.0040a7f6
mov esi, eax
test esi, esi
jne 0x404382
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push 0x4024a8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404333
lea eax, [ebp - 4]
push eax
push 0x4024a8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404373
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404356
mov eax, dword [ebp - 8]
inc eax
jmp 0x404359
xor eax, eax
inc eax
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404382
jg 0x404379
mov esi, eax
jmp 0x404382
movzx esi, ax
or esi, 0x80070000
cmp dword [ebp - 4], edi
je 0x404390
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 4
Function at 0x405069
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x478], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x210
mov dword [esp + 0x10], eax
mov esi, edx
lea eax, [esp + 0x274]
mov ebx, ecx
push 0
push eax
call sub.msvcrt.dll_memset
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
add esp, 0x18
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00403cc2
test eax, eax
jne 0x4050d7
mov esi, 0x8007000e
jmp 0x405259
cmp dword [ebx + 0x1c], 6
jge 0x4050e7
mov esi, 0x8007139f
jmp 0x405259
test esi, esi
je 0x405254
cmp dword [ebp + 8], 0
je 0x405254
mov edi, dword [esp + 0xc]
test edi, edi
je 0x405254
mov eax, dword [ebx + 0x24]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40512e
test cx, cx
je 0x40512a
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40512e
add esi, 4
add eax, 4
test cx, cx
jne 0x405108
xor eax, eax
jmp 0x405133
sbb eax, eax
or eax, 1
test eax, eax
je 0x405141
mov esi, 0x80070005
jmp 0x405259
push dword [ebp + 8]
mov edx, 0x104
lea ecx, [esp + 0x6c]
call fcn.00403be3
test eax, eax
js 0x405254
lea ecx, [esp + 0x68]
call fcn.00408dd2
lea ecx, [esp + 0x68]
call fcn.00408d6a
test eax, eax
js 0x405254
lea ecx, [esp + 0x68]
call fcn.00408e9f
test eax, eax
js 0x405254
push ecx
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
call fcn.00403e6d
mov esi, eax
test esi, esi
js 0x405259
cmp dword [ebx + 0x54], 0
jne 0x4051af
lea ecx, [esp + 0x68]
call fcn.0040942f
test eax, eax
je 0x405137
mov ecx, 0x108
lea eax, [esp + 0x270]
push ecx
mov edx, ecx
lea ecx, [esp + 0x6c]
push eax
call fcn.0040a6b4
mov esi, eax
test esi, esi
js 0x405259
cmp dword [ebp + 0xc], 0
je 0x4051f4
push 0x402560
mov edx, 0x108
lea ecx, [esp + 0x274]
call fcn.00403470
mov esi, eax
test esi, esi
js 0x405259
xor ecx, ecx
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x290]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405238
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405259
movzx esi, si
or esi, 0x80070000
jmp 0x405259
push edi
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00403ec8
mov esi, eax
test esi, esi
js 0x405259
mov dword [ebx + 0x1c], 8
jmp 0x405259
mov esi, 0x80070057
cmp dword [esp + 0x14], 0
je 0x40526a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x40527b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00403cde
mov ecx, dword [esp + 0x484]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4056b4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x8007000e
push 0x14
pop ecx
call fcn.0040352e
mov esi, eax
test esi, esi
je 0x405787
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 4], eax
test eax, eax
je 0x405780
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
test eax, eax
je 0x405777
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push eax
push esi
push 0x4052a0
push eax
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x405759
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405745
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405740
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x405750
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40576e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40576b
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 4], eax
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, esi
call fcn.00403541
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
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.004034e0
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.00403cc2
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 sub.msvcrt.dll_memset
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