joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004168a
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x418], ebx
lea eax, [ebp - 0x418]
mov esi, ebx
push eax
push 0x20019
push ebx
push 0x10006ed0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100417b7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], ebx
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x10003f08
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041799
cmp dword [ebp - 0x41c], 2
jne 0x10041799
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10041799
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.1000b82d
test eax, eax
js 0x10041799
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10041782
sub ecx, edx
sar ecx, 1
je 0x10041799
lea esi, [ebp - 0x20c]
cmp dword [ebp - 0x418], ebx
je 0x100417b3
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], ebx
test esi, esi
jne 0x100417bc
mov esi, 0x10006e3c
push 1
push ebx
push edi
push esi
push 0x10005004
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x100417de
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.10031469
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x418], ebx
lea eax, [ebp - 0x418]
mov esi, ebx
push eax
push 0x20019
push ebx
push 0x10006e58
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004190b
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], ebx
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x10003f08
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100418ed
cmp dword [ebp - 0x41c], 2
jne 0x100418ed
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100418ed
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.1000b82d
test eax, eax
js 0x100418ed
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100418d6
sub ecx, edx
sar ecx, 1
je 0x100418ed
lea esi, [ebp - 0x20c]
cmp dword [ebp - 0x418], ebx
je 0x10041907
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], ebx
test esi, esi
jne 0x10041910
mov esi, 0x10006e2c
push 1
push ebx
push edi
push esi
push 0x10005004
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x10042192
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [edx + 0x18]
mov esi, ecx
mov dword [ebp - 0x34], eax
xor ebx, ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
push eax
mov eax, dword [edx + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], ebx
push dword [eax + 0x24]
call fcn.10033a19
test eax, eax
je 0x100422bb
mov eax, dword [ebp - 0x28]
push 8
pop ecx
push ebx
mov edx, dword [edi + eax*8 + 4]
xor eax, eax
push ebx
push edx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x30], edx
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1004220e
push ebx
push 0x20
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.10035ff0
jmp 0x10042210
mov eax, ebx
test eax, eax
je 0x100422bb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea esi, [ebp - 0x24]
push 1
push eax
mov eax, dword [ebp - 0x2c]
sub esp, 0x20
mov eax, dword [eax + 0x10]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x14]
call fcn.100352ac
test eax, eax
je 0x100422bb
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x10042254
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x3fffffff
ja 0x100422bb
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100422bb
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100422b4
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jne 0x100422b4
mov eax, ebx
cmp dword [ebp - 0x18], eax
jbe 0x100422b4
mov ecx, dword [0x1008b3cc]
cmp dword [esi + eax*4], ecx
je 0x100422b1
cmp dword [esi + eax*4], 0x660c1102
je 0x100422b1
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x1004229b
jmp 0x100422b4
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 8
Function at 0x100422d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1004231f
js 0x10042361
mov eax, 0x8000ffff
jmp 0x10042361
push 0x10006fa0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10042348
xor eax, eax
inc eax
jmp 0x10042361
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.1000b82d
test eax, eax
js 0x10042361
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10087900
mov esp, ebp
pop ebp
ret 4
Function at 0x10042f90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
and dword [esp + 0xc], esi
and dword [esp + 8], esi
push edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
cmp dword [ebp + 0x10], esi
je 0x10043113
cmp dword [ebp + 0xc], esi
je 0x10043113
mov ecx, ebx
call fcn.10046af8
test eax, eax
jne 0x10042fdc
mov eax, 0x80070005
jmp 0x10043144
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x1c]
xor edi, edi
inc edi
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], edi
call fcn.1003607a
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
je 0x1004312a
test eax, eax
js 0x1004312a
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.100340fd
test eax, eax
je 0x1004312a
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10036449
test eax, eax
je 0x1004310d
mov edi, dword [esp + 0xc]
jmp 0x1004306a
push 0x10
push dword [esp + 0x14]
mov edx, esi
push 0
call fcn.10031469
test eax, eax
je 0x1004310d
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.100340fd
test eax, eax
je 0x1004310d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x84], edi
jb 0x10043041
push 0
push 0
push dword [eax + 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x100430a1
push dword [esp + 0xc]
mov edx, edi
mov ecx, esi
call fcn.10035fcf
jmp 0x100430a3
xor eax, eax
test eax, eax
je 0x1004311b
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
push 0
push 0
mov eax, dword [eax + 0x10]
push 0
push esi
mov dword [eax + 0x88], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [eax + 0x90], ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10043100
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 0
push eax
push 0xa4
push dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10043102
xor eax, eax
test eax, eax
je 0x1004311b
and dword [esp + 0x14], 0
jmp 0x1004311b
mov edi, dword [esp + 0x18]
jmp 0x1004311b
mov dword [esp + 0x14], 0x80070057
test edi, edi
je 0x10043126
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x10]
test esi, esi
je 0x10043135
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10043140
mov ecx, ebx
call fcn.10046b1c
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10046bb8
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.100102ed
mov eax, dword [edi]
xor ebx, ebx
add eax, eax
mov dword [ebp - 0x224], ebx
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [edi], ebx
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.100712f1
mov esi, eax
test esi, esi
js 0x10046d46
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push 3
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x10046d29
call fcn.1000df00
cmp eax, 0x800700ea
jne 0x10046cae
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.1007133e
mov esi, eax
test esi, esi
js 0x10046d46
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push 3
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x10046d29
call fcn.1000df00
mov esi, eax
jmp 0x10046d46
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x10046d29
call fcn.1000df00
cmp eax, 0x8007007a
jne 0x10046d0c
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.1007133e
mov esi, eax
test esi, esi
js 0x10046d46
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jmp 0x10046c9c
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push 0x10dd
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1007120d
mov esi, eax
test esi, esi
js 0x10046d46
mov esi, ebx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x224], ebx
call fcn.1000deab
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret

Function at 0x10046de0
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.1005f1cf
mov esi, eax
push 0x10
push 0x40
and dword [esi + 0x97c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x10046e44
mov ecx, dword [ebp + 0xc]
and dword [eax + 8], 0
push eax
push 0x100470d0
push ebx
push 0x69
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
pop edx
mov dword [eax], edi
mov dword [eax + 0xc], ecx
call fcn.1008497f
push 1
push eax
mov dword [esi + 0x980], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x980]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10053d8b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x93a
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x943
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x1004
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x418], eax
test eax, eax
jg 0x10053dfd
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x93c
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
jmp 0x10053e69
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xfab
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10010229
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0x93c
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret

Function at 0x10054636
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x210], ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x1005467f
mov eax, dword [edx + 0x40]
test eax, 0x4000
je 0x1005467f
and dword [edx + 0x70], 0
lea ecx, [edx + 0x74]
and eax, 0xffffbfff
mov dword [edx + 0x40], eax
call fcn.10037062
test edi, edi
jne 0x10054688
mov edi, 0x10005b90
push edi
mov edi, dword [ebp - 0x210]
push 0x946
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test ebx, ebx
jne 0x100546a4
mov ebx, 0x10005b90
push ebx
push 0x948
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor ebx, ebx
test esi, esi
sete bl
push ebx
push 0x94a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push 0x94a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
neg esi
lea eax, [ebp - 0x20c]
push 0x104
sbb esi, esi
push eax
add esi, 0x113d
push esi
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
push 0x949
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 1
push 0x401
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10057442
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
push 0xb08
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x1005a966
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x4c
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], esi
push eax
mov ebx, edx
call sub.msvcrt.dll_memset
push 0x2c
pop edi
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x28], 1
je 0x1005a9d2
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x80]
xor edi, edi
push edi
push edi
push 0x130b
push 0x64
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x80], edi
test ebx, ebx
je 0x1005a9ff
mov eax, dword [ebx + 0x2a8]
test eax, eax
jne 0x1005aa04
mov eax, SysReAllocStringLen
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], edi
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push 0x10007698
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1005aa45
push 0x4c
lea eax, [ebp - 0x7c]
push eax
push 3
push edi
push 0x100076f0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x80], edi
je 0x1005aa53
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x63
push esi
mov dword [ebp - 0x84], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push edi
mov esi, eax
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea edx, [ebp - 0x84]
mov ecx, esi
call fcn.100575a9
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x1005aaca
test ebx, ebx
je 0x1005aa98
mov edx, dword [ebx + 0x2a8]
test edx, edx
jne 0x1005aa9d
mov edx, SysReAllocStringLen
mov ecx, esi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1005aaa4
sub ecx, edi
sar ecx, 1
push ecx
push esi
push 1
push 0x10007478
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x1005c7ee
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x8000000
push 2
push eax
push eax
push 0x40000000
push edi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005c834
test byte [ebp + 8], 8
je 0x1005c898
push edi
push 0x10
push 0x30
push 0
call fcn.100601d5
add esp, 0x10
jmp 0x1005c898
push dword [ebp + 0x10]
mov edx, 0x1006bdb0
mov ecx, esi
call fcn.100698c1
mov ebx, eax
test ebx, ebx
jns 0x1005c894
mov eax, dword [ebp + 8]
and eax, 8
cmp ebx, 0x80041002
je 0x1005c86c
test eax, eax
je 0x1005c894
push edi
push 0x10
push 0x30
push 0
call fcn.100601d5
add esp, 0x10
jmp 0x1005c894
test eax, eax
je 0x1005c87f
push edi
push 0x30
push 0x35
push 0
call fcn.100601d5
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 0x80004005
test esi, esi
je 0x1005c89f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1005ec6b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push 0x208
push eax
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [ebp - 0x22c]
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
mov dword [ebp - 0x22c], 0x2a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1005ed99
lea ecx, [ebp - 0x210]
call fcn.1005c2c8
lea ecx, [ebp - 0x210]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1005ece6
sub ecx, edx
sar ecx, 1
je 0x1005ed99
lea eax, [ebp - 0x210]
or edi, 0xffffffff
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push edi
push 0x1053
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x214], esi
cmp esi, edi
je 0x1005ed99
xor eax, eax
push eax
push eax
push 0x1032
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1005ed90
push 2
push edi
push 0x100c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
je 0x1005ed90
xor esi, esi
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], 3
push ecx
push eax
push 0x102b
push ebx
mov dword [ebp - 0x25c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push edi
push 0x100c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x1005ed53
mov esi, dword [ebp - 0x214]
mov edx, esi
mov ecx, ebx
call fcn.1005d225
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret

Function at 0x1005f8d1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
push edi
mov edi, edx
test ecx, ecx
je 0x1005f8f0
mov ecx, dword [ecx + 0x2a8]
test ecx, ecx
jne 0x1005f8f5
mov ecx, SysReAllocStringLen
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
test edi, edi
je 0x1005f96e
mov eax, dword [0x1008b464]
push ebx
mov dword [edi + 0xc], eax
xor ebx, ebx
lea eax, [ebp - 8]
mov dword [edi], esi
push eax
lea eax, [ebp - 4]
mov dword [edi + 4], esi
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x10007698
inc ebx
push ecx
mov dword [edi + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1005f95e
cmp dword [ebp - 8], ebx
je 0x1005f95e
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100076e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005f95e
mov esi, ebx
cmp dword [ebp - 4], 0
pop ebx
je 0x1005f96e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret