joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4251dd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f2ec]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44f1c0]
je 0x425212
inc eax
cmp eax, 0x13
jb 0x425203
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44f1c0]
jne 0x425338
mov eax, dword [0x463b08]
cmp eax, 1
je 0x425310
cmp eax, edx
jne 0x425242
cmp dword [0x44ede4], 1
je 0x425310
cmp ecx, 0xfc
je 0x425338
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425278
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004220a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00422780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4252ac
mov eax, edi
push eax
call fcn.00422780
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c228
push edi
call fcn.00421e30
add esp, 0x10
push edi
call fcn.00422780
push dword [esi + 0x44f1c4]
mov ebx, eax
call fcn.00422780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421df0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004220a0
push edi
push ebx
call fcn.004220b0
push 0x42c208
push ebx
call fcn.004220b0
push dword [esi + 0x44f1c4]
push ebx
call fcn.004220b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00428152
add esp, 0x2c
jmp 0x425338
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44f1c4]
push dword [esi]
call fcn.00422780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00426128
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x425e36
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x463d7c]
mov eax, dword [0x44f2ec]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x425ffc
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x463d80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x425ffc
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x425ea0
xor eax, eax
jmp 0x426010
test al, 0x20
je 0x425eb1
push 2
push edi
push edi
push ecx
call fcn.00428345
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x425f86
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x425fcd
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x425f13
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x425f04
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x425ee6
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425f53
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x425f5f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x425eda
jmp 0x425f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x425ff7
cmp dword [ebp + 0x3a4], edi
je 0x425fcd
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x425fbf
mov dword [0x463b20], eax
jmp 0x426003
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425fb1
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x425f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x425f61
push dword [ebp + 0x3a4]
call fcn.004270f9
pop ecx
jmp 0x42600d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x425fe5
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x425e99
mov dword [0x463b1c], 0x1c
mov dword [0x463b20], edi
jmp 0x42600d
sub eax, dword [ebp - 0x7c]
jmp 0x426010
and dword [0x463b20], 0
mov dword [0x463b1c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00426128
add ebp, 0x39c
leave
ret
Function at 0x426d1b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x426d46
cmp eax, 1
je 0x426d46
jle 0x426d4e
cmp eax, 3
jle 0x426d46
cmp eax, 4
jne 0x426d4e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x426d77
mov dword [0x463b1c], 0x16
mov dword [0x463b20], ebx
or eax, 0xffffffff
jmp 0x426ee9
inc eax
cmp byte [eax], bl
jne 0x426d66
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x426d77
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x426d66
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00421c60
mov dword [ebp - 0x68], esi
mov esi, dword [0x463d7c]
add esp, 0xc
cmp esi, ebx
je 0x426dba
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x463d80]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x426dba
dec esi
dec eax
cmp esi, ebx
jne 0x426d9d
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0042807f
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x426e1f
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x463d80]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x426e0b
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x426e10
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x426de6
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x426e50
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x426e36
mov edi, esi
jmp 0x426e39
push 3
pop edi
cmp edx, edi
jge 0x426e49
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x426e2d
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x463b1c], ebx
push dword [ebp - 0xc]
mov dword [0x463b20], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.00424e76
cmp esi, ebx
pop ecx
jne 0x426e9e
push edi
call fcn.004270f9
pop ecx
or eax, 0xffffffff
jmp 0x426ee7
cmp dword [ebp + 8], 2
jne 0x426eaa
push ebx
call fcn.00423ec8
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x426ed7
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x426ee0
cmp dword [ebp + 8], 4
je 0x426ed0
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428152
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x463d3c], ebx
push esi
push edi
jne 0x4281d2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42820d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c2ec
push edi
call esi
test eax, eax
mov dword [0x463d3c], eax
je 0x42820d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x463d40], eax
call esi
cmp dword [0x463b28], 2
mov dword [0x463d44], eax
jne 0x4281d2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x463d4c], eax
je 0x4281d2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x463d48], eax
mov eax, dword [0x463d48]
test eax, eax
je 0x428217
call eax
test eax, eax
je 0x4281fe
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x463d4c]
test eax, eax
je 0x4281fe
test byte [ebp - 8], 1
jne 0x428217
cmp dword [0x463b34], 4
jb 0x428211
or byte [ebp + 0x12], 0x20
jmp 0x428236
xor eax, eax
jmp 0x428246
or byte [ebp + 0x12], 4
jmp 0x428236
mov eax, dword [0x463d40]
test eax, eax
je 0x428236
call eax
mov ebx, eax
test ebx, ebx
je 0x428236
mov eax, dword [0x463d44]
test eax, eax
je 0x428236
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x463d3c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429475
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x42948e
or eax, 0xffffffff
jmp 0x4294ef
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4294eb
push 0x3d
push esi
call fcn.00426bf8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4294eb
cmp esi, eax
je 0x4294eb
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x463b48]
sete cl
cmp eax, dword [0x463b4c]
mov dword [ebp - 8], ecx
jne 0x4294d1
mov edi, eax
call fcn.00429414
mov dword [0x463b48], eax
cmp eax, ebx
jne 0x42952a
cmp dword [ebp + 0xc], ebx
je 0x4294f3
cmp dword [0x463b50], ebx
je 0x4294f3
call fcn.00427197
test eax, eax
je 0x42952a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4294fc
xor eax, eax
jmp 0x4294ee
push 4
call fcn.00424f20
cmp eax, ebx
pop ecx
mov dword [0x463b48], eax
je 0x4294eb
mov dword [eax], ebx
cmp dword [0x463b50], ebx
jne 0x42952a
push 4
call fcn.00424f20
cmp eax, ebx
pop ecx
mov dword [0x463b50], eax
je 0x4294eb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x463b48]
call fcn.004293c7
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42958b
cmp dword [esi], ebx
je 0x42958b
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00424e76
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42956e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4295cc
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x429565
mov eax, edi
shl eax, 2
push eax
push dword [0x463b48]
call fcn.00428e8d
cmp eax, ebx
pop ecx
pop ecx
je 0x4295cc
jmp 0x4295c7
cmp dword [ebp - 8], ebx
jne 0x429637
cmp edi, ebx
jge 0x42959a
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x463b48]
call fcn.00428e8d
cmp eax, ebx
pop ecx
pop ecx
je 0x4294eb
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x463b48], eax
cmp dword [ebp + 0xc], ebx
je 0x429621
push dword [ebp - 4]
call fcn.00422780
inc eax
inc eax
push eax
call fcn.00424f20
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x429621
push dword [ebp - 4]
push esi
call fcn.004220a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42961a
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00424e76
pop ecx
cmp dword [ebp - 8], ebx
je 0x42962f
push dword [ebp - 4]
call fcn.00424e76
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4294ee
push dword [ebp - 4]
call fcn.00424e76
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4294f8
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401692
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
jmp loc.00463000
Function at 0x42e004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5c601ef4
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xeae6d17
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a960
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.004f3a90
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x40a998
mov byte [esi + 8], 1
call ebx
jmp 0x40a99e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x40a9ba
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x40a970
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40c060
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004fc6b0
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 0
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40c1af
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x40c142
cmp word [ebp - 0x804], ax
jne 0x40c100
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00407440
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c110
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407440
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40c1aa
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x40c193
cmp eax, 0x400
ja 0x40c193
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00405250
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret 8
Function at 0x40c9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40cabb
cmp dword [edi + 4], 0
jl 0x40cabb
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
sar eax, 1
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [eax*2 - 2]
mov dword [ebp - 4], edx
mov dword [ecx], eax
xor eax, eax
mov esi, dword [edi + 0x20]
lea ecx, [edi + 8]
cmp esi, dword [edi + 0x24]
cmove esi, eax
call fcn.0041ffa0
lea ecx, [edi + 0x2c]
push ecx
push esi
lea edx, [edi + 0x30]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x40ca9d
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
inc ecx
sub eax, dword [edi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x40ca4a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [edi + 0x20]
call fcn.0040d070
mov eax, dword [edi + 0x24]
mov ecx, 0x4000
sub eax, dword [edi + 0x20]
sar eax, 1
lea eax, [eax*2 - 2]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
mov esi, dword [edi + 0x20]
cmove eax, ecx
xor ecx, ecx
cmp esi, dword [edi + 0x24]
mov edx, eax
mov dword [ebp - 4], eax
cmove esi, ecx
lea ecx, [edi + 8]
call fcn.0041ffa0
lea ecx, [edi + 0x2c]
push ecx
push esi
lea ecx, [edi + 0x30]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
pop esi
test eax, eax
jne 0x40cabb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x40cac6
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
mov word [eax], cx
xor al, al
mov dword [edi + 0x2c], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cc7d
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40cc90
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x40ccc6
test ecx, ecx
js 0x40ccc6
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40cccc
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4197f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00432040
add esp, 4
test al, al
jne 0x419872
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x419864
cmp eax, 0x21
je 0x419864
cmp eax, 5
jne 0x41983d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x419845
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419ac0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x419af1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x419b06
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f3a90
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x419b2c
mov esi, dword [esi]
lea ecx, [ebp - 0x210]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x419b32
mov word [ebp - 0x214], ax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x22c], xmm0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
movq qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], 0
jne 0x419ae0
test eax, eax
je 0x419bc9
cmp eax, 2
je 0x419bc9
cmp eax, 0x402
je 0x419bc9
cmp eax, 0x7c
je 0x419bc9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret