joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007210a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10072142
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100701db
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100701b3
jmp 0x1007214e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100737f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007383a
call fcn.10079192
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007383a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10073831
xor eax, eax
jmp 0x10073842
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10073848
pop edi
pop esi
pop ebx
ret 4
Function at 0x6461b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00646140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00646140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00646140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00646140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x646bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x646c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x65887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x646c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x646c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x80039fd
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043a0], 0x30
mov dword [0x80043a8], 0x80032e8
mov dword [0x80043a4], 2
mov dword [0x80043ac], 0
mov dword [0x80043b0], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003a40
mov dword [0x80043b4], eax
mov dword [0x80043c8], 0x80041d4
mov dword [0x80043c0], 0xf
mov dword [0x80040f6], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043b8], eax
mov dword [0x80043cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040fe], ebp
mov dword [0x80043bc], eax
push 0x80043a0
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004420], eax
push 0
push dword [0x80040f6]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004418], eax
push 1
push dword [0x8004418]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004418]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003afe
xor edi, edi
lea ebx, [0x80043d0]
jmp 0x8003b16
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003b08
jmp 0x8003b2a
mov eax, dword [0x80043d8]
call 0x80029cd
ret
Function at 0x51a790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x97000]
push edi
or ebp, 0xffffffff
jmp 0x51a7b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51a7b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a7a8
mov eax, 1
add ebx, ebx
jne 0x51a7cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51a7dc
jne 0x51a7fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a7fb
dec eax
add ebx, ebx
jne 0x51a7e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51a7c0
add ebx, ebx
jne 0x51a7f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51a84d
xor ecx, ecx
sub eax, 3
jb 0x51a813
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51a882
sar eax, 1
mov ebp, eax
jmp 0x51a81e
add ebx, ebx
jne 0x51a81e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a7ec
inc ecx
add ebx, ebx
jne 0x51a82c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a7ec
add ebx, ebx
jne 0x51a839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51a82e
jne 0x51a84a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51a82e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51a86c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51a85e
jmp 0x51a7ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51a86c
add edi, ecx
jmp 0x51a7ae
pop esi
mov edi, esi
mov ecx, 0x46ec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51a88a
cmp byte [edi], 0x22
jne 0x51a88a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51a88f
lea edi, [esi + 0x117000]
mov eax, dword [edi]
or eax, eax
je 0x51a907
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11b508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11b60c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51a8bc
mov ecx, edi
jns 0x51a8eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11b610]
or eax, eax
je 0x51a901
mov dword [ebx], eax
add ebx, 4
jmp 0x51a8d9
call dword [esi + 0x11b620]
mov ebp, dword [esi + 0x11b614]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51a93b
sub esp, 0xffffff80
jmp 0x489181
Function at 0x409cbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42e674
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d16
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x433a34
push 0
push 0
push 0x42e660
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409d0d
mov byte [0x434a34], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x409e59
Capabilities:
Hide graphical window

Disassembly:
push dword [0x434a50]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409e85
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x434a50]
call esi
push 0
push dword [0x434a44]
call esi
pop esi
ret

Function at 0x409e86
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x434a50]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.004139cb
cmp dword [eax], 1
je 0x409ef0
cmp dword [eax + 4], ebx
je 0x409f45
push ebx
push 0x42e6a0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409f45
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x434a50]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8d7
Capabilities:
Check os version

Disassembly:
mov eax, 0x4283c0
call fcn.0041cfb0
sub esp, 0x3e0
push ebx
push esi
lea eax, [ebp - 0xe0]
push edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xdc], 5
jb 0x40ba29
cmp dword [ebp - 0xd8], 2
jb 0x40ba29
push 0x42e820
push dword [ebp + 8]
call fcn.0041cb20
pop ecx
pop ecx
test eax, eax
push 1
je 0x40ba17
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.004101a6
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
je 0x40ba09
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
push eax
push 0x2c
mov byte [ebp - 4], 1
call fcn.0041025c
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x40b9fe
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x40b9fe
add ecx, esi
call fcn.00410bfb
push eax
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1e4]
push 0x42e810
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2e8]
push 1
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.0040e4a4
test eax, eax
je 0x40b9db
inc dword [ebp - 0x14]
add esi, edi
jmp 0x40b97a
mov ecx, dword [ebp - 0x10]
call fcn.0041007f
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00410451
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040b85d
xor eax, eax
jmp 0x40ba18
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00410451
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040b85d
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x42e820
push dword [ebp + 8]
call fcn.0041cb20
pop ecx
test eax, eax
pop ecx
jne 0x40ba15
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3ec]
push 1
push eax
push 0x42e810
call fcn.0040e4a4
test eax, eax
jne 0x40ba15
mov ecx, dword [ebp - 0x10]
call fcn.0041007f
jmp 0x40b9fa
Function at 0x40be2e
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x4283d4
call fcn.0041cfb0
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x40bea0
cmp ebx, edi
je 0x40bea0
cmp ebx, 0x800704c7
jne 0x40be76
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x40be8a
mov dword [eax], ebx
jmp 0x40bf42
test ebx, ebx
je 0x40bf42
cmp ebx, 0x1008
je 0x40bf42
mov dword [0x435d34], 0x66d
call fcn.0041007f
xor eax, eax
jmp 0x40bf44
call fcn.004171b2
test eax, eax
jne 0x40beb8
cmp ebx, edi
je 0x40beb8
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40bec2
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push 0x42e984
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.00409d2d
test eax, eax
jne 0x40bf34
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x42e970
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x40bf42
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40db8b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x42eca0
call fcn.004165f9
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00416edf
add esp, 0x14
test eax, eax
jge 0x40ddac
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.004139cb
mov ecx, edi
mov esi, eax
call fcn.00415349
test eax, eax
je 0x40dc0f
mov eax, 0x42ec90
jmp 0x40dc24
mov ecx, edi
call fcn.0041532c
test eax, eax
mov eax, 0x42ec80
jne 0x40dc24
mov eax, 0x42ec74
push edi
push eax
call fcn.00417b24
pop ecx
test eax, eax
pop ecx
je 0x40dcd3
cmp dword [esi], 2
jne 0x40dccc
call fcn.0041720e
test eax, eax
jne 0x40dc5f
mov eax, 0x4b2
push eax
mov dword [0x435d34], eax
call fcn.004163df
pop ecx
push 1
jmp 0x40ddae
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40dca1
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d899
test eax, eax
je 0x40dcc5
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40dccc
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d899
test eax, eax
jne 0x40dccc
push 2
jmp 0x40ddae
xor eax, eax
jmp 0x40ddaf
cmp dword [esi + 0x14], 2
jne 0x40dcdf
cmp dword [esi + 8], 4
je 0x40dcea
mov ecx, edi
call fcn.00415349
test eax, eax
je 0x40dcf8
mov ecx, edi
call fcn.004152f3
push 3
jmp 0x40ddae
mov esi, 0x400
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x432d70
lea ecx, [edi + 0x3318]
push dword [0x4295d4]
push dword [0x4295cc]
call fcn.00401d30
cmp byte [ebp - 0xe20], 0x79
je 0x40dda7
cmp byte [ebp - 0xe20], 0x59
je 0x40dda7
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x435d34], edx
call fcn.004164bf
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.00416287
add esp, 0x10
or eax, 0xffffffff
jmp 0x40ddaf
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ddb6
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push 0x42ece8
call fcn.00416edf
pop ecx
test eax, eax
pop ecx
jge 0x40de0c
push dword [ebp + 8]
push 0x42ece0
jmp 0x40de31
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.00415349
push dword [ebp + 8]
test eax, eax
je 0x40de2c
push 0x42ecc8
jmp 0x40de31
push 0x42eca8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.00415349
test eax, eax
je 0x40de6b
mov ecx, esi
call fcn.00401046
push eax
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004176f2
jmp 0x40de79
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00416fe9
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40df30
cmp edi, 0xbc2
je 0x40dea7
push esi
push edi
mov dword [0x435d34], 0x484
call fcn.004162f9
pop ecx
mov eax, edi
pop ecx
jmp 0x40df32
cmp byte [ebp + 0xf], 0
je 0x40df2a
push 0x20019
push 0x42e984
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebx], 2
mov dword [ebp + 8], esi
call fcn.00409d2d
test eax, eax
jne 0x40df1a
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x42e970
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], esi
je 0x40df30
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40df30
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f22d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push 0x42ef08
lea eax, [ebp - 0x80c]
push 0x42eed0
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f299
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40f2ab
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f5c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42864e
call fcn.0041cfb0
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x429658
mov esi, 0x429650
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.004104a6
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040f7cb
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00410bfb
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40f64d
lea ecx, [ebp - 0x10]
call fcn.00408ccd
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040b85d
cmp byte [ebp + 0xf], 0
je 0x40f783
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x42ef50
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f6cd
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.004104a6
mov dword [ebp - 0x18], 1
jmp 0x40f79f
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.004101a6
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040fa37
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040b85d
mov eax, 0x42ef4c
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x43589c
jne 0x40f716
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004105ae
mov eax, 0x42ef48
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40f73f
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004105ae
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0041032d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040b85d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040b85d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0041051b
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040b85d
cmp dword [ebp - 0x10], 0
je 0x40f7ba
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret