joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x100b3ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100b3c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100b3b0
mov eax, 1
add ebx, ebx
jne 0x100b3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100b3c8
jne 0x100b3e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100b3c8
xor ecx, ecx
sub eax, 3
jb 0x100b3f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100b46a
mov ebp, eax
add ebx, ebx
jne 0x100b403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100b410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100b434
inc ecx
add ebx, ebx
jne 0x100b420
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100b415
jne 0x100b431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100b415
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100b454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100b445
jmp 0x100b3b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100b454
add edi, ecx
jmp 0x100b3b6
pop esi
mov edi, esi
mov ecx, 0x11d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100b472
cmp byte [edi], 3
jne 0x100b472
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100b477
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x100b4e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb990]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100b4a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9dc]
or eax, eax
je 0x100b4e0
mov dword [ebx], eax
add ebx, 4
jmp 0x100b4c1
call dword [esi + 0xb9d8]
mov ebp, dword [esi + 0xb9e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100b51a
sub esp, 0xffffff80
jmp 0x1001f7c
Function at 0x4010a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x104
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4010d7
push str.Error:_Cant_locate_source_directory_n
call fcn.00402237
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402162
push 0
push 0
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401fee
add esp, 0x14
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ef0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00401e70
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e70
add esp, 4
mov edx, 0x104
sub edx, eax
push edx
push str.cognexhw.inf
mov eax, dword [ebp + 8]
push eax
call fcn.00401d40
add esp, 0xc
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4019a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov byte [ebp - 4], 0
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4019e3
cmp dword [ebp - 0x8c], 2
jne 0x4019e3
cmp dword [ebp - 0x98], 5
jne 0x4019e3
mov byte [ebp - 4], 1
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push str.Error:_Cant_locate_system_directory___d__n
call fcn.00402237
add esp, 8
cmp dword [ebp - 4], 0
jne 0x401aa3
mov edx, dword [ebp + 8]
push edx
call fcn.00401e70
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
push str.drivers_
mov edx, dword [ebp + 8]
push edx
call fcn.00401d40
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00401e70
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x409030]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401d40
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.00401e70
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
push str..sys
mov edx, dword [ebp + 8]
push edx
call fcn.00401d40
add esp, 0xc
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401ab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c50
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402273
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401c50
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x407584
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401c3e
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfeef04bd
jne 0x401c3e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
and edx, 0xffff0000
shr edx, 0x10
push edx
push str.Driver_Ver:__d.
call fcn.00402237
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
and ecx, 0xffff
cmp ecx, 0xa
jae 0x401b66
push 0x407570
call fcn.00402237
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
and eax, 0xffff
push eax
push 0x40756c
call fcn.00402237
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
and edx, 0xffff0000
test edx, edx
je 0x401bac
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff0000
shr ecx, 0x10
push ecx
push 0x407568
call fcn.00402237
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
and edx, 0xffff0000
shr edx, 0x10
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
push ecx
push str._Build__d_Product_Ver:__d._d
call fcn.00402237
add esp, 0x10
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 0
je 0x401c08
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff0000
shr ecx, 0x10
push ecx
push 0x407568
call fcn.00402237
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
and eax, 0xffff
test eax, eax
je 0x401c31
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
and edx, 0xffff
push edx
push 0x407568
call fcn.00402237
add esp, 8
push 0x407544
call fcn.00402237
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402268
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10082e4
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.0100b214
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0100b214
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0100b214
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x310], cl
inc eax
cmp cl, bl
jne 0x100835c
xor eax, eax
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
cmp cl, bl
jne 0x1008371
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100838b
mov esi, 0x1006468
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10083a1
mov eax, dword [ebp - 0x314]
push 0xe
pop ecx
mov esi, 0x100642c
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10083bc
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10083cc
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0100b1ff
leave
ret 4
Function at 0x1008f40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x10011dc]
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x103
mov byte [ebp - 0x208], al
xor ebx, ebx
lea eax, [ebp - 0x207]
push ebx
push eax
mov dword [ebp - 0x220], esi
call fcn.0100b214
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], 0x100
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x20c], ebx
je 0x10090a6
mov esi, dword [sym.imp.msvcrt.dll_printf]
push edi
push dword [ebp - 0x20c]
push 0x10065f8
call esi
pop ecx
xor edi, edi
cmp dword [ebp - 0x20c], ebx
pop ecx
jbe 0x10090a5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x210], 0x100
mov byte [ebp - 0x104], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1009098
lea eax, [ebp - 0x104]
push eax
lea eax, [edi + 1]
push eax
push 0x10065d0
call esi
add esp, 0xc
push dword [ebp - 0x210]
lea eax, [ebp - 0x104]
push eax
mov eax, dword [0x100ecc8]
imul eax, eax, 0x21
add eax, 0x100e9f0
push eax
call fcn.010081d1
inc dword [0x100ecc8]
mov dword [ebp - 0x214], 1
inc edi
cmp edi, dword [ebp - 0x20c]
jb 0x1009020
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b1ff
leave
ret 4
Function at 0x1009221
Capabilities:
Delete registry key
Get installed programs

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
cmp dword [0x100ecc8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
jle 0x10093e0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 8], 0x100e9f0
mov dword [ebp - 0xc], 0x100eb40
mov edi, 0xf003f
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006788
push 0x80000001
call esi
test eax, eax
jne 0x1009287
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006760
push 0x80000001
call esi
test eax, eax
jne 0x10092af
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x100672c
push 0x80000002
call esi
test eax, eax
jne 0x10092d7
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006708
push 0x80000002
call esi
test eax, eax
jne 0x10092ff
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10066b8
push 0x80000002
call esi
test eax, eax
jne 0x1009327
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006660
push 0x80000002
call esi
test eax, eax
jne 0x100934b
push dword [ebp - 4]
call fcn.01008cad
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006638
push 0x80000002
call esi
test eax, eax
jne 0x1009373
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006624
push 0x80000000
call esi
test eax, eax
jne 0x100939b
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1006610
push 0x80000000
call esi
test eax, eax
jne 0x10093c3
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x27
add dword [ebp - 8], 0x21
cmp eax, dword [0x100ecc8]
jl 0x100925f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10093e7
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf003f
push edi
push 0
push 0x1006820
mov ebx, 0x80000002
push ebx
call esi
test eax, eax
jne 0x100942c
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10067f4
push ebx
call esi
test eax, eax
jne 0x1009454
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10067dc
push 0x80000000
call esi
test eax, eax
jne 0x1009480
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10067b0
push 0x80000001
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x10094af
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x1009c6c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea edx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x358], ebx
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1009c97
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009ca8
mov esi, 0x1006940
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x108]
movsb byte es:[edi], byte [esi]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1009cc2
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009cd3
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
mov esi, 0x1006468
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
jne 0x1009d08
xor eax, eax
jmp 0x1009e3e
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x1009d0a
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 0x34d], 1
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1009e0b
lea eax, [ebp - 0x320]
push eax
call fcn.01008c70
test eax, eax
jne 0x1009e1d
lea eax, [ebp - 0x320]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009d61
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1009d71
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x34c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x1009dc6
lea eax, [ebp - 0x108]
push eax
call fcn.01009c6c
test eax, eax
je 0x1009e4f
lea eax, [ebp - 0x108]
push eax
call ebx
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1009db1
jmp 0x1009e1d
test byte [ebp - 0x34c], 1
je 0x1009de3
lea eax, [ebp - 0x108]
push 0x80
push eax
call dword [sym.imp.msvcrt.dll__chmod]
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1009e4f
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1009df6
jmp 0x1009e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1009e4f
mov byte [ebp - 0x34d], 0
cmp byte [ebp - 0x34d], 0
jne 0x1009d2a
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x358]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b1ff
leave
ret 4
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1009d01
Function at 0x100a1e9
Capabilities:
Delete registry key
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x318], 0
push ebx
push esi
lea esi, [ebp - 0x310]
push edi
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x100a215
lea edi, [ebp - 0x310]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100a226
push 0xd
pop ecx
mov esi, 0x1007170
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x100a240
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a251
push 0xd
pop ecx
mov esi, 0x1007138
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x318]
push eax
push 0xf003f
push 0
push 0x100672c
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a2a3
push 0x1007110
push dword [ebp - 0x318]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x310]
push eax
call fcn.01009c6c
call fcn.0100a027
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
push esi
lea eax, [ebp - 0x108]
push 0x10070fc
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x100a34f
xor esi, esi
cmp dword [0x100ecc8], esi
mov edi, 0x100eb40
jle 0x100a326
mov dword [ebp - 0x314], 0x100e9f0
mov dword [ebp - 0x31c], edi
push dword [ebp - 0x31c]
push dword [ebp - 0x314]
call fcn.010090c1
add dword [ebp - 0x31c], 0x27
add dword [ebp - 0x314], 0x21
inc esi
cmp esi, dword [0x100ecc8]
jl 0x100a2fe
imul esi, esi, 0x27
add esi, edi
push esi
lea eax, [ebp - 0x108]
push 0x10070e8
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.01009221
push 0x10070c4
call fcn.010093e7
lea eax, [ebp - 0x20c]
push eax
call fcn.01009c6c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b1ff
leave
ret 4
Function at 0x100a37b
Capabilities:
Delete registry key
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x318], 0
push ebx
push esi
lea esi, [ebp - 0x310]
push edi
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x100a3a7
lea edi, [ebp - 0x310]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100a3b8
push 0xd
pop ecx
mov esi, 0x1007228
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x20c]
movsb byte es:[edi], byte [esi]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100a3d5
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a3e6
push 0xe
pop ecx
lea eax, [ebp - 0x318]
push eax
push 0xf003f
push 0
push 0x100672c
mov esi, 0x10071f0
push 0x80000002
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a437
push 0x10071c8
push dword [ebp - 0x318]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x310]
push eax
call fcn.01009c6c
call fcn.0100a0bd
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
push esi
lea eax, [ebp - 0x108]
push 0x10070fc
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x100a4e3
xor esi, esi
cmp dword [0x100ecc8], esi
mov edi, 0x100eb40
jle 0x100a4ba
mov dword [ebp - 0x314], 0x100e9f0
mov dword [ebp - 0x31c], edi
push dword [ebp - 0x31c]
push dword [ebp - 0x314]
call fcn.010090c1
add dword [ebp - 0x31c], 0x27
add dword [ebp - 0x314], 0x21
inc esi
cmp esi, dword [0x100ecc8]
jl 0x100a492
imul esi, esi, 0x27
add esi, edi
push esi
lea eax, [ebp - 0x108]
push 0x10070e8
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.01009221
push 0x10071a4
call fcn.010093e7
lea eax, [ebp - 0x20c]
push eax
call fcn.01009c6c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b1ff
leave
ret 4