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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
xor edi, edi
inc ebx
push ebx
push edi
push dword [ebp + 0x18]
mov dword [ebp - 8], edi
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104a761
mov eax, ebx
jmp 0x104a8b4
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov dword [ebp + 0x18], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe4]
push eax
push edi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x18], 0x64
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x104a876
lea eax, [ebp - 0x1ac]
push 0x100a0b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104a7e2
lea eax, [ebp - 0xe4]
push 0x100a090
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104a7e2
mov word [0x10d3afc], bx
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x1ac]
push 0x100a01c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104a821
push 0x100a010
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xe4]
push eax
call fcn.01078d24
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov word [0x10d3b00], bx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1ac]
push 0x1009fe4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104a876
cmp word [0x10ce3ec], di
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x5ac]
je 0x104a85f
push dword [ebp + 0x10]
push 0x100a07c
push eax
call esi
add esp, 0x10
jmp 0x104a876
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100a038
push eax
call esi
add esp, 0x1c
inc dword [ebp + 0x18]
cmp dword [ebp - 0x1c], edi
je 0x104a76b
cmp dword [ebp - 0xc], edi
pop esi
je 0x104a8a9
cmp dword [ebp - 4], edi
je 0x104a8a9
lea eax, [ebp - 0x5ac]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01049eb0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x104a95e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x64
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104a995
xor eax, eax
inc eax
jmp 0x104aa38
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x64
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x104aa20
push dword [ebp + 8]
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4e0]
push 0x1004284
push eax
call esi
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x4e0]
push eax
call esi
add esp, 0x18
push dword [ebp - 8]
lea eax, [ebp - 0x4e0]
push eax
mov word [0x10d3afc], 1
mov word [0x10d3b00], 1
call fcn.0104a586
inc dword [ebp - 8]
inc dword [ebp - 4]
cmp ebx, edi
je 0x104a9a0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret 4

