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

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, 0x6f
or eax, 0x1968087d
insb byte es:[edi], dx
js 0x15fcfba
adc eax, dword [eax]
add al, 1
add byte [eax], al
add byte [eax + 0x2dc0013], ah
add byte [eax], al
in al, 0xf8
pop ds
add dword [eax], eax
rcr byte [edi], 1
add byte [eax + 0x22], dh
add byte [ecx], cl
rcr byte [edi], 1
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx + 0x51], ah
jb 0x15fd080
outsd dx, dword [esi]
inc ebp
inc bp
dec edx
insd dword es:[edi], dx
inc esi
imul eax, dword [esi + 0x73], 0x46
add byte [eax], al
add byte [ebp + 0x6e], ah
je 0x15fd0c2
jns 0x15fd0c2
push ebp
mov ebp, esp
pushal
mov ebx, 0x15fc052
xor ecx, ecx
mov cl, byte [0x15fc035]
test ecx, ecx
je 0x15fd073
mov eax, 0x15fc0b8
sub eax, ebx
sub eax, 5
jmp 0x15fd081
push ecx
mov ecx, 0x15fc0f1
mov eax, ecx
sub eax, ebx
add eax, dword [ecx + 1]
pop ecx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
push 0x15fc009
xor eax, eax
test ecx, ecx
je 0x15fd097
mov eax, dword [ebp + 8]
jmp 0x15fd097
push eax
call fcn.015fd0f6
add esp, 8
cmp eax, 0
je 0x15fd0b4
mov byte [ebx], 0xc2
mov byte [ebx + 1], 0xc
push eax
mov eax, dword [0x15fc029]
call eax
popal
pop ebp
jmp 0x15fd0f1
and al, 4
mov dword [0x15fc0eb], ecx
mov ecx, 0x15fc0d6
mov dword [esp + 4], ecx
pop ecx
jmp 0x15fd0f1
jmp 0x52f894

