joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7664cc84
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xe0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
push esi
cmp edx, ecx
push edi
mov dword [ebp - 4], edx
jb 0x7664cdaa
mov dword [ebp - 4], ecx
jmp 0x7664cdaa
mov edx, dword [ebx + 0xc4]
mov ecx, dword [ebx + 0xc0]
sub ecx, edx
cmp dword [ebp - 4], ecx
jae 0x7664ccd6
mov ecx, dword [ebp - 4]
mov edi, dword [ebx + 0xbc]
mov esi, dword [eax]
add esi, dword [eax + 0xc]
mov dword [ebp + 8], ecx
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
add dword [ebx + 0xc4], ecx
add dword [eax + 0xc], ecx
sub dword [edx], ecx
sub dword [ebp - 4], ecx
mov ecx, dword [ebx + 0xc0]
cmp ecx, dword [ebx + 0xc4]
jne 0x7664cdaa
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [ebp + 8], ecx
je 0x7664cd2d
sub ecx, dword [ebx + 0xdc]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebx + 0xbc]
push eax
push eax
push eax
push dword [ebx + 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x7664cdf9
push 0
push dword [ebp + 8]
push dword [ebx + 0xbc]
push ebx
call fcn.7664c298
test eax, eax
je 0x7664cdf9
cmp dword [ebp - 8], 0
je 0x7664cda0
mov ecx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xc0]
mov edi, dword [ebx + 0xbc]
sub eax, ecx
mov dword [ebp + 8], eax
lea esi, [edi + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xdc]
mov dword [ebx + 0xc4], eax
jmp 0x7664cda7
and dword [ebx + 0xc4], 0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], 0
ja 0x7664ccc0
xor esi, esi
xor ecx, ecx
inc esi
cmp dword [ebp + 0x14], ecx
je 0x7664ce04
mov eax, dword [ebx + 0xc4]
cmp eax, ecx
mov dword [ebp + 8], eax
je 0x7664cde5
lea eax, [ebp + 8]
push eax
push dword [ebx + 0xbc]
push ecx
push esi
push ecx
push dword [ebx + 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x7664cdf9
push esi
push dword [ebp + 8]
push dword [ebx + 0xbc]
push ebx
call fcn.7664c298
test eax, eax
jne 0x7664ce04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
xor esi, esi
push dword [ebp - 0xc]
call fcn.765ffbbd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7665bd15
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x7665bdb0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7665bd82
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x7665bda4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7665bd82
cmp dword [ebp - 0xc], 4
jne 0x7665bd82
cmp dword [ebp - 0x10], 4
je 0x7665bd85
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x7665bd93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x7665bddf
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.7665bd15
test al, 1
je 0x7665be07
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
ret 4

Function at 0x7665eb89
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x7665ec04
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x7665ebcf
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7665ec04
push edi
call fcn.765e44d7
mov ebx, eax
cmp ebx, esi
je 0x7665ec04
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7665ebfc
cmp dword [ebp - 4], edi
je 0x7665ec0b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.765e40a0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x7665ec12
mov dword [ebp - 8], 1
cmp dword [ebp + 8], 0xffffffff
je 0x7665ec30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7665ec49
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x7665eca1
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7665ec84
inc esi
cmp edi, 0xffffffff
je 0x7665eca1
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x7665eec6
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x76666130]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x310]
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x314], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x7665efa4
cmp eax, 0x103
ja 0x7665efa4
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x108]
push eax
push ebx
mov edi, 0x7665f0c0
push edi
lea eax, [ebp - 0x310]
push eax
call esi
test eax, eax
jne 0x7665f01e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x310]
push eax
call fcn.7665edee
cmp eax, ebx
je 0x7665ef92
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
lea eax, [ebp - 0x310]
push eax
call esi
cmp eax, ebx
jne 0x7665f01e
push dword [ebp - 0x318]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x108], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x314], ebx
mov dword [ebp - 0x318], eax
je 0x7665efc9
push dword [ebp - 0x314]
call fcn.765e40a0
mov dword [ebp - 0x314], ebx
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
test eax, eax
je 0x7665efde
push eax
call edi
lea eax, [ebp - 0x20c]
test eax, eax
je 0x7665efeb
push eax
call edi
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x320]
push dword [ebp - 0x318]
mov dword [ecx], eax
mov eax, dword [ebp - 0x324]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.765e4260
leave
ret 0x14
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x7665f0bc
lea eax, [ebp - 0x310]
push eax
mov byte [ebp - 5], bl
call esi
test eax, eax
jne 0x7665f046
mov byte [ebp - 0x20c], bl
jmp 0x7665efa4
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push dword [ebp - 0x328]
mov byte [ebp - 0x109], bl
push eax
call fcn.7665ec49
test eax, eax
je 0x7665efa4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x31c]
call fcn.7665ed30
test eax, eax
je 0x7665efa4
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.7665eb89
test eax, eax
je 0x7665efa4
mov esi, dword [ebp - 0x31c]
xor ebx, ebx
inc ebx
jmp 0x7665efcb
Function at 0x7665f345
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, 0x100000
push esi
xor edi, edi
call fcn.7665f22e
mov ebx, eax
test ebx, ebx
je 0x7665f3c3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.7665f2fc
test eax, eax
je 0x7665f3bd
and dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.76662fe1
mov edi, eax
test edi, edi
jne 0x7665f3bd
push dword [ebp + 8]
push eax
push esi
call fcn.76663077
mov edi, eax
test edi, edi
jne 0x7665f3b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7665f3bd
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jae 0x7665f3bd
jmp 0x7665f378
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.765e40a0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x7665f3d1
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 2
xor esi, esi
call fcn.7665f22e
mov edi, eax
test edi, edi
je 0x7665f452
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.7665f2fc
test eax, eax
je 0x7665f44b
xor ebx, ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x7665f44b
push dword [ebp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
jne 0x7665f440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7665f44b
inc ebx
cmp ebx, 5
jae 0x7665f44b
jmp 0x7665f3ff
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.765e40a0
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x76661ed9
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x76666130]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x210], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x76661fe4
lea ecx, [ebp - 0x218]
push ecx
mov eax, 0x200
push eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x204]
push eax
push 1
push dword [ebp - 0x210]
mov byte [ebp - 0x20c], bl
mov byte [ebp - 0x20b], bl
mov byte [ebp - 0x20a], bl
mov byte [ebp - 0x209], bl
mov byte [ebp - 0x208], bl
mov byte [ebp - 0x207], 5
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x76661f73
cmp dword [ebp + 8], ebx
je 0x76661fcd
push ebx
push ebx
push ebx
push 0x76
jmp 0x76661fa3
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x76661fad
cmp dword [ebp + 8], ebx
je 0x76661fcd
push ebx
push ebx
push ebx
push 0x80
push 4
push ebx
call fcn.76663357
jmp 0x76661fcd
push dword [ebp - 0x204]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x76661fe4
mov eax, 0xb4
jmp 0x76661fe7
push 0x18
pop eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.765e4260
leave
ret 4
Function at 0x76661ffa
Capabilities:
Modify service
Query service configuration
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push 0xe0000000
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x76662041
cmp dword [ebp + 0x10], esi
je 0x7666203a
push esi
push esi
push esi
push 0xbb
push 4
push esi
call fcn.76663357
xor eax, eax
jmp 0x766621cd
push ebx
push edi
push 0x13
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x76662074
cmp dword [ebp + 0x10], esi
je 0x76662196
push esi
push esi
push esi
push 0xc5
push 4
push esi
call fcn.76663357
jmp 0x76662196
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 8]
push ecx
push esi
push esi
push eax
call edi
test eax, eax
je 0x766620cb
push dword [ebp - 8]
call sub.msvcrt.dll_w_kA
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x766620cb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x766620ae
mov dword [ebp - 0xc], 1
cmp dword [ebx + 4], 4
jne 0x766620bb
mov dword [ebp - 0xc], 1
push ebx
call sub.msvcrt.dll__T4d4__Vw_kA
cmp dword [ebp - 0xc], esi
pop ecx
je 0x7666216e
push dword [ebp + 0x10]
call fcn.76661ed9
mov ebx, eax
mov edi, 0x41f
jmp 0x76662102
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x76662135
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x76662123
push 0x1388
dec ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, esi
ja 0x766620dc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x10], esi
je 0x76662196
push esi
push esi
push esi
push 0x10e
jmp 0x76662067
cmp dword [ebp + 0x10], esi
je 0x76662196
push esi
push esi
push esi
push 0xff
jmp 0x76662067
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x76662162
cmp dword [ebp + 0x10], esi
je 0x76662196
push esi
push esi
push esi
push 0x11f
jmp 0x76662067
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x7666218f
cmp dword [ebp + 0x10], esi
je 0x76662196
push esi
push esi
push esi
push 0x12c
jmp 0x76662067
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
je 0x766621ae
push dword [ebp + 8]
call edi
cmp dword [ebp - 4], esi
je 0x766621bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push dword [ebp - 0x10]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x766631fd
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
or edi, 0xffffffff
cmp dword [0x766683e0], ebx
mov dword [ebp + 8], esi
mov dword [ebp - 4], ebx
je 0x7666322a
cmp dword [ebp + 0x10], ebx
jne 0x7666322a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x76668368], ebx
je 0x766632f9
cmp esi, ebx
jne 0x76663241
mov dword [ebp + 8], 0x76663300
push ebx
push ebx
push dword [ebp + 8]
call fcn.765ea9bd
mov esi, eax
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_w_kA
cmp eax, ebx
pop ecx
mov dword [ebp + 0x10], eax
je 0x766632f9
push esi
push eax
push dword [ebp + 8]
call fcn.765ea9bd
test eax, eax
je 0x766632e4
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 0x10]
call sym.CRYPT32.dll_CreateFileU
mov edi, eax
cmp edi, 0xffffffff
je 0x766632e4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x186a0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jb 0x766632b9
push ebx
push ebx
push ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x766632e4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x766632e4
push 2
push ebx
push ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x766632e4
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x766632cb
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, edx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
call sub.msvcrt.dll__T4d4__Vw_kA
cmp edi, 0xffffffff
pop ecx
je 0x766632f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4496b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cb3bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004bf317
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x449732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bc9dd
mov eax, dword [eax]
push 0x524254
push eax
call fcn.004ae214
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004bf5a2
test bl, bl
je 0x449732
push 0x524254
lea ecx, [esp + 0xc]
call fcn.004bf932
push 0x527de8
lea ecx, [esp + 0xc]
call fcn.004bf932
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44976e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004bf5a2
jmp 0x449839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4497f2
lea edx, [esp + 0x7c]
push 0x527de4
push edx
call fcn.004ae214
add esp, 8
test eax, eax
je 0x4497f2
lea eax, [esp + 0x7c]
push 0x527de0
push eax
call fcn.004ae214
add esp, 8
test eax, eax
je 0x4497f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x449782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004bf5a2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x44a030
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44a092
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x44a0a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cb43b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x536aec]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x44a1d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x44a106
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bf5a2
xor eax, eax
jmp 0x44a24f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004bf6df
push esi
lea ecx, [esp + 0xc]
call fcn.004bf96e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x527e20
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x44a22d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0044a030
test eax, eax
jne 0x44a22d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0044a030
test eax, eax
jne 0x44a22d
lea eax, [esp + 0x14]
push 0x527dfc
push eax
call fcn.004af510
mov esi, eax
add esp, 8
test esi, esi
jne 0x44a20c
lea ecx, [esp + 0x14]
push 0x527df8
push ecx
call fcn.004af490
mov esi, eax
add esp, 8
test esi, esi
jne 0x44a20c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x44a20f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004bf68f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44a11e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bf5a2
xor eax, eax
jmp 0x44a24f
mov byte [esi], 0
push 0x527df4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004bf5a2
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4