joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4197ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44c4c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44d5cc], 0
jge 0x4198c8
push ebx
xor ebx, ebx
mov dword [ebp - 0x110], 1
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.0041ed30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call fcn.004197af
test eax, eax
mov edx, str.HKEY_LOCAL_MACHINESOFTWAREClara
mov ecx, str.HKEY_LOCAL_MACHINESOFTWAREWow6432NodeClara
cmove ecx, edx
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4198c0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push str.Logging
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4198ae
lea eax, [ebp - 0x104]
push eax
call fcn.0041e216
pop ecx
xor ecx, ecx
test eax, eax
setg cl
mov dword [0x44d5cc], ecx
jmp 0x4198b4
mov dword [0x44d5cc], ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x44d5cc]
pop ebx
jmp 0x4198ca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c169
mov esp, ebp
pop ebp
ret

Function at 0x4198d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44c4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x110], 1
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.0041ed30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call fcn.004197af
test eax, eax
mov edx, str.SOFTWAREClara
mov ecx, str.SOFTWAREWow6432NodeClara
cmove ecx, edx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41998e
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x444d34
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419982
lea eax, [ebp - 0x104]
push eax
call fcn.0041e21f
pop ecx
mov ebx, eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041c169
mov esp, ebp
pop ebp
ret
Function at 0x41999f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov eax, dword [0x44c4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.004197ea
test eax, eax
je 0x419abb
xor ebx, ebx
lea eax, [ebp - 0x507]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x508], bl
call fcn.0041ed30
lea eax, [ebp + 0xc]
mov esi, 0x400
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.0041e962
push 0x444d3c
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.0041e97d
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push ebx
push eax
call fcn.0041ed30
add esp, 0x30
mov ecx, esp
push str.SystemDrive
call fcn.00407521
lea ecx, [ebp - 0x50c]
call fcn.0041a394
push dword [eax]
lea eax, [ebp - 0x108]
push str._sclaraInstaller.txt
push eax
call fcn.0041e233
mov ecx, dword [ebp - 0x50c]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00404b8d
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
mov dword [ebp - 0x510], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x508]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419a94
push ebx
lea eax, [ebp - 0x510]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x508]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c169
mov esp, ebp
pop ebp
ret
Function at 0x419acb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a41d
mov eax, dword fs:[0]
push eax
mov eax, 0x2114
call fcn.0042f880
mov eax, dword [0x44c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004197ea
test eax, eax
je 0x419c6f
xor eax, eax
xor ebx, ebx
push 0x1ffe
mov word [ebp - 0x2114], ax
lea eax, [ebp - 0x2112]
push ebx
push eax
call fcn.0041ed30
lea eax, [ebp + 0xc]
mov esi, 0x1000
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2114]
push esi
push eax
call fcn.0041d2d4
push 0x442b30
lea eax, [ebp - 0x2114]
push esi
push eax
call fcn.0041e9e0
lea ecx, [ebp - 0x2114]
add esp, 0x28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x419b5e
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x419b7c
mov eax, ebx
jmp 0x419b95
add esi, esi
mov eax, esi
call fcn.00425850
mov ecx, esp
lea edx, [ebp - 0x2114]
push 3
push esi
call fcn.0040e297
push eax
lea ecx, [ebp - 0x2118]
call fcn.00407521
push 0x103
lea eax, [ebp - 0x113]
mov dword [ebp - 4], ebx
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0041ed30
pop ecx
pop ecx
mov ecx, esp
push str.SystemDrive
call fcn.00407521
lea ecx, [ebp - 0x211c]
call fcn.0041a394
push dword [eax]
lea eax, [ebp - 0x114]
push str._sclaraInstaller.txt
push eax
call fcn.0041e233
mov ecx, dword [ebp - 0x211c]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00404b8d
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x114]
mov dword [ebp - 0x2120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x2118]
cmp dword [ecx - 4], 1
mov edi, dword [ecx - 0xc]
jle 0x419c49
push edi
lea ecx, [ebp - 0x2118]
call fcn.0040776d
mov ecx, dword [ebp - 0x2118]
push ebx
lea eax, [ebp - 0x2120]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2118]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
lea esp, [ebp - 0x2130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c169
mov esp, ebp
pop ebp
ret
Function at 0x419c91
Capabilities:
Accept command line arguments

Disassembly:
push 0x228
mov eax, 0x43a49e
call fcn.0041f563
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x22c], esi
call fcn.00404af7
push eax
mov ecx, edi
call fcn.00402974
xor ebx, ebx
mov dword [ebp - 4], esi
inc ebx
mov dword [ebp - 0x22c], ebx
call fcn.00404af7
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402974
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x442a90
push edi
call fcn.004036d3
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0041ed30
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x419d2c
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402cff
mov ebx, 0x4448cc
lea ecx, [ebp - 0x228]
push ebx
call fcn.00417ede
mov esi, eax
push ebx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00417ede
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x224]
call fcn.00411f1e
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
call fcn.00411f1e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov eax, dword [ebp - 0x220]
cmp dword [eax - 4], 1
jle 0x419deb
push dword [eax - 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040299d
mov eax, dword [ebp - 0x220]
mov ebx, 0x44288c
mov ecx, edi
push ebx
push eax
call fcn.00404ee8
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
jle 0x419e19
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.0040299d
mov esi, dword [ebp - 0x21c]
push ebx
push esi
mov ecx, edi
call fcn.00404ee8
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00404b8d
lea ecx, [esi - 0x10]
call fcn.00404b8d
mov eax, edi
call fcn.0041f512
ret
Function at 0x419e40
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x43a4ce
call fcn.0041f530
mov bl, dl
mov bh, cl
push 0x44
pop esi
xor edi, edi
lea eax, [ebp - 0x64]
push esi
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x10], edi
test bl, bl
jne 0x419e76
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x419e8d
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040299d
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x419ec8
test bh, bh
je 0x419ed1
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x419ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404b8d
mov eax, esi
call fcn.0041f4fe
ret
Function at 0x41a123
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x268
mov eax, 0x43a507
call fcn.0041f563
xor edi, edi
lea eax, [ebp - 0x264]
push 0x250
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0041ed30
add esp, 0xc
push 0x5c
pop eax
push eax
push dword [ebp + 8]
call fcn.0041e650
pop ecx
mov edx, eax
pop ecx
mov ecx, dword [ebp + 8]
test edx, edx
jne 0x41a168
or edx, 0xffffffff
jmp 0x41a16c
sub edx, ecx
sar edx, 1
mov ebx, dword [ecx - 0xc]
lea eax, [ebx - 1]
cmp edx, eax
je 0x41a192
lea esi, [ebx + 1]
push esi
lea ecx, [ebp + 8]
call fcn.0040270e
push 0x5c
pop ecx
push esi
mov word [eax + ebx*2], cx
lea ecx, [ebp + 8]
call fcn.00402dec
push 0x444d64
lea edx, [ebp + 8]
lea ecx, [ebp - 0x268]
call fcn.0041642f
pop ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x41a1d2
cmp esi, 0xffffffff
jne 0x41a2e5
push 2
pop ebx
mov edi, ebx
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00404b8d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404b8d
mov eax, edi
call fcn.0041f512
ret
mov ecx, 0x444d6c
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a229
test dx, dx
je 0x41a225
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a229
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a203
mov eax, edi
jmp 0x41a22e
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a2e5
mov ecx, 0x444d70
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a267
test dx, dx
je 0x41a263
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a267
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a241
mov eax, edi
jmp 0x41a26c
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a2e5
test byte [ebp - 0x264], 0x10
lea eax, [ebp - 0x238]
push eax
je 0x41a2c0
lea ecx, [ebp - 0x270]
call fcn.004025e2
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push eax
lea edx, [ebp + 8]
call fcn.00411f1e
pop ecx
call fcn.0041a123
pop ecx
mov byte [ebp - 4], 1
mov ebx, eax
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00404b8d
test ebx, ebx
jne 0x41a1d5
jmp 0x41a2e5
lea edx, [ebp + 8]
lea ecx, [ebp - 0x26c]
call fcn.0041642f
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41a1f8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41a1d7
Function at 0x41a418
Capabilities:
Get file size

Disassembly:
push 0xc
mov eax, 0x43a58b
call fcn.0041f530
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
add ecx, 0xfffffff0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov esi, esp
call fcn.00402e17
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402e17
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.0040696e
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x41a4a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp - 0x10]
jne 0x41a4a1
mov bl, 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404b8d
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00404b8d
mov al, bl
call fcn.0041f4fe
ret

Function at 0x41a4ca
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x43a5c8
call fcn.0041f563
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
push 0x44288c
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], edi
call fcn.004025e2
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x224], 1
call fcn.0041ed30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41a560
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41a540
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402cff
jmp 0x41a5ad
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
call fcn.004197af
test eax, eax
lea eax, [ebp - 0x220]
je 0x41a582
push str.COMMONPROGRAMFILES_x86_
jmp 0x41a587
push str.COMMONPROGRAMFILES
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041d62e
add esp, 0xc
cmp dword [ebp - 0x21c], 0
je 0x41a5ad
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.0040267e
mov eax, esi
call fcn.0041f512
ret
Function at 0x41aaa9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x43a6da
call fcn.0041f563
mov ebx, edx
push ecx
lea ecx, [ebp - 0x268]
call fcn.004025e2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
push 1
push 0x4429b8
call fcn.00403219
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.0041ed30
mov edi, dword [ebx + 4]
add esp, 0xc
mov esi, dword [ebx]
jmp 0x41ab06
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00404b8d
add esi, 4
cmp esi, edi
jne 0x41aaf9
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea ecx, [ecx - 0x10]
call fcn.00402e17
add eax, 0x10
mov dword [ebp - 0x26c], eax
push 3
push 0x444d64
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00403219
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
jne 0x41ab62
call fcn.00404bfc
mov edi, eax
jmp 0x41ac40
test byte [ebp - 0x264], 0x10
je 0x41ac19
mov ecx, 0x444d70
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aba0
test dx, dx
je 0x41ab9c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aba0
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ab7a
xor eax, eax
jmp 0x41aba5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ac19
mov ecx, 0x444d6c
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41abda
test dx, dx
je 0x41abd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41abda
add eax, 4
add ecx, 4
test dx, dx
jne 0x41abb4
xor eax, eax
jmp 0x41abdf
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ac19
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.004025e2
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.0041b182
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ab62
call fcn.00404bfc
mov edi, eax
cmp edi, 0x80070012
jne 0x41ac40
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00404b8d
mov eax, edi
call fcn.0041f512
ret
Function at 0x41b37a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push str.Local_AppData
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b3e6
cmp dword [ebp + 0x10], 1
je 0x41b3be
cmp dword [ebp + 0x10], 2
je 0x41b3be
push 0xd
pop eax
jmp 0x41b3e6
mov ecx, dword [ebp - 4]
test esi, esi
je 0x41b3e0
test ecx, ecx
je 0x41b3db
test cl, 1
jne 0x41b3b9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x41b3e0
jmp 0x41b3b9
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432192
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44c4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004231ee
mov dword [ebp - 0x14], eax
cmp dword [0x44ee04], esi
jne 0x432285
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x432212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x432365
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x432365
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x432365
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44ee04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44ee08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44ee0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44ee14], eax
test eax, eax
je 0x432282
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44ee10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4322aa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43229d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4322bf
push 4
pop eax
jmp 0x432367
cmp dword [ebp - 0x14], esi
je 0x4322bf
push dword [0x44ee04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4322a4
mov eax, dword [0x44ee10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43231d
cmp dword [0x44ee14], edi
je 0x43231d
push eax
call ebx
push dword [0x44ee14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43231d
test eax, eax
je 0x43231d
call ecx
test eax, eax
je 0x432312
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x432312
test byte [ebp - 8], 1
jne 0x43231d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43234d
mov eax, dword [0x44ee08]
cmp eax, edi
je 0x43234a
push eax
call ebx
test eax, eax
je 0x43234a
call eax
mov esi, eax
test esi, esi
je 0x43234a
mov eax, dword [0x44ee0c]
cmp eax, edi
je 0x43234a
push eax
call ebx
test eax, eax
je 0x43234a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44ee04]
call ebx
test eax, eax
je 0x432365
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x432367
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c169
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219