Function at 0x401004
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x402070
call fcn.00401284
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40103f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40103f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401057
cmp eax, 0x20b
je 0x401044
mov dword [ebp - 0x1c], edi
jmp 0x40106b
cmp dword [ecx + 0x84], 0xe
jbe 0x40103f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401065
cmp dword [ecx + 0x74], 0xe
jbe 0x40103f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
Function at 0x10001e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x10001e73
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x10001e67
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi*8]
test ecx, ecx
je 0x10001e61
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
inc edi
cmp edi, dword [esi + 0x10]
jl 0x10001e51
push dword [esi + 0x14]
call fcn.100055a1
add esp, 4
pop edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10001e80
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10001e8d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10001e9a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10001ea7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10001eb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x10001ec1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x10001ece
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x10001edb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10001ee8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x10001ef5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10001f02
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10001f0f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x10001f1f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x10001f2f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x10001f3c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x7c]
pop esi
test ecx, ecx
je 0x10001f4a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
ret
Function at 0x4010a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
and dword [ebp - 4], 0
push esi
push edi
push 1
pop ebx
mov edx, ebx
mov ecx, ebx
call fcn.004012cd
cmp byte [0x4033e6], 0
mov edi, dword [sym.imp.MSVCRT.dll__access]
jne 0x401105
mov esi, 0x4033e6
mov ecx, str.VisualFoxProRuntime.6
mov edx, esi
call fcn.00401197
test eax, eax
je 0x401105
push 0
push esi
mov dword [ebp - 4], ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x401105
and byte [0x4033e6], 0
mov edx, ebx
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004012cd
cmp dword [ebp - 4], 2
je 0x401192
cmp byte [0x4033e6], 0
jne 0x401192
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA_1]
test eax, eax
je 0x401180
add eax, 0xc
cmp eax, 0x105
jg 0x401180
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [ebp - 0x11c]
push 0x403014
push eax
call esi
mov ecx, ebx
call fcn.004012a6
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push 0
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401180
lea eax, [ebp - 0x11c]
push eax
push 0x4033e6
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
cmp byte [0x4033e6], 0
jne 0x401192
mov edx, ebx
mov ecx, ebx
call fcn.004012cd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401197
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0
mov dword [ebp - 0xc], edx
mov esi, ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA_1]
test eax, eax
jne 0x40120b
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
lea eax, [ebp - 0x110]
push str.ShellOpenCommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x105
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA_1]
test eax, eax
je 0x401212
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
xor eax, eax
jmp 0x4012a2
cmp byte [ebp - 0x210], 0
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
lea esi, [ebp - 0x210]
je 0x401258
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x40123d
movsx eax, byte [esi]
push 8
push eax
call edi
pop ecx
pop ecx
jmp 0x40124e
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x401258
inc esi
cmp byte [esi], 0
jne 0x401227
mov dword [ebp - 8], esi
mov al, byte [esi]
test al, al
je 0x401290
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x401278
movsx eax, al
push 8
push eax
call edi
pop ecx
pop ecx
jmp 0x401289
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, al
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x401290
inc esi
jmp 0x40125b
push dword [ebp - 8]
and byte [esi], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4012cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
imul ecx, ecx, 0x106
cmp byte [ecx + 0x4032e0], 0
push ebx
lea ebx, [ecx + 0x4032e0]
push esi
push edi
mov dword [ebp - 4], edx
jne 0x40138a
mov esi, 0x4031c0
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40131f
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA_1]
jmp 0x401341
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsncpy]
lea eax, [ebp + edi - 0x11c]
add esp, 0xc
sub eax, esi
and byte [eax], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [ebp - 0x11c]
push 0x403014
push eax
call esi
mov ecx, dword [ebp - 4]
call fcn.004012a6
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x40138a
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
mov esi, ecx
push eax
mov edi, edx
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
mov ebx, eax
mov edi, dword [esp + 0x78]
push edi
call fcn.00405c40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.00405d40
mov ebp, eax
push edi
call fcn.00405d60
push edi
mov dword [esp + 0x7c], eax
call fcn.00405d80
push 0
push edi
push ebp
push 4
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ebp, eax
push ebp
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
sub edx, edi
xor eax, eax
test edx, edx
jle 0x405f84
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov ebp, edx
mov dword [esp + 0x44], eax
add ecx, eax
sub ebp, edi
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ecx
jle 0x405f6c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
lea ebp, [eax + edi]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x405f56
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push ebx
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov eax, ebp
sub ecx, edi
cmp eax, ecx
jl 0x405f0d
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
cmp eax, ecx
jl 0x405ef1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
Function at 0x406c00
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp word [esi], 3
jne 0x406c20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x406c2e
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, edi
call fcn.00406a10
test eax, eax
jne 0x406c35
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x4090f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40914a
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x409160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push ebx
push ebp
mov ebp, edx
push edi
push ebp
mov edi, ecx
push 0
push eax
push edi
push 0x410240
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x409256
mov ecx, edi
call fcn.00407260
test eax, eax
jne 0x4091ae
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
lea ecx, [esp + 0x10]
mov edx, 0x410238
push ecx
mov ecx, 0x80000000
call fcn.004090f0
test eax, eax
jne 0x40925e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x410224
push edx
call ebx
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.004090f0
test eax, eax
jne 0x40925e
push esi
lea ecx, [esp + 0x14]
push 0x41021c
push ecx
call fcn.0040e170
mov esi, eax
add esp, 8
test esi, esi
jne 0x409235
lea edx, [esp + 0x14]
push 0x410218
push edx
call fcn.0040e170
mov esi, eax
add esp, 8
test esi, esi
jne 0x409235
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409238
mov byte [esi], 0
push 0x4100b4
push esi
call ebx
push edi
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop esi
jbe 0x40925e
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
Function at 0x409940
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x413d80]
push ebx
push ebp
push esi
mov esi, dword [ecx + 6]
push edi
mov edi, edx
mov edx, dword [ecx + 2]
xor edx, eax
mov eax, edx
mov dword [ecx + 2], edx
mov edx, dword [ecx + 0xa]
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
add esi, eax
xor edx, edx
mov eax, esi
mov ebx, dword [ecx + 6]
mov ebp, dword [eax]
xor ebp, ebx
inc edx
mov dword [eax], ebp
mov ebx, dword [ecx + 0xa]
mov ebp, dword [eax + 4]
add eax, 4
xor ebp, ebx
inc edx
mov dword [eax], ebp
add eax, 4
cmp edx, 0x14
jl 0x409969
mov ecx, dword [edi]
call fcn.0040d440
mov dword [edi], 0
cmp word [0x413e10], 0
je 0x4099ac
cmp word [0x41029a], 0
je 0x4099ac
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x409a10
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
mov byte [0x413c44], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x409a43
mov byte [esp + 0x110], 0x63
mov byte [esp + 0x111], al
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x409a85
cmp byte [esp + edx + 0x114], 0x5c
je 0x409a7d
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x409a5b
jmp 0x409a85
mov byte [esp + edx + 0x115], 0
lea ecx, [esp + 0x10]
push 0x104
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x22c]
push 0x104
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x409bde
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call fcn.0040df4e
add esp, 0xc
xor eax, eax
mov dl, 0x38
mov cl, byte [esp + eax + 0x10]
cmp cl, 0x30
jl 0x409aef
cmp cl, 0x39
jg 0x409aef
mov byte [eax + 0x413c3c], cl
jmp 0x409af5
mov byte [eax + 0x413c3c], dl
inc eax
cmp eax, 8
jl 0x409ad9
mov edi, 0x413c3c
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x19]
mov dl, byte [esp + 0x1b]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x413c3d], al
mov al, byte [esp + 0x17]
mov cl, byte [esp + 0x14]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x413c3e], al
mov al, byte [esp + 0x16]
mov byte [0x413c3f], dl
mov dl, byte [0x413c3e]
xor al, 0x7f
xor dl, 0x7f
xor cl, 0x7f
mov byte [0x413c40], dl
mov dl, byte [0x413c3d]
xor al, 0x7f
xor cl, 0x7f
xor dl, 0x7f
cmp al, 0x30
mov byte [0x413c41], 0
mov byte [0x413c3c], al
mov byte [0x413c3e], cl
mov byte [0x413c3d], dl
pop esi
jne 0x409b96
mov byte [0x413c3c], 0x31
mov eax, 1
mov dl, 0x35
mov cl, byte [eax + 0x413c3c]
cmp cl, 0x30
jb 0x409bad
cmp cl, 0x39
jbe 0x409bb3
mov byte [eax + 0x413c3c], dl
inc eax
cmp eax, 5
jl 0x409b9d
mov edx, 0x410338
mov ecx, 0x413c3c
call fcn.0040d8e0
xor ecx, ecx
mov dword [0x413c48], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
add esp, 0x318
ret
mov edx, 0x410330
mov ecx, 0x410318
call fcn.0040d450
xor eax, eax
pop edi
add esp, 0x318
ret
Function at 0x40a580
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [0x413e14]
mov eax, 0x60000
test eax, ecx
jne 0x40a5a8
mov edx, ecx
mov ecx, dword [0x413d80]
or edx, eax
xor ecx, eax
mov dword [0x413e14], edx
mov dword [0x413d80], ecx
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x410258
push 0x80000000
call esi
test eax, eax
je 0x40a628
lea ecx, [esp + 4]
push ecx
push 0x410258
push 0x80000001
call esi
test eax, eax
jne 0x40a5ec
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000001
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0x410258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a5e4
push 0x410258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
Function at 0x40b050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x104
mov edi, edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40b081
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x40b0a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__lopen]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x1a3
push 0x4103a0
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b10d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea ecx, [edi - 0x104]
test ecx, ecx
jle 0x40b13f
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
sub edi, 0x104
cmp edi, 0x104
jg 0x40b117
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push ebx
call ebp
lea edx, [esp + 0x118]
mov edi, dword [esp + 0x10]
push 0x200
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b1be
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
jne 0x40b1f3
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
je 0x40b1d2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call ebp
push ebx
call ebp
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x40b8e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x413c6c]
sub esp, 0xc
lea eax, [esp + 8]
push ebp
push esi
push eax
push 0x410268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40b90a
pop esi
mov ax, 2
pop ebp
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x40b92e
pop esi
mov ax, 3
pop ebp
add esp, 0xc
ret
mov eax, dword [0x413c6c]
lea edx, [esp + 8]
push edx
push ebp
push 0x410268
push eax
mov dword [esp + 0x18], 0xbb80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40b980
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
dec edx
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.0040d5d0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 8
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x40b9ce
mov edi, dword [0x413c4c]
mov ecx, 3
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40b9ce
mov ecx, dword [esp + 0x10]
add eax, 0xc
inc ebx
cmp ebx, ecx
jl 0x40b9af
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
cmp ebx, eax
pop ebx
je 0x40ba26
or byte [0x413c14], 0x20
pop esi
mov ax, 1
pop ebp
add esp, 0xc
ret
pop esi
xor ax, ax
pop ebp
add esp, 0xc
ret