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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c9328
push eax
mov eax, dword [0x4fdf90]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x401a3a
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x4fdf24
call fcn.0040ae60
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.004b046d
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.004acf6e
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.004b03a4
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.004b03a4
lea eax, [esp + 0x14]
push 0x4ec234
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.004b0579
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.004b0579
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.004b041d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.004b02e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004b02e4
lea eax, [esp + 0x10]
push 0x4ec234
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.004b0579
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.004b0513
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.004b041d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.004b02e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004b02e4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x4fdf90]
test eax, eax
je 0x401b7e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.0042ec40
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x4fdf24
mov byte [esp + 0x38], 6
call fcn.0040ae60
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042f5c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.004b02e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.004b02e4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407590
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x407768
push esi
call fcn.00417ba8
add esp, 4
test eax, eax
je 0x407768
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.004049f0
add esp, 0x1c
test eax, eax
je 0x407768
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x407768
test al, 1
je 0x4075fc
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x407741
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00417c2c
lea edx, [esp + 0x474]
push 0x4ecba8
push edx
call fcn.00417c02
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407718
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x4ec370
push edx
call ebp
test eax, eax
je 0x4076f8
lea eax, [esp + 0x248]
push 0x4ec36c
push eax
call ebp
test eax, eax
je 0x4076f8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00417c2c
lea edx, [esp + 0x1c]
push 0x4ecbe0
push edx
call fcn.00417c02
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00417c02
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00407590
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407681
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret
Function at 0x407c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c97e2
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x170]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x407e53
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407e53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407e53
test al, 0x10
je 0x407e53
push esi
lea ecx, [esp + 0x10]
call fcn.004b0352
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], ebx
call fcn.004ad84b
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x4ecba4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004b0579
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004b02e4
cmp edi, 0xffffffff
mov ebx, 1
je 0x407e3b
mov esi, dword [esp + 0x178]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x54]
push 0x4ecbdc
push eax
call ebp
test eax, eax
je 0x407e1f
lea ecx, [esp + 0x54]
push 0x4ecbd8
push ecx
call ebp
test eax, eax
je 0x407e1f
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.004b0352
mov al, byte [esp + 0x28]
mov byte [esp + 0x170], bl
test al, 0x10
push 0x4ec234
je 0x407db2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004b0579
lea edx, [esp + 0x14]
mov byte [esp + 0x170], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b0513
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x178], 3
call fcn.00407c40
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.004b02e4
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x18]
jmp 0x407e09
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004b0579
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 4
call fcn.004b0513
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 5
call fcn.004af078
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.004b02e4
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x20]
call fcn.004b02e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.004b02e4
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407d0f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.004b02e4
mov eax, ebx
jmp 0x407e55
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x407e70
Capabilities:
Get graphical window text

Disassembly:
call fcn.00440fa0
test eax, eax
je 0x407e8f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x407f10
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x407f10
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004b001f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407f10
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x407f10
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00409fa0
add esp, 0x10
test eax, eax
je 0x407f10
push esi
call fcn.00417ba8
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x407f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor ecx, ecx
xor edi, edi
xor eax, eax
mov esi, 0x200
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x407f9a
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 1
jne 0x407fa6
mov esi, 0x400
jmp 0x407ff4
cmp eax, 2
jne 0x407ff4
xor eax, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
push 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 0x70000
push ebp
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408054
mov esi, dword [esp + 0x2c]
cmp esi, 0x200
jb 0x408054
push esi
call fcn.004b001f
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x40804a
mov edx, dword [ebx]
push edx
call fcn.004b0048
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
mov dword [ebx], edi
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x407f94
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x408fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c988c
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x409192
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409192
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409192
test al, 0x10
je 0x409192
push ebp
push esi
lea ecx, [esp + 0x18]
call fcn.004b0352
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], ebx
call fcn.004ad84b
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x4ecba4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004b0579
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.004b02e4
cmp ebp, 0xffffffff
je 0x409176
mov esi, dword [esp + 0x178]
mov edi, dword [esp + 0x174]
mov bl, 2
lea eax, [esp + 0x4c]
push 0x4ecbdc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409149
lea ecx, [esp + 0x4c]
push 0x4ecbd8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409149
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.004b0352
mov al, byte [esp + 0x20]
mov byte [esp + 0x168], 1
test al, 0x10
je 0x40912e
lea eax, [esp + 0x14]
push 0x4ec234
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004b0579
lea edx, [esp + 0x10]
mov byte [esp + 0x168], bl
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004b0513
mov eax, dword [eax]
push esi
push edi
push eax
mov byte [esp + 0x174], 3
call fcn.00408fb0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.004b02e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 1
call fcn.004b02e4
jmp 0x409130
inc dword [edi]
test esi, esi
je 0x409138
cmp esi, dword [edi]
jbe 0x40915e
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.004b02e4
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40916f
jmp 0x40907d
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.004b02e4
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call fcn.004b02e4
mov eax, 1
pop ebp
jmp 0x409194
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x409a30
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4c9948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x10]
call fcn.004b0352
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x18], ebx
mov esi, 0x4ecfa0
mov eax, dword [esi]
cmp eax, ebx
je 0x409a7b
push eax
lea ecx, [esp + 0x10]
call fcn.004ad347
cmp eax, 0xffffffff
jne 0x409a89
add esi, 8
inc edi
cmp esi, str._DesktopSCDTBrowser
jb 0x409a66
jmp 0x409a90
mov ebx, dword [edi*8 + 0x4ecfa4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004b02e4
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b7a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c9bfb
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
test eax, eax
jne 0x40b8bb
mov eax, dword [ebx + 8]
push ebp
push edi
mov edi, str.SDHelperMainDlg
test eax, eax
mov ebp, str.SDHELPERMAINDLG
je 0x40b7ea
mov edi, str.TATMainDlg
mov ebp, str.TATMAINDLG
lea ecx, [esp + 0x10]
call fcn.0043e130
push 0x20019
push str.softwareTECOcular.3ShareDataTSDS
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], 0
call fcn.0043e250
test eax, eax
je 0x40b831
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.0043e3f0
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.0043e2a0
mov eax, dword [esi]
test eax, eax
je 0x40b889
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b889
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push edx
call fcn.00418193
add esp, 0xc
test eax, eax
je 0x40b8a5
mov eax, dword [ebx + 8]
push esi
test eax, eax
je 0x40b898
push 0x40b970
jmp 0x40b89d
push 0x40ba70
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0043e1d0
pop edi
pop ebp
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x114]
pop esi
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x43e6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cbc5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4ed18c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x43e75b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43e75d
mov esi, edi
test esi, esi
je 0x43e827
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43e81c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x43e79f
cmp eax, 2
je 0x43e79f
cmp eax, 6
je 0x43e79f
cmp eax, 7
jne 0x43e81c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.004b001f
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x43e802
lea ecx, [esp + 0x14]
call fcn.004b046d
cmp esi, dword [esp + 0x14]
je 0x43e7f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004b0048
add esp, 4
jmp 0x43e839
call fcn.004b0048
add esp, 4
lea ecx, [esp + 0x10]
push 0x4fe804
call fcn.004b046d
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x43e827
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43e839
push eax
lea ecx, [esp + 0x14]
call fcn.004b046d
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004b0059
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004b02e4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x43e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x43e9b7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43e9ba
mov esi, dword [ebp + 8]
test esi, esi
je 0x43eb6b
call fcn.00460300
test eax, eax
je 0x43eaa4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43e9db
mov dword [ebp + 0x10], eax
jmp 0x43ea0e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00419ad0
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43eb5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43ea48
cmp eax, 2
je 0x43ea48
cmp eax, 6
je 0x43ea48
cmp eax, 7
jne 0x43eb5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004b001f
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x43eb4a
mov ecx, dword [ebp + 0x18]
call fcn.0042f8a0
cmp esi, dword [ebp + 8]
je 0x43eb34
jmp 0x43eb2d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43eb5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43eade
cmp eax, 2
je 0x43eade
cmp eax, 6
je 0x43eade
cmp eax, 7
jne 0x43eb5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004b001f
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x43eb4a
mov ecx, dword [ebp + 0x18]
call fcn.0042f970
cmp esi, dword [ebp + 8]
je 0x43eb34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004b0048
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.004b0048
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x4fe804
call fcn.0042f970
cmp esi, dword [ebp + 8]
je 0x43eb6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43f5b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cbd28
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x43f606
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43f609
mov esi, dword [ebp + 8]
test esi, esi
je 0x43f6ef
call fcn.00460300
test eax, eax
je 0x43f68a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43f625
xor ebx, ebx
jmp 0x43f655
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00419ad0
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.00417ba8
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43f6e3
cmp esi, dword [ebp + 8]
je 0x43f683
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x43f6f1
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.00429440
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x43f6d4
cmp esi, dword [ebp + 8]
je 0x43f6be
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00429c50
mov eax, 1
jmp 0x43f6f1
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00429c50
cmp esi, dword [ebp + 8]
je 0x43f6ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret