joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee7a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405888
xor eax, eax
push ebp
push 0x4ee8e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4ee8b5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405898
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040aba0
test al, al
jne 0x4ee825
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403858
lea eax, [ebp - 0x1d0]
call fcn.004035f4
call fcn.004030d4
push dword [0x4fdfd8]
push 0x4ee8fc
push dword [0x4fdfdc]
push 0x4ee8fc
push dword [0x4fdfe0]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040579c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004e9580
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405bb8
call fcn.00403f50
call fcn.004030d4
lea eax, [ebp - 0x1d0]
call fcn.00403920
call fcn.004030d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee8bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee8ec
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.0040542c
lea eax, [ebp - 4]
call fcn.00405408
ret
Function at 0x4015d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x114]
push ebx
call fcn.004021f0
add esp, 4
test eax, eax
jne 0x4015f4
push ebx
call fcn.004016b0
add esp, 4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x40169e
push esi
push eax
call fcn.0040d42b
mov ebx, eax
push 0x208
push 0x40
mov dword [ebp + 0xc], ebx
call fcn.00405c20
mov esi, eax
mov eax, 0x2c
mov word [ebp + 8], ax
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040b7ca
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [edi + 0x954], 0
je 0x401652
cmp byte [edi + 0xb60], 0
lea ecx, [edi + 0xb60]
je 0x401652
push eax
push ecx
jmp 0x40165a
push eax
lea eax, [edi + 0x114]
push eax
push 0x41687c
push esi
call ebx
add esp, 0x10
push esi
call fcn.004021f0
add esp, 4
test eax, eax
jne 0x40167a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp + 8]
push eax
push 0
call fcn.0040b7ca
add esp, 8
test eax, eax
jne 0x401636
push dword [ebp + 0xc]
call fcn.0040b7e8
push esi
call fcn.00405c70
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4016b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5c
push edi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00409860
push esi
call fcn.0040d42b
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], eax
push ecx
push eax
call fcn.0040b7ca
add esp, 0x18
mov edx, eax
cmp byte [esi], 0x5c
jne 0x40172a
cmp byte [esi + 1], 0x5c
jne 0x40172a
mov cx, word [0x416b00]
mov word [ebp - 0x20c], cx
mov cl, byte [0x416b02]
mov byte [ebp - 0x20a], cl
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401730
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401740
mov ecx, edx
lea eax, [ebp - 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call fcn.0040b7ca
mov edx, eax
add esp, 8
test edx, edx
je 0x4017da
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
nop word [eax + eax]
lea eax, [ebp - 0x20c]
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401790
push edx
sub eax, esi
lea ecx, [ebp - 0x20c]
add eax, ecx
push 0x416b04
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4017c2
call edi
lea eax, [ebp - 0x210]
push eax
push 0
call fcn.0040b7ca
mov edx, eax
add esp, 8
test edx, edx
jne 0x401780
pop ebx
push dword [ebp - 0x214]
call fcn.0040b7e8
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x401800
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x417794
push 1
push 0
push 0x4177b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x401954
mov eax, dword [ebp - 0x210]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0x210]
push 0
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x4177a4
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x401946
mov edx, dword [ebp - 0x21c]
lea edi, [edx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4018c5
mov ax, word [0x416af8]
mov esi, ebx
mov word [edi], ax
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4018e0
sub ebx, esi
lea edi, [edx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4018f0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
push eax
push 0xffffffffffffffff
push edx
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x401b60
Capabilities:
Delete registry key
Delete registry value
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x118], ebx
cmp dword [0x426254], ebx
je 0x401da0
push esi
push edi
mov ecx, 0x426254
xor esi, esi
mov eax, dword [esi + 0x426250]
test eax, eax
je 0x401ba7
cmp eax, dword [0x42c64c]
jne 0x401d7e
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
lea edi, [esi + 0x426258]
push edi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d72
cmp byte [esi + 0x426460], 0
lea ebx, [esi + 0x426460]
mov al, byte [esi + 0x42635c]
lea ecx, [esi + 0x42635c]
je 0x401c38
test al, al
je 0x401c29
lea eax, [ebp - 0x11c]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x401c1b
push ebx
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401c4f
push ebx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401c4d
test al, al
je 0x401d6c
push ecx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test edi, edi
je 0x401d6c
push 0x103
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
call fcn.00409860
mov eax, dword [str.value]
lea ecx, [ebp - 0xc]
cmp byte [esi + 0x426460], 0
mov ebx, dword [ebp - 0x118]
mov dword [ebp - 0xc], eax
mov ax, word [0x416b1c]
mov word [ebp - 8], ax
lea eax, [esi + 0x426258]
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x79656b
cmovne eax, ecx
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
push ebx
push str._d._Error__d___Unable_to_delete__s__s
push eax
call edi
add esp, 0x24
cmp byte [esi + 0x42635c], 0
je 0x401d03
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ce0
lea eax, [esi + 0x42635c]
sub ecx, edx
push eax
lea eax, [ebp - 0x110]
add eax, ecx
push 0x416b04
push eax
call edi
add esp, 0xc
cmp byte [esi + 0x426460], 0
je 0x401d38
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401d15
lea eax, [esi + 0x426460]
sub ecx, edx
push eax
lea eax, [ebp - 0x110]
add eax, ecx
push 0x416b48
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x110]
dec eax
nop
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x401d40
mov cx, word [0x416b50]
mov word [eax], cx
mov cl, byte [0x416b52]
mov byte [eax + 2], cl
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401d72
mov ebx, dword [ebp - 0x118]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
imul esi, ebx, 0x458
cmp dword [esi + 0x426254], 0
mov dword [ebp - 0x118], ebx
lea ecx, [esi + 0x426254]
jne 0x401b91
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x401db0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
push 0x40
call fcn.00405c20
push 0x208
push 0x40
mov dword [ebp - 0x148], eax
call fcn.00405c20
add esp, 0x10
mov edi, eax
test ebx, ebx
je 0x401f49
test esi, esi
je 0x401f49
cmp byte [ebx], 0
je 0x401f49
cmp byte [esi], 0
je 0x401f49
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x401f49
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push str._s.
push dword [ebp - 0x148]
call esi
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x401f35
nop dword [eax]
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
jne 0x401e88
push eax
push ebx
push 0x416530
push edi
call esi
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401f07
mov ecx, 0x416b10
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401eb0
test dl, dl
je 0x401eac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401eb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401e90
xor eax, eax
jmp 0x401eb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f07
mov eax, 0x416b14
lea ecx, [ebp - 0x118]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401ee4
test dl, dl
je 0x401ee0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401ee4
add ecx, 2
add eax, 2
test dl, dl
jne 0x401ec4
xor eax, eax
jmp 0x401ee9
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f07
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x416530
push edi
call esi
push edi
push edi
call fcn.00401db0
add esp, 0x18
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401e60
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x148]
call fcn.00405c70
push edi
call fcn.00405c70
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret

Function at 0x401f60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040d42b
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
nop dword [eax]
push esi
push edi
call ebx
push 0x5c
push esi
call fcn.00408f30
add esp, 8
test eax, eax
je 0x401f98
mov byte [eax], 0
jmp 0x401f80
push esi
call fcn.0040b7e8
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402910
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x416a5c
push 0xcd
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x102
push 2
push 0
push 1
push 0x40000000
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4029d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [0x416a82]
mov edx, eax
movups xmm0, xmmword [str.CAB_file_could_not_be_created._r_n_r_n]
mov ax, word [0x416a80]
push dword [ebp + 0xc]
mov byte [ebp - 6], cl
lea ecx, [ebp - 0x28]
push ecx
movups xmmword [ebp - 0x28], xmm0
push edx
movups xmm0, xmmword [0x416a70]
push 0
mov word [ebp - 8], ax
movups xmmword [ebp - 0x18], xmm0
call fcn.00401fb0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408060
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret

Function at 0x402a00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ad5
mov eax, dword [0x416a84]
mov esi, ebx
mov dword [ebp - 0x108], eax
mov ax, word [0x416a88]
mov word [ebp - 0x104], ax
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402a60
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a70
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a90
mov ecx, 8
lea eax, [ebp - 0x108]
mov esi, str._could_not_be_opened_r_nfor_reading.
rep movsd dword es:[edi], dword [esi]
push 0x40010
push str.Error_Opening_File
push eax
movsw word es:[edi], word [esi]
push 0
movsb byte es:[edi], byte [esi]
call fcn.00405d50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408060
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x402c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cdb
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x108]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x358], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
sub edx, ebx
mov dword [ebp - 0x35c], esi
mov dword [ebp - 0x350], eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403020
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403034
mov eax, dword [0x417710]
mov dword [ecx], eax
mov al, byte [0x417714]
mov byte [ecx + 4], al
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x354], eax
cmp eax, 0xffffffff
je 0x4031c2
test byte [ebp - 0x34c], 0x10
je 0x40312f
mov ecx, 0x416b10
lea eax, [ebp - 0x320]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4030a8
test dl, dl
je 0x4030a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4030a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x403088
xor eax, eax
jmp 0x4030ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x40319b
mov eax, 0x416b14
lea ecx, [ebp - 0x320]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4030e0
test dl, dl
je 0x4030dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4030e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4030c0
xor eax, eax
jmp 0x4030e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40319b
push 0x5c
push ebx
call fcn.00406930
lea eax, [ebp - 0x320]
push eax
push ebx
lea eax, [ebp - 0x20c]
push 0x416530
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x350]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x358]
push eax
push esi
call fcn.00402fe0
add esp, 0x28
add edi, eax
jmp 0x40319b
cmp dword [ebp - 0x350], 0
je 0x40316e
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403140
sub ecx, edx
lea edx, [ebp - 0x320]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x403152
lea eax, [ecx + 2]
sub edx, esi
mov ecx, dword [ebp - 0x350]
add eax, edx
mov esi, dword [ebp - 0x35c]
add dword [ecx], eax
inc edi
test esi, esi
je 0x40319b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403178
lea eax, [ebp - 0x320]
sub ecx, edx
push eax
push ebx
push str._s_s
lea eax, [ecx + esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403070
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
lea eax, [ebp + 0x14]
test byte [ebp + 0x14], 1
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x4035fd
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x403619
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403684
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40367b
mov eax, dword [ebp - 4]
test eax, eax
je 0x40367b
inc eax
push eax
push 0x40
call fcn.00405c20
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x40366f
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40367b
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4037c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp eax, 2
jne 0x40386b
mov eax, dword [0x416adc]
movups xmm0, xmmword [str.c:windows_start_menuprograms]
mov dword [ebp - 0xf0], eax
mov ax, word [0x416ae0]
mov word [ebp - 0xec], ax
mov al, byte [0x416ae2]
push 0xe5
mov byte [ebp - 0xea], al
lea eax, [ebp - 0xe9]
movups xmmword [ebp - 0x108], xmm0
push 0
movq xmm0, qword [0x416ad4]
push eax
movq qword [ebp - 0xf8], xmm0
call fcn.00409860
lea eax, [ebp - 0x108]
push 2
push eax
call fcn.004036c0
push 0x416388
lea eax, [ebp - 0x108]
push eax
push 0x416530
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4038db
cmp eax, 0x10
jne 0x4038d1
mov ax, word [0x416af5]
movups xmm0, xmmword [0x416ae5]
push 0xf1
mov word [ebp - 0xf7], ax
lea eax, [ebp - 0xf5]
push 0
push eax
mov byte [ebp - 0x108], 0x63
movups xmmword [ebp - 0x107], xmm0
call fcn.00409860
lea eax, [ebp - 0x108]
push 0x10
push eax
call fcn.004036c0
lea ecx, [ebp - 0x108]
mov edx, esi
mov eax, ecx
add esp, 0x14
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4038c2
jmp 0x4038db
push eax
push esi
call fcn.004036c0
add esp, 8
xor eax, eax
test esi, esi
je 0x4038e6
cmp byte [esi], al
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408060
mov esp, ebp
pop ebp
ret
Function at 0x405090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push 0x416840
push 0x80000001
mov dword [ebp - 0x10c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4051d1
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call fcn.00409860
add esp, 0xc
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x416834
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4051d1
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x108]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405140
mov eax, dword [0x416c50]
mov dword [ecx], eax
mov eax, dword [0x416c54]
mov dword [ecx + 4], eax
mov eax, dword [0x416c58]
mov dword [ecx + 8], eax
mov ax, word [0x416c5c]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x108]
push eax
call fcn.004021f0
add esp, 4
test eax, eax
je 0x4051d1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 4
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4051ca
test esi, esi
je 0x4051b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408060
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00408060
mov esp, ebp
pop ebp
ret