Function at 0x104aa3d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0x14]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104aa6d
xor eax, eax
inc eax
jmp 0x104ab43
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x64
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x104ab2a
push dword [ebp + 0x14]
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4e0]
push 0x1004284
push eax
call edi
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x4e0]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xe0], bx
lea esi, [ebp - 0xe0]
je 0x104ab0d
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104ab06
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104ab0d
inc esi
inc esi
cmp word [esi], bx
jne 0x104aae8
push esi
call fcn.01078d24
pop ecx
lea ecx, [ebp - 0x4e0]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104a729
inc dword [ebp - 4]
cmp dword [ebp - 0xc], ebx
je 0x104aa78
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x104acad
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104acdd
xor eax, eax
inc eax
jmp 0x104adac
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x64
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x104ad93
push dword [ebp + 0x10]
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4e0]
push 0x1004284
push eax
call edi
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x4e0]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xe0], bx
lea esi, [ebp - 0xe0]
je 0x104ad79
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104ad72
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104ad79
inc esi
inc esi
cmp word [esi], bx
jne 0x104ad54
push esi
call fcn.01078d24
pop ecx
lea ecx, [ebp - 0x4e0]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104aa3d
inc dword [ebp - 4]
cmp dword [ebp - 0xc], ebx
je 0x104ace8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x104adc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4e0
push ebx
lea eax, [ebp + 0x68]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0x7c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104adf2
xor eax, eax
inc eax
jmp 0x104aeb2
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x60], 0x64
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp + 0x64], eax
jne 0x104ae99
push dword [ebp + 0x7c]
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x470]
push 0x1004284
push eax
call edi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x470]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0x70], bx
lea esi, [ebp - 0x70]
je 0x104ae82
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104ae7b
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104ae82
inc esi
inc esi
cmp word [esi], bx
jne 0x104ae5d
push esi
call fcn.01078d24
pop ecx
lea ecx, [ebp - 0x470]
push ecx
push eax
push dword [ebp + 0x78]
call fcn.0104acad
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x64], ebx
je 0x104adfd
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x104aeba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x4e0
push ebx
lea eax, [ebp + 0x6c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0x7c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104aeec
xor eax, eax
inc eax
jmp 0x104afa9
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp + 0x70], ebx
lea eax, [ebp + 0x5c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x64], 0x64
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp + 0x68], eax
jne 0x104af90
push dword [ebp + 0x7c]
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x46c]
push 0x1004284
push eax
call edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x46c]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0x6c], bx
lea esi, [ebp - 0x6c]
je 0x104af7c
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104af75
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104af7c
inc esi
inc esi
cmp word [esi], bx
jne 0x104af57
push esi
call fcn.01078d24
pop ecx
lea ecx, [ebp - 0x46c]
push ecx
push eax
call fcn.0104adc0
inc dword [ebp + 0x70]
cmp dword [ebp + 0x68], ebx
je 0x104aef7
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x104b93f
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push 0xa
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebp, dword [sym.imp.msvcrt.dll_fwrite]
jmp 0x104b990
mov eax, ebx
sub eax, esi
push edi
sar eax, 1
push eax
push 2
push esi
call ebp
mov eax, dword [edi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x104b9b9
push edi
push 2
push 2
push 0x100550c
call ebp
mov eax, dword [edi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x104b9b9
lea esi, [ebx + 2]
push 0xa
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x104b955
cmp word [esi], ax
je 0x104b9b7
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 2
push esi
call ebp
mov eax, dword [edi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x104b9b9
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x104bd7a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
call fcn.010207aa
mov esi, edi
shl esi, 3
cmp dword [esi + 0x10ce45c], 0
mov ebx, eax
mov ax, word [esi + 0x10ce460]
mov word [ebp - 0xc], ax
jne 0x104bea0
push edi
mov edi, 0x10d4310
push edi
call fcn.0104ba22
cmp word [esi + 0x10ce460], 1
lea eax, [ebp - 8]
jne 0x104bdd7
push 0x100a614
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 4], 8
jmp 0x104bdf9
and dword [ebp - 4], 0
push 0x100a610
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebx + 0xac2], 1
mov word [esi + 0x10ce460], 1
xor ebx, ebx
cmp word [0x10d4310], bx
pop ecx
pop ecx
je 0x104bea0
push dword [ebp - 4]
push edi
call fcn.01078e38
cmp eax, ebx
mov dword [esi + 0x10ce45c], eax
jne 0x104be2c
push edi
push 0xdbb
call fcn.01077db1
pop ecx
pop ecx
jmp 0x104bea0
or byte [ebp - 2], 0xff
push eax
mov byte [ebp - 1], 0xfe
call dword [sym.imp.msvcrt.dll_ftell]
test eax, eax
pop ecx
jne 0x104be57
push dword [esi + 0x10ce45c]
lea eax, [ebp - 2]
push 2
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
call fcn.010207aa
cmp dword [eax + 0xbec], ebx
je 0x104bea0
cmp word [ebp - 0xc], 1
je 0x104bea0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], ebx
call fcn.01054588
test eax, eax
jl 0x104bea0
lea eax, [ebp - 0x2c]
push eax
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea eax, [ebp - 0x18]
push eax
call fcn.010546f9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104c23d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0xd
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x104b
push dword [esi + 0x20]
mov dword [ebp - 0x60], 4
call edi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x104c365
mov eax, dword [ecx]
mov ebx, ecx
mov dword [ebp - 4], ebx
call dword [eax + 0x44]
test eax, eax
je 0x104c365
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
and dword [ebp + 8], 0
push 0
call dword [eax + 0xe0]
mov ecx, dword [esi + 0x44]
push ebx
call fcn.0106bc37
test eax, eax
jne 0x104c35f
push dword [ebx + 0xc]
mov ecx, dword [esi + 0x44]
call fcn.0106bc37
mov ebx, eax
test ebx, ebx
je 0x104c30f
mov eax, dword [esi + 0x44]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x113f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x24], 2
push dword [eax + 0x20]
call edi
test eax, eax
je 0x104c30f
mov eax, dword [esi + 0x44]
push ebx
push 2
push 0x1102
push dword [eax + 0x20]
call edi
test eax, eax
je 0x104c30f
mov dword [ebp + 8], 1
mov ebx, dword [ebp - 4]
cmp dword [ebp + 8], 0
jne 0x104c2a3
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
mov ecx, dword [esi + 0x44]
push ebx
call fcn.0106bc37
mov ebx, eax
test ebx, ebx
je 0x104c365
mov ecx, dword [esi + 0x44]
push ebx
call fcn.0106b8f4
mov eax, dword [esi + 0x44]
push ebx
push 2
push 0x1102
push dword [eax + 0x20]
call edi
push 0xf
push 3
push 0
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemState
xor eax, eax
inc eax
jmp 0x104c367
and dword [ebp + 8], 0
jmp 0x104c312
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x104d43e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xd
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x38]
push eax
push 0
push 0x104b
push dword [esi + 0x20]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 4
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x104d4b9
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0xb
push dword [esi + 0x20]
mov dword [ebp - 4], eax
call edi
push ebx
mov ecx, esi
call fcn.0104c1e0
test eax, eax
mov dword [ebp + 8], eax
je 0x104d4ae
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 4]
call fcn.0104d066
mov dword [ebp + 8], eax
push 0
push 1
push 0xb
push dword [esi + 0x20]
call edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x104dd7e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
call sub.MFC42u.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
push 4
mov ecx, edi
call fcn.01052e07
push 3
mov ecx, edi
mov esi, eax
call fcn.01052e07
and dword [ebp - 4], 0
test esi, esi
mov edi, dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
je 0x104de2d
call edi
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
test eax, eax
je 0x104ddc2
mov eax, dword [eax + 0x20]
cmp eax, dword [esi + 0x20]
jne 0x104de2d
and dword [ebp - 8], 0
push 2
push 0xffffffffffffffff
jmp 0x104de15
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push dword [esi + 0x20]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x104de25
cmp dword [ebp - 8], 0
jne 0x104de25
cmp dword [ebp - 0x1c], eax
jne 0x104de12
mov dword [ebp - 8], 1
push 2
push ebx
mov ecx, esi
call fcn.010262ae
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x104ddd1
jmp 0x104de98
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x104de98
test ebx, ebx
je 0x104de98
call edi
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
test eax, eax
je 0x104de40
mov eax, dword [eax + 0x20]
cmp eax, dword [ebx + 0x20]
jne 0x104de98
cmp dword [ebp + 8], 0
jne 0x104de94
mov ecx, ebx
call fcn.01027b65
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 9
push 0x110a
push dword [ebx + 0x20]
call esi
mov edx, eax
test edx, edx
jbe 0x104de98
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x113e
push dword [ebx + 0x20]
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], edx
call esi
mov eax, dword [ebp - 0xc]
jmp 0x104de28
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1050077
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 0x2000000
push edi
push 0x10020dc
push edi
push 0x100b188
push 0x80000002
mov dword [ebp - 8], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10500bb
xor eax, eax
inc eax
jmp 0x105013d
push esi
call fcn.0102080a
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10d4530
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x14
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x100b164
push dword [ebp - 4]
call esi
test eax, eax
jne 0x105012e
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x100b144
push dword [ebp - 4]
call esi
test eax, eax
je 0x1050131
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
leave
ret
Function at 0x1050140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, 0x100b2a8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
mov ebx, 0x2000000
push ebx
push eax
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x10020dc
push esi
push eax
push 0x100b210
push 0x80000002
call edi
test eax, eax
jne 0x10501e3
cmp dword [ebp - 8], 1
jne 0x10501bb
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x4c]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10501bb
xor esi, esi
inc esi
jmp 0x10501ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push ebx
push eax
push esi
push eax
push 0x100a170
push 0x80000001
call edi
test eax, eax
je 0x10501e8
xor eax, eax
inc eax
jmp 0x10501f5
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1052749
Capabilities:
Set current directory

Disassembly:
call fcn.0102079e
test eax, eax
jne 0x1052757
call fcn.01050140
push ebx
push ebp
push esi
push edi
call fcn.01020cc4
call fcn.01050077
mov ebx, pe_nt_image_headers32
push ebx
push 0x10d49e8
mov edi, 0x10020dc
push edi
xor ebp, ebp
push 0x100bc88
mov esi, 0x100b4d8
push esi
mov word [0x10d52b4], bp
mov word [0x10d52b8], bp
mov word [0x10d52ba], bp
call fcn.010208c5
call fcn.010207b0
push eax
call fcn.01020ac3
push ebx
push 0x10d4be8
push edi
push 0x100bc6c
push esi
call fcn.010208c5
call fcn.010207ea
push eax
call fcn.01020bbd
push 1
push 0x100ba88
push esi
call fcn.0102081c
movzx eax, ax
mov dword [0x10d52cc], eax
call fcn.01087bc7
push ebp
call fcn.0108248c
cmp eax, ebp
mov dword [0x10d52c0], eax
mov dword [0x10d4528], eax
je 0x1052837
mov word [eax + 0x66], 1
mov eax, dword [0x10d4528]
or dword [eax + 0x9c], 2
call fcn.010501fa
call fcn.01052404
call fcn.010506d9
call fcn.0105080b
mov dword [0x10d3584], ebp
call fcn.01050921
call fcn.0105095c
call fcn.0109a829
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.01020810
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1052a07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
xor edi, edi
push 0x80000001
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1052a71
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x100c2f8
push dword [ebp - 4]
mov dword [ebp - 8], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1052a68
cmp dword [ebp - 0xc], 4
jne 0x1052a68
mov edi, dword [ebp - 0x38]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1052a77
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1052ac4
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x100c2f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4
Function at 0x1052f4e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10bf76e
call fcn.0106f6c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call edi
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call sub.MFC42u.DLL_CString::GetBufferSetLength
cmp eax, ebx
je 0x1053032
push dword [ebp - 0x14]
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [esi]
call fcn.01031045
mov edi, eax
cmp edi, ebx
je 0x1053032
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.0106f030
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [0x10d356c]
call fcn.0107a960
test ax, ax
jne 0x1053026
push dword [ebp - 0x18]
push dword [0x10d3570]
call fcn.01084496
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x1053026
mov eax, dword [esi]
mov ax, word [eax + edi*2]
cmp ax, 0x5c
mov ecx, esi
lea eax, [ebp + 8]
jne 0x1053001
inc edi
push edi
push eax
call sub.MFC42u.DLL_CString::Mid_1
mov byte [ebp - 4], 1
jmp 0x105300c
push edi
push eax
call sub.MFC42u.DLL_CString::Mid_1
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.0106e8f8
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8