joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eab0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042e8b0
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x455ee0
push eax
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.00409014
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41eb27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046a2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409014
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.0040872e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409014
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.0040872e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0x24], 0
je 0x41eb9c
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409014
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.0040872e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0x1c], 0
je 0x41ebc7
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409014
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.0040872e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0xc], 0
je 0x41ebf2
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409014
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.0040872e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x41eb15
Function at 0x41ee2b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41eeb2
push esi
call fcn.0042e89a
mov edi, eax
pop ecx
test edi, edi
jne 0x41ee6a
push 8
pop esi
push edi
call fcn.0042e8a5
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41eeb2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4488a4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41eebb
cmp dword [ebp - 0x10], 0
je 0x41eebb
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x41eea4
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41eebb
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x41eebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x41ee5d

Function at 0x41eec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.004020cd
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41efe6
push esi
call fcn.0042e89a
mov edi, eax
pop ecx
test edi, edi
jne 0x41ef12
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
push edi
jmp 0x41eff3
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.004020cd
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41ef01
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41ef6c
cmp dword [ebp - 0x10], 0
je 0x41ef6c
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x44e794
push ecx
push eax
jmp 0x41ef7b
push 0x44e794
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00409558
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.004020cd
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41efd6
cmp dword [ebp - 0x18], 0
je 0x41efd6
push dword [ebp - 0x1c]
push ebx
call fcn.004045a6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
push edi
call fcn.0042e8a5
mov al, 1
jmp 0x41effa
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x41ef01
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
push 0
call fcn.0042e8a5
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x41f144
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e89a
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x41f196
inc dword [ebp - 4]
jmp 0x41f157
cmp eax, ebx
jne 0x41f1b8
cmp dword [ebp - 8], 1
je 0x41f1c6
cmp dword [ebp - 8], 4
jne 0x41f157
push dword [esi]
push 0x44e588
push edi
call fcn.00409558
add esp, 0xc
mov bl, 1
push esi
call fcn.0042e8a5
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
call fcn.004045c9
call fcn.0040872e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046a2
push esi
call fcn.0042e8a5
mov al, 1
jmp 0x41f1c0

Function at 0x41f3f1
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f420
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41f438
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x41f436
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41f5a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.0042e8b0
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x41f5e6
lea esi, [ebp - 0xc]
call fcn.00421d68
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x41f629
lea esi, [ebp - 0xc]
call fcn.00421d7e
cmp edi, ebx
jne 0x41f63c
lea esi, [ebp - 0xc]
call fcn.00421d7e
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x41f658
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x41f62d
Function at 0x41f665
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x38
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0042e8b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
cmp dword [ebp + 0xc], ebx
je 0x41f69a
mov dword [ebp - 0x38], 0x440
push esi
mov esi, dword [edi]
push edi
call fcn.0040a35c
pop ecx
test al, al
je 0x41f6ab
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x41f6cd
mov dword [ebp - 0x28], eax
mov eax, edi
lea edi, [ebp + 0x10]
call fcn.00409ce9
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov esi, edi
call fcn.0040a35c
pop ecx
test al, al
je 0x41f6ed
lea esi, [edi + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x41f70d
lea eax, [edi - 0x10]
call fcn.004046a2
pop edi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x41f72e
cmp dword [ebp - 4], ebx
je 0x41f72e
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x41f6ff
Function at 0x41fcb5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x41fd4e
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.0040a865
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x41fd19
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x41fd8b
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.00408baf
call fcn.0040872e
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0x41c], ebx
je 0x41fd9f
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
leave
ret
Function at 0x4204a5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x4204ef
push eax
jmp 0x420529
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x420524
cmp eax, dword [ebp + 0xc]
jbe 0x420524
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
push edi
mov dword [ebp - 0x8c], eax
call fcn.0042e89a
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x420540
push ebx
call fcn.0042e8a5
pop ecx
cmp esi, ebx
je 0x42052f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x79], bl
call fcn.0040158a
jmp 0x42055f
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4205bb
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x4205bb
mov eax, dword [ebp - 0x88]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x4205a3
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.0040141b
add dword [ebp - 0x88], esi
cmp byte [ebp - 0x79], bl
je 0x420559
lea esi, [ebp - 0x78]
call fcn.004014cc
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.00401543
push dword [ebp - 0x80]
mov bl, al
call fcn.0042e8a5
cmp dword [ebp - 0x98], 0
pop ecx
je 0x4205f0
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x420531

Function at 0x420ebf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x420f52
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
call fcn.004045c9
lea ebx, [ebp - 0x7c]
call fcn.00409497
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.004046a2
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x420f0c
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e88b
add ebp, 0x19c
leave
ret 4
Function at 0x420f6b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x420fcd
push dword [ebp - 4]
call fcn.00404503
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.004020cd
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00409a3c
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x420fda
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [ebp + 8]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x274], eax
call fcn.00409ad4
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x264]
mov ebx, esp
call fcn.00409a5a
add eax, 0x10
mov edx, esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00421238
test al, al
je 0x4210cb
mov eax, esi
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.004218a7
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00421a54
mov esi, dword [ebp - 0x274]
mov ebx, eax
call fcn.00409497
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x270]
call fcn.0042131d
test al, al
je 0x4210cb
xor esi, esi
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046a2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
leave
ret 0x10
cmp dword [ebp + 0xc], 1
jge 0x4210d6
xor esi, esi
inc esi
jmp 0x42109f
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 0x25c], eax
push 0x448930
lea eax, [ebp - 0x25c]
push eax
call fcn.0040217a
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x25c]
call fcn.004020cd
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x26c], 0xffffffff
setne al
test al, al
je 0x4211b2
lea eax, [ebp - 0x258]
call fcn.00421210
test al, al
je 0x42119a
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x260]
call fcn.00408c17
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x260]
pop ecx
push dword [ebp - 0x274]
dec eax
push edi
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov ebx, esp
call fcn.00409a5a
mov ecx, dword [ebp - 0x270]
add eax, 0x10
mov dword [ebx], eax
call fcn.00420fda
test eax, eax
je 0x4211da
mov eax, esi
call fcn.004046a2
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x42113b
cmp dword [ebp - 0x26c], 0
je 0x4211c7
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x4210d1
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0x26c], 0
je 0x4211fd
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x42109d
Function at 0x4214c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp byte [ebp + 0xc], bl
jne 0x421506
push dword [ebp + 8]
call fcn.00421449
pop ecx
cmp byte [ebp + 0x10], bl
je 0x4214fe
cmp eax, ebx
setne byte [ebp + 0x13]
cmp eax, ebx
je 0x4214f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x13]
jmp 0x421596
cmp eax, ebx
sete byte [ebp + 0x13]
jmp 0x4214eb
push 0x5c
call fcn.00408aa2
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], 3
jl 0x421581
lea eax, [ebp - 4]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.00408b38
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00421449
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x421576
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0xc]
lea edx, [edi + 1]
push eax
sub ecx, edx
mov eax, esi
call fcn.00408b38
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [esi - 0x10]
call fcn.004046a2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
xor eax, eax
cmp byte [ebp + 0x10], bl
je 0x421590
cmp dword [ebp + 0xc], ebx
sete al
jmp 0x421596
cmp dword [ebp + 0xc], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x421ff5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [eax + 0x10], ebx
cmp dword [eax + 4], edi
je 0x422087
cmp ebx, edi
je 0x422032
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408c8e
push dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x422090
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x422052
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42207c
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x422078
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x422089
cmp esi, edi
je 0x422087
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4225d6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.00408aa2
test eax, eax
jg 0x4225f8
mov al, 1
jmp 0x422757
mov ecx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00408baf
mov eax, dword [0x455ee0]
mov esi, 0x455ee0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x450318
push eax
call fcn.00409558
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x422643
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0041f5a7
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0040a1e9
test al, al
je 0x42267b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x422722
mov eax, dword [0x455ee0]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0041fcb5
mov eax, dword [0x455ee0]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.0041e765
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.00408aa2
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0041415e
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00409558
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.004046a2
push 0
lea eax, [ebp - 0xc]
call fcn.004143df
pop ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 1], 0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [esi - 0x10]
call fcn.004046a2
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x42273e
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8