joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b26
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
inc esi
lea ebx, [esi + esi]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
push ebx
push 0x40
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x238], eax
call edi
push ebx
push 0x40
mov dword [ebp - 0x224], eax
call edi
mov ebx, dword [ebp - 0x224]
mov edi, eax
mov dword [ebp - 0x220], edi
test ebx, ebx
je 0x1004d78
test edi, edi
je 0x1004d6c
and dword [ebp - 0x22c], 0
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x218], esi
jbe 0x1004d03
mov eax, dword [ebp - 0x21c]
add eax, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x210], 0
jl 0x1004d6c
mov eax, dword [ebp - 0x214]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x21c], esi
call fcn.010059c0
add esp, 0xc
test esi, esi
jle 0x1004cd4
mov eax, dword [ebp - 0x214]
push dword [eax]
push dword [ebp - 0x228]
push ebx
call fcn.01003464
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x1004cde
mov ecx, dword [ebp - 0x230]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x234]
push ebx
call fcn.01004535
test eax, eax
je 0x1004c78
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x1004c80
mov eax, dword [ebp - 0x214]
push dword [eax]
push dword [ebp - 0x218]
push edi
call fcn.01003464
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x1004cde
mov ecx, dword [ebp - 0x230]
push edi
push dword [ebp - 0x238]
call fcn.01003800
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
sub ecx, eax
add dword [ebp - 0x228], ecx
lea ebx, [ebx + eax*2 + 2]
or eax, 0xffffffff
sub eax, esi
add dword [ebp - 0x218], eax
lea edi, [edi + esi*2 + 2]
jmp 0x1004cde
mov dword [ebp - 0x210], 0x80004005
inc dword [ebp - 0x22c]
mov eax, dword [ebp - 0x22c]
add dword [ebp - 0x214], 0xc
cmp eax, dword [ebp + 0xc]
jb 0x1004bd3
cmp dword [ebp - 0x210], 0
jl 0x1004d6c
mov ecx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x250], ecx
mov ecx, dword [ebp - 0x220]
mov word [ebx], ax
mov word [edi], ax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x246], eax
mov dword [ebp - 0x242], eax
mov dword [ebp - 0x23e], eax
mov dword [ebp - 0x24c], ecx
lea eax, [ebp - 0x258]
mov ecx, 0x615
push eax
mov dword [ebp - 0x254], 2
mov word [ebp - 0x248], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x1004d6c
mov dword [ebp - 0x210], 0x80004005
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x220], 0
pop edi
pop esi
pop ebx
je 0x1004d90
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
call fcn.0100597b
leave
ret 0x10
Function at 0x1004da9
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], 0x80004005
call fcn.010059c0
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, 0x102
je 0x1004e80
cmp word [ebp - 0x20c], 0
push ebx
push edi
lea edi, [ebp - 0x20c]
mov ebx, edi
je 0x1004e7e
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x1004e30
push 0xffffffffffffffff
push 0x10015ac
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x1004e76
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
push dword [ebp - 0x214]
push edi
push esi
call fcn.01004170
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x1004e7e
cmp word [ebx], 0
mov edi, ebx
jne 0x1004e30
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
pop esi
call fcn.0100597b
leave
ret 0xc
Function at 0x1005e44
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x1014018]
je 0x1005e6a
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x1005e58
cmp esi, 0x17
jae 0x1005fc4
push 3
call fcn.0100a551
pop ecx
cmp eax, 1
je 0x1005f8e
push 3
call fcn.0100a551
pop ecx
test eax, eax
jne 0x1005e9d
cmp dword [section..data], 1
je 0x1005f8e
cmp edi, 0xfc
je 0x1005fc4
push 0x1001c94
mov edi, 0x314
push edi
mov esi, 0x1015498
push esi
call fcn.0100a4e4
add esp, 0xc
test eax, eax
je 0x1005ed3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
mov byte [0x10155b5], bl
push 0x104
mov ebx, 0x10154b1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005f16
push 0x1001c7c
push 0x2fb
push ebx
call fcn.0100a4e4
add esp, 0xc
test eax, eax
je 0x1005f16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01008318
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100a46b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1005f34
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
push 0x1001c78
push edi
push esi
call fcn.0100a46b
add esp, 0xc
test eax, eax
je 0x1005f54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x101401c]
push edi
push esi
call fcn.0100a46b
add esp, 0xc
test eax, eax
je 0x1005f79
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
push 0x12010
push 0x1001c50
push esi
call fcn.0100a2c4
add esp, 0xc
jmp 0x1005fc4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1005fc4
cmp edi, 0xffffffff
je 0x1005fc4
mov edx, dword [esi*8 + 0x101401c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005fad
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100655e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10159bc]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x10065ad
call edi
mov esi, eax
cmp esi, ebx
je 0x1006593
mov dword [0x10159bc], 1
jmp 0x10065b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10065a8
push 2
pop eax
mov dword [0x10159bc], eax
jmp 0x10065ad
mov eax, dword [0x10159bc]
cmp eax, 1
jne 0x100660d
cmp esi, ebx
jne 0x10065c5
call edi
mov esi, eax
cmp esi, ebx
jne 0x10065c5
xor eax, eax
jmp 0x10066de
mov eax, esi
cmp word [esi], bx
je 0x10065da
inc eax
inc eax
cmp word [eax], bx
jne 0x10065cc
inc eax
inc eax
cmp word [eax], bx
jne 0x10065cc
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0100734b
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x10065fe
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x10066de
push dword [ebp - 4]
push esi
push edi
call fcn.0100a780
add esp, 0xc
jmp 0x10065f0
cmp eax, 2
je 0x1006616
cmp eax, ebx
jne 0x10065be
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x10065be
cmp byte [esi], bl
je 0x1006657
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10065be
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1006643
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1006629
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.0100a738
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x100667b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10065be
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x10066cd
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10066e3
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10066a5
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10066b7
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x1006682
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.01008472
pop ecx
push dword [ebp - 8]
jmp 0x1006670
Function at 0x10066f9
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10159c0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x100673d
call esi
test eax, eax
je 0x1006722
mov dword [0x10159c0], 1
jmp 0x1006742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1006739
mov dword [0x10159c0], 2
jmp 0x100674b
xor eax, eax
jmp 0x10067a1
cmp eax, 1
jne 0x1006746
call esi
jmp 0x10067a1
cmp eax, 2
jne 0x1006739
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x100679e
push 2
push edi
call fcn.0100a738
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x100679e
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x1006795
mov eax, dword [ebp - 4]
jmp 0x10067a0
push dword [ebp - 4]
call fcn.01008472
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006e22
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001cc0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1006e74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d2c
push edi
call esi
push 0x1001d20
push edi
mov dword [0x10159c4], eax
call esi
push 0x1001d14
push edi
mov dword [0x10159c8], eax
call esi
push 0x1001d0c
push edi
mov dword [0x10159cc], eax
call esi
mov dword [0x10159d0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x10159c4], ebx
je 0x1006e9a
cmp dword [0x10159c8], ebx
je 0x1006e9a
cmp dword [0x10159cc], ebx
je 0x1006e9a
cmp dword [0x10159d0], ebx
jne 0x1006ebe
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x10159c8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x10159c4], 0x1006ae6
mov dword [0x10159cc], esi
mov dword [0x10159d0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x101417c], eax
cmp eax, 0xffffffff
je 0x1006f31
push dword [0x10159c8]
push eax
call esi
test eax, eax
je 0x1006f31
call fcn.01005dfd
push dword [0x10159c4]
call fcn.010069e8
push dword [0x10159c8]
mov dword [0x10159c4], eax
call fcn.010069e8
push dword [0x10159cc]
mov dword [0x10159c8], eax
call fcn.010069e8
push dword [0x10159d0]
mov dword [0x10159cc], eax
call fcn.010069e8
add esp, 0x10
mov dword [0x10159d0], eax
call fcn.01009c1c
test eax, eax
jne 0x1006f37
call fcn.01006b23
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1006cd2
push dword [0x10159c4]
call fcn.01006a6e
pop ecx
call eax
mov dword [0x1014180], eax
cmp eax, 0xffffffff
je 0x1006f2c
push 0x214
push 1
call fcn.0100b511
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1006f2c
push esi
push dword [0x1014180]
push dword [0x10159cc]
call fcn.01006a6e
pop ecx
call eax
test eax, eax
jne 0x1006f8a
push esi
call fcn.01008472
pop ecx
jmp 0x1006f2c
push ebx
push esi
call fcn.01006b65
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1006f33
Function at 0x100a2c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01006a60
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1015e6c], ebx
jne 0x100a39d
push ebx
push ebx
push 0x1001e54
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x100a308
xor eax, eax
jmp 0x100a461
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001e48
push edi
call esi
cmp eax, ebx
je 0x100a301
push eax
call fcn.010069e8
mov dword [esp], 0x1001e38
push edi
mov dword [0x1015e6c], eax
call esi
push eax
call fcn.010069e8
mov dword [esp], 0x1001e24
push edi
mov dword [0x1015e70], eax
call esi
push eax
call fcn.010069e8
mov dword [0x1015e74], eax
lea eax, [ebp - 8]
push eax
call fcn.01005bb8
pop ecx
pop ecx
test eax, eax
je 0x100a36b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100a39d
push 0x1001e08
push edi
call esi
push eax
call fcn.010069e8
pop ecx
mov dword [0x1015e7c], eax
cmp eax, ebx
je 0x100a39d
push 0x1001df0
push edi
call esi
push eax
call fcn.010069e8
pop ecx
mov dword [0x1015e78], eax
mov eax, dword [0x1015e78]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100a416
cmp dword [0x1015e7c], esi
je 0x100a416
push eax
call fcn.01006a6e
pop ecx
call eax
cmp eax, ebx
je 0x100a3e3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1015e7c]
call fcn.01006a6e
pop ecx
call eax
test eax, eax
je 0x100a3e3
test byte [ebp - 0x18], 1
jne 0x100a416
lea eax, [ebp - 0xc]
push eax
call fcn.01005bf9
pop ecx
test eax, eax
je 0x100a3fe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100a40d
or dword [ebp + 0x10], 0x200000
jmp 0x100a447
or dword [ebp + 0x10], 0x40000
jmp 0x100a447
mov eax, dword [0x1015e70]
cmp eax, esi
je 0x100a447
push eax
call fcn.01006a6e
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100a447
mov eax, dword [0x1015e74]
cmp eax, esi
je 0x100a447
push dword [ebp - 4]
push eax
call fcn.01006a6e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1015e6c]
call fcn.01006a6e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10117f5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01005bb8
pop ecx
test eax, eax
je 0x101182a
push esi
push esi
push esi
push esi
push esi
call fcn.01008318
add esp, 0x14
push 4
pop eax
call fcn.01005990
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011946
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10118bf
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001dd0
call esi
test eax, eax
jne 0x1011896
push 0x1001db4
call esi
test eax, eax
je 0x10118bf
push 0x1002adc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10118bf
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10118bf
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10118bf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.01006288
add esp, 0xc
test eax, eax
jl 0x1011946
not esi
and dword [ebp - 8], esi
je 0x10118f1
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.01006288
add esp, 0xc
test eax, eax
jl 0x1011946
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10118fc
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1011910
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1011946
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1011946
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1011946
xor eax, eax
inc eax
jmp 0x1011948
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100597b
leave
ret
Function at 0x10129f5
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x770
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x76c], esi
mov dword [ebp - 0x768], edi
mov dword [ebp - 0x760], eax
mov dword [ebp - 0x750], 0x80070057
test ebx, ebx
je 0x1012c54
test esi, esi
je 0x1012c54
test eax, eax
je 0x1012c54
test edi, edi
je 0x1012a5a
cmp dword [eax], 1
jb 0x1012c54
push esi
call fcn.010127c3
cmp eax, 1
jne 0x1012c54
xor eax, eax
test edi, edi
sete al
and dword [ebp - 0x75c], 0
push 9
pop ecx
lea edi, [ebp - 0x2a]
push 0x14
mov dword [ebp - 0x770], eax
xor eax, eax
mov word [ebp - 0x2c], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x75c]
push eax
push ebx
call fcn.01012804
xor edi, edi
mov dword [ebp - 0x750], eax
cmp eax, edi
jne 0x1012c54
xor eax, eax
push 0x516
mov word [ebp - 0x74c], ax
lea eax, [ebp - 0x74a]
push edi
push eax
call fcn.010059c0
add esp, 0xc
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x74c]
push eax
push edi
push 0x22
push esi
push edi
push dword [ebp - 0x75c]
mov dword [ebp - 0x764], 0x518
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, edi
jne 0x1012c2d
mov ebx, dword [ebp - 0x764]
xor eax, eax
push 0x206
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push edi
push eax
shr ebx, 1
call fcn.010059c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x1012c21
lea eax, [ebp - 0x754]
push eax
lea esi, [ebp - 0x74c]
push ebx
mov eax, esi
push eax
mov dword [ebp - 0x754], edi
mov dword [ebp - 0x758], edi
call fcn.01003531
cmp dword [ebp - 0x754], edi
jbe 0x1012c21
mov edi, dword [ebp - 0x768]
add edi, 4
cmp dword [ebp - 0x770], 0
jne 0x1012bc9
mov eax, dword [ebp - 0x760]
mov ecx, dword [ebp - 0x758]
cmp ecx, dword [eax]
jae 0x1012c07
push esi
push dword [ebp - 0x76c]
lea eax, [ebp - 0x2c]
push eax
push 0x1002b48
lea eax, [ebp - 0x234]
push eax
push 0x1002b28
push dword [edi + 4]
push dword [edi]
call fcn.010034d3
add esp, 0x20
mov dword [ebp - 0x750], eax
test eax, eax
jl 0x1012c11
mov dword [edi - 4], 0x64
mov eax, dword [ebp - 0x754]
inc dword [ebp - 0x758]
and dword [ebp - 0x754], 0
or ecx, 0xffffffff
lea esi, [esi + eax*2 + 2]
sub ecx, eax
lea eax, [ebp - 0x754]
push eax
add ebx, ecx
push ebx
push esi
add edi, 0xc
call fcn.01003531
cmp dword [ebp - 0x754], 0
ja 0x1012b76
jmp 0x1012c11
mov dword [ebp - 0x750], 0x8007007a
mov eax, dword [ebp - 0x758]
mov ecx, dword [ebp - 0x760]
mov dword [ecx], eax
jmp 0x1012c48
mov dword [ebp - 0x750], 0x80004005
jmp 0x1012c48
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
and ecx, 0x7fffbffc
add ecx, 0x80004005
mov dword [ebp - 0x750], ecx
push dword [ebp - 0x75c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x750]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 0x10
Function at 0x1040ccf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x1040d3a
cmp dword [ebp - 4], 2
jbe 0x1040d26
cmp dword [ebp - 4], 7
jne 0x1040d3a
mov ecx, dword [edi]
test cl, 1
jne 0x1040d3a
shr ecx, 1
cmp ecx, 2
jb 0x1040d3a
cmp esi, ebx
je 0x1040d3d
cmp word [esi + ecx*2 - 2], bx
jne 0x1040d3a
cmp word [esi + ecx*2 - 4], bx
jmp 0x1040d38
mov ecx, dword [edi]
test cl, 1
jne 0x1040d3a
cmp esi, ebx
je 0x1040d3d
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x1040d3d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1041768
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.01043668
lea ecx, [ebp - 0x64]
call fcn.0107e139
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x1041799
cmp word [eax], bx
setne cl
cmp cl, bl
jne 0x10417ab
push esi
push 2
lea ecx, [ebp - 4]
call fcn.010438c7
mov dword [ebp - 8], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x10417b9
cmp word [eax], bx
setne cl
cmp cl, bl
je 0x10417c4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x10417d5
cmp word [eax], bx
setne cl
cmp cl, bl
jne 0x10417e6
push esi
push ebx
lea ecx, [ebp - 4]
call fcn.010438c7
mov dword [ebp - 8], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x10417f4
cmp word [eax], bx
setne cl
cmp cl, bl
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x104180a
push ebx
push eax
call edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x104181b
cmp word [eax], bx
setne cl
cmp cl, bl
jne 0x104182d
push esi
push 1
lea ecx, [ebp - 4]
call fcn.010438c7
mov dword [ebp - 8], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
je 0x104183b
cmp word [eax], bx
setne cl
cmp cl, bl
je 0x104184b
push ebx
push eax
call edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x64]
call fcn.0104163c
lea ecx, [ebp - 4]
call fcn.01043670
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc