joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bfe0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x250]
push eax
call ebx
lea ecx, [esi + 0x268]
push ecx
call ebx
xor ebx, ebx
cmp edi, ebx
jne 0x49c01e
mov edi, 0x572a38
push 0x10
lea edx, [esi + 0x28c]
push edi
push edx
call fcn.004bf0a0
push 0x32
lea edi, [esi + 0x29c]
push ebx
push edi
call fcn.004ff6f0
add esp, 0x18
lea eax, [ebp - 0xb4]
push eax
push edi
mov dword [ebp - 0xb4], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x49c06b
push 0x10
push 0x572a3c
push edi
call fcn.004bf0a0
add esp, 0xc
call fcn.0049b650
lea edi, [esi + 0x2d0]
push edi
call fcn.004c4c20
add esp, 4
test eax, eax
jne 0x49c089
mov dword [edi], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x49c0ff
push 0x104
lea edi, [esi + 0x14c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push edi
call fcn.00502eca
add esp, 8
cmp eax, ebx
je 0x49c0db
mov byte [eax], bl
lea eax, [edi - 1]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x49c0b7
mov ecx, dword [0x56e6d8]
mov dword [eax], ecx
mov dl, byte [0x56e6dc]
push edi
mov byte [eax + 4], dl
call fcn.005034da
add esp, 4
jmp 0x49c111
mov eax, dword [str.default.log]
mov dword [edi], eax
mov ecx, dword [0x572adc]
mov dword [edi + 4], ecx
mov edx, dword [0x572ae0]
push edi
mov dword [edi + 8], edx
call fcn.005034da
add esp, 4
jmp 0x49c111
lea edx, [esi + 0x14c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x49c107
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x49c15d
mov ecx, dword [ebp - 0xb0]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
sub ecx, edx
push ecx
push eax
push str._03d_02d
push 0x5bbb40
call fcn.004ff1e4
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov eax, 1
push 0x104
mov dword [esi + 4], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x288], ecx
mov dword [esi + 0x284], ebx
mov dword [esi + 0x280], 0x500000
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
push ebx
add esi, 0x48
push esi
call fcn.004ff6f0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49d3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5421e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x5c1f70], ebx
jne 0x49d4d7
mov byte [ebp - 0x31], bl
lea eax, [ebp - 0x31]
push eax
push 0x104
lea ecx, [ebp - 0x44]
call fcn.0049d000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
sub ecx, esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea ecx, [ebp - 0x30]
call fcn.00412140
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
dec edx
push edx
lea ecx, [ebp - 0x30]
call fcn.0049c3b0
cmp byte [eax], 0x5c
je 0x49d433
push 0x54f3dc
lea ecx, [ebp - 0x30]
call fcn.00411f50
push str.wsock32.dll
lea ecx, [ebp - 0x30]
call fcn.00411f50
call fcn.0049b800
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x49d451
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [0x5c1f8c]
mov esi, eax
cmp esi, 0xffffffff
je 0x49d4c0
push 0x5c1f84
push 0x5c1f7c
push 0x5c1f74
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x49d4b9
cmp dword [0x5c1f74], ebx
jne 0x49d4af
cmp dword [0x5c1f78], ebx
jne 0x49d4af
mov eax, dword [0x5c1f84]
mov dword [0x5c1f74], eax
mov ecx, dword [0x5c1f88]
mov dword [0x5c1f78], ecx
mov dword [0x5c1f70], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00411b50
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.0049cc00
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x49d9b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542280
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.0049b800
lea eax, [edi + 0x14c]
push 0
push 2
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [0x5c1f8c]
mov esi, eax
cmp esi, 0xffffffff
je 0x49da5d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x280]
cmp ebx, eax
jbe 0x49da5d
mov ecx, edi
cmp byte [edi + 0x48], 0
je 0x49da4e
call fcn.0049b890
mov dword [ebp - 4], 0xffffffff
jmp 0x49da96
shr eax, 1
push eax
lea eax, [edi + 0x14c]
push eax
call fcn.0049d690
mov dword [ebp - 4], 0xffffffff
jmp 0x49da96
add edi, 0x250
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49dda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5422d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.0049b800
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea ecx, [esi + 0x14c]
push ecx
call dword [0x5c1f8c]
mov edi, eax
cmp edi, 0xffffffff
je 0x49de4f
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax - 8]
push 0
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0x3c], 0
je 0x49de3f
push edi
call fcn.0049d520
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x49de8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x49de61
mov dword [esi + 0x40], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x49de8b
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 2
inc dword [esi + 0x284]
cmp dword [esi + 0x284], 0xa
jbe 0x49debf
mov dword [esi + 0x284], 0
mov ecx, esi
call fcn.0049d9b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49e0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x49e12f
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
cmp eax, 1
jne 0x49e12f
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
push eax
push edi
push esi
push 0x49e0a0
push edi
push edi
call fcn.005008fb
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, edi
jbe 0x49e112
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 4
call fcn.00504903
mov ecx, dword [eax]
mov edx, dword [esi + 0x18]
push edx
mov dword [esi + 0x14], ecx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a1260
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542715
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x14
lea ecx, [esi + 0x98]
call fcn.00498f60
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x84]
call fcn.00498f60
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x70]
call fcn.00498f60
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x5c]
call fcn.00498f60
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x44]
call fcn.004bfa40
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x40]
call fcn.004bfa40
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x3c]
call fcn.004bfa40
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x38]
call fcn.004bfa40
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x34]
call fcn.004bfa40
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x30]
call fcn.004bfa40
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x2c]
call fcn.004bfa40
mov byte [ebp - 4], 9
lea ecx, [esi + 0x28]
call fcn.004bfa40
mov byte [ebp - 4], 8
lea ecx, [esi + 0x24]
call fcn.004bfa40
mov byte [ebp - 4], 7
lea ecx, [esi + 0x20]
call fcn.004bfa40
mov byte [ebp - 4], 6
lea ecx, [esi + 0x1c]
call fcn.004bfa40
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
call fcn.004bfa40
mov byte [ebp - 4], 4
lea ecx, [esi + 0x14]
call fcn.004bfa40
mov byte [ebp - 4], 3
lea ecx, [esi + 0x10]
call fcn.004bfa40
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
call fcn.004bfa40
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
call fcn.004bfa40
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004bfa40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a2020
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542950
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
push eax
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.004ff6f0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2075
sub eax, edx
jne 0x4a2091
mov ecx, dword [0x560e58]
mov dword [esi], ecx
mov edx, dword [0x560e5c]
mov dword [esi + 4], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a26d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542a60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 0xc]
mov dword [edi], esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a2786
mov dword [ebp + 8], esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
inc eax
push eax
call fcn.004fc6be
mov esi, eax
mov dword [ebp - 0x14], esi
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push esi
call fcn.004ff6f0
add esp, 0x10
push 0
lea edx, [ebp + 8]
push edx
mov eax, dword [edi]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a2769
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi]
je 0x4a277f
push esi
call fcn.004808a0
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [edi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4acea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544130
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
push 0x20019
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ad019
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push str.EnableAutodial
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x4ad00f
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x4ad00f
push eax
call fcn.004fc6be
mov edi, eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.004fc6be
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
call fcn.004ff6f0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push ebx
call fcn.004ff6f0
add esp, 0x20
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push str.EnableAutodial
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test eax, eax
jne 0x4acffd
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov edx, edi
lea esp, [esp]
cmp esi, 4
jb 0x4acfa6
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4acfaa
sub esi, 4
add ecx, 4
add edx, 4
jmp 0x4acf90
test esi, esi
je 0x4acfed
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x4acfe5
cmp esi, 1
jbe 0x4acfed
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x4acfe5
cmp esi, 2
jbe 0x4acfed
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x4acfe5
cmp esi, 3
jbe 0x4acfed
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jne 0x4acff6
mov dword [ebp - 0x1c], 0
jmp 0x4acffd
mov dword [ebp - 0x1c], 1
push edi
call fcn.004808a0
mov edx, dword [ebp - 0x24]
push edx
call fcn.004808a0
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544150
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
dec dword [esi + 0xac]
jne 0x4ad178
cmp dword [esi + 0x88], 1
jne 0x4ad178
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ad155
mov edi, dword [esi + 0x98]
push edi
mov edx, dword [esi + 0x100]
push edx
push 3
push ebx
push str.EnableAutodial
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call ebx
test eax, eax
jne 0x4ad149
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ad142
push edi
mov eax, dword [esi + 0x100]
push eax
push 3
push 0
push str.EnableAutodial
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x98], ebx
mov eax, dword [esi + 0x100]
push eax
call fcn.004808a0
add esp, 4
mov dword [esi + 0x100], ebx
jmp 0x4ad17f
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae640
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544460
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x11]
call fcn.0052f150
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x11]
call fcn.0052eed0
mov dword [ebp - 0x2c], 0x5c3a63
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4ae6e2
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
push 4
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x11]
call fcn.0052eed0
push edi
call fcn.004ff06e
add esp, 4
mov dword [ebp - 0x34], eax
push 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x11]
call fcn.0052eed0
push 0x10
lea ecx, [esi + 0x1070]
push ecx
lea ecx, [ebp - 0x11]
call fcn.0052eed0
add esi, 0x8f0
push 0x100
push esi
lea ecx, [ebp - 0x11]
call fcn.0052eff0
push 0x10c
call fcn.004fc6be
mov ebx, eax
push 0x10c
push edi
push ebx
call fcn.004ff6f0
add esp, 0x10
mov dword [ebx], 1
mov dword [ebx + 4], 0x10c
mov dword [ebx + 8], 0x20000
lea edi, [ebx + 0xc]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push 0
push 0
push 0x10c
push ebx
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.004fedfc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aefc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544570
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov ebx, 1
add dword [esi + 0xac], ebx
call fcn.004acea0
cmp eax, ebx
jne 0x4af177
cmp dword [esi + 0x88], edi
jne 0x4af177
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4af17a
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push str.EnableAutodial
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x4af16b
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x4af16b
push eax
call fcn.004fc6be
mov dword [esi + 0x100], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.004fc6be
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
call fcn.004ff6f0
add esp, 0x14
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x98], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [esi + 0x100]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.EnableAutodial
mov edx, dword [ebp - 0x1c]
push edx
call ebx
test eax, eax
jne 0x4af145
mov eax, dword [ebp - 0x14]
push eax
push edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push str.EnableAutodial
mov edx, dword [ebp - 0x1c]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call ebx
test eax, eax
jne 0x4af162
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4af135
mov edx, dword [ebp - 0x14]
push edx
push edi
mov eax, dword [ebp - 0x18]
push eax
push 0
push str.EnableAutodial
mov ecx, dword [ebp - 0x24]
push ecx
call ebx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov dword [esi + 0x88], eax
mov dword [ebp - 0x20], eax
jmp 0x4af162
mov eax, dword [esi + 0x100]
push eax
call fcn.004808a0
add esp, 4
xor eax, eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x98], eax
push edi
call fcn.004808a0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4af17a
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2a30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544b2c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x574c44
xor edi, edi
push edi
lea ecx, [esi + 0xa0]
call fcn.00498380
mov dword [ebp - 4], edi
push edi
lea ecx, [esi + 0xb4]
call fcn.00498380
mov ebx, 1
mov byte [ebp - 4], bl
mov byte [ebp - 4], 2
push 0x64
push edi
lea eax, [esi + 8]
push eax
call fcn.004ff6f0
add esp, 0xc
lea ecx, [esi + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov dword [esi + 0xc8], eax
mov edx, dword [eax + 0x8c]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x9c], edi
mov eax, dword [eax + 0xa4]
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], edi
mov dword [esi + 4], edi
mov dword [ebp - 0x14], edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x94], eax
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
push 0x4b2a20
push edi
push edi
call fcn.005008fb
add esp, 0x18
mov dword [esi + 0x90], eax
cmp eax, edi
je 0x4b2b33
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [esi + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b2b33
mov dword [esi + 0x6c], ebx
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
jmp 0x4b2b66
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4